/* =========================================================
   WEDDING INVITATION — STYLESHEET
   Design tokens
   --gold        #D4AF37  primary accent, foil gold
   --gold-light  #E8CE85  soft gold highlight / gradient stop
   --ivory       #FFFDF8  primary background
   --champagne   #F5EBDA  secondary background / card fill
   --charcoal    #2B2620  primary text
   --charcoal-60 rgba charcoal @ 60%  secondary text
   --ember       #8B4A3B  small warm accent (decline state, hearts)
   Fonts: "Playfair Display" (display/serif), "Poppins" (body/sans),
          "Cormorant Garamond" italic (eyebrows / whispered lines)
========================================================= */

:root {
  --gold: #D4AF37;
  --gold-light: #E8CE85;
  --gold-deep: #A9822A;
  --ivory: #FFFDF8;
  --champagne: #F5EBDA;
  --champagne-deep: #EADFC7;
  --charcoal: #2B2620;
  --charcoal-70: rgba(43, 38, 32, 0.7);
  --charcoal-50: rgba(43, 38, 32, 0.5);
  --ember: #8B4A3B;

  --haldi: #FFD54F;
  --mehendi: #43A047;
  --sangeet: #7E57C2;
  --wedding: #C62828;
  --reception: #1E88E5;

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Poppins", "Helvetica Neue", sans-serif;
  --font-script: "Cormorant Garamond", serif;

  --shadow-soft: 0 20px 60px rgba(43, 38, 32, 0.10);
  --shadow-deep: 0 30px 80px rgba(43, 38, 32, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

::selection { background: var(--gold); color: var(--ivory); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Shared typography ---------- */
.eyebrow {
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  color: var(--charcoal);
  margin-bottom: 2.6rem;
  letter-spacing: 0.01em;
}
.section-inner { max-width: 900px; margin: 0 auto; padding: 0 24px; text-align: center; }

.divider {
  width: 90px;
  height: 2px;
  margin: 1.6rem auto;
  position: relative;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider--gold::before {
  content: "❖";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--ivory);
  padding: 0 10px;
  color: var(--gold);
  font-size: 0.9rem;
}
.divider--small { width: 60px; margin: 1rem auto; }

.pill-tag {
  display: inline-block;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-deep);
  border: 1px solid var(--gold-light);
  padding: 6px 20px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.06);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 15px 34px;
  border-radius: 999px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  color: #2c2210;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(212, 175, 55, 0.45); }
.btn--gold:active { transform: translateY(-1px); }
.btn--gold-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  background: rgba(255, 253, 248, 0.6);
}
.btn--gold-outline:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }

