:root {
  --color-primary: #7a1f24;
  --color-gold: #caa15a;
  --color-cream: #efe1c6;
  --color-navy: #2d3a63;

  --bg: #120d10;
  --bg-soft: #1c1216;
  --surface: rgba(255, 247, 236, 0.08);
  --surface-strong: rgba(255, 247, 236, 0.16);
  --text: #f7efe5;
  --muted: rgba(247, 239, 229, 0.76);
  --accent: var(--color-gold);
  --accent-2: var(--color-primary);
  --accent-3: var(--color-cream);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --section-gap: 7rem;
  --script: 'Great Vibes', cursive;
  --display: 'Cormorant Garamond', serif;
  --body: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #090608;
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  isolation: isolate;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(202, 161, 90, 0.16), transparent 36%),
    radial-gradient(circle at 80% 20%, rgba(122, 31, 36, 0.22), transparent 25%),
    linear-gradient(180deg, #140d12 0%, #090608 100%);
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 500px) {
  .page-shell {
    max-width: 100%;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}

.section-fullscreen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.section-padding {
  padding: 4.5rem 1.25rem;
}

.section-inner {
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--accent-3);
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.95;
  margin: 0;
}

h1 {
  font-size: clamp(3.8rem, 9vw, 8rem);
}

h2 {
  font-size: clamp(3.4rem, 8vw, 7rem);
}

h3 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 0.75rem;
}

p {
  color: var(--muted);
  line-height: 1.8;
}

.script-title {
  font-family: var(--script);
  font-size: clamp(3.8rem, 10vw, 8rem);
  color: var(--accent-3);
}

.lead {
  max-width: 760px;
  margin: 1rem auto 0;
  font-size: 1.12rem;
}

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 1rem;
  background: radial-gradient(circle at center, rgba(202, 161, 90, 0.12), #090608 62%);
  z-index: 999;
  text-align: center;
}

.loader-seal {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(202, 161, 90, 0.4);
  background: linear-gradient(180deg, rgba(122, 31, 36, 0.9), rgba(58, 19, 24, 0.96));
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 14px rgba(202, 161, 90, 0.08), 0 0 60px rgba(202, 161, 90, 0.2);
  animation: sealPulse 1.8s ease-in-out infinite;
}

.loader-monogram {
  font-family: var(--script);
  font-size: 2.8rem;
  color: var(--accent-3);
}

.loader.hide,
.loader[hidden] {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.ambient {
  position: fixed;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.26;
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  top: -10vmax;
  left: -10vmax;
  background: radial-gradient(circle, rgba(202, 161, 90, 0.4), transparent 65%);
}

.ambient-right {
  bottom: -12vmax;
  right: -8vmax;
  background: radial-gradient(circle, rgba(122, 31, 36, 0.45), transparent 60%);
}

.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.music-toggle,
.theme-chip,
.skip-btn,
.gallery-nav,
.primary-btn,
.secondary-btn,
#closeLightbox {
  border: 0;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.music-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: rgba(10, 8, 10, 0.55);
  border: 1px solid rgba(202, 161, 90, 0.35);
  color: var(--accent-3);
  backdrop-filter: blur(12px);
}


body.invitation-open {
  background: #f2f2f5 !important;
}

body.invitation-open .page-shell {
  background: linear-gradient(180deg, #f7f7f9 0%, #edeef2 100%) !important;
  box-shadow: none !important;
  border-left: none !important;
  border-right: none !important;
}

.content-sections {
  display: none;
  background: linear-gradient(180deg, #f7f7f9 0%, #edeef2 100%) !important;
  color: #242830;
}

body.invitation-open .content-sections {
  display: block;
  background: linear-gradient(180deg, #f7f7f9 0%, #edeef2 100%) !important;
}

.reveal-section {
  min-height: auto !important;
  padding: 3.5rem 1.25rem 2rem 1.25rem !important;
  background: transparent !important;
}

.pastel-invitation-card {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 2.2rem 1.6rem;
  text-align: center;
  background: #ffffff !important;
  border: 1px solid rgba(202, 161, 90, 0.22) !important;
  border-radius: 28px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

.invitation-lead-quote {
  font-family: var(--display);
  font-size: clamp(1.25rem, 4.2vw, 1.85rem);
  font-weight: 600;
  color: #1f232b !important;
  line-height: 1.65;
  margin: 0 auto;
  letter-spacing: 0.01em;
}

.corner-decor {
  position: absolute;
  pointer-events: none;
}

.corner-decor.top-right {
  top: -10px;
  right: -10px;
}

.corner-decor.bottom-left {
  bottom: -10px;
  left: -10px;
}

.content-sections .glass-card,
.content-sections .event-card,
.content-sections .timeline-item,
.content-sections .venue-card,
.content-sections .map-card,
.content-sections .form-card,
.content-sections .guestbook-form,
.content-sections .wish-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  color: #242830 !important;
  box-shadow: 0 12px 35px rgba(36, 40, 48, 0.05) !important;
}

.content-sections h2,
.content-sections h3,
.content-sections h4,
.content-sections strong {
  color: #1a1e26 !important;
}

.content-sections p,
.content-sections span {
  color: #4a4f5c !important;
}

.content-sections .eyebrow {
  color: #caa15a !important;
}

.content-sections .script-title {
  color: #1a1e26 !important;
}

.content-sections input,
.content-sections textarea,
.content-sections select {
  background: #f7f7f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #1a1e26 !important;
}

.content-sections .countdown-card {
  background: #ffffff !important;
  border: 1px solid rgba(202, 161, 90, 0.3) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04) !important;
}

.content-sections .countdown-card strong {
  color: #caa15a !important;
}

.content-sections .countdown-card span {
  color: #666666 !important;
}

.gate-section {
  background:
    radial-gradient(circle at center, rgba(202, 161, 90, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(14, 10, 12, 0.98), rgba(10, 7, 9, 1));
}

.gate-scene {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  margin: auto;
  perspective: 1800px;
  overflow: hidden;
  background: #090608;
}

.gate-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 125%; /* Crops out the bottom 20% (5th horizontal part) */
  object-fit: cover;
  object-position: top center;
  transform: none;
  filter: saturate(1.04) contrast(1.02) brightness(0.95);
  background: #090608;
  opacity: 1;
  transition: opacity 0.55s ease;
}

.gate-tap-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 2rem;
  background: rgba(18, 13, 16, 0.75);
  border: 1.5px solid var(--accent);
  backdrop-filter: blur(12px);
  border-radius: 9999px;
  color: var(--accent-3);
  cursor: pointer;
  box-shadow: 0 0 35px rgba(202, 161, 90, 0.35);
  transition: opacity 0.4s ease, transform 0.35s ease;
  animation: tapPulse 2s ease-in-out infinite;
}

.gate-tap-prompt:hover,
.gate-tap-prompt:active {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--accent);
  color: #120d10;
}

