/* ==========================================================================
   Luxury Wedding Invitation - Sandun & Chandima
   Design System & Styling Inspired by vishmiwedssanjana.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Royal Gold & Metallic Palette */
  --gold-primary: #C5A059;
  --gold-vibrant: #D4AF37;
  --gold-light: #F4E8C1;
  --gold-pale: #FCF8ED;
  --gold-dark: #8C6D23;
  --gold-deep: #5A4410;

  --gold-gradient: linear-gradient(135deg, #F3DE8A 0%, #D4AF37 50%, #A47814 100%);
  --gold-gradient-shine: linear-gradient(90deg, #D4AF37 0%, #FFF3B0 50%, #D4AF37 100%);
  --gold-gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 248, 237, 0.94) 100%);
  --gold-border-gradient: linear-gradient(135deg, rgba(212, 175, 55, 0.6) 0%, rgba(244, 232, 193, 0.3) 50%, rgba(140, 109, 35, 0.6) 100%);

  /* Backgrounds & Neutrals */
  --bg-primary: #FCFBF7;
  --bg-secondary: #F7F3EA;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-modal-backdrop: rgba(26, 22, 18, 0.82);

  /* Typography Colors */
  --text-main: #24201D;
  --text-body: #4A453F;
  --text-muted: #7D756C;
  --text-gold: #A47814;
  --text-gold-bright: #D4AF37;

  /* Accent & Status */
  --color-success: #2E7D32;
  --color-success-bg: #E8F5E9;
  --color-error: #C62828;
  --color-error-bg: #FFEBEE;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(140, 109, 35, 0.08);
  --shadow-md: 0 10px 30px rgba(140, 109, 35, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 50px rgba(140, 109, 35, 0.18), 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-gold-glow: 0 0 25px rgba(212, 175, 55, 0.45);
  --shadow-inner-gold: inset 0 0 0 1px rgba(212, 175, 55, 0.35);

  /* Borders & Radii */
  --border-gold-subtle: 1px solid rgba(212, 175, 55, 0.3);
  --border-gold-strong: 1px solid rgba(212, 175, 55, 0.65);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s var(--ease-luxury);
  --transition-fast: all 0.2s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles with Atmospheric Wedding Background
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(180deg, rgba(252, 251, 247, 0.5) 0%, rgba(247, 243, 234, 0.9) 40%, rgba(252, 251, 247, 0.6) 100%),
    url('../images/wedding-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Canvas */
#particlesCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99999;
}

/* --------------------------------------------------------------------------
   Typography Utility
   -------------------------------------------------------------------------- */
.font-serif,
h1,
h2,
h3,
.heading-serif {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
}

.font-script {
  font-family: 'Alex Brush', cursive;
}

.gold-text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Authentication Verification Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-modal-backdrop);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease-luxury), visibility 0.6s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-modal-card {
  background: var(--bg-card-elevated);
  background-image: var(--gold-gradient-card);
  border: var(--border-gold-strong);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(212, 175, 55, 0.25);
  position: relative;
  animation: modalSlideUp 0.7s var(--ease-luxury) forwards;
  z-index: 2010;
}

@keyframes modalSlideUp {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(35px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-modal-card.shake {
  animation: shakeAnimation 0.5s ease-in-out;
}

@keyframes shakeAnimation {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-10px);
  }

  40%,
  80% {
    transform: translateX(10px);
  }
}

.auth-crest-seal {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(244, 232, 193, 0.1));
  border: 1.5px solid var(--gold-vibrant);
  color: var(--gold-vibrant);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.auth-crest-seal svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold-vibrant);
}

.auth-modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.auth-modal-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 26px;
  line-height: 1.55;
}

.auth-input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.auth-phone-input {
  width: 100%;
  padding: 16px 20px;
  padding-left: 48px;
  font-size: 1.05rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-pill);
  outline: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm), inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.auth-phone-input:focus {
  border-color: var(--gold-vibrant);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2), var(--shadow-sm);
}

