@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  /* Sacred Mandir Palette */
  --saffron: #ff7711;
  --saffron-light: #ffaa44;
  --saffron-deep: #b34700;
  --saffron-glow: rgba(255, 119, 17, 0.38);
  --saffron-border: rgba(255, 170, 68, 0.45);
  --amber-flame: #ffbe3b;
  --gold: #c9a45c;
  --light-gold: #edca84;
  --sacred-gold: #f5d48c;
  --ivory: #f8f1e5;
  --maroon: #42151f;
  --brown: #211710;
  --dark: #140d09;
  --line: rgba(201, 164, 86, 0.3);
  --line-bright: rgba(255, 170, 68, 0.6);
  --serif: "Cormorant Garamond", Georgia, serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* Rich Gilded Borders */
  --frame-border: 1.5px solid var(--saffron-border);
  --frame-shadow: inset 0 0 28px rgba(16, 8, 4, 0.75), 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 119, 17, 0.12);
  --frame-hover-shadow: inset 0 0 22px rgba(255, 170, 68, 0.25), inset 0 0 40px rgba(16, 8, 4, 0.85), 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 119, 17, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--ivory);
  font: 16px/1.65 "DM Sans", system-ui, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Sacred Canvas (Dhoop Smoke, Saffron Petals & Holy Sparks) */
.divine-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

header, main, footer {
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: var(--saffron-light);
  text-shadow: 0 0 14px var(--saffron-glow);
}

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

button:disabled {
  cursor: default;
  opacity: 0.4;
}

:focus-visible {
  outline: 2px solid var(--saffron-light);
  outline-offset: 5px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Steady images with zero shake or transform jump */
  transform: none !important;
}

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

p + p {
  margin-top: 12px;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 0.98;
  font-weight: 600;
}

h1 {
  font-size: clamp(4.3rem, 7vw, 7.2rem);
  letter-spacing: -0.045em;
  max-width: 760px;
}

h2 {
  font-size: clamp(2.8rem, 5.1vw, 5rem);
  letter-spacing: -0.036em;
  text-wrap: balance;
}

h3 {
  font-size: 2.55rem;
}

em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(135deg, #fff2da 0%, #ffaa44 40%, #ff7711 75%, #edca84 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 35px rgba(255, 119, 17, 0.35);
}

.wrap {
  width: min(1190px, calc(100% - 112px));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(35px, 8vw, 115px);
  align-items: center;
}

.reverse {
  grid-template-columns: 0.92fr 1fr;
}

.center {
  text-align: center;
}

.center .rule {
  margin-inline: auto;
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--saffron-light);
  font-weight: 700;
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lede {
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  max-width: 40ch;
  color: #faebd7;
  margin-bottom: 24px;
}

.rule,
.rule-symbol {
  display: none !important;
}

.skip, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.skip:focus {
  z-index: 50;
  clip-path: none;
  width: auto;
  height: auto;
  background: var(--dark);
  padding: 12px 20px;
  border: 1px solid var(--saffron);
}

/* Sticky Glassmorphism Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 13, 9, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

header.header-scrolled {
  background: rgba(16, 9, 6, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 119, 17, 0.35);
  border-bottom-color: var(--saffron);
}

footer {
  background: #110906;
  border-top: 1px solid var(--line);
}

.header, footer .wrap {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.42rem;
  white-space: nowrap;
}

.brand b, .om {
  color: var(--saffron-light);
  font-size: 2.2rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.5s var(--ease-spring), filter 0.4s ease;
}

.brand:hover b {
  transform: scale(1.2) rotate(6deg);
  filter: drop-shadow(0 0 18px rgba(255, 119, 17, 0.9));
}

.om {
  animation: omFloat 4s ease-in-out infinite alternate;
}

@keyframes omFloat {
  0% { transform: translateY(0); filter: drop-shadow(0 0 14px rgba(255, 119, 17, 0.4)); }
  100% { transform: translateY(-7px); filter: drop-shadow(0 0 32px rgba(255, 170, 68, 0.9)); }
}

/* Navigation Styles */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.25vw, 32px);
  font-size: 0.86rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  font-size: 0.88rem;
}

nav a {
  position: relative;
  padding: 6px 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--saffron-light), transparent);
  transition: width 0.35s var(--ease-out-expo), left 0.35s var(--ease-out-expo);
}

nav a:hover::after {
  width: 100%;
  left: 0;
}