.gate-section.opening .gate-tap-prompt,
.gate-section.is-open .gate-tap-prompt,
.gate-section.is-cut .gate-tap-prompt {
  opacity: 0;
  pointer-events: none;
}

.gate-tap-seal {
  font-size: 1.6rem;
}

.gate-tap-text {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes tapPulse {

  0%,
  100% {
    box-shadow: 0 0 25px rgba(202, 161, 90, 0.3);
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    box-shadow: 0 0 50px rgba(202, 161, 90, 0.65);
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.gate-fallback-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 1.25rem;
  max-width: 860px;
  margin-top: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.gate-fallback-copy p {
  max-width: 760px;
  margin: 1rem auto 0;
}

.gate-section.is-open .gate-fallback-copy,
.gate-section.opening .gate-fallback-copy {
  opacity: 1;
  transform: translateY(0);
}

.gate-hint,
.skip-btn {
  position: absolute;
  z-index: 5;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.gate-section.is-open .gate-hint,
.gate-section.is-open .skip-btn {
  opacity: 1;
  pointer-events: auto;
}

.gate-hint {
  color: rgba(239, 225, 198, 0.8);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  bottom: 5.4rem;
}

.skip-btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(180deg, #d3b16f, #9f7730);
  color: #1b120d;
  font-weight: 700;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.secondary-btn {
  background: transparent;
  color: var(--accent-3);
  border: 1px solid rgba(202, 161, 90, 0.4);
}

.reveal-section,
.reveal-backdrop {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.reveal-inner {
  text-align: center;
  width: 100%;
}

.royal-announcement-card,
#announcementCard {
  max-width: 460px;
  width: 92%;
  margin: 0 auto;
  padding: 1rem 0.5rem;
  text-align: center;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.gate-video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.92);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.gate-video-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.announcement-heading {
  font-family: var(--script);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  margin: 0 0 0.4rem 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.card-heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.4rem 0 1rem;
  color: #ffd700;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
}

.card-heart-divider .line {
  height: 1.5px;
  flex: 1;
  max-width: 80px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.card-heart-divider .heart-icon {
  font-size: 0.95rem;
  color: #ffd700;
}

.person-name {
  font-family: var(--script);
  font-size: clamp(3.4rem, 12vw, 4.8rem);
  color: #ffd700;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 215, 0, 0.5);
  margin: 0.15rem 0;
  line-height: 1.1;
  font-weight: 400;
}

.person-relation,
.person-qualification,
.person-profession {
  font-family: var(--display);
  font-size: clamp(0.95rem, 3.4vw, 1.15rem);
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  margin: 0.15rem 0;
  font-style: italic;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.ampersand-divider {
  font-family: var(--script);
  font-size: clamp(2.8rem, 9.5vw, 3.8rem);
  color: #ffd700;
  margin: 0.5rem 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 215, 0, 0.4);
}

.scroll-indicator {
  margin: 2rem auto 0;
  width: 28px;
  display: grid;
  gap: 0.35rem;
}

.scroll-indicator span {
  width: 100%;
  height: 14px;
  border-right: 2.5px solid #caa15a !important;
  border-bottom: 2.5px solid #caa15a !important;
  transform: rotate(45deg);
  animation: scrollPulse 1.4s ease-in-out infinite;
}

.scratch-centered-layout {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.scratch-title-script {
  font-family: var(--script);
  font-size: clamp(3rem, 9.5vw, 4.2rem);
  color: #6d3358 !important;
  margin: 0 0 0.3rem 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.gold-divider {
  margin: 0.4rem auto 1.5rem auto;
}

.scratch-heart-wrapper {
  position: relative;
  width: min(82vw, 310px);
  height: min(76vw, 290px);
  margin: 1.5rem auto 0;
  clip-path: url(#heartClip);
  -webkit-clip-path: url(#heartClip);
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 15px 40px rgba(184, 115, 76, 0.2);
}

.scratch-reveal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #1a1a1a;
  z-index: 1;
  text-align: center;
  padding: 1rem;
}

.scratch-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transform: translateY(-8px);
  padding: 0 0.5rem;
}

.scratch-invite-heading {
  font-family: var(--script);
  font-size: clamp(1.8rem, 5.8vw, 2.5rem);
  color: #6d3358 !important;
  line-height: 1;
  font-weight: 400;
  margin: 0 0 1.5rem 0 !important;
}

.scratch-full-date {
  font-family: var(--display);
  font-size: clamp(1.15rem, 3.8vw, 1.55rem);
  font-weight: 700;
  color: #1a1a1a !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0.1rem 0;
  line-height: 1.1;
  white-space: nowrap;
}

.scratch-day-name {
  font-family: var(--display);
  font-size: clamp(0.95rem, 3.2vw, 1.25rem);
  font-weight: 600;
  color: #caa15a !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

.scratch-time-text {
  font-family: var(--body);
  font-size: clamp(0.85rem, 2.8vw, 1.05rem);
  font-weight: 500;
  color: #555555 !important;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.1;
}

.scratch-subtext {
  font-family: var(--display);
  font-size: 0.95rem;
  color: #6d3358 !important;
  font-style: italic;
}

#scratchCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
}

.split-layout,
.venue-layout,
.form-layout,
.extras-grid {
  display: grid;
  gap: 1.4rem;
}

.split-layout,
.venue-layout,
.form-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.glass-card,
.timeline-item,
.event-card,
.scratch-card,
.venue-card,
.map-card,
.form-card,
.guestbook-form,
.wish-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.glass-card {
  border-radius: var(--radius);
  padding: 1.4rem;
}

.scratch-card {
  position: relative;
  aspect-ratio: 520 / 420;
  border-radius: 42px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.scratch-card::before {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 36px;
  border: 1px solid rgba(202, 161, 90, 0.26);
}

.scratch-reveal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.45rem;
  background:
    radial-gradient(circle at center, rgba(202, 161, 90, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(43, 23, 33, 0.88), rgba(11, 9, 13, 1));
  color: var(--accent-3);
  z-index: 0;
  text-align: center;
}

.scratch-reveal strong {
  font-family: var(--script);
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: #ffd87c;
  text-shadow: 0 0 16px rgba(255, 216, 124, 0.36);
}

#scratchCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.countdown-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.scratch-countdown-reveal {
  margin-top: 2rem !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.scratch-countdown-reveal.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.countdown-card {
  text-align: center;
  padding: 1.4rem 0.5rem !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 1px solid rgba(202, 161, 90, 0.28) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05) !important;
}

.countdown-card span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.72rem, 2.5vw, 0.88rem);
  color: #666666 !important;
  margin-bottom: 0.35rem;
}

.countdown-card strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.75rem, 5.8vw, 2.8rem);
  font-weight: 700;
  color: #caa15a !important;
  line-height: 1;
}

.gallery-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem;
  overflow: hidden;
}

.gallery-item {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.2));
  cursor: pointer;
  transform-style: preserve-3d;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

.gallery-meta strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
}

.gallery-nav {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 247, 236, 0.12);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1.6rem;
}

