/* ==========================================================================
   L'Albizia — Chamarel, Mauritius
   Mobile-first single page stylesheet
   ========================================================================== */

:root {
  --ink: #232a26;
  --ink-soft: #4e5a52;
  --forest: #1e3a2f;
  --forest-deep: #14261e;
  --cream: #faf8f3;
  --sand: #f0ebdf;
  --line: #ddd5c4;
  --gold: #b3874a;
  --gold-deep: #96703b;
  --white: #fffdf8;
  --wa: #23c05f;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 16px;
  --shadow: 0 14px 44px -18px rgba(30, 42, 34, .35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html, body { overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { line-height: 1.12; font-weight: 600; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4rem, 11vw, 7.5rem); }

/* ---------- Type helpers ---------- */
.kicker {
  font-size: .72rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 400;
  margin-bottom: 1.1rem;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  color: var(--forest);
  margin-bottom: 1.4rem;
}
h2 em { font-style: italic; font-weight: 500; }
.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head h2 { margin-bottom: .6rem; }
.section-intro { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .95em 2em;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(20, 38, 30, .6); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-deep); }
.btn--ghost { background: transparent; border-color: rgba(255, 253, 248, .65); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 253, 248, .14); box-shadow: none; }
.btn--small { padding: .7em 1.5em; }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background .35s ease, box-shadow .35s ease;
}
.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: .8rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; transition: opacity .3s ease; }
.brand-logo--dark { display: none; }

.site-header.is-solid { background: rgba(250, 248, 243, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(30, 42, 34, .08); }
.site-header.is-solid .brand-logo--white { display: none; }
.site-header.is-solid .brand-logo--dark { display: block; }

/* keep the white logo visible above the mobile nav overlay */
body.nav-open .brand { position: relative; z-index: 70; }
body.nav-open .site-header .brand-logo--white { display: block; }
body.nav-open .site-header .brand-logo--dark { display: none; }

/* Nav — mobile overlay first */
.nav-toggle {
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.site-header.is-solid .nav-toggle span { background: var(--forest); }
body.nav-open .nav-toggle span { background: var(--cream); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
body.nav-open .main-nav { opacity: 1; visibility: visible; }
.main-nav ul { display: grid; gap: 1.4rem; text-align: center; }
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--cream);
}
.main-nav .nav-cta a { font-family: var(--font-body); font-size: .78rem; }
body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    inset: auto;
    background: none;
    opacity: 1;
    visibility: visible;
    display: block;
  }
  .main-nav ul { display: flex; align-items: center; gap: 2rem; }
  .main-nav a {
    font-family: var(--font-body);
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--cream);
    position: relative;
    padding-bottom: .3em;
  }
  .main-nav li:not(.nav-cta) a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 1px;
    background: currentColor;
    transition: right .3s ease;
  }
  .main-nav li:not(.nav-cta) a:hover::after { right: 0; }
  .site-header.is-solid .main-nav a { color: var(--forest); }
  .site-header.is-solid .nav-cta a { color: var(--cream); }
  .nav-cta a { padding: .7em 1.5em; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  isolation: isolate;
  padding: 6rem var(--pad) 5rem;
}
.hero-media, .hero-media picture { position: absolute; inset: 0; z-index: -2; }
.hero-media { background-size: cover; background-position: center; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% 60%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 26, 20, .52) 0%, rgba(15, 26, 20, .26) 34%, rgba(15, 26, 20, .24) 62%, rgba(15, 26, 20, .58) 100%);
}
.hero-content { max-width: 780px; }
.hero-kicker {
  font-size: .78rem;
  letter-spacing: .5em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: .92;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 13vw, 6.8rem);
  margin: .35rem 0 1rem;
  text-shadow: 0 2px 30px rgba(15, 26, 20, .45);
}
.hero-sub {
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-weight: 300;
  max-width: 34em;
  margin-inline: auto;
  text-shadow: 0 1px 14px rgba(15, 26, 20, .5);
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
}
.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem;
}
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: rgba(255, 253, 248, .75);
  animation: scrollHint 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-text p + p { margin-top: 1rem; }