/* Devotee Portal Sacred Credential Badge Link */
.nav-devotee-link {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 6px 14px !important;
  background: rgba(66, 21, 31, 0.65);
  border: 1px solid var(--gold);
  border-radius: 20px;
  color: #ffd885 !important;
  font-weight: 600;
  font-size: 0.84rem;
  transition: all 0.25s ease;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nav-devotee-link:hover {
  background: var(--maroon);
  border-color: var(--saffron-light);
  box-shadow: 0 0 16px rgba(255, 119, 17, 0.5);
  transform: translateY(-1px);
}

.nav-devotee-link::after {
  display: none !important;
}

.nav-devotee-icon {
  width: 16px;
  height: 16px;
  stroke: var(--saffron-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.nav-devotee-link:hover .nav-devotee-icon {
  transform: scale(1.15);
  stroke: #fff;
}

/* Mobile 3-Dots (Kebab) Navigation Button */
.mobile-dots-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(30, 16, 12, 0.92);
  border: 1.5px solid var(--gold);
  color: var(--sacred-gold);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  padding: 0;
  margin-left: auto;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.mobile-dots-btn:hover,
.mobile-dots-btn:focus-visible,
.mobile-dots-btn.active {
  background: var(--maroon);
  border-color: var(--saffron-light);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 119, 17, 0.7);
  transform: scale(1.06);
}

.dots-svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  pointer-events: none;
}

/* Mobile Navigation Drawer Dropdown */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-height: calc(100svh - 75px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(18, 10, 6, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(255, 119, 17, 0.25);
  padding: 16px 18px 24px;
  z-index: 9999;
}

.mobile-nav-drawer.open {
  display: block !important;
  animation: drawerSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.mobile-menu-active {
  overflow: hidden;
}

@keyframes drawerSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 500;
  color: #faebd7;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 164, 86, 0.2);
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 48px;
  touch-action: manipulation;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  background: rgba(255, 119, 17, 0.16);
  border-color: var(--saffron-light);
  color: #ffd885;
  transform: translateX(4px);
}

.m-nav-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.m-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.m-svg-icon {
  width: 20px;
  height: 20px;
  stroke: var(--saffron-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.mobile-nav-item:hover .m-svg-icon {
  stroke: #ffd885;
  transform: scale(1.12);
}

.m-arrow {
  color: var(--gold);
  font-size: 0.92rem;
  transition: transform 0.2s ease;
}

.mobile-nav-item:hover .m-arrow {
  transform: translateX(4px);
  color: var(--saffron-light);
}

.mobile-nav-item.devotee-portal-item {
  margin-top: 6px;
  background: linear-gradient(135deg, rgba(66, 21, 31, 0.95), rgba(30, 16, 12, 0.95));
  border: 1.5px solid var(--gold);
  color: #ffd885;
  box-shadow: 0 4px 14px rgba(66, 21, 31, 0.4);
}

.mobile-nav-item.devotee-portal-item:hover {
  background: linear-gradient(135deg, var(--maroon), #42151f);
  border-color: var(--saffron-light);
  box-shadow: 0 0 18px rgba(255, 119, 17, 0.5);
}

.m-badge {
  background: var(--saffron);
  color: #140d09;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 35%, rgba(255, 119, 17, 0.28), transparent 60%),
              radial-gradient(ellipse at 25% 75%, rgba(201, 164, 86, 0.15), transparent 50%),
              linear-gradient(115deg, #1c100b, #2d170e 45%, #180b06);
  border-bottom: 1px solid var(--line);
}

.hero-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #180e0be8, #22140ea0 55%, #22140eb0), url("photos/9076.jpg") center 50% / cover;
  opacity: 0.44;
}

.hero-layout {
  position: relative;
  min-height: min(780px, calc(100svh - 75px));
  padding-block: 65px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 46px;
  align-items: center;
}

.hero h1 em {
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

/* Saffron & Gold Divine Buttons */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 24px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: rgba(255, 119, 17, 0.08);
  backdrop-filter: blur(8px);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), background 0.3s ease, border-color 0.3s ease;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s var(--ease-out-expo);
  pointer-events: none;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--saffron-light);
  background: rgba(255, 119, 17, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 20px var(--saffron-glow);
}

.button:hover::before {
  left: 140%;
}

.button:active {
  transform: translateY(1px);
}

.button span {
  display: inline-block;
  transition: transform 0.3s var(--ease-spring);
}

.button:hover span {
  transform: translateX(4px);
}

.gold {
  color: #1a0f08;
  background: linear-gradient(115deg, #ffaa44, #ff7711 40%, #e2ba65 80%, #ffbe3b);
  background-size: 200% auto;
  border-color: #ffd280;
  box-shadow: 0 6px 20px rgba(255, 119, 17, 0.4);
  animation: saffronGoldShimmer 5s ease infinite alternate;
}

@keyframes saffronGoldShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.gold:hover {
  background: linear-gradient(115deg, #ffbb55, #ff8822);
  box-shadow: 0 12px 30px rgba(255, 119, 17, 0.6), 0 0 26px rgba(255, 170, 68, 0.5);
}

/* ========================================================
   RICH GILDED FRAMING (ZERO IMAGE SHAKE / ZERO TILT)
   ======================================================== */

.hero-portrait {
  justify-self: center;
  width: min(100%, 400px);
  text-align: center;
}

/* Majestic Temple Arch Framing */
.arch {
  aspect-ratio: 0.75;
  position: relative;
  overflow: hidden;
  border-radius: 50% 50% 4px 4px / 35% 35% 4px 4px;
  /* Double gilded metallic frame */
  border: 2px solid var(--saffron-light);
  outline: 1.5px solid rgba(255, 170, 68, 0.45);
  outline-offset: 7px;
  box-shadow: var(--frame-shadow), 0 0 80px rgba(255, 119, 17, 0.28);
  background: #20110a;
  transition: border-color 0.4s ease, outline-color 0.4s ease, box-shadow 0.4s ease;
}

.arch:hover {
  border-color: #ffd280;
  outline-color: rgba(255, 200, 120, 0.75);
  box-shadow: var(--frame-hover-shadow), 0 0 95px rgba(255, 119, 17, 0.45);
}

/* Divine Breathing Halo */
.arch::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 40%, rgba(255, 170, 68, 0.45) 0%, rgba(255, 119, 17, 0.22) 45%, transparent 72%);
  z-index: 1;
  pointer-events: none;
  animation: saffronHaloBreath 4.5s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

@keyframes saffronHaloBreath {
  0% { opacity: 0.55; }
  100% { opacity: 0.95; filter: blur(5px); }
}

.arch img {
  object-position: center 42%;
  opacity: 0.96;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.arch:hover img {
  opacity: 1;
  filter: contrast(1.04) brightness(1.02);
}

.hero-portrait figcaption {
  margin-top: 26px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--saffron-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ========================================================
   RICH BORDER FRAMING FOR ALL TEMPLE PHOTOGRAPHS
   ======================================================== */

.image-frame, .image-button, .tour, .photo-grid button {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #1f110a;
  /* Luxurious Rich Border & Shadow */
  border: var(--frame-border);
  outline: 1px solid rgba(255, 200, 120, 0.2);
  outline-offset: 4px;
  box-shadow: var(--frame-shadow);
  transition: border-color 0.4s ease, outline-color 0.4s ease, box-shadow 0.4s ease;
}

/* Rich Border & Opacity Blend on Hover (No Movement, No Shake) */
.image-frame:hover, .image-button:hover, .tour:hover, .photo-grid button:hover {
  border-color: var(--saffron-light);
  outline-color: rgba(255, 215, 130, 0.65);
  outline-offset: 5px;
  box-shadow: var(--frame-hover-shadow);
}

/* Calm, Steady Image with Smooth Opacity & Richness Blend */
.image-frame img, .image-button img, .tour img, .photo-grid button img {
  opacity: 0.94;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.image-frame:hover img, .image-button:hover img, .tour:hover img, .photo-grid button:hover img {
  opacity: 1;
  filter: saturate(1.06) contrast(1.03);
}

/* Inner Gilded Vignette Overlay */
.image-frame::before, .image-button::before, .tour::before, .photo-grid button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 25px rgba(16, 8, 4, 0.65);
  border-radius: inherit;
  z-index: 2;
  transition: box-shadow 0.4s ease;
}

.image-frame:hover::before, .image-button:hover::before, .tour:hover::before, .photo-grid button:hover::before {
  box-shadow: inset 0 0 35px rgba(16, 8, 4, 0.4), inset 0 0 15px rgba(255, 170, 68, 0.2);
}

/* Subtle Saffron Light Glaze */
.image-frame::after, .image-button::after, .tour::after, .photo-grid button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 170, 68, 0.12) 0%, transparent 40%, rgba(255, 119, 17, 0.08) 100%);
  opacity: 0.35;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.image-frame:hover::after, .image-button:hover::after, .tour:hover::after, .photo-grid button:hover::after {
  opacity: 0.85;
}

/* Specific Dimension Overrides */
.image-frame, .image-button {
  height: clamp(330px, 45vw, 530px);
  padding: 0;
}

.image-button {
  width: 100%;
  border-radius: 48% 48% 4px 4px / 28% 28% 4px 4px;
  cursor: pointer;
}

.landscape {
  height: auto;
  aspect-ratio: 1.33;
}

/* Tour Section */
.tour {
  margin-top: 36px;
  height: clamp(320px, 53vw, 610px);
}

.tour img {
  object-position: center 44%;
}

.tour figcaption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(transparent, rgba(18, 10, 6, 0.95) 75%);
  padding: 60px 28px 22px;
  font-family: var(--serif);
  font-size: 2.35rem;
  z-index: 4;
  letter-spacing: -0.02em;
}

/* Pure Divine Crossfade on Tour Switch (Zero Shake / Zero Scale / Zero Rotation) */
.tour-divine-anim {
  animation: divineCrossfade 0.55s ease-out forwards;
}

@keyframes divineCrossfade {
  0% {
    opacity: 0.35;
    filter: brightness(1.25) saturate(1.15);
  }
  100% {
    opacity: 1;
    filter: brightness(1) saturate(1.02);
  }
}

.tour-stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: rgba(22, 13, 8, 0.5);
}

.tour-stops button, .filters button, .viewer-controls button, .bell, .intro-skip, .close-view {
  background: transparent;
  border: 1px solid transparent;
  padding: 12px 14px;
  transition: all 0.3s var(--ease-out-expo);
}

.tour-stops button {
  border-bottom: 2px solid transparent;
  min-height: 56px;
  font-weight: 500;
  position: relative;
}

.tour-stops button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 119, 17, 0.06);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tour-stops button:hover::before {
  opacity: 1;
}

.tour-stops button[aria-pressed=true] {
  border-color: var(--saffron);
  color: var(--saffron-light);
  background: rgba(255, 119, 17, 0.14);
  font-weight: 700;
}

/* Aarti Diya Flame Altar Glow */
.aarti-altar-glow::before {
  box-shadow: inset 0 0 25px rgba(16, 8, 4, 0.65), 0 0 25px rgba(255, 119, 17, 0.25);
  animation: diyaFlameGlow 3.5s ease-in-out infinite alternate;
}

@keyframes diyaFlameGlow {
  0% { box-shadow: inset 0 0 25px rgba(16, 8, 4, 0.65), 0 0 20px rgba(255, 119, 17, 0.2); }
  100% { box-shadow: inset 0 0 35px rgba(16, 8, 4, 0.5), 0 0 45px rgba(255, 170, 68, 0.45); }
}

.dark-alt {
  background: radial-gradient(ellipse at 80% 55%, #3a1e12, #180d08 72%);
}

.note {
  margin-top: 14px;
  color: #dfceb7;
  font-size: 0.88rem;
}

blockquote {
  margin: 32px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--saffron);
  font-family: var(--serif);
  font-size: 1.58rem;
  line-height: 1.3;
  color: #faebd7;
}

.ivory {
  color-scheme: light;
  background: var(--ivory);
  color: var(--brown);
}

.ivory .label {
  color: #8c3b00;
}

.ivory .lede {
  color: #4e392c;
}

.ivory .image-frame {
  box-shadow: 0 15px 35px rgba(60, 40, 20, 0.15);
}

/* Sacred Aarti Daily Timings Cards */
.aarti-cards-list, .aarti-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 22px;
}

.aarti-card-item, .aarti-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  background: #fffdf9;
  border: 1px solid rgba(185, 154, 102, 0.4);
  border-left: 4.5px solid var(--saffron);
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(60, 40, 20, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.aarti-card-item:hover, .aarti-list > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(66, 21, 31, 0.12);
  border-color: var(--saffron);
}

.aarti-card-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.aarti-diya {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(255, 119, 17, 0.4));
}