/* =========================================================
   PRELOADER — envelope + wax seal opening
========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #3a2f22, #201a13 75%);
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;          /* Adjust according to your seal size */
    height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.preloader__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* Fills the circle without distortion */
    border-radius: 50%;
}
.preloader__envelope {
  position: relative;
  width: min(420px, 78vw);
  aspect-ratio: 3/2;
  display: flex; align-items: center; justify-content: center;
}
.preloader__flap {
  position: absolute;
  background: linear-gradient(135deg, #4a3c28, #2b2118);
  border: 1px solid rgba(212,175,55,0.35);
  transition: transform 1.1s var(--ease);
}
.preloader__flap--top {
  top: 0; left: 0; right: 0; height: 55%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
}
.preloader__flap--left {
  top: 0; bottom: 0; left: 0; width: 52%;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.preloader__flap--right {
  top: 0; bottom: 0; right: 0; width: 52%;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.preloader.is-opening .preloader__flap--top { transform: rotateX(160deg) translateY(-10px); }
.preloader.is-opening .preloader__flap--left { transform: translateX(-110%) rotate(-6deg); }
.preloader.is-opening .preloader__flap--right { transform: translateX(110%) rotate(6deg); }

.preloader__seal {
  position: relative;
  z-index: 3;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: #ffffff;  
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45), inset 0 0 0 2px rgba(255,255,255,0.25);
  cursor: pointer;
  animation: sealPulse 2.6s ease-in-out infinite;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.preloader.is-opening .preloader__seal { transform: scale(0.2) rotate(25deg); opacity: 0; }
@keyframes sealPulse { 0%,100% { box-shadow: 0 10px 26px rgba(0,0,0,0.45), 0 0 0 0 rgba(212,175,55,0.5);} 50% { box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 14px rgba(212,175,55,0);} }
.preloader__seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.preloader__seal-ring circle { fill: none; stroke: rgba(43,32,10,0.35); stroke-width: 2; stroke-dasharray: 6 5; }
.preloader__monogram { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #2c2210; letter-spacing: 0.02em; }
.preloader__amp { font-style: italic; opacity: 0.75; margin: 0 2px; }
.preloader__hint {
  position: absolute; bottom: -46px; left: 0; right: 0; text-align: center;
  color: var(--champagne); font-size: 0.85rem; letter-spacing: 0.06em;
  font-family: var(--font-script); font-style: italic; font-size: 1.05rem;
}

.preloader.is-opening .preloader__hint { opacity: 0; }

/* =========================================================
   GLOBAL FX — progress bar, cursor glow, petals canvas
========================================================= */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-light));
  z-index: 500;
  transition: width .1s linear;
}
.cursor-glow {
  position: fixed; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.16), transparent 70%);
  pointer-events: none; z-index: 2; transform: translate(-50%, -50%);
  transition: opacity .3s ease; opacity: 0;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow.is-active { opacity: 1; } }
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* =========================================================
   MUSIC PLAYER
========================================================= */
.music-player {
  position: fixed; right: 22px; bottom: 22px; z-index: 400;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 253, 248, 0.65);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.music-player__toggle {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: #2c2210; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: transform .3s var(--ease);
}
.music-player__toggle:hover { transform: scale(1.08); }
.music-player__eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.music-player__eq span { width: 3px; background: var(--gold-deep); border-radius: 2px; height: 4px; opacity: 0.4; }
.music-player.is-playing .music-player__eq span { animation: eqBounce 0.9s ease-in-out infinite; opacity: 1; }
.music-player.is-playing .music-player__eq span:nth-child(1) { animation-delay: 0s; }
.music-player.is-playing .music-player__eq span:nth-child(2) { animation-delay: .15s; }
.music-player.is-playing .music-player__eq span:nth-child(3) { animation-delay: .3s; }
.music-player.is-playing .music-player__eq span:nth-child(4) { animation-delay: .45s; }
@keyframes eqBounce { 0%,100% { height: 4px; } 50% { height: 18px; } }

/* =========================================================
   SIDE DOT NAV
========================================================= */
.dot-nav {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 14px;
}
.dot-nav__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  position: relative; transition: background .3s, transform .3s;
}
.dot-nav__dot::after {
  content: attr(data-label);
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 0.72rem; letter-spacing: 0.05em; white-space: nowrap;
  background: var(--charcoal); color: var(--ivory);
  padding: 3px 10px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.dot-nav__dot:hover::after { opacity: 1; }
.dot-nav__dot.active { background: var(--gold); transform: scale(1.4); }
@media (max-width: 900px) { .dot-nav { display: none; } }

/* =========================================================
   SCROLL REVEAL (JS toggles .is-visible)
========================================================= */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.08);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1.16); } }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,10,0.55) 0%, rgba(20,16,10,0.35) 40%, rgba(20,16,10,0.75) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 640px; text-align: center; color: var(--ivory);
  display: flex; flex-direction: column; align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-script); font-style: italic; font-size: 1.3rem;
  color: var(--gold-light); margin-bottom: 1.6rem; letter-spacing: 0.05em;
}
.hero__portrait {
  width: 148px; height: 148px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(212,175,55,0.15), var(--shadow-deep);
  margin-bottom: 1.8rem;
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero__names {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  display: flex; align-items: center; gap: 0.4em; flex-wrap: wrap; justify-content: center;
  line-height: 1;
}
.hero__amp { font-style: italic; color: var(--gold-light); font-size: 0.7em; }
.hero__tagline {
  font-family: var(--font-script); font-style: italic; font-size: 1.4rem;
  color: var(--champagne); margin-top: 0.6rem;
}
.hero__date { font-size: 1.05rem; letter-spacing: 0.04em; color: var(--ivory); margin-bottom: 1.8rem; }
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }

