:root {
  color-scheme: light;
  --paper: #f4ecde;
  --paper-deep: #eadcc7;
  --ink: #13252c;
  --ink-soft: #4b5960;
  --brand: #b56438;
  --brand-deep: #7f4228;
  --accent: #276c62;
  --accent-soft: #d9ebe6;
  --gold: #ddb065;
  --panel: rgba(255, 250, 243, 0.72);
  --panel-strong: rgba(255, 250, 245, 0.92);
  --line: rgba(47, 35, 27, 0.12);
  --line-strong: rgba(47, 35, 27, 0.2);
  --shadow-xl: 0 34px 90px rgba(54, 35, 21, 0.15);
  --shadow-lg: 0 20px 46px rgba(54, 35, 21, 0.1);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1260px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f7f1e8 0%, #f4ecde 52%, #efe4d3 100%);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
}

body[data-language="en"] [data-lang="hi"] {
  display: none !important;
}

body[data-language="hi"] [data-lang="en"] {
  display: none !important;
}

[data-lang="hi"] {
  font-family: "Noto Sans Devanagari", sans-serif;
}

h1,
h2,
h3,
.brand-block strong,
.gallery-card figcaption strong {
  font-family: "Cormorant Garamond", serif;
}

h2[data-lang="hi"],
h3[data-lang="hi"] {
  font-family: "Noto Serif Devanagari", serif;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

img,
svg,
iframe,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

.page-atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.atmosphere-sun {
  position: absolute;
  top: -120px;
  right: 6%;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 231, 191, 0.78), rgba(255, 231, 191, 0));
}

.atmosphere-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
}

.atmosphere-orb--one {
  left: -80px;
  top: 180px;
  width: 260px;
  height: 260px;
  background: rgba(181, 100, 56, 0.18);
}

.atmosphere-orb--two {
  right: -60px;
  bottom: 140px;
  width: 280px;
  height: 280px;
  background: rgba(39, 108, 98, 0.16);
}

.atmosphere-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  opacity: 0.32;
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(249, 243, 235, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(40, 31, 22, 0.08);
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: clamp(168px, 18vw, 248px);
}