.aarti-diya-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(255, 119, 17, 0.45));
}

.aarti-diya-svg .diya-flame {
  fill: #ffaa44;
  stroke: #ff7711;
  stroke-width: 1.2;
}

.aarti-diya-svg .diya-base {
  fill: var(--maroon);
  stroke: var(--gold);
  stroke-width: 1.5;
}

.aarti-diya-svg .diya-stand {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
}

.aarti-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.aarti-name, .aarti-list dt {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.aarti-sub {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  color: #6e4832;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aarti-badge, .aarti-list dd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffd885;
  background: linear-gradient(135deg, #42151f 0%, #211710 100%);
  border: 1px solid var(--gold);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(66, 21, 31, 0.22);
  margin: 0;
}

.festival-list li {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
}

.visit-list {
  margin: 24px 0 0;
}

.visit-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(185, 154, 102, 0.35);
  transition: padding-left 0.3s ease, color 0.3s ease;
}

.visit-list div:hover {
  padding-left: 6px;
  color: var(--saffron-deep);
}

.visit-list dt {
  font-weight: 700;
  color: var(--maroon);
}
dd {
  margin: 0;
}

.visit-list dd {
  color: #4a3728;
  font-size: 0.95rem;
}

/* ==================================================== */
/* VISIT THE MANDIR & INTERACTIVE MAP SECTION */
/* ==================================================== */
/* ==================================================== */
/* VISIT THE MANDIR & COMPACT PILGRIMAGE HUB */
/* ==================================================== */
#visit {
  padding: 55px 0 65px;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 26px;
  align-items: stretch;
  margin-top: 18px;
}