.auth-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-luxury-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 28px;
  background: var(--gold-gradient);
  color: #FFFFFF;
  font-family: 'Cinzel', serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(164, 120, 20, 0.35);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-luxury-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: 0.75s ease;
}

.btn-luxury-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(164, 120, 20, 0.45);
}

.btn-luxury-gold:hover::after {
  left: 150%;
}

.btn-luxury-gold:active {
  transform: translateY(0);
}

.error-message {
  color: var(--color-error);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 14px;
  display: none;
  background: var(--color-error-bg);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(198, 40, 40, 0.2);
}

/* --------------------------------------------------------------------------
   Motion Loading Popup Screen
   -------------------------------------------------------------------------- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 15, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-card {
  text-align: center;
  padding: 36px 28px;
  width: 90%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.96);
  border: var(--border-gold-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.motion-rings-container {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-pulse-aura {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
  animation: auraPulse 2s infinite ease-in-out;
}

.ring-outer {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed var(--gold-vibrant);
  animation: spinOuter 8s linear infinite;
}

.ring-middle {
  position: absolute;
  width: 74%;
  height: 74%;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  border-top-color: transparent;
  animation: spinMiddle 2.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.motion-center-icon {
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.motion-center-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--gold-vibrant);
}

@keyframes spinOuter {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinMiddle {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

@keyframes auraPulse {

  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.9;
  }
}

.loading-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 6px;
  transition: opacity 0.3s ease;
}

.loading-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  transition: opacity 0.3s ease;
}

.loading-bar-wrapper {
  width: 100%;
  height: 4px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.loading-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: var(--gold-gradient);
  border-radius: var(--radius-pill);
  animation: loadingProgress 1.6s infinite ease-in-out;
}

@keyframes loadingProgress {
  0% {
    left: -40%;
    width: 30%;
  }

  50% {
    left: 30%;
    width: 60%;
  }

  100% {
    left: 100%;
    width: 40%;
  }
}

/* --------------------------------------------------------------------------
   Main Invitation Layout Container
   -------------------------------------------------------------------------- */
#mainContent {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-luxury), transform 1s var(--ease-luxury);
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 16px 80px;
}

#mainContent.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Section Cards & Glass Containers
   -------------------------------------------------------------------------- */
.luxury-card {
  background: var(--bg-card);
  background-image: var(--gold-gradient-card);
  border: var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 26px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient-shine);
}

.luxury-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.5);
}

/* --------------------------------------------------------------------------
   Header & Royal Monogram
   -------------------------------------------------------------------------- */
.invitation-header {
  padding-top: 15px;
  margin-bottom: 24px;
  position: relative;
}

.royal-monogram {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 2px solid var(--gold-vibrant);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25), inset 0 0 15px rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFFFFF 0%, #FCF8ED 100%);
  position: relative;
}

.royal-monogram::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  animation: spinOuter 25s linear infinite;
}

.monogram-letters {
  font-family: 'Cinzel', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 2px;
}

/* --------------------------------------------------------------------------
   Top Hero Photo Banner (Edge-to-Edge Full Bleed)
   Desktop: wide ~1092 x 400 | Mobile: full screen bleed ~354 x 180
   -------------------------------------------------------------------------- */
.hero-photo-wrapper {
  width: 100vw;
  max-width: 1500px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 20px;
  margin-bottom: 30px;
  padding: 0 8px;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2.73 / 1;
  max-height: 420px;
  min-height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--gold-vibrant);
  outline: 1px solid rgba(212, 175, 55, 0.4);
  outline-offset: 4px;
  box-shadow: 0 16px 45px rgba(140, 109, 35, 0.25), 0 0 30px rgba(212, 175, 55, 0.28);
  background: var(--bg-secondary);
  transition: var(--transition-smooth);
}

.hero-photo-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(140, 109, 35, 0.35), 0 0 40px rgba(212, 175, 55, 0.45);
}

/* Slideshow Container & Slide Transitions */
.hero-slides-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s ease;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transform-origin: center center;
  will-change: transform, filter;
}