.about-text { color: var(--ink-soft); }
.about-text h2 { color: var(--forest); }

.fact-chips {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.fact-chips li {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: .5em 1.2em;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.fact-chips strong { font-weight: 500; color: var(--forest); }

.about-media { position: relative; padding-bottom: 3.5rem; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo picture { height: 100%; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo--main { aspect-ratio: 4 / 3; }
.about-photo--accent {
  position: absolute;
  right: calc(-1 * var(--pad) / 2);
  bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  border: 5px solid var(--cream);
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 6vw, 5.5rem); }
  .about-photo--accent { right: -2rem; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { background: var(--sand); }
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.8rem;
}
.filter-btn {
  padding: .55em 1.3em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.filter-btn:hover { border-color: var(--forest); color: var(--forest); }
.filter-btn.is-active { background: var(--forest); border-color: var(--forest); color: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.g-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  background: var(--line);
}
.g-item picture { height: 100%; }
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.g-item:hover img { transform: scale(1.045); }
.g-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem .9rem .7rem;
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(15, 26, 20, .68));
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.g-item:hover figcaption { opacity: 1; }
.g-item.is-hidden { display: none; }

@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-item--wide { grid-column: span 2; aspect-ratio: 8 / 4.5; }
}
@media (min-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .g-item--wide { grid-column: span 2; aspect-ratio: auto; }
}

/* ==========================================================================
   Amenities
   ========================================================================== */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.amenity-grid li {
  background: var(--white);
  border: 1px solid rgba(221, 213, 196, .6);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.amenity-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.amenity-grid svg {
  width: 40px;
  height: 40px;
  margin: 0 auto .9rem;
  stroke: var(--gold-deep);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amenity-grid h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  color: var(--forest);
  margin-bottom: .25rem;
}
.amenity-grid p { font-size: .84rem; color: var(--ink-soft); line-height: 1.5; }

@media (min-width: 720px) { .amenity-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
@media (min-width: 1020px) { .amenity-grid { grid-template-columns: repeat(5, 1fr); } }

/* ==========================================================================
   Explore / attractions
   ========================================================================== */
.explore { background: var(--sand); }

.feature-card {
  display: grid;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
}
.feature-card-media { aspect-ratio: 16 / 10; }
.feature-card-media picture, .feature-card-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-card-body { padding: clamp(1.6rem, 4vw, 2.8rem); align-self: center; }
.feature-card-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  color: var(--forest);
  margin: .8rem 0 .6rem;
}
.feature-card-body p { color: var(--ink-soft); }
.feature-card-more { margin-top: .8rem; font-size: .92rem; }
.feature-card-more strong { color: var(--forest); font-weight: 500; }

@media (min-width: 900px) {
  .feature-card { grid-template-columns: 1.1fr 1fr; }
  .feature-card-media { aspect-ratio: auto; }
}

.distance-chip {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: .35em 1em;
}

.explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.explore-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  border: 1px solid rgba(221, 213, 196, .6);
  transition: transform .3s ease, box-shadow .3s ease;
}
.explore-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.explore-card svg {
  width: 34px;
  height: 34px;
  stroke: var(--gold-deep);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1rem;
}
.explore-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--forest);
  margin-bottom: .5rem;
}
.explore-card .distance-chip { margin-bottom: .8rem; }
.explore-card p { font-size: .92rem; color: var(--ink-soft); }

@media (min-width: 640px) { .explore-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .explore-grid { grid-template-columns: repeat(3, 1fr); } }

.local-tips {
  margin-top: 1.2rem;
  display: grid;
  gap: 1.2rem;
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.local-tips h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: .9rem;
  color: var(--white);
}
.local-tips li {
  padding: .45em 0;
  font-size: .93rem;
  color: rgba(250, 248, 243, .85);
  border-bottom: 1px solid rgba(250, 248, 243, .12);
}
.local-tips li:last-child { border-bottom: 0; }
.local-tips strong { font-weight: 500; color: var(--white); }
@media (min-width: 760px) { .local-tips { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews {
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(44, 82, 67, .55), transparent 60%),
    linear-gradient(170deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--cream);
}
.section-head--light h2 { color: var(--white); }
.section-head--light .kicker { color: var(--gold); }
.rating-line { letter-spacing: .06em; font-size: .95rem; color: rgba(250, 248, 243, .88); }
.stars { color: var(--gold); letter-spacing: .18em; font-size: .95rem; }

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.review-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .55);
}
.review-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--forest);
  flex-grow: 1;
}
.review-card .review-more { display: none; }
.review-card.is-expanded .review-more { display: inline; }
.review-toggle {
  align-self: flex-start;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: .15em;
}
.review-card footer strong { display: block; font-weight: 500; color: var(--forest); }
.review-card footer span { font-size: .82rem; color: var(--ink-soft); }