.venue-card,
.map-card {
  min-height: 280px;
}

.venue-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.4rem;
  color: var(--accent-3);
}

.map-card {
  padding: 0;
  overflow: hidden;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  filter: sepia(0.25) saturate(0.88) contrast(1.02);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 2rem;
  border-radius: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.95rem;
  top: 1.7rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(202, 161, 90, 0.12);
}

.timeline-item strong,
.event-card strong,
.wish-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--display);
  font-size: 1.5rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.event-card {
  min-height: 210px;
  padding: 1.2rem;
  border-radius: 24px;
}

.event-card .event-time {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-3);
  font-size: 0.9rem;
}

.form-card,
.guestbook-form {
  display: grid;
  gap: 1rem;
}

.form-card label,
.guestbook-form input,
.guestbook-form textarea,
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
}

.form-card label {
  display: grid;
  gap: 0.45rem;
  color: var(--accent-3);
}

.form-card input,
.form-card select,
.form-card textarea,
.guestbook-form input,
.guestbook-form textarea {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 7, 10, 0.42);
  color: var(--text);
  padding: 0.95rem 1rem;
  outline: none;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.guestbook-form input:focus,
.guestbook-form textarea:focus {
  border-color: rgba(202, 161, 90, 0.75);
  box-shadow: 0 0 0 4px rgba(202, 161, 90, 0.12);
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
}

.wishes-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.wish-card {
  border-radius: 22px;
  padding: 1.1rem;
}

.wish-card p {
  margin: 0.5rem 0 0;
}

.extras-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.palette {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.palette span {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.site-footer {
  padding: 3rem 1.25rem 4rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer strong {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--accent-3);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 3, 5, 0.86);
  z-index: 1000;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  max-width: min(100%, 900px);
  max-height: 85vh;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

#closeLightbox {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 247, 236, 0.12);
  color: var(--text);
  font-size: 1.8rem;
}

.observe {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.observe.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Premium Event Poster Container & Image Wrapper */
.event-poster {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 3rem auto 0;
  text-align: center;
}

.scroll-reveal-img {
  opacity: 0;
  transform: translateY(50px) scale(0.94);
  filter: blur(5px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.scroll-reveal-img.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.poster-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(202, 161, 90, 0.25);
  aspect-ratio: 3 / 5.2;
  /* Taller editorial aspect ratio, matching traditional invitation cards */
  background:
    radial-gradient(circle at 50% 22%, rgba(202, 161, 90, 0.28), transparent 34%),
    linear-gradient(180deg, #2f1721 0%, #0f0a0d 100%);
}

.poster-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.poster-image-wrapper img.image-missing {
  opacity: 0;
}

.poster-image-wrapper:hover img {
  transform: scale(1.05);
}

/* Beautiful Transparent Invitation Text Overlay (Top to Center) - No Box Backing */
.poster-text-overlay {
  position: absolute;
  top: 6%;
  left: 0;
  right: 0;
  height: 48%;
  /* Covers top to center, leaving bottom illustration visible */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

/* Subtle top gradient shadow behind text to enhance readability */
.poster-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.overlay-welcome {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-cream);
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
  transform-origin: center;
  will-change: transform, opacity, text-shadow;
}

.overlay-title {
  font-family: var(--script);
  /* Great Vibes cursive script */
  font-size: clamp(2.6rem, 7vw, 3.2rem);
  font-weight: 500;
  color: var(--color-gold);
  /* Royal Gold */
  margin: 0 0 0.5rem;
  line-height: 1.1;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s ease, filter 0.35s ease;
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.overlay-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 50%;
  margin-bottom: 0.75rem;
}

.overlay-divider .line {
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  flex-grow: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.overlay-divider .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  transform: translateX(-120%);
  animation: overlayLineSpark 2.2s ease-in-out infinite;
}

.overlay-divider .symbol {
  font-size: 0.75rem;
  color: var(--color-gold);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.overlay-date {
  font-family: var(--display);
  /* Cormorant Garamond serif */
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
  will-change: transform, opacity;
}

.overlay-time-venue {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-cream);
  line-height: 1.4;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.02em;
  will-change: transform, opacity;
}



.custom-cursor {
  position: fixed;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 1px solid rgba(239, 225, 198, 0.88);
  pointer-events: none;
  z-index: 1001;
  mix-blend-mode: screen;
  opacity: 0.8;
}

.gate-section.is-cut .ribbon {
  opacity: 0;
  transform: translateX(-50%) translateY(30px) scale(0.92);
}

.gate-section.opening .reveal-copy {
  animation: copyFade 1s ease both;
}

.music-toggle:hover,
.theme-chip:hover,
.skip-btn:hover,
.gallery-nav:hover,
.primary-btn:hover,
.secondary-btn:hover,
#closeLightbox:hover {
  transform: translateY(-2px) scale(1.02);
}

@keyframes sealPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes copyFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ribbonSnap {
  0% {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }

  35% {
    transform: translateX(-50%) scaleX(0.85) scaleY(0.96);
  }

  70% {
    transform: translateX(-50%) translateY(-8px) rotate(-6deg);
  }

  100% {
    transform: translateX(-50%) translateY(86px) rotate(10deg) scale(0.62);
    opacity: 0;
  }
}

@keyframes knotBreak {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    transform: translate(-50%, 42px) rotate(16deg) scale(0.55);
    opacity: 0;
  }
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: rotate(45deg) translateY(0);
  }

  50% {
    opacity: 1;
    transform: rotate(45deg) translateY(6px);
  }
}

@media (max-width: 1100px) {

  .split-layout,
  .venue-layout,
  .form-layout,
  .extras-grid,
  .events-grid,
  .countdown-grid {
    grid-template-columns: 1fr 1fr;
  }

  .events-grid,
  .extras-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --section-gap: 5rem;
  }

  .split-layout,
  .venue-layout,
  .form-layout,
  .extras-grid {
    grid-template-columns: 1fr;
  }

  .events-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-shell {
    grid-template-columns: 1fr;
  }

  .gallery-nav {
    display: none;
  }

  .gate-scene {
    width: 100vw;
    height: 100vh;
    inset: 0;
  }

  .ribbon-hotspot {
    width: min(82vw, 420px);
    height: min(26vw, 120px);
  }

  .ribbon-hotspot-bow {
    width: 170px;
    height: 110px;
  }

  .ribbon-hotspot-knot {
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 560px) {

  .theme-switcher,
  .music-toggle {
    top: auto;
    bottom: 1rem;
  }

  .theme-switcher {
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
  }

  .music-toggle {
    right: 1rem;
    left: auto;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .gate-copy {
    margin-top: 0;
  }
}

.theme-royal {
  --bg: #120d10;
  --bg-soft: #1c1216;
  --accent: #caa15a;
  --accent-2: #7a1f24;
}

.theme-pastel {
  --bg: #17151d;
  --bg-soft: #242030;
  --accent: #d8b07c;
  --accent-2: #8a5670;
}

.theme-midnight {
  --bg: #0b1020;
  --bg-soft: #121b33;
  --accent: #8fb6ff;
  --accent-2: #334c88;
}

.not-found-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--bg);
  color: var(--text);
  position: relative;
  z-index: 1000;
}