.visit-card {
  background: #fffdf9;
  border: 1px solid rgba(185, 154, 102, 0.4);
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 6px 24px rgba(60, 40, 20, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.visit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(185, 154, 102, 0.25);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.visit-card-title {
  font-family: var(--serif);
  color: var(--maroon);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.visit-open-badge {
  background: rgba(27, 138, 68, 0.12);
  color: #1b8a44;
  border: 1px solid rgba(27, 138, 68, 0.35);
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.visit-info-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.v-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.v-icon {
  font-size: 1.15rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.v-svg-icon {
  width: 18px;
  height: 18px;
  stroke: var(--saffron-deep);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.v-content {
  display: flex;
  flex-direction: column;
}

.v-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--saffron-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.v-val {
  font-size: 0.88rem;
  color: #4a3728;
  line-height: 1.4;
}

.visit-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.visit-actions .button {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-svg-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  vertical-align: -2px;
  margin-right: 5px;
}

.button.outline {
  background: transparent;
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
  padding: 9px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.25s ease;
}

.button.outline:hover {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
  box-shadow: 0 4px 16px rgba(74, 21, 33, 0.25);
}

/* Compact Interactive Transit Hub */
.transit-hub {
  margin-top: auto;
  border-top: 1px solid rgba(185, 154, 102, 0.25);
  padding-top: 12px;
}

.transit-tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.transit-subhead {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--maroon);
}

.transit-tabs {
  display: flex;
  gap: 6px;
}

.transit-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(185, 154, 102, 0.45);
  background: #fdfaf4;
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.t-svg-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.transit-tab:hover {
  border-color: var(--saffron);
  background: rgba(255, 119, 17, 0.08);
}

.transit-tab.active {
  background: var(--maroon);
  color: #ffd885;
  border-color: var(--maroon);
  box-shadow: 0 2px 8px rgba(66, 21, 31, 0.2);
}

.t-pill {
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 10px;
}

.transit-tab.active .t-pill {
  background: rgba(255, 216, 133, 0.2);
  color: #ffd885;
}

.transit-panes {
  background: #f7f2e8;
  border-radius: 6px;
  padding: 10px 14px;
  border-left: 3.5px solid var(--saffron);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.transit-pane {
  font-size: 0.82rem;
  color: #553e2e;
  line-height: 1.45;
  margin: 0;
  animation: fadeIn 0.2s ease;
}

.transit-pane strong {
  color: var(--maroon);
}

/* Map Column & View Tabs */
.map-view-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.map-tab {
  padding: 8px 16px;
  border: 1px solid rgba(185, 154, 102, 0.45);
  background: #ffffff;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--maroon);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.map-tab:hover {
  border-color: var(--saffron);
  color: var(--saffron-deep);
}

.map-tab.active {
  background: var(--maroon);
  color: #ffd885;
  border-color: var(--maroon);
  box-shadow: 0 3px 12px rgba(74, 21, 33, 0.2);
}

.tab-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  vertical-align: -2px;
}

.map-frame-wrapper,
.map-photo-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(60, 40, 20, 0.15);
  background: #eae4d8;
}

.map-badge-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(46, 19, 25, 0.92);
  color: #ffd885;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(201, 164, 86, 0.45);
  pointer-events: none;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.map-badge-overlay .om-symbol {
  color: var(--saffron-light);
  font-weight: 700;
  margin-right: 5px;
}

.map-photo-wrapper img {
  width: 100%;
  height: calc(100% - 36px);
  object-fit: cover;
}

.map-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #6b4423;
  padding: 0 4px;
}

.subtle-link {
  color: var(--saffron-deep);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.subtle-link:hover {
  color: var(--maroon);
}

/* Maroon Section & Sacred Teachings Cards */
.maroon {
  background: radial-gradient(ellipse at center, #5e1c28, var(--maroon) 64%, #270c12);
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 800px;
  margin: 40px auto;
  gap: 24px;
}

.values > div {
  padding: 30px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 170, 68, 0.3);
  outline: 1px solid rgba(255, 200, 120, 0.2);
  outline-offset: 4px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  box-shadow: var(--frame-shadow);
  transition: border-color 0.3s ease, outline-color 0.3s ease, box-shadow 0.3s ease;
}

.values > div:hover {
  border-color: var(--saffron-light);
  outline-color: rgba(255, 215, 130, 0.7);
  box-shadow: var(--frame-hover-shadow);
}

.values h3 {
  margin-bottom: 12px;
  font-style: italic;
  color: var(--saffron-light);
}

.festival-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.festival-list li {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  transition: padding-left 0.3s ease, color 0.3s ease;
}

.festival-list li:hover {
  padding-left: 6px;
  color: var(--saffron-light);
}

.story p:not(.label) {
  margin-bottom: 24px;
}

/* Gallery & Photo Grid (No Shake, Rich Gilded Framing) */
.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.filters button {
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.82rem;
  padding: 8px 16px;
  background: rgba(22, 13, 8, 0.65);
  backdrop-filter: blur(6px);
  transition: all 0.3s var(--ease-out-expo);
}

.filters button:hover {
  border-color: var(--saffron-light);
  color: var(--saffron-light);
}

.filters button[aria-pressed=true] {
  background: linear-gradient(115deg, #ffaa44, #ff7711);
  color: #1a0f08;
  border-color: var(--saffron);
  font-weight: 700;
  box-shadow: 0 4px 18px var(--saffron-glow);
}

/* Gallery Controls & View Mode Toggle */
.gallery-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 20px;
  padding: 0 4px;
}

.gallery-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.cue-arrow-svg {
  width: 15px;
  height: 15px;
  stroke: var(--saffron);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
  flex-shrink: 0;
}

.swipe-cue-icon {
  display: inline-block;
  animation: pulseSwipe 1.8s ease-in-out infinite alternate;
}

@keyframes pulseSwipe {
  0% { transform: translateX(0); }
  100% { transform: translateX(4px); }
}

.gallery-actions-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gallery-counter {
  font-size: 0.8rem;
  font-family: var(--sans);
  font-weight: 600;
  color: #ffd885;
  background: rgba(22, 13, 8, 0.8);
  border: 1px solid rgba(201, 164, 86, 0.35);
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.view-toggle {
  display: inline-flex;
  background: rgba(22, 13, 8, 0.85);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px;
  gap: 4px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  color: #cbb49d;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover {
  color: var(--saffron-light);
}

.view-toggle-btn.active {
  background: linear-gradient(115deg, #ffaa44, #ff7711);
  color: #1a0f08;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--saffron-glow);
}

.toggle-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  vertical-align: -1px;
}

/* Gallery Carousel Wrapper & Navigation Arrows */
.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(26, 14, 9, 0.92);
  border: 2px solid var(--gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.65);
  transition: all 0.25s var(--ease-out-expo);
  backdrop-filter: blur(8px);
}

.gallery-nav-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.gallery-nav-btn.prev {
  left: -22px;
}

.gallery-nav-btn.next {
  right: -22px;
}

.gallery-nav-btn:hover:not(:disabled) {
  background: var(--saffron);
  color: #1a0f08;
  border-color: #ffd885;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 26px var(--saffron-glow);
}

.gallery-nav-btn:disabled {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}

/* Photo Grid: Swipe Mode vs Grid Mode */
.photo-grid.swipe-mode {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 10px 4px 22px;
  scrollbar-width: none;
  cursor: grab;
}

.photo-grid.swipe-mode::-webkit-scrollbar {
  display: none;
}

.photo-grid.swipe-mode.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
  user-select: none;
}

.photo-grid.swipe-mode button {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  max-width: 390px;
  scroll-snap-align: start;
}

@media (max-width: 900px) {
  .photo-grid.swipe-mode button {
    flex: 0 0 calc(50% - 10px);
    min-width: 240px;
  }
  .gallery-nav-btn.prev { left: 4px; }
  .gallery-nav-btn.next { right: 4px; }
}

@media (max-width: 600px) {
  .photo-grid.swipe-mode button {
    flex: 0 0 84vw;
    min-width: 260px;
  }
}

.photo-grid:not(.swipe-mode) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 10px 0;
}

@media (max-width: 768px) {
  .photo-grid:not(.swipe-mode) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* Gallery Progress Bar */
.gallery-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(201, 164, 86, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 14px;
}

.gallery-progress-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #c9a456, #ff7711, #ffd885);
  transition: width 0.15s ease-out;
}

.photo-grid button {
  aspect-ratio: 1.2;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.photo-grid button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out-expo);
}

.photo-grid button:hover img {
  transform: scale(1.06);
}

.photo-grid button .tile-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(20, 11, 7, 0.88);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 119, 17, 0.35);
  transition: background 0.3s ease, color 0.3s ease;
  z-index: 5;
}