.scroll-indicator {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--champagne); font-size: 0.75rem; letter-spacing: 0.12em;
}
.scroll-indicator__mouse {
  width: 24px; height: 38px; border: 2px solid var(--gold-light); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-indicator__mouse span { width: 4px; height: 8px; background: var(--gold-light); border-radius: 3px; animation: mouseScroll 1.6s ease-in-out infinite; }
@keyframes mouseScroll { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }

/* =========================================================
   COUNTDOWN
========================================================= */
.countdown-section { padding: 130px 0; background: linear-gradient(180deg, var(--ivory), var(--champagne)); text-align: center; }
.countdown { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 26px); flex-wrap: wrap; }
.countdown__unit {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: var(--radius-md);
  padding: 22px clamp(16px, 3vw, 34px);
  min-width: 100px;
  box-shadow: var(--shadow-soft);
}
.countdown__num { display: block; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; color: var(--gold-deep); }
.countdown__label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal-70); }
.countdown__sep { font-family: var(--font-display); font-size: 2rem; color: var(--gold-light); }
.countdown__complete { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ember); margin-top: 1.6rem; }

/* =========================================================
   SLIDESHOW
========================================================= */
.slideshow-section { padding: 120px 0; background: var(--ivory); }
.slideshow {
  position: relative; max-width: 880px; margin: 0 auto;
  aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.slideshow__track { position: relative; width: 100%; height: 100%; }
.slideshow__slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.12);
  transition: opacity 1.1s var(--ease), transform 1.6s var(--ease);
}
.slideshow__slide.is-active { opacity: 1; transform: scale(1); z-index: 2; }
.slideshow__slide img { width: 100%; height: 100%; object-fit: cover; }
.slideshow__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,253,248,0.7); backdrop-filter: blur(8px);
  color: var(--charcoal); display: flex; align-items: center; justify-content: center;
  z-index: 5; transition: background .3s, transform .3s;
}
.slideshow__arrow:hover { background: var(--gold); color: #fff; transform: translateY(-50%) scale(1.08); }
.slideshow__arrow--prev { left: 16px; }
.slideshow__arrow--next { right: 16px; }
.slideshow__dots { position: absolute; bottom: 18px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 8px; }
.slideshow__dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: all .3s; }
.slideshow__dots button.is-active { background: var(--gold); width: 22px; border-radius: 5px; }


.timeline{
    position:relative;
    max-width:900px;
    margin:auto;
}

.timeline::before{
    content:"";
    position:absolute;
    left:35px;
    top:0;
    bottom:0;
    width:4px;
    background:linear-gradient(#d4af37,#f4d03f);
}

.timeline-item{
    display:flex;
    margin-bottom:70px;
    position:relative;
}

.timeline-dot{
    width:26px;
    height:26px;
    border-radius:50%;
    background:#d4af37;
    border:5px solid white;
    box-shadow:0 0 20px rgba(0,0,0,.15);
    z-index:2;
}

.timeline-card{
    margin-left:35px;
    background:white;
    border-radius:18px;
    padding:25px;
    flex:1;
    box-shadow:0 20px 50px rgba(0,0,0,.08);
}

.theme-heading{
    margin-top:20px;
    font-weight:600;
    margin-bottom:12px;
}

.theme-colors{
    display:flex;
    gap:12px;
}

.theme-colors span{
    width:34px;
    height:34px;
    border-radius:50%;
    border:3px solid white;
    box-shadow:0 4px 12px rgba(0,0,0,.2);
}

.timeline-direction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 20px;
    background: var(--gold);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s ease;
}