.brand-mark img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.header-controls {
  order: 3;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 8px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.lang-button,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.lang-button.is-active {
  background: linear-gradient(145deg, var(--ink), #30505e);
  color: #f9f2e7;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.site-nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.section {
  padding: 58px 0;
  scroll-margin-top: 108px;
}

.chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.chapter-tag::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  gap: 30px;
  align-items: center;
  padding-top: 72px;
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.hero h1 {
  font-size: clamp(3.3rem, 6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-lede,
.overview-card p,
.essay-card p,
.pillar-stack p,
.chapter-panel p,
.festival-cards p,
.visitor-item p,
.amenity-grid article,
.gallery-card figcaption,
.conclusion-copy p,
.site-footer p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.hero-lede {
  max-width: 39rem;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(145deg, var(--ink), #30505e);
  color: #f8f1e7;
  box-shadow: 0 16px 34px rgba(19, 37, 44, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.visitor-label,
.footer-badge,
.amenity-grid article,
.video-meta article,
.video-frame-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon {
  width: 1.22rem;
  height: 1.22rem;
  flex: 0 0 auto;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.hero-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 247, 236, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-lg);
}

.hero-stat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(39, 108, 98, 0.12);
  color: var(--accent);
}

.hero-stat small,
.visitor-item strong,
.video-frame-head strong {
  display: block;
}

.hero-stat small {
  margin-bottom: 6px;
  color: var(--brand-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stat strong {
  font-size: 1.08rem;
  line-height: 1.35;
}

.hero-stat p {
  margin-top: 6px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-poster {
  position: relative;
  display: grid;
}

.poster-frame {
  overflow: hidden;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.84), rgba(239, 225, 203, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-xl);
  padding: 18px;
}

.poster-frame img {
  width: 100%;
  border-radius: 30px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.poster-note {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 250, 245, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-lg);
  max-width: 260px;
}

.poster-note .icon,
.overview-card .icon,
.pillar-stack .icon,
.visitor-label .icon,
.festival-cards .icon,
.conclusion-mark .icon,
.footer-badge .icon {
  color: var(--accent);
}

.poster-note strong {
  display: block;
}

.poster-note--top {
  left: -20px;
  top: 28px;
}

.poster-note--bottom {
  right: -14px;
  bottom: 34px;
}

@media (max-width: 1120px) and (min-width: 561px) {
  .poster-note--top {
    left: 8px;
  }

  .poster-note--bottom {
    right: 8px;
  }
}

.overview-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.overview-card {
  min-height: 220px;
  padding: 22px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 248, 238, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-lg);
}

.overview-index {
  display: inline-block;
  margin-bottom: 36px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.16em;
}

.overview-card strong {
  display: block;
  font-size: 1.24rem;
  margin-bottom: 10px;
}

.overview-card strong[data-lang="hi"] {
  font-family: "Noto Serif Devanagari", serif;
}

.timeline-grid,
.insight-grid {
  display: grid;
  gap: 18px;
}

.timeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.insight-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chapter,
.visit-section,
.gallery-section,
.conclusion-section {
  display: grid;
  gap: 28px;
}

.chapter-head,
.section-heading {
  max-width: 100%;
  width: 100%;
  padding-bottom: 28px;
}

.chapter-head h2,
.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(1.55rem, 2.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
}

.essay-card,
.pillar-stack article,
.chapter-panel,
.timeline-card,
.insight-card,
.video-frame,
.video-panel,
.visitor-board,
.amenity-panel,
.map-panel,
.gallery-card,
.conclusion-shell,
.site-footer {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-xl);
}

.essay-card,
.chapter-panel,
.timeline-card,
.insight-card,
.visitor-board,
.video-frame,
.video-panel,
.amenity-panel,
.map-panel,
.gallery-card,
.conclusion-shell,
.site-footer {
  border-radius: var(--radius-xl);
}

.essay-card {
  padding: 28px;
}

.timeline-card,
.insight-card {
  padding: 22px;
}

.essay-card p + p,
.chapter-panel p + p,
.conclusion-copy p + p,
.timeline-card p + p,
.insight-card p + p {
  margin-top: 12px;
}

.timeline-card h3,
.insight-card h3 {
  margin: 14px 0 10px;
  font-size: 1.34rem;
}

.timeline-card h3[data-lang="hi"],
.insight-card h3[data-lang="hi"] {
  font-family: "Noto Serif Devanagari", serif;
}

.timeline-year {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(39, 108, 98, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.insight-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(39, 108, 98, 0.12);
  color: var(--accent);
}

.pillar-stack {
  display: grid;
  gap: 16px;
}

.pillar-stack article {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
}

.pillar-stack strong,
.festival-cards h3,
.visitor-label strong,
.conclusion-copy h2,
.chapter-panel h2 {
  display: block;
}

.pillar-stack strong {
  margin-bottom: 6px;
}

.pillar-stack strong[data-lang="hi"] {
  font-family: "Noto Serif Devanagari", serif;
}

.chapter--split {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: center;
}

.chapter--reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.chapter--reverse .chapter-visual {
  order: 2;
}

.chapter--reverse .chapter-panel {
  order: 1;
}

.chapter-visual img,
.festival-stage img {
  width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.chapter-panel {
  padding: 28px;
}

.chapter-panel h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  line-height: 1.12;
}

.festival-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.94fr) minmax(0, 1.06fr);
  gap: 24px;
  align-items: center;
}

.video-section {
  display: grid;
}

.video-shell {
  max-width: 920px;
  margin-inline: auto;
}

.video-frame,
.video-panel {
  padding: 22px;
}

.video-frame-head {
  margin-bottom: 14px;
  color: var(--brand-deep);
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 24px;
  background: #100f10;
}

.video-panel h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  line-height: 1.12;
}

.video-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.video-meta article {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.festival-body {
  display: grid;
  gap: 22px;
}

.festival-cards {
  display: grid;
  gap: 14px;
}

.festival-cards article {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.festival-cards h3 {
  margin-bottom: 6px;
  font-size: 1.28rem;
}

.visitor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.visitor-board {
  overflow: hidden;
}

.visitor-item {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}

.visitor-item:first-child {
  border-top: 0;
}

.visitor-label strong[data-lang="hi"] {
  font-family: "Noto Serif Devanagari", serif;
}

.visitor-item p {
  align-self: center;
}

.visitor-side {
  display: grid;
  gap: 18px;
}

.amenity-panel,
.map-panel {
  padding: 22px;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.amenity-grid article {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.map-panel iframe {
  width: 100%;
  min-height: 320px;
  margin-top: 16px;
  border: 0;
  border-radius: 22px;
}

.map-action {
  margin-top: 16px;
  width: 100%;
}

.gallery-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: var(--panel-strong);
}

.gallery-card--wide {
  grid-column: auto;
}

.gallery-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
}

.gallery-button img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 0.3s ease;
}

.gallery-button:hover img,
.gallery-button:focus-visible img {
  transform: scale(1.1);
}

.gallery-card figcaption {
  display: grid;
  gap: 8px;
  padding: 18px 20px 20px;
  background: var(--panel-strong);
}

.gallery-card figcaption strong {
  font-size: 1.32rem;
}

.gallery-card figcaption strong[data-lang="hi"] {
  font-family: "Noto Serif Devanagari", serif;
}

.conclusion-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(16, 33, 41, 0.96), rgba(39, 108, 98, 0.9));
  color: #f8f0e4;
}

.conclusion-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
}

.conclusion-mark .icon,
.conclusion-copy .chapter-tag,
.conclusion-copy p {
  color: #f2e7d7;
}

.conclusion-copy .chapter-tag::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent);
}