.photo-grid button:hover .tile-icon {
  background: var(--saffron);
  color: #1a0f08;
  font-weight: 700;
}

.photo-grid button.video-tile .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20, 11, 7, 0.78);
  border: 1.5px solid var(--gold);
  color: var(--saffron-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding-left: 3px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px var(--saffron-glow);
  transition: all 0.35s var(--ease-spring);
  pointer-events: none;
  z-index: 4;
}

.photo-grid button.video-tile:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: linear-gradient(135deg, #ffaa44, #ff7711);
  color: #1a0f08;
  border-color: #ffd280;
  box-shadow: 0 6px 28px var(--saffron-glow);
}

.photo-grid button .video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(18, 10, 6, 0.88);
  color: #ffd280;
  border: 1px solid rgba(255, 170, 68, 0.4);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Blessing Section */
.blessing {
  padding: 120px 0;
  background: linear-gradient(90deg, #170e0aee, #541913cc, #170e0adb), url("photos/8849.jpg") center 45% / cover;
  position: relative;
  overflow: hidden;
}

.blessing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 119, 17, 0.25) 0%, transparent 68%);
  pointer-events: none;
}

.blessing h2 {
  max-width: 780px;
  margin: 18px auto;
}

.blessing .label {
  margin-bottom: 6px;
}

