/* ============================================================
   THE ARYAN BHARTI — stylesheet
   Palette: cream stone / terracotta / river-dusk indigo / marigold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500;1,9..144,600&family=Work+Sans:wght@400;500;600;700&display=swap');

:root{
  --cream:      #F5EEE0;
  --cream-2:    #EFE5D2;
  --ink:        #2A231D;
  --ink-soft:   #55493C;
  --terracotta: #B85C2E;
  --terracotta-dark: #94461F;
  --indigo:     #2C4552;
  --indigo-2:   #1E323C;
  --marigold:   #E0A83A;
  --stone:      #D8CBAE;
  --stone-dark: #A99977;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;

  --container: 1180px;
  --radius: 2px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
}

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,238,224,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo .logo-sub{
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-dark);
  margin-top: 3px;
}
.nav-links{
  display: flex;
  gap: 40px;
  margin-left: auto;
}
.nav-links a{
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--terracotta);
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ width: 100%; }
.nav-links a.active{ color: var(--terracotta-dark); }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 780px){
  .nav-links{
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--stone);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open{ max-height: 320px; }
  .nav-links a{
    padding: 16px 32px;
    border-top: 1px solid var(--stone);
    width: 100%;
  }
  .nav-toggle{ display: flex; }
}

/* ---------- River / brushstroke divider (signature element) ---------- */
.river{
  width: 100%;
  height: 28px;
  display: block;
}
.river path{ fill: none; stroke-linecap: round; }
.river.terracotta path{ stroke: var(--terracotta); }
.river.indigo path{ stroke: var(--indigo); }
.river.marigold path{ stroke: var(--marigold); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary{
  background: var(--terracotta);
  color: var(--cream);
}
.btn-primary:hover{ background: var(--terracotta-dark); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--cream); }
.btn-light{
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-light:hover{ background: var(--cream); color: var(--indigo-2); }

/* ---------- Hero ---------- */
.hero{
  padding: 72px 0 56px;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  margin: 18px 0 22px;
}
.hero h1 em{
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}
.hero p.lede{
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

.hero-art{
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--stone) 0%, var(--cream-2) 100%);
  border: 1px solid var(--stone-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-art::before{
  content: '';
  position: absolute; inset: 14px;
  border: 1px solid rgba(42,35,29,0.18);
}
.hero-art img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; gap: 40px; }
  .hero-art{ order: -1; aspect-ratio: 16/10; }
}