/* Randomized Luxury Motion Transition Effects (Expanded Suite) */
.hero-slide.effect-zoom-in.active img {
  animation: kenBurnsZoomIn 5.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-slide.effect-zoom-out.active img {
  animation: kenBurnsZoomOut 5.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-slide.effect-pan-left.active img {
  animation: kenBurnsPanLeft 5.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-slide.effect-pan-right.active img {
  animation: kenBurnsPanRight 5.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-slide.effect-pan-up.active img {
  animation: kenBurnsPanUp 5.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-slide.effect-pan-down.active img {
  animation: kenBurnsPanDown 5.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-slide.effect-tilt-left.active img {
  animation: kenBurnsTiltLeft 5.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-slide.effect-tilt-right.active img {
  animation: kenBurnsTiltRight 5.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-slide.effect-glow-shimmer.active img {
  animation: kenBurnsGlowShimmer 5.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-slide.effect-diagonal-drift.active img {
  animation: kenBurnsDiagonalDrift 5.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes kenBurnsZoomIn {
  0% {
    transform: scale(1);
    filter: brightness(0.96);
  }

  100% {
    transform: scale(1.14);
    filter: brightness(1.02);
  }
}

@keyframes kenBurnsZoomOut {
  0% {
    transform: scale(1.16);
    filter: brightness(1.03);
  }

  100% {
    transform: scale(1);
    filter: brightness(0.98);
  }
}

@keyframes kenBurnsPanLeft {
  0% {
    transform: scale(1.09) translateX(3%);
  }

  100% {
    transform: scale(1.09) translateX(-3%);
  }
}

@keyframes kenBurnsPanRight {
  0% {
    transform: scale(1.09) translateX(-3%);
  }

  100% {
    transform: scale(1.09) translateX(3%);
  }
}

@keyframes kenBurnsPanUp {
  0% {
    transform: scale(1.08) translateY(3%);
  }

  100% {
    transform: scale(1.08) translateY(-3%);
  }
}

@keyframes kenBurnsPanDown {
  0% {
    transform: scale(1.08) translateY(-3%);
  }

  100% {
    transform: scale(1.08) translateY(3%);
  }
}

@keyframes kenBurnsTiltLeft {
  0% {
    transform: scale(1.04) rotate(0deg);
  }

  100% {
    transform: scale(1.12) rotate(-1.2deg);
  }
}

@keyframes kenBurnsTiltRight {
  0% {
    transform: scale(1.04) rotate(0deg);
  }

  100% {
    transform: scale(1.12) rotate(1.2deg);
  }
}

@keyframes kenBurnsGlowShimmer {
  0% {
    transform: scale(1.02);
    filter: brightness(1.12) saturate(1.1);
  }

  50% {
    filter: brightness(1.04) saturate(1.05);
  }

  100% {
    transform: scale(1.1);
    filter: brightness(1) saturate(1);
  }
}

@keyframes kenBurnsDiagonalDrift {
  0% {
    transform: scale(1.06) translate(-2%, -2%);
  }

  100% {
    transform: scale(1.12) translate(2%, 2%);
  }
}

/* Subtle Golden Overlay Shine */
.hero-photo-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, transparent 45%, rgba(20, 16, 12, 0.35) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Golden Progress Bar (5s auto reset) */
.hero-slideshow-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 4;
  overflow: hidden;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  box-shadow: 0 0 10px var(--gold-vibrant);
  transition: width 0.1s linear;
}

.hero-progress-bar.animate {
  width: 100%;
  transition: width 5s linear;
}

/* Pagination Dots */
.hero-slideshow-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
  padding: 4px 10px;
  background: rgba(20, 16, 12, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s var(--ease-luxury);
}

.hero-dot:hover {
  background: var(--gold-light);
  transform: scale(1.2);
}

.hero-dot.active {
  width: 18px;
  border-radius: var(--radius-pill);
  background: var(--gold-gradient);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

/* Parents' Formal Header */
.parents-formal-text {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.85;
  color: var(--text-body);
  max-width: 680px;
  margin: 0 auto 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.parents-formal-highlight {
  color: var(--gold-dark);
  font-weight: 700;
}

.invitation-tagline {
  font-family: 'Alex Brush', cursive;
  font-size: 2.2rem;
  color: var(--gold-primary);
  margin-bottom: 6px;
  display: block;
  line-height: 1.2;
}

.couple-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  line-height: 1.25;
}

.couple-title span {
  display: block;
}

.couple-ampersand {
  font-family: 'Alex Brush', cursive;
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--gold-vibrant);
  margin: -10px 0;
  display: block;
  text-transform: none;
}

/* Gold Divider Ornament */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px auto 14px;
  max-width: 280px;
}

.gold-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7), transparent);
}

.gold-divider-icon {
  color: var(--gold-vibrant);
  font-size: 1.1rem;
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Dynamic Personalized Greeting Card
   -------------------------------------------------------------------------- */
.greeting-section {
  position: relative;
}

.greeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-pale);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.greeting-text {
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-main);
}

.greeting-text strong {
  font-weight: 700;
  color: var(--gold-dark);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Live Countdown Timer
   -------------------------------------------------------------------------- */
.countdown-section {
  text-align: center;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.12em;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 580px;
  margin: 0 auto 26px;
}

.countdown-unit-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.countdown-unit-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-vibrant);
  box-shadow: var(--shadow-md);
}

.countdown-number {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1.1;
  margin-bottom: 4px;
}

.countdown-label {
  font-size: 0.72rem;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.calendar-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: var(--radius-pill);
  color: var(--gold-dark);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.calendar-action-btn:hover {
  background: var(--gold-pale);
  border-color: var(--gold-vibrant);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.calendar-action-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-vibrant);
}

/* --------------------------------------------------------------------------
   Event Schedule & Venue Section
   -------------------------------------------------------------------------- */
.venue-details-box {
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.venue-date-highlight {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}

.venue-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.venue-address {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-pill);
  color: var(--gold-dark);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.btn-directions:hover {
  background: var(--gold-gradient);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Embedded Google Map Frame */
.venue-map-container {
  margin-top: 22px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--gold-vibrant);
  outline: 1px solid rgba(212, 175, 55, 0.35);
  outline-offset: 3px;
  box-shadow: var(--shadow-md), 0 0 20px rgba(212, 175, 55, 0.12);
  background: var(--bg-secondary);
  transition: var(--transition-smooth);
}

.venue-map-container:hover {
  border-color: var(--gold-vibrant);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(212, 175, 55, 0.22);
  transform: translateY(-2px);
}

.venue-map-frame {
  width: 100%;
  height: 290px;
  border: 0;
  display: block;
  filter: contrast(1.02) saturate(1.05);
  transition: filter 0.3s ease;
}

@media (max-width: 640px) {
  .venue-map-frame {
    height: 230px;
  }
}

/* Timeline */
.schedule-timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 28px;
  text-align: left;
}

.schedule-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-vibrant) 0%, rgba(212, 175, 55, 0.2) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--gold-vibrant);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.timeline-card {
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-card:hover {
  border-color: var(--gold-vibrant);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.timeline-time-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   "Moments of Beauty" Photo Gallery (Tabs & Clean Square Grid)
   -------------------------------------------------------------------------- */
.gallery-section {
  text-align: center;
}

/* Main Category Tabs */
.gallery-main-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #FFFFFF;
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: var(--shadow-sm);
  margin: 0 auto 20px;
  max-width: 100%;
}

.gallery-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-body);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-tab-btn svg {
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.gallery-tab-btn:hover {
  color: var(--gold-dark);
}

.gallery-tab-btn.active {
  background: var(--gold-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(164, 120, 20, 0.35);
}

.gallery-tab-btn.active svg {
  stroke: #FFFFFF;
  transform: scale(1.1);
}

/* Sub-Category Tabs (Pre-Shoot 1, 2, 3, 4) */
.gallery-sub-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-sub-tabs.hidden {
  display: none;
}

.gallery-sub-btn {
  padding: 8px 18px;
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-pill);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-sub-btn .tab-lock-icon {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.gallery-sub-btn:hover {
  background: var(--gold-pale);
  border-color: var(--gold-vibrant);
  transform: translateY(-2px);
}

.gallery-sub-btn.active {
  background: var(--gold-dark);
  color: #FFFFFF;
  border-color: var(--gold-dark);
  box-shadow: 0 4px 12px rgba(140, 109, 35, 0.3);
}

.gallery-sub-btn.active .tab-lock-icon {
  opacity: 1;
}

/* Gallery Grid Layout (Clean Images: 4 per row PC, 3 per row Mobile) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 10px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   "Coming Soon" Luxury Shade & Teaser Card
   Controlled dynamically from Google Sheet (Tab 2: Photos)
   -------------------------------------------------------------------------- */
.gallery-coming-soon-card {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 680px;
  margin: 10px auto 20px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0%, rgba(252, 248, 237, 0.94) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: var(--radius-lg);
  padding: 48px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(212, 175, 55, 0.18), inset 0 0 20px rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  animation: shadeFadeIn 0.6s var(--ease-luxury) forwards;
}

@keyframes shadeFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(15px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.coming-soon-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-aura {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0) 70%);
  animation: auraPulse 3s ease-in-out infinite alternate;
}

.coming-soon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(212, 175, 55, 0.6);
  animation: spinOuter 18s linear infinite;
}

.coming-soon-lock-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(164, 120, 20, 0.4);
  position: relative;
  z-index: 2;
}

.coming-soon-lock-icon svg {
  width: 24px;
  height: 24px;
  stroke: #FFFFFF;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-pill);
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.coming-soon-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.coming-soon-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  max-width: 460px;
  margin: 0 auto 20px;
  line-height: 1.65;
  font-style: italic;
}

.coming-soon-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 200px;
  margin: 0 auto 16px;
}