.not-found-card {
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius);
  max-width: 520px;
  box-shadow: var(--shadow);
}

.not-found-monogram {
  font-family: var(--script);
  font-size: 3.5rem;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.not-found-card h1 {
  font-family: var(--display);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--accent-3);
  font-weight: 600;
}

.not-found-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.not-found-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.not-found-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--surface-strong);
  border: 1px solid var(--accent);
  color: var(--accent-3);
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.not-found-btn:hover {
  background: var(--accent);
  color: #120d10;
  transform: translateY(-2px);
}

/* Specific color overrides for Mehndi Ceremony (which has a light cream background in the text area) */
.mehndi-theme .poster-image-wrapper::after {
  display: none;
  /* No dark vignette overlay since the background is already light cream */
}

.mehndi-theme .overlay-welcome {
  color: #3A4F2A;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.mehndi-theme .overlay-title {
  color: #234B2A;
  /* Antique Gold shadow at 20% opacity */
  text-shadow: 2px 2px 5px rgba(201, 162, 39, 0.2);
}

.mehndi-theme .overlay-divider .line {
  background: rgba(35, 75, 42, 0.25);
  box-shadow: none;
}

.mehndi-theme .overlay-divider .symbol {
  color: #234B2A;
  text-shadow: none;
}

.mehndi-theme .overlay-date {
  color: #4A2E1F;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.mehndi-theme .overlay-time-venue {
  text-shadow: none;
}

.mehndi-theme .overlay-time-venue .time-text {
  color: #5A3312;
}

.mehndi-theme .overlay-time-venue .venue-text {
  color: #234B2A;
}

/* Specific color overrides for Haldi Ceremony (which has a light background in the text area) */
.haldi-theme .poster-image-wrapper::after {
  display: none;
  /* No dark vignette overlay since the background is already light/yellow */
}

.haldi-theme .overlay-welcome {
  color: #6D2740;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
}

.haldi-theme .overlay-title {
  color: #9C1A1C;
  /* Antique Gold soft shadow at 18% opacity */
  text-shadow: 2px 2px 5px rgba(212, 175, 55, 0.18);
}

.haldi-theme .overlay-divider .line {
  background: rgba(156, 26, 28, 0.2);
  box-shadow: none;
}

.haldi-theme .overlay-divider .symbol {
  color: #9C1A1C;
  text-shadow: none;
}

.haldi-theme .overlay-date {
  color: #4A2C1D;
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
}

.haldi-theme .overlay-time-venue {
  text-shadow: none;
}

.haldi-theme .overlay-time-venue .time-text {
  color: #6B3E00;
}

.haldi-theme .overlay-time-venue .venue-text {
  color: #9C1A1C;
}

/* Specific color overrides for Sangeet Ceremony (festive stage/chandalier lighting) */
.sangeet-theme .poster-text-overlay {
  top: 3%;
  height: 38%;
  justify-content: flex-start;
  padding-top: 1rem;
}

/* Disable dark vignette since background matches lavender, white, and gold sangeet theme */
.sangeet-theme .poster-image-wrapper::after {
  display: none;
}

.sangeet-theme .overlay-welcome {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  /* SemiBold */
  color: #B08A3C;
  letter-spacing: 0.22em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  -webkit-text-stroke: unset;
}

.sangeet-theme .overlay-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.6rem, 7vw, 3.2rem);
  font-weight: 700;
  color: #4A2C5A;
  -webkit-text-stroke: unset;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.12);
  letter-spacing: 1px;
}

.sangeet-theme .overlay-divider .line {
  background: rgba(176, 138, 60, 0.3);
  box-shadow: none;
}

.sangeet-theme .overlay-divider .symbol {
  color: #B08A3C;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sangeet-theme .overlay-date {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  /* SemiBold */
  color: #5E4A63;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  -webkit-text-stroke: unset;
}

.sangeet-theme .overlay-time-venue {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  /* SemiBold */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  -webkit-text-stroke: unset;
}

.sangeet-theme .overlay-time-venue .time-text {
  font-weight: 600;
  color: #8A6500;
  -webkit-text-stroke: unset;
}