.timeline-direction:hover {
    background: var(--gold-deep);
    transform: translateY(-2px);
}

.wedding-day{
    padding:100px 0;
}

.wedding-grid{
    max-width:1100px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.wedding-card{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 20px 50px rgba(0,0,0,.08);
    text-align:center;
}

.haldi .timeline-dot{
    background:#FFD400;
}

.mehendi .timeline-dot{
    background:#2E7D32;
}

.sangeeth .timeline-dot{
    background:#1565C0;
}

/* =========================================================
   VENUE
========================================================= */

.venue-section {
    padding: 120px 0;
    background: var(--champagne);
}

.venue-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: var(--ivory);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-deep);
}

.venue-card__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.venue-card__info h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 18px;
    color: var(--charcoal);
}

.venue-card__address {
    display: flex;
    gap: 10px;
    color: var(--charcoal-70);
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1rem;
}

.venue-card__address i {
    color: var(--gold);
    margin-top: 5px;
}

.venue-map {
    margin: 30px 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
}

.venue-map a {
    display: block;
    position: relative;
}

.venue-map img {
    width: 100%;
    display: block;
    transition: transform .5s ease;
}

.venue-map:hover img {
    transform: scale(1.04);
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .4s ease;
    color: #fff;
}

.venue-map:hover .map-overlay {
    opacity: 1;
}

.map-overlay i {
    font-size: 42px;
    margin-bottom: 10px;
}

.map-overlay span {
    font-size: 18px;
    font-weight: 600;
}

.venue-direction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 25px;
    padding: 16px 30px;

    font-size: 1.15rem;
    font-weight: 700;

    color: #fff;
    background: var(--gold);
    border-radius: 50px;

    text-decoration: none;

    box-shadow: 0 10px 25px rgba(212,175,55,.35);
    transition: all .3s ease;
}

.venue-direction i {
    font-size: 1.3rem;
}

.venue-direction:hover {
    background: var(--gold-deep);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212,175,55,.45);
}

.venue-direction:hover {
    color: var(--gold-deep);
}

@media (max-width: 768px) {

    .venue-card {
        padding: 25px;
        margin: 0 20px;
    }

    .venue-card__info h3 {
        font-size: 1.6rem;
    }

}
/* =========================================================
   GALLERY (masonry) + LIGHTBOX
========================================================= */
.gallery-section { padding: 120px 0 100px; background: var(--ivory); }
.masonry {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  column-count: 4; column-gap: 18px;
}
.masonry__item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in; position: relative; box-shadow: var(--shadow-soft); }
.masonry__item img { width: 100%; display: block; transition: transform .6s var(--ease); }
.masonry__item:hover img { transform: scale(1.08); }
.masonry__item::after {
  content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem; background: rgba(43,38,32,0.0); opacity: 0; transition: all .3s;
}
.masonry__item:hover::after { opacity: 1; background: rgba(43,38,32,0.35); }
@media (max-width: 980px) { .masonry { column-count: 3; } }
@media (max-width: 640px) { .masonry { column-count: 2; } }

.lightbox {
  position: fixed; inset: 0; background: rgba(20,16,10,0.94); z-index: 800;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease);
}
.lightbox.is-active { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 88vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__close, .lightbox__arrow {
  position: absolute; color: var(--ivory); font-size: 1.2rem;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.08); transition: background .3s;
}
.lightbox__close:hover, .lightbox__arrow:hover { background: var(--gold); color: #2c2210; }
.lightbox__close { top: 26px; right: 26px; }
.lightbox__arrow--prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__arrow--next { right: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--champagne); font-size: 0.85rem; letter-spacing: 0.06em; }