.coming-soon-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.coming-soon-divider-icon {
  color: var(--gold-vibrant);
  font-size: 0.85rem;
}

.coming-soon-footer-note {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
}

.photo-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  animation: photoCardFadeIn 0.4s var(--ease-luxury) forwards;
}

@keyframes photoCardFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.photo-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold-vibrant);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(212, 175, 55, 0.35);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-luxury);
}

.photo-card:hover img {
  transform: scale(1.06);
}

.photo-zoom-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition-smooth);
}

.photo-card:hover .photo-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   Interactive "Slide to RSVP" Slider
   -------------------------------------------------------------------------- */
.rsvp-section {
  text-align: center;
}

.rsvp-card-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  max-width: 500px;
  margin: 0 auto 24px;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 64px;
  background: #FFFFFF;
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md), inset 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.45) 100%);
  border-radius: var(--radius-pill);
  pointer-events: none;
  transition: width 0.05s ease;
}

.slider-text {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.slider-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 4px 15px rgba(164, 120, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: grab;
  z-index: 5;
  transition: transform 0.05s ease, box-shadow 0.2s ease;
}

.slider-thumb:active,
.slider-thumb.dragging {
  cursor: grabbing;
  box-shadow: 0 6px 20px rgba(164, 120, 20, 0.6), 0 0 15px rgba(212, 175, 55, 0.8);
}

.slider-thumb svg {
  width: 24px;
  height: 24px;
  stroke: #FFFFFF;
  transition: transform 0.3s ease;
}

/* Slider Completed / Confirmed State */
.slider-container.confirmed .slider-track {
  background: var(--color-success-bg);
  border-color: var(--color-success);
}

.slider-container.confirmed .slider-fill {
  width: 100% !important;
  background: linear-gradient(90deg, rgba(46, 125, 50, 0.25) 0%, rgba(46, 125, 50, 0.5) 100%);
}

.slider-container.confirmed .slider-text {
  color: var(--color-success);
  font-weight: 700;
}

.slider-container.confirmed .slider-thumb {
  background: var(--color-success);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
  cursor: default;
}

.rsvp-confirmed-box {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--color-success-bg);
  border: 1.5px solid var(--color-success);
  border-radius: var(--radius-md);
  color: var(--color-success);
  font-size: 0.95rem;
  font-weight: 600;
  animation: fadeInDown 0.5s ease forwards;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.invitation-footer {
  text-align: center;
  padding: 40px 16px 20px;
  margin-top: 20px;
}

.footer-quote {
  font-family: 'Alex Brush', cursive;
  font-size: 2.2rem;
  color: var(--gold-dark);
  margin-bottom: 12px;
  display: block;
}

.footer-hashtag {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-vibrant);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Lightbox Modal (Clean Fullscreen Preview with Previous / Next Arrows)
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 8, 6, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-box {
  position: relative;
  max-width: 820px;
  width: 100%;
  background: #000000;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gold-vibrant);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.45);
  overflow: hidden;
  animation: modalScaleIn 0.4s var(--ease-luxury) forwards;
}

.lightbox-img-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c0a08;
  min-height: 320px;
}