.sangeet-theme .overlay-time-venue .venue-text {
  font-weight: 600;
  color: #5E4A63;
}

/* Specific color overrides for Wedding Ceremony (cream, gold, floral wedding theme) */
.wedding-theme .poster-image-wrapper::after {
  display: none;
  /* No dark vignette overlay since background matches cream/gold tones */
}

.wedding-theme .overlay-welcome {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #8A6A2F;
  letter-spacing: 0.22em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.wedding-theme .overlay-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6.5vw, 3rem);
  font-weight: 700;
  color: #3B2A1A;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  -webkit-text-stroke: unset;
  letter-spacing: 0.5px;
}

.wedding-theme .overlay-divider .line {
  background: rgba(138, 106, 47, 0.3);
  box-shadow: none;
}

.wedding-theme .overlay-divider .symbol {
  color: #8A6A2F;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wedding-theme .overlay-date {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: #5A4030;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  -webkit-text-stroke: unset;
}

.wedding-theme .overlay-time-venue {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  -webkit-text-stroke: unset;
}

.wedding-theme .overlay-time-venue .time-text {
  font-weight: 600;
  color: #8B5E00;
}

.wedding-theme .overlay-time-venue .venue-text {
  font-weight: 500;
  color: #5A4030;
}

/* Specific color overrides for Reception Ceremony (cream, gold, white floral theme) */
.reception-theme .poster-image-wrapper::after {
  display: none;
  /* No dark vignette overlay since background matches cream/gold tones */
}

.reception-theme .overlay-welcome {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  /* SemiBold */
  color: #9C7A2E;
  letter-spacing: 0.22em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.reception-theme .overlay-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6.5vw, 3rem);
  font-weight: 700;
  color: #2F2419;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  -webkit-text-stroke: unset;
  letter-spacing: 0.5px;
}

.reception-theme .overlay-divider .line {
  background: rgba(156, 122, 46, 0.3);
  box-shadow: none;
}

.reception-theme .overlay-divider .symbol {
  color: #9C7A2E;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.reception-theme .overlay-date {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  /* SemiBold */
  color: #5C4332;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  -webkit-text-stroke: unset;
}

.reception-theme .overlay-time-venue {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  /* SemiBold */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  -webkit-text-stroke: unset;
}

.reception-theme .overlay-time-venue .time-text {
  font-weight: 600;
  color: #8A6500;
}

.reception-theme .overlay-time-venue .venue-text {
  font-weight: 600;
  color: #5C4332;
}

.content-sections .mehndi-theme .overlay-welcome {
  color: #3A4F2A !important;
}

.content-sections .mehndi-theme .overlay-title,
.content-sections .mehndi-theme .overlay-divider .symbol {
  color: #234B2A !important;
}

.content-sections .mehndi-theme .overlay-date {
  color: #4A2E1F !important;
}

.content-sections .mehndi-theme .overlay-time-venue .time-text {
  color: #5A3312 !important;
}

.content-sections .mehndi-theme .overlay-time-venue .venue-text {
  color: #234B2A !important;
}

.content-sections .haldi-theme .overlay-welcome {
  color: #6D2740 !important;
}

.content-sections .haldi-theme .overlay-title,
.content-sections .haldi-theme .overlay-divider .symbol {
  color: #9C1A1C !important;
}

.content-sections .haldi-theme .overlay-date {
  color: #4A2C1D !important;
}

.content-sections .haldi-theme .overlay-time-venue .time-text {
  color: #6B3E00 !important;
}

.content-sections .haldi-theme .overlay-time-venue .venue-text {
  color: #9C1A1C !important;
}

.content-sections .sangeet-theme .overlay-welcome,
.content-sections .sangeet-theme .overlay-divider .symbol {
  color: #B08A3C !important;
}

.content-sections .sangeet-theme .overlay-title {
  color: #4A2C5A !important;
}

.content-sections .sangeet-theme .overlay-date,
.content-sections .sangeet-theme .overlay-time-venue .venue-text {
  color: #5E4A63 !important;
}

.content-sections .sangeet-theme .overlay-time-venue .time-text {
  color: #8A6500 !important;
}

.content-sections .wedding-theme .overlay-welcome,
.content-sections .wedding-theme .overlay-divider .symbol {
  color: #8A6A2F !important;
}

.content-sections .wedding-theme .overlay-title {
  color: #3B2A1A !important;
}

.content-sections .wedding-theme .overlay-date,
.content-sections .wedding-theme .overlay-time-venue .venue-text {
  color: #5A4030 !important;
}

.content-sections .wedding-theme .overlay-time-venue .time-text {
  color: #8B5E00 !important;
}

.content-sections .reception-theme .overlay-welcome,
.content-sections .reception-theme .overlay-divider .symbol {
  color: #9C7A2E !important;
}

.content-sections .reception-theme .overlay-title {
  color: #2F2419 !important;
}

.content-sections .reception-theme .overlay-date,
.content-sections .reception-theme .overlay-time-venue .venue-text {
  color: #5C4332 !important;
}

.content-sections .reception-theme .overlay-time-venue .time-text {
  color: #8A6500 !important;
}