/* =========================================================
   RSVP
========================================================= */
.rsvp-section { padding: 120px 0 140px; background: linear-gradient(180deg, var(--champagne), var(--ivory)); }
.rsvp-subtitle { max-width: 480px; margin: 0 auto; color: var(--charcoal-70); }
.rsvp-form {
  max-width: 720px; margin: 3rem auto 0; padding: 40px clamp(20px, 5vw, 50px);
  background: rgba(255,253,248,0.6);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: left;
}
.rsvp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 22px; }
.form-field label, .form-field__legend { display: block; font-size: 0.82rem; letter-spacing: 0.05em; color: var(--charcoal); margin-bottom: 8px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(212,175,55,0.3); background: rgba(255,255,255,0.7);
  font-size: 0.95rem; color: var(--charcoal); transition: border-color .3s, box-shadow .3s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
}
.form-field input.is-invalid, .form-field select.is-invalid { border-color: var(--ember); }
.form-field__error { display: block; font-size: 0.78rem; color: var(--ember); margin-top: 6px; min-height: 1em; }
.rsvp-toggle { display: flex; gap: 14px; flex-wrap: wrap; }
.rsvp-toggle__opt {
  flex: 1; min-width: 180px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 10px; border-radius: var(--radius-sm); border: 1.5px solid rgba(212,175,55,0.3);
  background: rgba(255,255,255,0.5); cursor: pointer; font-size: 0.9rem; transition: all .3s;
}
.rsvp-toggle__opt input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp-toggle__opt:has(input:checked) { border-color: var(--gold); background: rgba(212,175,55,0.14); color: var(--gold-deep); font-weight: 600; }
.rsvp-form__submit { width: 100%; justify-content: center; margin-top: 6px; }

.modal {
  position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center;
  background: rgba(20,16,10,0.55); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease);
  padding: 20px;
}
.modal.is-active { opacity: 1; visibility: visible; }
.modal__card {
  background: var(--ivory); border-radius: var(--radius-lg); padding: 46px 38px; text-align: center;
  max-width: 380px; box-shadow: var(--shadow-deep); border: 1px solid rgba(212,175,55,0.3);
  transform: scale(0.85); transition: transform .4s var(--ease);
}
.modal.is-active .modal__card { transform: scale(1); }
.modal__icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; }
.modal__card h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 10px; }
.modal__card p { color: var(--charcoal-70); font-size: 0.92rem; margin-bottom: 24px; }

/* =========================================================
   FOOTER
========================================================= */
.footer {
  position: relative; text-align: center; padding: 90px 24px 50px;
  background: linear-gradient(180deg, var(--charcoal), #1b1712);
  color: var(--champagne);
}
.footer__monogram { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-light); margin-bottom: 10px; }
.footer__monogram span { font-style: italic; opacity: 0.7; margin: 0 6px; }
.footer__thanks { max-width: 420px; margin: 0 auto 8px; font-size: 0.95rem; opacity: 0.85; }
.footer__names { font-family: var(--font-script); font-style: italic; font-size: 1.3rem; color: var(--gold-light); }
.footer__social { display: flex; justify-content: center; gap: 16px; margin: 20px 0; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(212,175,55,0.35);
  display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.footer__social a:hover { background: var(--gold); color: #2c2210; transform: translateY(-3px); }
.footer__credit { font-size: 0.8rem; opacity: 0.6; }
.footer__credit i { color: var(--ember); }
.footer__top {
  position: absolute; right: 30px; bottom: 40px;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(212,175,55,0.4);
  display: flex; align-items: center; justify-content: center; color: var(--gold-light);
  transition: all .3s;
}
.footer__top:hover { background: var(--gold); color: #2c2210; }

/* =========================================================
   RESPONSIVE FINE TUNING
========================================================= */
@media (max-width: 640px) {
  .rsvp-form__row { grid-template-columns: 1fr; }
  .music-player { right: 14px; bottom: 14px; }
  .footer__top { right: 16px; bottom: 20px; }
  .hero__actions { flex-direction: column; }
}

html, body { max-width: 100%; overflow-x: hidden; }