/* ---------- Placeholder tiles (for artwork not yet uploaded) ---------- */
.art-placeholder{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background:
    repeating-linear-gradient(135deg, rgba(42,35,29,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(150deg, var(--stone) 0%, var(--cream-2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--stone-dark);
  border: 1px solid var(--stone-dark);
}
.art-placeholder svg{ width: 34px; height: 34px; margin-bottom: 10px; opacity: 0.6; }
.art-placeholder .ph-label{
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.art-placeholder .ph-file{
  font-size: 11px;
  margin-top: 4px;
  font-family: monospace;
  opacity: 0.8;
}

/* ---------- Section shells ---------- */
section{ padding: 88px 0; }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head h2{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 10px 0 0;
}
.section-head p{
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 10px 0 0;
}

/* ---------- Gallery grid ----------
   Every painting is shown at the SAME HEIGHT, uncropped. Width is
   whatever that height works out to at the painting's own aspect
   ratio — portraits stay narrow, landscapes take more room — so
   cards flow left to right and wrap naturally instead of being
   squeezed into equal-width columns. */
.gallery-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.art-card{
  display: block;
  flex: 0 0 auto;
  cursor: default;
}
.art-card .frame{
  height: 380px;
  overflow: hidden;
}
.art-card .frame img{ height: 100%; width: auto; display: block; }

@media (max-width: 900px){ .art-card .frame{ height: 300px; } }
@media (max-width: 560px){
  .gallery-grid{ justify-content: center; }
  .art-card .frame{ height: 260px; }
}

.art-card .meta{
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.art-card .meta h3{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}
.art-card .meta span{
  font-size: 12px;
  color: var(--stone-dark);
  white-space: nowrap;
}

/* ---------- Filter tabs + search ---------- */
.gallery-toolbar{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filters{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-btn{
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 9px 18px;
  border: 1px solid var(--stone-dark);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.filter-btn:hover{ border-color: var(--terracotta); color: var(--terracotta-dark); }
.filter-btn.active{ background: var(--ink); border-color: var(--ink); color: var(--cream); }

.search-field{
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  max-width: 100%;
}
.search-field svg{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--stone-dark);
  pointer-events: none;
}
.search-field input{
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--stone-dark);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
}
.search-field input:focus{
  outline: none;
  border-color: var(--terracotta);
}
.search-field input::placeholder{ color: var(--stone-dark); }

.gallery-empty{
  color: var(--ink-soft);
  padding: 40px 0;
  text-align: center;
}

/* ---------- Dark band (indigo) ---------- */
.band-indigo{
  background: var(--indigo-2);
  color: var(--cream);
}
.band-indigo .eyebrow{ color: var(--marigold); }
.band-indigo .section-head p{ color: rgba(245,238,224,0.72); }

/* ---------- Story teaser ---------- */
.story-teaser{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.story-teaser p{ font-size: 17px; color: rgba(245,238,224,0.85); margin: 18px 0 30px; max-width: 52ch; }
.story-teaser h2{ font-family: var(--font-display); font-weight: 600; font-size: clamp(28px,3.4vw,40px); margin: 10px 0 0; }
@media (max-width: 860px){ .story-teaser{ grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Timeline (About) ---------- */
.timeline{
  border-left: 1px solid var(--stone-dark);
  margin-left: 6px;
}
.timeline-item{
  position: relative;
  padding: 0 0 46px 34px;
}
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-item::before{
  content: '';
  position: absolute;
  left: -6px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1px var(--stone-dark);
}
.timeline-item .t-year{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terracotta-dark);
  font-size: 15px;
  font-weight: 600;
}
.timeline-item h3{
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin: 6px 0 8px;
}
.timeline-item p{ color: var(--ink-soft); margin: 0; max-width: 56ch; }

/* ---------- About split ---------- */
.about-split{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px){ .about-split{ grid-template-columns: 1fr; } }
.about-split .portrait{ aspect-ratio: 3/4; position: sticky; top: 110px; }
@media (max-width: 860px){ .about-split .portrait{ position: static; } }

/* ---------- Shop ----------
   Same rule as the gallery: every painting is shown at the SAME
   HEIGHT, uncropped; card width follows the painting's own shape. */
.shop-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
@media (max-width: 560px){ .shop-grid{ justify-content: center; } }
.shop-card{
  background: var(--cream-2);
  border: 1px solid var(--stone);
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}
.shop-card .frame{ height: 340px; overflow: hidden; }
.shop-card .frame img{ height: 100%; width: auto; display: block; }
@media (max-width: 900px){ .shop-card .frame{ height: 280px; } }
@media (max-width: 560px){
  .shop-card{ width: 100%; }
  .shop-card .frame{ height: auto; }
  .shop-card .frame img{ width: 100%; height: auto; }
}
/* info box takes the painting's width instead of stretching the card */
.shop-card .info{ width: 0; min-width: 100%; box-sizing: border-box; }
.shop-card .info{ padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.shop-card h3{ font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0; }
.shop-card .desc{ font-size: 13.5px; color: var(--ink-soft); margin: 0; flex: 1; }
.shop-card .price-row{ display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.shop-card .price{ font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--terracotta-dark); }
.shop-card .enquire{ font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; text-decoration: underline; text-underline-offset: 3px; }

.shop-note{
  background: var(--cream-2);
  border: 1px dashed var(--stone-dark);
  padding: 18px 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 44px;
}

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-info dt{
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-dark);
  margin-top: 26px;
}
.contact-info dt:first-child{ margin-top: 0; }
.contact-info dd{
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 19px;
}
.contact-info dd a:hover{ color: var(--terracotta-dark); }
.contact-info .dd-sub{
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--stone-dark);
  margin-left: 4px;
}

.form-field{ margin-bottom: 22px; }
.form-field label{
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea{
  width: 100%;
  background: var(--cream-2);
  border: 1px solid var(--stone-dark);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
}
.form-field textarea{ min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
footer{
  background: var(--indigo-2);
  color: rgba(245,238,224,0.75);
  padding: 56px 0 32px;
}
.footer-top{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(245,238,224,0.15);
  margin-bottom: 24px;
}
.footer-logo{
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 22px;
  font-weight: 700;
}
.footer-links{ display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a:hover{ color: var(--marigold); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utility ---------- */
.center{ text-align: center; }
.mt-0{ margin-top: 0; }

/* ---------- Header actions + theme toggle ---------- */
.site-header .wrap{ gap: 28px; }
.header-actions{ display: flex; align-items: center; gap: 12px; }
.theme-toggle{
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--stone);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover{ border-color: var(--terracotta); color: var(--terracotta); }
.theme-toggle svg{ width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun{ display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun{ display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon{ display: none; }
@media (max-width: 780px){ .site-header .wrap{ gap: 12px; } }

/* ---------- Dark mode: "Ganga at Dusk" (colours only; layout and
   painting sizes stay exactly as in light mode) ---------- */
html[data-theme="dark"]{
  --cream:      #0E0F14;
  --cream-2:    #17181F;
  --ink:        #F3EDE2;
  --ink-soft:   #CFC8BC;
  --terracotta: #E8A33D;
  --terracotta-dark: #EDB458;
  --indigo:     #3A5A6B;
  --indigo-2:   #08090C;
  --marigold:   #E8A33D;
  --stone:      #2A2B33;
  --stone-dark: #8E897F;
  color-scheme: dark;
}
html[data-theme="dark"] .site-header{ background: rgba(14,15,20,0.9); }
html[data-theme="dark"] .band-indigo{ background: #15161C; color: #F3EDE2; }
html[data-theme="dark"] .btn-light{ color: #F3EDE2; border-color: #F3EDE2; }
html[data-theme="dark"] .btn-light:hover{ background: #F3EDE2; color: #0E0F14; }
html[data-theme="dark"] .footer-logo{ color: #F3EDE2; }
html[data-theme="dark"] footer{ border-top: 1px solid #1F2027; }
html[data-theme="dark"] .shop-card{ border-color: #23242B; }

/* ---------- Hero photo caption (sits below the photo) ---------- */
.hero-figure{ margin: 0; }
.hero-caption{
  margin-top: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink-soft);
  text-align: right;
}
@media (max-width: 900px){ .hero-figure{ order: -1; } .hero-caption{ font-size: 16px; } }

/* ---------- Zoom & Guess game ---------- */
.play-loading{ text-align: center; color: var(--ink-soft); padding: 40px 0; }
.play-stage{ display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.play-stage[hidden], .play-end[hidden]{ display: none; }
.play-zoom{
  flex: 1 1 420px;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  background-color: var(--cream-2);
  background-repeat: no-repeat;
  border: 1px solid var(--stone);
  transition: background-size 1.1s cubic-bezier(.2,.7,.2,1), background-position 1.1s cubic-bezier(.2,.7,.2,1);
}
.play-panel{ flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.play-status{ display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone-dark); }
.play-question{ font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); margin: 0; }
.play-options{ display: grid; gap: 12px; }
.play-option{
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 15px 18px;
  min-height: 48px;
  background: var(--cream-2);
  color: var(--ink);
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.play-option:hover:not(:disabled){ border-color: var(--terracotta); }
.play-option:disabled{ cursor: default; }
.play-option.correct{ background: #2F6B3F; border-color: #2F6B3F; color: #FFFFFF; }
.play-option.wrong{ background: #8F2E1F; border-color: #8F2E1F; color: #FFFFFF; }
.play-result{ margin: 0; min-height: 1.6em; font-size: 16px; }
.play-result.is-right{ color: var(--ink); font-weight: 600; }
.play-result.is-wrong{ color: var(--ink-soft); }
.play-panel .btn{ align-self: flex-start; }
.play-end{ text-align: center; max-width: 560px; margin: 0 auto; padding: 24px 0 8px; }
.play-end-score{ font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 8vw, 88px); margin: 8px 0 4px; line-height: 1; color: var(--terracotta); }
.play-end-line{ color: var(--ink-soft); font-size: 17px; margin: 0 0 28px; }

.play-teaser-wrap{ padding-top: 0; }
.play-teaser{ display: flex; flex-wrap: wrap; gap: 40px; align-items: center; border-top: 1px solid var(--stone); padding-top: 64px; }
.play-teaser-art{
  flex: 0 0 200px; height: 200px;
  background: url("../images/gallery-shiva-parvati.jpg") 62% 45% / 520% auto no-repeat;
  border: 1px solid var(--stone);
}
.play-teaser > div:last-child{ flex: 1 1 320px; min-width: 0; }
.play-teaser h2{ font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 36px); margin: 10px 0 10px; }
.play-teaser p{ color: var(--ink-soft); margin: 0 0 24px; max-width: 48ch; }
@media (max-width: 560px){ .play-teaser-art{ flex-basis: 100%; height: 180px; } }


/* ---------- Lightbox (full-screen painting viewer) ---------- */
[data-gallery-grid] .art-card, [data-featured] .art-card{ cursor: zoom-in; }
[data-shop-grid] .shop-card .frame{ cursor: zoom-in; }
.lb-open, .lb-open body{ overflow: hidden; }
.lightbox{
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 24px 16px;
  background: rgba(12,12,16,0.97);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.25s ease;
}
.lightbox[hidden]{ display: none; }
.lightbox.is-open{ opacity: 1; }
.lb-figure{
  margin: 0; flex: 1 1 auto; min-width: 0; max-width: 1200px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  transform: scale(0.97); transition: transform 0.3s ease;
}
.lightbox.is-open .lb-figure{ transform: none; }
.lb-img{
  max-width: 100%; max-height: calc(100vh - 170px);
  width: auto; height: auto; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lb-caption{
  width: 100%; max-width: 900px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px;
  color: #F3EDE2;
}
.lb-title{ font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 0 0 2px; color: #F3EDE2; }
.lb-meta{ font-size: 13px; color: #B9B2A6; }
.lb-actions{ display: flex; align-items: center; gap: 20px; font-size: 14px; }
.lb-count{ color: #B9B2A6; }
.lb-enquire{ color: #E8A33D; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lb-close, .lb-nav{
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: #F3EDE2;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  cursor: pointer; transition: background 0.2s ease;
}
.lb-close:hover, .lb-nav:hover{ background: rgba(255,255,255,0.18); }
.lb-close{ position: absolute; top: 18px; right: 18px; }
.lb-nav[hidden]{ display: none; }
.lb-close svg, .lb-nav svg{ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox :focus-visible{ outline: 2px solid #E8A33D; outline-offset: 3px; }
@media (max-width: 700px){
  .lightbox{ padding: 72px 10px 20px; flex-wrap: wrap; align-content: center; }
  .lb-figure{ order: 1; flex-basis: 100%; }
  .lb-nav{ order: 2; }
  .lb-img{ max-height: calc(100vh - 260px); }
}

/* ---------- Scroll reveal ---------- */
.reveal{ opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity: 1; transform: none; transition: none; } }

/* ---------- Flowing river divider ----------
   The wave path is 1.5x wider than the view and slides left by
   exactly one wave length, so the loop is seamless. */
.river{ overflow: hidden; }
.river path{ animation: riverFlow 10s linear infinite; }
.river.marigold path{ animation-duration: 13s; animation-direction: reverse; }
@keyframes riverFlow{ from{ transform: translateX(0); } to{ transform: translateX(-600px); } }
@media (prefers-reduced-motion: reduce){ .river path{ animation: none; } }