/* Reduce spacing/padding of the Venue Section */
.venue-section.section-padding {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

/* Closing Page Section Redesign */
.closing-card {
  padding: 3rem 2rem !important;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 32px !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing-eyebrow {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #B08A3C !important;
  /* Antique Gold */
  margin-bottom: 0.75rem;
  display: inline-block;
}

.closing-couple-names {
  font-family: var(--script);
  /* Great Vibes */
  font-size: clamp(3.5rem, 10vw, 4.8rem);
  /* 25% bigger */
  font-weight: 500;
  color: #2F2419 !important;
  /* Deep Espresso Brown */
  margin: 0.5rem 0;
  line-height: 1.05;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.closing-couple-names span {
  display: block;
}

.closing-couple-names .ampersand {
  font-family: var(--display);
  /* Cormorant Garamond */
  font-size: 2.2rem;
  margin: 0.1rem 0;
  color: #B08A3C !important;
  /* Antique Gold */
  text-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}

.closing-couple-names .ampersand::before,
.closing-couple-names .ampersand::after {
  content: '';
  width: 32px;
  height: 1px;
  background: #B08A3C;
  opacity: 0.45;
  display: inline-block;
}

/* Elegant gold ornamental divider with heart/floral motif */
.closing-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 65%;
  margin: 1.25rem auto;
}

.closing-ornament .line {
  height: 1px;
  background: linear-gradient(to right, transparent, #B08A3C 50%, transparent);
  flex-grow: 1;
}

.closing-ornament .motif {
  font-size: 1.1rem;
  color: #B08A3C;
  line-height: 1;
}

.closing-date {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  /* Cormorant Garamond SemiBold */
  font-size: 1.15rem;
  /* Smaller */
  color: #5C4332 !important;
  /* Warm Brown */
  margin: 0.5rem 0;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.closing-hashtag {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600;
  /* Poppins SemiBold */
  font-size: 0.95rem;
  color: #3A3A3A !important;
  /* Muted Charcoal */
  letter-spacing: 0.1em;
  display: block;
  margin-top: 1.25rem;
  text-transform: uppercase;
}

body.invitation-open .content-sections .observe {
  opacity: 1;
}

body.invitation-open .content-sections {
  background:
    radial-gradient(circle at 18% 8%, rgba(202, 161, 90, 0.18), transparent 24%),
    radial-gradient(circle at 86% 34%, rgba(122, 31, 36, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f7f9 0%, #edeef2 100%) !important;
  position: relative;
  overflow: hidden;
}

body.invitation-open .content-sections::before,
body.invitation-open .content-sections::after {
  content: '';
  position: fixed;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  filter: blur(2px);
}

body.invitation-open .content-sections::before {
  top: 14%;
  left: max(8px, calc(50% - 260px));
  background: radial-gradient(circle, rgba(202, 161, 90, 0.35), transparent 66%);
  animation: floatGlow 8s ease-in-out infinite;
}

body.invitation-open .content-sections::after {
  bottom: 10%;
  right: max(8px, calc(50% - 260px));
  background: radial-gradient(circle, rgba(122, 31, 36, 0.22), transparent 68%);
  animation: floatGlow 9.5s ease-in-out infinite reverse;
}

body.invitation-open .pastel-invitation-card,
body.invitation-open .scratch-heart-wrapper,
body.invitation-open .countdown-card,
body.invitation-open .venue-card,
body.invitation-open .map-card,
body.invitation-open .closing-card {
  animation: softRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.invitation-open .pastel-invitation-card {
  animation-delay: 0.08s;
}

body.invitation-open .scratch-heart-wrapper {
  animation-delay: 0.16s;
  transform-origin: center;
  animation: softRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both,
    heartFloat 4.5s ease-in-out 1.1s infinite;
}

.scratch-heart-wrapper {
  will-change: transform;
}

.scratch-heart-wrapper::after {
  content: '';
  position: absolute;
  inset: -22%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.46) 48%, transparent 61%);
  transform: translateX(-85%) rotate(8deg);
  z-index: 4;
  pointer-events: none;
  animation: foilSweep 3.8s ease-in-out infinite;
}

.scratch-title-script,
.script-title,
.closing-couple-names {
  background: linear-gradient(90deg, currentColor 0%, #caa15a 42%, currentColor 78%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: titleShimmer 4.2s ease-in-out infinite;
}

.event-poster {
  perspective: 1200px;
}

body.invitation-open .event-poster {
  animation: posterCascade 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.invitation-open .event-poster:nth-of-type(1) {
  animation-delay: 0.08s;
}

body.invitation-open .event-poster:nth-of-type(2) {
  animation-delay: 0.16s;
}

body.invitation-open .event-poster:nth-of-type(3) {
  animation-delay: 0.24s;
}

body.invitation-open .event-poster:nth-of-type(4) {
  animation-delay: 0.32s;
}

body.invitation-open .event-poster:nth-of-type(5) {
  animation-delay: 0.4s;
}

.poster-image-wrapper {
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  isolation: isolate;
}

.poster-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.24) 46%, transparent 62%);
  transform: translateX(-130%);
  z-index: 4;
  pointer-events: none;
}

.poster-text-overlay::before,
.poster-text-overlay::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 84px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(202, 161, 90, 0.78), transparent);
  transform: translateX(-50%) scaleX(0.35);
  opacity: 0;
  animation: overlayRuleBloom 1.4s ease 0.45s both;
}

.poster-text-overlay::before {
  top: 7%;
}

.poster-text-overlay::after {
  bottom: 8%;
}

body.invitation-open .poster-image-wrapper img {
  animation: imageBreath 8s ease-in-out infinite;
  transform-origin: center;
}

body.invitation-open .event-poster:nth-of-type(even) .poster-image-wrapper img {
  animation-name: imageBreathAlt;
}

body.invitation-open .poster-text-overlay {
  animation: overlayFloat 4.8s ease-in-out infinite;
}

body.invitation-open .overlay-welcome {
  animation: overlayKickerIn 0.8s ease both, softGlowPulse 3.6s ease-in-out 0.8s infinite;
}

body.invitation-open .overlay-title {
  animation: overlayTitleIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both,
    titleGlowPulse 3.8s ease-in-out 1s infinite;
}

body.invitation-open .overlay-divider {
  animation: overlayDividerIn 0.85s ease 0.28s both;
}

body.invitation-open .overlay-date {
  animation: overlayTextIn 0.75s ease 0.38s both;
}

body.invitation-open .overlay-time-venue {
  animation: overlayTextIn 0.75s ease 0.5s both;
}

.event-poster::before,
.event-poster::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 3;
}

.event-poster::before {
  width: 12px;
  height: 12px;
  top: 8%;
  left: 10%;
  background: rgba(202, 161, 90, 0.75);
  box-shadow: 0 0 18px rgba(202, 161, 90, 0.58);
  animation: posterFirefly 5.2s ease-in-out infinite;
}

.event-poster::after {
  width: 8px;
  height: 8px;
  right: 12%;
  bottom: 16%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
  animation: posterFirefly 6.1s ease-in-out infinite reverse;
}

.event-poster:hover .poster-image-wrapper {
  transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.event-poster:hover .poster-image-wrapper::before {
  animation: posterSheen 0.9s ease;
}

.event-poster:hover .poster-text-overlay {
  animation: textLift 0.55s ease both;
}

.event-poster:hover .overlay-title {
  transform: scale(1.04);
}

.card-heart-divider .heart-icon {
  animation: heartBeat 1.8s ease-in-out infinite;
}

.card-heart-divider .line {
  position: relative;
  overflow: hidden;
}

.card-heart-divider .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: translateX(-120%);
  animation: dividerSpark 2.6s ease-in-out infinite;
}

.countdown-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.countdown-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(202, 161, 90, 0.18) !important;
}

