:root {
  color-scheme: light;
  --brand-primary: #4f8c82;
  --brand-secondary: #7bbfad;
  --brand-dark: #2f4a47;
  --brand-light: #f3fbfb;
  --text-body: #2a3333;
  --text-muted: #667272;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(34, 52, 51, 0.1);
  --header-offset: 160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  background-color: var(--brand-light);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.site-header {
  background: var(--white);
  padding: 2rem 1.5rem 1.25rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(15, 30, 30, 0.05);
}

.site-branding h1 {
  margin: 0;
  font-family: 'Great Vibes', 'Playfair Display', serif;
  font-size: clamp(2.75rem, 5vw, 4rem);
  color: var(--brand-primary);
  letter-spacing: 0.1rem;
}

.site-date {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
}

.site-nav a {
  position: relative;
  padding-bottom: 0.25rem;
  color: var(--text-muted);
  transition: color 0.2s ease-in-out;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-in-out;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--brand-primary);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: clamp(40vh, 60vh, 75vh);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    60deg,
    rgba(47, 74, 71, 0.65),
    rgba(47, 74, 71, 0.2)
  );
}

.hero__content {
  position: relative;
  max-width: 720px;
  text-align: left;
  color: var(--white);
  text-shadow: 0 12px 30px rgba(18, 18, 18, 0.45);
}

.hero__content h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: 0.05em;
}

.hero__content p {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  max-width: 34ch;
}

.content-section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 6rem);
  background-color: var(--white);
}
.hero,
.content-section {
  scroll-margin-top: var(--header-offset);
}

.alt-section {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}

.section-heading {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin: 0;
  color: var(--brand-dark);
}

.section-heading p {
  max-width: 600px;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery figure {
  margin: 0;
  position: relative;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(36, 55, 54, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(47, 74, 71, 0.45), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.gallery figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(36, 55, 54, 0.28);
}

.gallery figure:hover::after {
  opacity: 1;
}

.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery figure:hover img {
  transform: scale(1.06);
}

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.video-wrapper video {
  width: 100%;
  display: block;
  background: #000;
}

.site-footer {
  padding: 2rem 1rem 3rem;
  text-align: center;
  font-size: 1.5rem;
  color: var(--brand-primary);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 27, 26, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
  z-index: 300;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.lightbox.hidden {
  opacity: 0;
  pointer-events: none;
}

.lightbox__figure {
  margin: 0;
  max-width: min(90vw, 1100px);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lightbox__figure figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 0.95rem;
}

.lightbox__figure img {
  max-height: 70vh;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.lightbox__caption {
  letter-spacing: 0.03em;
}

.lightbox__download {
  color: var(--white);
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox__download:hover,
.lightbox__download:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.lightbox__close {
  position: absolute;
  top: clamp(1rem, 5vw, 2rem);
  right: clamp(1rem, 5vw, 2rem);
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 2.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  color: var(--brand-secondary);
}

.lightbox__nav {
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  cursor: pointer;
  width: clamp(44px, 6vw, 64px);
  height: clamp(44px, 6vw, 64px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox__nav--prev {
  order: -1;
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 250;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.back-to-top button {
  background: var(--brand-primary);
  color: var(--white);
  border: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(66, 113, 109, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top button:hover,
.back-to-top button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(66, 113, 109, 0.4);
}

@media (max-width: 720px) {
  :root {
    --header-offset: 120px;
  }

  .site-header {
    padding-bottom: 1.5rem;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }

  .hero__content {
    text-align: center;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .lightbox {
    gap: 0;
  }

  .lightbox__nav {
    display: none;
  }

  .lightbox__figure img {
    max-height: 72vh;
    width: 100%;
  }
}


