html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

header.is-scrolled {
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 1px 0 rgb(17 24 39 / 7%);
  backdrop-filter: blur(8px);
}

header.is-scrolled nav a,
header.is-scrolled > div > a:last-child {
  color: #4b5563 !important;
}

header.is-scrolled nav a:last-child {
  border-color: #7a9e7e !important;
  color: #7a9e7e !important;
}

[data-gallery-hidden="true"] {
  display: none;
}

.forest-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgb(0 0 0 / 90%);
}

.forest-lightbox[hidden] {
  display: none;
}

.forest-lightbox__dialog {
  position: relative;
  width: min(100%, 64rem);
}

.forest-lightbox__image {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.75rem;
}

.forest-lightbox__close,
.forest-lightbox__previous,
.forest-lightbox__next {
  position: absolute;
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  color: #fff;
  cursor: pointer;
}

.forest-lightbox__close {
  top: -3rem;
  right: 0;
  background: transparent;
  font-size: 1.5rem;
}

.forest-lightbox__previous,
.forest-lightbox__next {
  top: 50%;
  background: rgb(255 255 255 / 12%);
  transform: translateY(-50%);
}

.forest-lightbox__previous {
  left: -3.5rem;
}

.forest-lightbox__next {
  right: -3.5rem;
}

.forest-lightbox__caption {
  margin-top: 1rem;
  color: #fff;
  text-align: center;
}

.forest-lightbox__caption small {
  display: block;
  margin-top: 0.25rem;
  color: rgb(255 255 255 / 50%);
}

@media (max-width: 767px) {
  .forest-lightbox__previous {
    left: 0.5rem;
  }

  .forest-lightbox__next {
    right: 0.5rem;
  }
}