.closing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(202, 161, 90, 0.16), transparent 78%);
  transform: translateX(-110%);
  animation: closingGlow 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes softRise {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes posterCascade {
  from {
    opacity: 0;
    transform: translateY(42px) rotateX(8deg) scale(0.96);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heartFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes foilSweep {

  0%,
  46% {
    transform: translateX(-85%) rotate(8deg);
  }

  68%,
  100% {
    transform: translateX(85%) rotate(8deg);
  }
}

@keyframes titleShimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes posterSheen {
  from {
    transform: translateX(-130%);
  }

  to {
    transform: translateX(130%);
  }
}

@keyframes textLift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-4px);
  }
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.22);
  }

  28% {
    transform: scale(1);
  }
}

@keyframes dividerSpark {

  0%,
  45% {
    transform: translateX(-120%);
  }

  70%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes floatGlow {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -26px, 0) scale(1.08);
  }
}

@keyframes closingGlow {

  0%,
  45% {
    transform: translateX(-110%);
  }

  70%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes imageBreath {

  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: saturate(1) contrast(1);
  }

  50% {
    transform: scale(1.075) translate3d(-1.8%, -1.2%, 0);
    filter: saturate(1.08) contrast(1.03);
  }
}

@keyframes imageBreathAlt {

  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: saturate(1) contrast(1);
  }

  50% {
    transform: scale(1.07) translate3d(1.6%, -1.5%, 0);
    filter: saturate(1.1) contrast(1.02);
  }
}

@keyframes overlayFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes overlayKickerIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlayTitleIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes overlayDividerIn {
  from {
    opacity: 0;
    transform: scaleX(0.22);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes overlayTextIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlayRuleBloom {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.25);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes softGlowPulse {

  0%,
  100% {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  }

  50% {
    text-shadow: 0 2px 10px rgba(202, 161, 90, 0.28), 0 0 16px rgba(255, 255, 255, 0.2);
  }
}

@keyframes titleGlowPulse {

  0%,
  100% {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.08));
  }

  50% {
    filter: drop-shadow(0 4px 12px rgba(202, 161, 90, 0.32));
  }
}

@keyframes posterFirefly {

  0%,
  100% {
    opacity: 0.18;
    transform: translate3d(0, 0, 0) scale(0.7);
  }

  42% {
    opacity: 0.85;
    transform: translate3d(18px, -22px, 0) scale(1);
  }

  70% {
    opacity: 0.42;
    transform: translate3d(-12px, -34px, 0) scale(0.82);
  }
}

@keyframes overlayLineSpark {

  0%,
  40% {
    transform: translateX(-120%);
  }

  72%,
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================
   HORIZONTAL VENUE & MAP SECTION DESIGN
   ========================================== */
.venue-section {
  position: relative;
  z-index: 2;
}

.venue-horizontal-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.content-sections .venue-card-horizontal,
.content-sections .map-card-horizontal {
  background: #ffffff !important;
  border: 1px solid rgba(176, 138, 60, 0.3) !important;
  border-radius: 28px !important;
  box-shadow: 0 16px 42px rgba(47, 36, 25, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
  overflow: hidden;
  width: 100%;
}

.content-sections .venue-card-horizontal:hover,
.content-sections .map-card-horizontal:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 24px 50px rgba(47, 36, 25, 0.14), 0 0 24px rgba(176, 138, 60, 0.22) !important;
  border-color: rgba(176, 138, 60, 0.55) !important;
}

/* Horizontal Venue Card Inner Layout */
.venue-card-horizontal {
  padding: 2.2rem 2.4rem !important;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.venue-horizontal-top {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-bottom: 1px dashed rgba(176, 138, 60, 0.3);
  padding-bottom: 1.5rem;
  width: 100%;
  min-width: 0;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  background: rgba(176, 138, 60, 0.09);
  border: 1px solid rgba(176, 138, 60, 0.3);
  color: #B08A3C;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
}

.venue-badge svg {
  stroke: #B08A3C;
}

.venue-title-horizontal {
  font-family: var(--display), 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(2rem, 4.2vw, 3rem) !important;
  font-weight: 600 !important;
  color: #2F2419 !important;
  margin: 0.2rem 0 0.4rem 0 !important;
  line-height: 1.2 !important;
  width: 100% !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

.venue-address-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #4A3E33;
}

.venue-address-horizontal .venue-icon {
  flex-shrink: 0;
  stroke: #B08A3C;
  margin-top: 0.2rem;
}

.venue-address-horizontal p {
  font-size: 1.1rem !important;
  color: #4A3E33 !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  font-weight: 400 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* Horizontal Bottom Meta & Buttons Bar */
.venue-horizontal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.venue-meta-horizontal {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(250, 246, 240, 0.95);
  padding: 0.75rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(176, 138, 60, 0.22);
}

.meta-pill svg {
  stroke: #B08A3C;
  flex-shrink: 0;
}

.pill-content {
  display: flex;
  flex-direction: column;
}

.pill-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #B08A3C;
  font-weight: 700;
}

.pill-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: #2F2419;
}

.venue-actions-horizontal {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.venue-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  padding: 0.9rem 1.6rem !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border-radius: 14px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(176, 138, 60, 0.28) !important;
  transition: all 0.25s ease !important;
}

.venue-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(176, 138, 60, 0.38) !important;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  background: rgba(176, 138, 60, 0.09);
  border: 1px solid rgba(176, 138, 60, 0.32);
  color: #2F2419;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

.secondary-btn:hover {
  background: rgba(176, 138, 60, 0.2);
  border-color: rgba(176, 138, 60, 0.55);
  transform: translateY(-2px);
  color: #7A1F24;
}

/* Wide Horizontal Map Card Styling */
.map-card-horizontal {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  width: 100%;
}

.map-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.5rem;
  background: rgba(250, 246, 240, 0.95);
  border-bottom: 1px solid rgba(176, 138, 60, 0.2);
}