.conclusion-copy h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.55rem, 2.6vw, 2.5rem);
  line-height: 1.1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  margin-bottom: 84px;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 8px;
}

.footer-badge {
  width: fit-content;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.floating-action {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--ink), #30505e);
  color: #f8f0e4;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 20px 38px rgba(19, 37, 44, 0.24);
}

/* ── Cover band (OG image displayed as full-width hero strip) ── */
.cover-band {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
  margin-bottom: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.cover-band-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: center 40%;
}

.cover-band-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 20px;
  background: linear-gradient(transparent, rgba(14, 28, 36, 0.72));
  color: rgba(244, 236, 222, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ── Ornamental section divider ─────────────────────────────── */
.section-divider {
  width: min(calc(100% - 32px), 420px);
  margin: 4px auto;
  color: var(--ink);
  filter: drop-shadow(0 1px 3px rgba(19, 37, 44, 0.22));
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 28px;
}

/* ── Footer logo ─────────────────────────────────────────────── */
.footer-logo {
  width: min(240px, 42vw);
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.9;
}

.lightbox {
  width: min(96vw, 1120px);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff8f0;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(7, 9, 12, 0.82);
  backdrop-filter: blur(10px);
}

.lightbox-panel {
  position: relative;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(16, 21, 25, 0.96), rgba(21, 35, 41, 0.92));
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8f0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.lightbox-stage {
  display: grid;
  place-items: center;
  min-height: min(68vh, 720px);
  padding-top: 18px;
}

.lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(74vh, 820px);
  margin: 0 auto;
  border-radius: 22px;
  background: #0f1114;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.lightbox-video {
  display: block;
  width: min(100%, 1040px);
  max-height: min(74vh, 820px);
  margin: 0 auto;
  border: 0;
  border-radius: 22px;
  background: #100f10;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

.lightbox-image[hidden],
.lightbox-video[hidden],
.lightbox[data-media-type="image"] .lightbox-video,
.lightbox[data-media-type="video"] .lightbox-image {
  display: none !important;
}

.lightbox-caption {
  margin: 16px auto 0;
  max-width: 92ch;
  color: #f3e7d8;
  line-height: 1.6;
  text-align: center;
  font-size: 0.98rem;
}

.error-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.error-shell {
  width: min(100%, 940px);
}

.error-mark-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.error-title {
  margin: 12px 0 14px;
  line-height: 0.98;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
}

.error-title[data-lang="hi"] {
  line-height: 1.08;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-family: "Noto Serif Devanagari", serif;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .site-header {
    flex-wrap: wrap;
  }

  .header-controls {
    order: 2;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    order: 3;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding-top: 6px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .chapter-grid,
  .chapter--split,
  .festival-section,
  .visitor-layout {
    grid-template-columns: 1fr;
  }

  .gallery-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-visual img {
    max-height: 420px;
    width: 100%;
    object-fit: cover;
  }

  .timeline-grid,
  .insight-grid,
  .insight-grid--2,
  .insight-grid--3,
  .insight-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card--wide {
    grid-column: auto;
  }

  .chapter--reverse .chapter-visual,
  .chapter--reverse .chapter-panel {
    order: initial;
  }
}

@media (max-width: 860px) {
  .overview-band,
  .amenity-grid,
  .video-meta,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .timeline-grid,
  .insight-grid,
  .insight-grid--2,
  .insight-grid--3,
  .insight-grid--4 {
    grid-template-columns: 1fr;
  }

  .conclusion-shell,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .visitor-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .section,
  .site-footer {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .chapter-head h2,
  .section-heading h2,
  .chapter-panel h2,
  .conclusion-copy h2 {
    font-size: 1.45rem;
  }

  .header-controls {
    width: 100%;
    justify-content: space-between;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .lightbox-panel {
    padding: 16px 16px 18px;
    border-radius: 24px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-stage {
    min-height: auto;
    padding-top: 32px;
  }

  .lightbox-image,
  .lightbox-video {
    max-height: 68vh;
    border-radius: 18px;
  }

  .lightbox-caption {
    font-size: 0.92rem;
  }

  .floating-action {
    width: auto;
  }

  .poster-note {
    position: static;
    margin-top: 14px;
    max-width: none;
  }

  .hero-poster {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