/* Dialogs & Modals */
dialog {
  color: var(--ivory);
  border: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo), display 0.4s allow-discrete, overlay 0.4s allow-discrete;
}

dialog[open] {
  opacity: 1;
}

dialog::backdrop {
  background: rgba(14, 8, 6, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

dialog[open]::backdrop {
  opacity: 1;
}

body:has(dialog[open]) {
  overflow: hidden;
}

#intro, #lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  inset: 0;
}

#intro {
  padding: 0;
  background: #140c08;
  overflow: auto;
  isolation: isolate;
}

#intro[open] {
  display: grid;
  place-items: center;
}

#intro::before, #intro::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
}

#intro::before {
  background: radial-gradient(ellipse at 50% 45%, #2d160b44, #140a06f0 68%), linear-gradient(#170e0a56, #170e0ac9), url("photos/9068.jpg") center 52% / cover;
}

#intro::after {
  background-image: radial-gradient(circle, #ffa64d 1.5px, transparent 2px), radial-gradient(circle, #ff7711 1.5px, transparent 2px);
  background-size: 153px 177px, 227px 169px;
  background-position: 26px 27px, 78px 60px;
  opacity: 0.35;
  animation: floatStars 30s linear infinite;
}

@keyframes floatStars {
  to { transform: translateY(-169px); }
}