.map-live-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2F2419;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2e7d32;
  box-shadow: 0 0 10px #2e7d32;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.map-external-link {
  font-size: 0.88rem;
  color: #B08A3C;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.map-external-link:hover {
  color: #7A1F24;
  text-decoration: underline;
}

.map-iframe-container-horizontal {
  width: 100%;
  height: 400px;
  position: relative;
}

.map-iframe-container-horizontal iframe {
  width: 100%;
  height: 100%;
  border: 0 !important;
  filter: contrast(1.04) saturate(1.05) !important;
}

/* ==========================================
   FLOATING LUXURY AUDIO CONTROLLER STYLING
   ========================================== */
.luxury-audio-widget {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.music-toggle-btn {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: rgba(26, 18, 12, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(200, 164, 93, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.music-toggle-btn:hover {
  transform: scale(1.08);
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 25px rgba(200, 164, 93, 0.45);
}

.music-toggle-btn.is-playing {
  background: rgba(122, 31, 36, 0.88);
  border-color: rgba(255, 215, 0, 0.7);
}

.disc-spin-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.music-note-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.music-toggle-btn.is-playing .music-note-icon {
  display: none;
}

/* Equalizer Bars when playing */
.equalizer-bars {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 18px;
}

.music-toggle-btn.is-playing .equalizer-bars {
  display: flex;
}

.equalizer-bars .bar {
  width: 3px;
  background: #FFD700;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
}

.music-toggle-btn.is-playing .bar1 { animation: eqBar 1.2s ease-in-out infinite alternate; height: 14px; }
.music-toggle-btn.is-playing .bar2 { animation: eqBar 0.9s ease-in-out 0.2s infinite alternate; height: 18px; }
.music-toggle-btn.is-playing .bar3 { animation: eqBar 1.4s ease-in-out 0.4s infinite alternate; height: 10px; }
.music-toggle-btn.is-playing .bar4 { animation: eqBar 1.0s ease-in-out 0.1s infinite alternate; height: 16px; }

@keyframes eqBar {
  0% { height: 4px; opacity: 0.6; }
  100% { height: 18px; opacity: 1; }
}

/* Audio Control Popover */
.audio-control-popover {
  position: absolute;
  top: 4.2rem;
  right: 0;
  background: rgba(26, 18, 12, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
  padding: 0.85rem 1.1rem;
  width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.luxury-audio-widget:hover .audio-control-popover,
.luxury-audio-widget.show-popover .audio-control-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.popover-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #D4AF37;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.popover-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.volume-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #D4AF37;
}

.volume-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFD700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.volume-range::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .luxury-audio-widget {
    top: 1.1rem;
    right: 1.1rem;
  }
  .music-toggle-btn {
    width: 3.1rem;
    height: 3.1rem;
  }
}

.luxury-audio-widget,
.music-toggle,
.music-toggle-btn {
  display: none !important;
}

/* =========================================================
   TEMPLATE 2: FLORAL PASTEL & ROSE GOLD (template-pastel)
   ========================================================= */
body.theme-pastel,
body.template-pastel {
  --color-primary: #8a3b5c;
  --color-gold: #d4a373;
  --color-cream: #fff5f7;
  --color-navy: #4a2840;
  --accent: #d4a373;
  --accent-2: #8a3b5c;
  --accent-3: #fff5f7;
  background: #fff0f3 !important;
}

body.theme-pastel.invitation-open,
body.template-pastel.invitation-open {
  background: linear-gradient(180deg, #fff0f3 0%, #f7e1d7 100%) !important;
}

body.theme-pastel .page-shell,
body.template-pastel .page-shell {
  background: linear-gradient(180deg, #fff5f7 0%, #fae1dd 100%) !important;
}

body.theme-pastel .pastel-invitation-card,
body.template-pastel .pastel-invitation-card,
body.theme-pastel .glass-card,
body.template-pastel .glass-card,
body.theme-pastel .venue-card-horizontal,
body.template-pastel .venue-card-horizontal {
  background: #ffffff !important;
  border: 1px solid rgba(212, 163, 115, 0.4) !important;
  box-shadow: 0 15px 40px rgba(138, 59, 92, 0.08) !important;
  border-radius: 28px !important;
}

body.theme-pastel .script-title,
body.template-pastel .script-title {
  color: #8a3b5c !important;
}

body.theme-pastel .eyebrow,
body.template-pastel .eyebrow {
  color: #b5838d !important;
}

body.theme-pastel .primary-btn,
body.template-pastel .primary-btn {
  background: linear-gradient(135deg, #d4a373 0%, #bc6c25 100%) !important;
  color: #ffffff !important;
}

/* =========================================================
   TEMPLATE 3: MIDNIGHT STARRY & GOLD (template-midnight)
   ========================================================= */
body.theme-midnight,
body.template-midnight {
  --color-primary: #1d2d44;
  --color-gold: #e0a96d;
  --color-cream: #f0f3f8;
  --color-navy: #0d1b2a;
  --accent: #e0a96d;
  --accent-2: #1d2d44;
  --accent-3: #f0f3f8;
  background: #0d1b2a !important;
}

body.theme-midnight.invitation-open,
body.template-midnight.invitation-open {
  background: linear-gradient(180deg, #0d1b2a 0%, #1b263b 100%) !important;
}

body.theme-midnight .page-shell,
body.template-midnight .page-shell {
  background: linear-gradient(180deg, #0d1b2a 0%, #1b263b 100%) !important;
  color: #f0f3f8 !important;
}

body.theme-midnight .pastel-invitation-card,
body.template-midnight .pastel-invitation-card,
body.theme-midnight .glass-card,
body.template-midnight .glass-card,
body.theme-midnight .venue-card-horizontal,
body.template-midnight .venue-card-horizontal {
  background: rgba(27, 38, 59, 0.85) !important;
  border: 1px solid rgba(224, 169, 109, 0.35) !important;
  color: #f0f3f8 !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

body.theme-midnight .script-title,
body.template-midnight .script-title,
body.theme-midnight .invitation-lead-quote,
body.template-midnight .invitation-lead-quote {
  color: #e0a96d !important;
}

body.theme-midnight p,
body.template-midnight p,
body.theme-midnight span,
body.template-midnight span {
  color: #e0e1dd !important;
}