@media (min-width: 900px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* ==========================================================================
   Booking
   ========================================================================== */
.booking-grid { display: grid; gap: 3rem; align-items: start; }
.booking-info p { color: var(--ink-soft); }

.booking-facts {
  margin: 1.8rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.booking-facts li {
  background: var(--sand);
  border-radius: 12px;
  padding: .9rem 1.1rem;
}
.booking-facts span {
  display: block;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.booking-facts strong { font-weight: 500; color: var(--forest); }

.house-rules { font-size: .92rem; }
.house-rules strong { font-weight: 500; color: var(--forest); }

.booking-contacts { margin-top: 1.6rem; display: grid; gap: .7rem; }
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .95rem;
  color: var(--forest);
  font-weight: 400;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.contact-line:hover { border-color: var(--forest); }
.contact-line svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-deep);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-form {
  background: var(--white);
  border: 1px solid rgba(221, 213, 196, .7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.booking-form h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--forest);
  margin-bottom: 1.4rem;
}
.field { margin-bottom: 1.1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.field label {
  display: block;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .35rem;
}
.field label small { text-transform: none; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75em 1em;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(30, 58, 47, .12);
}
.field textarea { resize: vertical; min-height: 80px; }
.form-error {
  color: #a03426;
  font-size: .88rem;
  margin-bottom: 1rem;
}
.form-note {
  margin-top: .9rem;
  font-size: .8rem;
  text-align: center;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .booking-grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 5rem); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--forest-deep);
  color: rgba(250, 248, 243, .78);
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  gap: 2.4rem;
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 1rem; opacity: .95; }
.footer-brand p { max-width: 30em; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col li { padding: .28em 0; }
.footer-col a { transition: color .25s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(250, 248, 243, .14);
  padding-block: 1.3rem;
  font-size: .8rem;
  letter-spacing: .06em;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
}

/* ==========================================================================
   WhatsApp float
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 55;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px -8px rgba(35, 192, 95, .65);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 30px -8px rgba(35, 192, 95, .8); }
.wa-float[hidden] { display: none; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 22, 18, .96);
  display: grid;
  grid-template-columns: min-content 1fr min-content;
  align-items: center;
  padding: .5rem;
}
.lightbox[hidden] { display: none; }
.lb-stage { grid-column: 2; text-align: center; min-width: 0; }
.lb-stage picture { display: contents; }
.lb-stage img {
  max-width: 100%;
  max-height: min(78svh, 900px);
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: 6px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.lb-stage figcaption {
  margin-top: 1rem;
  color: rgba(250, 248, 243, .85);
  font-size: .88rem;
  letter-spacing: .05em;
}
.lb-counter { opacity: .55; margin-left: .6em; }
.lb-close, .lb-prev, .lb-next {
  color: rgba(250, 248, 243, .8);
  transition: color .2s ease, transform .2s ease;
  line-height: 1;
  z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #fff; transform: scale(1.1); }
.lb-close {
  position: absolute;
  top: .6rem;
  right: .9rem;
  font-size: 2.6rem;
  font-weight: 300;
  padding: .2em .4em;
}
.lb-prev, .lb-next {
  font-size: 3rem;
  font-weight: 300;
  padding: .4em .35em;
}
@media (max-width: 599px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-stage { grid-column: 1; }
  .lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .lb-prev { left: .2rem; }
  .lb-next { right: .2rem; }
  .lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.1); }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* Anchor offset for fixed header */
section[id] { scroll-margin-top: 4.2rem; }