.intro-skip, .close-view {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 0.88rem;
  z-index: 10;
  border: 1px solid rgba(255, 119, 17, 0.4);
  border-radius: 4px;
  background: rgba(22, 13, 8, 0.7);
  backdrop-filter: blur(8px);
}

.intro-skip:hover, .close-view:hover, .bell:hover {
  border-color: var(--saffron-light);
  background: rgba(255, 119, 17, 0.2);
}

.intro-content {
  text-align: center;
  padding: 72px 20px 30px;
}

.intro-content img {
  width: clamp(125px, 23vh, 215px);
  height: clamp(150px, 28vh, 258px);
  margin: 0 auto 26px;
  border: 2px solid var(--saffron-light);
  outline: 1.5px solid rgba(255, 170, 68, 0.45);
  outline-offset: 6px;
  border-radius: 50% 50% 4px 4px / 32% 32% 4px 4px;
  object-position: center 43%;
  box-shadow: 0 0 85px var(--saffron-glow), 0 20px 50px rgba(0, 0, 0, 0.7);
}

.intro-content h2 {
  font-size: clamp(3.3rem, 8vw, 6.3rem);
  color: var(--saffron-light);
  text-shadow: 0 0 45px var(--saffron-glow);
}

.intro-content .label {
  margin: 12px 0;
}

.intro-content .rule {
  margin: 14px auto;
}

.intro-content .button {
  margin-top: 24px;
}

.bell {
  display: block;
  margin: 12px auto 0;
  font-size: 0.85rem;
  color: var(--saffron-light);
  padding: 8px 16px;
  border: 1px dashed rgba(255, 119, 17, 0.5);
  border-radius: 4px;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease;
}