.lightbox-content-box img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.lightbox-counter-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--gold-vibrant);
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  z-index: 10;
}

/* Lightbox Navigation Arrow Buttons */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 16, 12, 0.8);
  border: 1.5px solid var(--gold-vibrant);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lightbox-nav-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-vibrant);
  transition: transform 0.2s ease;
}

.lightbox-nav-btn.prev-btn {
  left: 16px;
}

.lightbox-nav-btn.next-btn {
  right: 16px;
}

.lightbox-nav-btn:hover {
  background: var(--gold-vibrant);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
}

.lightbox-nav-btn:hover svg {
  stroke: #000000;
}

.lightbox-nav-btn.prev-btn:hover svg {
  transform: translateX(-2px);
}

.lightbox-nav-btn.next-btn:hover svg {
  transform: translateX(2px);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--gold-vibrant);
  color: #FFFFFF;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--gold-vibrant);
  color: #000000;
  transform: scale(1.1);
}

@keyframes modalScaleIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints (Mobile-First Edge-to-Edge & 3 per row Mobile Grid)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .couple-title {
    font-size: 1.85rem;
  }

  .parents-formal-text {
    font-size: 0.84rem;
    line-height: 1.7;
  }

  /* Full Bleed Edge-to-Edge Hero Photo on Mobile */
  .hero-photo-wrapper {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    transform: none;
    padding: 0;
    margin-top: 14px;
    margin-bottom: 22px;
  }

  .hero-photo-frame {
    width: 100%;
    aspect-ratio: 1.97 / 1;
    min-height: 250px;
    max-height: 300px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: 2px solid var(--gold-vibrant);
    border-bottom: 2px solid var(--gold-vibrant);
    outline: none;
    box-shadow: 0 8px 25px rgba(140, 109, 35, 0.2);
  }

  .countdown-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .countdown-label {
    font-size: 0.62rem;
  }

  /* Moments of Beauty: 3 clean photos per row on Mobile (~164px square) */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .photo-card {
    max-width: 100%;
    border-radius: var(--radius-xs);
  }

  .gallery-tab-btn {
    padding: 8px 16px;
    font-size: 0.78rem;
  }

  .gallery-sub-btn {
    padding: 6px 12px;
    font-size: 0.72rem;
  }

  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
  }

  .lightbox-nav-btn.prev-btn {
    left: 8px;
  }

  .lightbox-nav-btn.next-btn {
    right: 8px;
  }

  .luxury-card {
    padding: 24px 14px;
    margin-bottom: 24px;
  }

  .slider-text {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }
}

@media (min-width: 641px) and (max-width: 991px) {
  .hero-photo-wrapper {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    transform: none;
    padding: 0;
  }

  .hero-photo-frame {
    aspect-ratio: 2.3 / 1;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 992px) {
  .hero-photo-wrapper {
    width: 100vw;
    max-width: 1500px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 10px;
  }

  .hero-photo-frame {
    aspect-ratio: 2.73 / 1;
    max-height: 500px;
    border-radius: var(--radius-md);
  }

  /* 4 photos per row on Desktop */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .luxury-card {
    padding: 44px 36px;
  }
}