.bell:hover {
  transform: scale(1.04);
  border-color: var(--saffron-light);
}

.bell.bell-ringing {
  animation: bellSway 0.5s ease-in-out 4 alternate;
}

@keyframes bellSway {
  0% { transform: rotate(-12deg); }
  100% { transform: rotate(12deg); }
}

/* Saffron & Gold Temple Bell Shockwaves */
.sound-wave {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid rgba(255, 170, 68, 0.9);
  box-shadow: 0 0 45px rgba(255, 119, 17, 0.85), inset 0 0 30px rgba(255, 170, 68, 0.5);
  transform: translate(-50%, -50%) scale(0);
  animation: soundWaveExpand 2.6s cubic-bezier(0.12, 0.8, 0.3, 1) forwards;
  z-index: 9999;
}

@keyframes soundWaveExpand {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  50% { opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(3.6); opacity: 0; }
}

#lightbox {
  background: rgba(18, 10, 6, 0.96);
  padding: 54px 20px 10px;
  text-align: center;
}

#lightbox figure img,
#lightbox figure video {
  height: calc(100dvh - 145px);
  max-width: 92vw;
  object-fit: contain;
  outline: none;
  border-radius: 4px;
}

#lightbox figcaption {
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--saffron-light);
}

.viewer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.viewer-controls button {
  border: 1px solid var(--line);
  padding: 6px 20px;
  font-size: 1.3rem;
  border-radius: 4px;
}

.viewer-controls button:hover:not(:disabled) {
  border-color: var(--saffron-light);
  background: rgba(255, 119, 17, 0.2);
}

/* Scroll Reveal (Smooth Upward Fade Only - No Shake) */
.reveal-init, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
  will-change: opacity, transform;
}

.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsive Media Queries */
@media (max-width: 820px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding: 10px 0;
    min-height: 64px;
  }
  .desktop-nav {
    display: none !important;
  }
  .mobile-dots-btn {
    display: inline-flex !important;
  }
  .hero-layout {
    gap: 32px;
  }
  .section {
    padding: 75px 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding: 8px 0;
    min-height: 58px;
  }
  .brand {
    font-size: 1.15rem;
    gap: 8px;
  }
  .brand b {
    font-size: 1.65rem;
  }
  .desktop-nav {
    display: none !important;
  }
  .mobile-dots-btn {
    display: inline-flex !important;
  }
  /* Aarti Mobile Sizing: keep title & time badge perfectly balanced */
  .aarti-card-item, .aarti-list > div {
    padding: 11px 13px;
    gap: 10px;
  }
  .aarti-card-main {
    gap: 10px;
  }
  .aarti-diya {
    font-size: 1.2rem;
  }
  .aarti-name, .aarti-list dt {
    font-size: 1.12rem;
  }
  .aarti-sub {
    font-size: 0.76rem;
  }
  .aarti-badge, .aarti-list dd {
    font-size: 0.8rem;
    padding: 5px 11px;
  }
  .hero-layout, .split, .reverse {
    grid-template-columns: 1fr;
  }
  .hero-layout {
    padding-block: 42px 28px;
  }
  .hero-portrait {
    width: min(80%, 300px);
    margin-top: 10px;
  }
  h1 {
    font-size: clamp(2.8rem, 10vw, 4.2rem);
  }
  .section, .blessing {
    padding: 50px 0;
  }
  .tour-stops {
    grid-template-columns: 1fr 1fr;
  }
  .tour-stops button {
    font-size: 0.82rem;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .values {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .values > div {
    padding-inline: 18px;
  }
  .reverse figure {
    order: 1;
  }
  footer .wrap {
    padding-block: 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Compact Visit Section Mobile Optimization */
  #visit {
    padding: 38px 0 46px;
  }
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 14px;
  }
  .visit-card {
    padding: 16px 14px;
  }
  .map-frame-wrapper,
  .map-photo-wrapper {
    height: 230px;
  }
  .transit-tabs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .transit-tabs {
    width: 100%;
    display: flex;
    gap: 5px;
  }
  .transit-tab {
    flex: 1;
    justify-content: center;
    padding: 6px 4px;
    font-size: 0.74rem;
  }
  .t-pill {
    display: none;
  }
  .transit-panes {
    padding: 8px 12px;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.02rem;
    gap: 6px;
  }
  .brand b {
    font-size: 1.45rem;
  }
  .mobile-dots-btn {
    width: 38px;
    height: 38px;
  }
  .dots-svg {
    width: 19px;
    height: 19px;
  }
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .divine-canvas {
    display: none !important;
  }
}
