/* ============================================
   INDIAN WEDDING INVITATION - STYLES
   Theme: Royal Maroon, Gold & Cream
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary-maroon: #8B0000;
    --primary-dark: #5C0000;
    --primary-light: #A52A2A;

    /* Accent Colors */
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --gold-dark: #B8860B;

    /* Neutral Colors */
    --cream: #FFF8E7;
    --cream-dark: #F5E6C8;
    --ivory: #FFFFF0;
    --white: #FFFFFF;

    /* Additional */
    --text-dark: #2C1810;
    --text-light: #5C4033;
    --shadow: rgba(139, 0, 0, 0.15);
    --hero-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1920&q=80');
    --gallery-image: url('https://images.unsplash.com/photo-1511285560982-1351cdeb9821?auto=format&fit=crop&w=2000&q=80');
    --events-image: url('images/Background/bg.jpg');

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-handwriting: 'Great Vibes', cursive;
    --font-body: 'Spectral', Georgia, serif;
    --font-devanagari: 'Noto Serif Devanagari', serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

html[lang="hi"],
html[lang="mr"] {
    --font-display: var(--font-devanagari);
    --font-handwriting: var(--font-devanagari);
    --font-body: var(--font-devanagari);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
    padding: 20px;
}

.preloader-mantra {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.preloader-mantra-line {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    letter-spacing: 1px;
    color: var(--cream);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(10px);
    animation: mantraReveal 1.2s ease forwards;
}

.preloader-mantra-line:nth-child(2) {
    animation-delay: 0.45s;
}

.preloader-mantra-line:nth-child(3) {
    animation-delay: 0.9s;
}

.preloader-vessel {
    width: 170px;
    height: 210px;
    margin: 14px auto 24px;
    border: 3px solid rgba(244, 208, 63, 0.9);
    border-radius: 42px 42px 26px 26px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 248, 231, 0.22), rgba(255, 248, 231, 0.06)),
        radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.25), transparent 46%);
    box-shadow:
        0 0 0 1px rgba(255, 248, 231, 0.28) inset,
        0 18px 40px rgba(0, 0, 0, 0.25);
}

.preloader-vessel::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    opacity: 0.95;
}

.preloader-liquid {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0%;
    background:
        linear-gradient(180deg, rgba(244, 208, 63, 0.9), rgba(212, 175, 55, 0.98)),
        repeating-linear-gradient(-45deg,
            rgba(255, 248, 231, 0.25) 0 8px,
            rgba(255, 248, 231, 0.05) 8px 16px);
    animation: fillVessel 2.35s ease-in-out infinite;
}

.preloader-liquid::before {
    content: "";
    position: absolute;
    top: -12px;
    left: -8%;
    width: 116%;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 241, 176, 0.65);
    animation: liquidWave 1.7s ease-in-out infinite;
}

.preloader-shine {
    position: absolute;
    top: 0;
    left: -30%;
    width: 40%;
    height: 100%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    animation: vesselShine 1.8s ease-in-out infinite;
}

.preloader-ornament {
    width: 170px;
    height: 16px;
    margin: 0 auto;
    background:
        radial-gradient(circle at 8px 8px, var(--gold-light) 2px, transparent 2.5px) 0 0/18px 16px,
        linear-gradient(90deg, transparent 0 6%, rgba(244, 208, 63, 0.95) 18% 82%, transparent 94%);
    opacity: 0.9;
}

.preloader-ornament.top {
    margin-bottom: 8px;
}

.preloader-ornament.bottom {
    margin-top: 12px;
}

.preloader-tagline {
    margin-top: 8px;
    font-family: var(--font-display);
    letter-spacing: 2px;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: rgba(255, 248, 231, 0.9);
}

.preloader-ganesh {
    width: 92px;
    height: auto;
    display: block;
    margin: 8px auto 10px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.32));
    animation: ganeshGlow 1.8s ease-in-out infinite;
}

.preloader-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.preloader-name {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    font-weight: 500;
}

.preloader-ampersand {
    font-family: var(--font-handwriting);
    font-size: 2.5rem;
    color: var(--cream);
}

.preloader-name,
.preloader-ampersand {
    white-space: pre;
}

.preloader-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px) scale(0.92);
    filter: blur(3px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        filter 0.35s ease;
}

.preloader-letter.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@keyframes mantraReveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillVessel {
    0% {
        height: 8%;
    }

    55% {
        height: 82%;
    }

    100% {
        height: 8%;
    }
}

@keyframes liquidWave {

    0%,
    100% {
        transform: translateX(0) scaleX(1);
    }

    50% {
        transform: translateX(10px) scaleX(0.92);
    }
}

@keyframes vesselShine {
    0% {
        left: -35%;
    }

    100% {
        left: 120%;
    }
}

@keyframes ganeshGlow {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.92;
    }

    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

/* ============================================
   FLOATING DECORATIONS
   ============================================ */
.floating-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.floating-flower {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
    animation: floatFlower 15s ease-in-out infinite;
}

.flower-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    color: var(--primary-maroon);
}

.flower-2 {
    top: 60%;
    right: 8%;
    animation-delay: -5s;
    color: var(--gold-dark);
}

.flower-3 {
    top: 40%;
    left: 3%;
    animation-delay: -10s;
    color: var(--primary-light);
}

@keyframes floatFlower {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-20px) rotate(10deg) scale(1.1);
    }

    50% {
        transform: translateY(-10px) rotate(-5deg) scale(1);
    }

    75% {
        transform: translateY(-25px) rotate(5deg) scale(1.15);
    }
}

.floating-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: sparkle 3s ease-in-out infinite;
}

.sparkle-1 {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 70%;
    left: 10%;
    animation-delay: -1.5s;
}

.sparkle-3 {
    top: 50%;
    right: 5%;
    animation-delay: -0.75s;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.language-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
}

.language-startup-hint {
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(92, 0, 0, 0.92);
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 0.88rem;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(92, 0, 0, 0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.language-startup-hint::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: 100%;
    border-width: 0 7px 8px 7px;
    border-style: solid;
    border-color: transparent transparent rgba(92, 0, 0, 0.92) transparent;
}

.language-switcher.show-startup-hint .language-startup-hint {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-trigger {
    min-width: 48px;
    height: 48px;
    border: none;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, min-width 0.25s ease, gap 0.25s ease;
}

.language-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.language-trigger-icon {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.language-trigger-label {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    transition: max-width 0.25s ease, opacity 0.2s ease;
}

.language-switcher.show-select-hint .language-trigger {
    min-width: 112px;
    gap: 8px;
}

.language-switcher.show-select-hint .language-trigger-label {
    max-width: 60px;
    opacity: 1;
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 248, 231, 0.96);
    box-shadow: 0 14px 32px rgba(92, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.language-switcher.open .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.language-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    background: transparent;
    color: var(--primary-maroon);
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.language-btn:hover {
    transform: translateY(-1px);
}

.language-btn.active {
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-dark));
    color: var(--cream);
}

/* ============================================
   MUSIC TOGGLE
   ============================================ */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.music-toggle.playing {
    animation: pulse 1.5s ease-in-out infinite;
}


@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(212, 175, 55, 0.8);
    }
}

.music-icon {
    font-size: 1.2rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.95), rgba(92, 0, 0, 0.9));
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    backdrop-filter: blur(10px);
}

.navbar.visible {
    transform: translateY(0);
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 18% 80%, rgba(244, 208, 63, 0.16), transparent 42%),
        radial-gradient(circle at 82% 20%, rgba(244, 208, 63, 0.14), transparent 40%);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.4) 100%),
        radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, rgba(92, 0, 0, 0.58) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-decoration {
    width: 200px;
    margin: 0 auto;
    color: var(--gold);
}

.hero-decoration.top {
    margin-bottom: 20px;
}

.hero-decoration.bottom {
    margin-top: 20px;
    transform: rotate(180deg);
}

.border-svg {
    width: 100%;
    height: 30px;
}

.hero-invite {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cream);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-wedding {
    font-family: var(--font-handwriting);
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.couple-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.name-box {
    text-align: center;
    padding: 20px 40px;
    background: rgba(255, 248, 231, 0.1);
    border: 2px solid var(--gold);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.name-box.groom {
    animation-delay: 0.7s;
}

.name-box.bride {
    animation-delay: 0.9s;
}

.name-text {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--cream);
    line-height: 1.2;
}

.name-text-animated .hero-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px) scale(0.88);
    animation: heroLetterReveal 0.62s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--letter-delay, 0s);
}

@keyframes heroLetterReveal {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.88);
        filter: blur(2px);
    }

    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.03);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.name-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gold);
    margin-top: 10px;
    letter-spacing: 1px;
}

.couple-ampersand {
    font-family: var(--font-handwriting);
    font-size: 3rem;
    color: var(--gold);
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.hero-tagline {
    font-family: var(--font-handwriting);
    font-size: 2.5rem;
    color: var(--cream);
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--gold);
    animation: bounce 2s ease infinite;
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards, bounce 2s ease 2.5s infinite;
}

.scroll-indicator span {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    margin: 10px auto 0;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ============================================
   COUNTDOWN SECTION
   ============================================ */
.countdown-section {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='2' fill='rgba(139,0,0,0.1)'/%3E%3C/svg%3E");
    background-size: 20px 20px;
}

.countdown-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--primary-maroon);
    padding: 25px 30px;
    border-radius: 15px;
    min-width: 120px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--gold);
}

.countdown-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--cream);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary-dark);
    font-weight: 700;
}

/* ============================================
   INVITATION SECTION
   ============================================ */
.invitation {
    background: var(--cream);
    padding: 100px 20px;
    position: relative;
}

.invitation-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    position: relative;
    box-shadow: 0 20px 60px var(--shadow);
    animation: revealCard 1s ease forwards;
    opacity: 0;
    transform: scale(0.95);
}

@keyframes revealCard {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.invitation-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--gold);
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--gold);
}

.corner-tl {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: -3px;
    right: -3px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: -3px;
    left: -3px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
}

.invitation-content {
    text-align: center;
}

.invitation-content>* {
    opacity: 0;
    transform: translateY(18px);
    animation: invitationFadeUp 0.9s ease forwards;
}

.invitation-content>*:nth-child(1) {
    animation-delay: 0.08s;
}

.invitation-content>*:nth-child(2) {
    animation-delay: 0.2s;
}

.invitation-content>*:nth-child(3) {
    animation-delay: 0.32s;
}

.invitation-content>*:nth-child(4) {
    animation-delay: 0.46s;
}

.invitation-content>*:nth-child(5) {
    animation-delay: 0.6s;
}

.invitation-content>*:nth-child(6) {
    animation-delay: 0.74s;
}

@keyframes invitationFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invocation-lines {
    margin-bottom: 18px;
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.7;
}

.invitation-symbol {
    margin-bottom: 18px;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--primary-maroon);
}

.invitation-symbol {
    width: 40px;
    height: auto;
}

.invitation-symbol img {
    width: 40px;
    height: auto;
}

.invitation-blessing {
    margin-bottom: 14px;
    font-family: var(--font-handwriting);
    font-size: 2rem;
    color: var(--primary-maroon);
}

.invitation-hosts {
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.15;
}

.invitation-ornament {
    color: var(--primary-maroon);
    margin-bottom: 30px;
}

.invitation-ornament.reverse {
    transform: rotate(180deg);
    margin-top: 30px;
    margin-bottom: 0;
}

.ornament-svg {
    width: 150px;
    height: 30px;
}

.invitation-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-maroon);
    margin-bottom: 25px;
    font-weight: 600;
}

.invitation-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 2;
    margin-bottom: 20px;
}

.invitation-text-secondary {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
}

.invitation-body {
    font-size: 1.32rem;
    line-height: 1.85;
    margin-bottom: 24px;
}

.invitation-relation {
    display: inline-block;
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-maroon);
}

.invitation-couple-block {
    margin-bottom: 26px;
}

.invitation-name-large {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(2.9rem, 7vw, 4.6rem);
    line-height: 1;
    color: var(--primary-dark);
    font-weight: 700;
}

.invitation-lineage {
    margin: 0 0 10px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.invitation-with {
    margin: 18px 0 12px;
    font-family: var(--font-handwriting);
    font-size: 2.1rem;
    color: var(--primary-maroon);
}

.couple-figure {
    margin-bottom: 0;
    color: rgba(92, 0, 0, 0.72);
}

.invitation-ornament.couple-figure {
    width: 64px;
    height: auto;
}

.invitation-ornament.couple-figure img {
    width: 64px;
    height: auto;
}

.ornament-couple {
    width: 112px;
    height: 112px;
}

/* ============================================
   EVENTS SECTION
   ============================================ */
.events {
    background-image: var(--events-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 28px 20px 84px;
    position: relative;
    overflow: hidden;
}

.events::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 248, 231, 0.74), rgba(245, 230, 200, 0.72)),
        radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.22), transparent 40%);
    pointer-events: none;
}

.events .container {
    position: relative;
    z-index: 1;
}

.events .section-title {
    color: var(--primary-maroon);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.event-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(139, 0, 0, 0.2);
}

.event-card.wedding {
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-dark));
}

.event-card.wedding .event-icon,
.event-card.wedding h3,
.event-card.wedding .event-date,
.event-card.wedding .event-time,
.event-card.wedding .event-venue,
.event-card.wedding .event-address {
    color: var(--cream);
}

.event-card.wedding .event-venue,
.event-card.wedding .event-address {
    color: var(--gold);
}

.event-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.event-card:hover .event-glow {
    opacity: 1;
}

.event-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.event-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary-maroon);
    margin-bottom: 20px;
    font-weight: 600;
}

.event-info {
    margin-bottom: 20px;
}

.event-date {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--primary-maroon);
    font-weight: 600;
    margin-bottom: 5px;
}

.event-time {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.event-venue {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold-dark);
    font-weight: 500;
}

.event-address {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-light);
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary-dark);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

.map-icon {
    width: 18px;
    height: 18px;
    fill: var(--primary-dark);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    background: var(--primary-maroon);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 90%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(212, 175, 55, 0.1) 0%, transparent 40%);
}

.gallery .section-title,
.gallery .section-subtitle {
    color: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 250px);
    gap: 15px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.7), rgba(92, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 3rem;
    color: var(--gold);
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Gallery Grid Layout */
.item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.item-3 {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}

.item-4 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.item-5 {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--gold);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: var(--cream);
}

/* ============================================
   GALLERY 3D ORBIT
   ============================================ */
.gallery {
    padding: 110px 20px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 228, 154, 0.38), transparent 28%),
        radial-gradient(circle at 82% 24%, rgba(186, 68, 39, 0.22), transparent 26%),
        radial-gradient(circle at 78% 82%, rgba(255, 204, 112, 0.22), transparent 24%),
        linear-gradient(135deg, rgba(49, 11, 8, 0.82), rgba(93, 32, 20, 0.6) 46%, rgba(24, 16, 12, 0.88)),
        var(--gallery-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(36, 7, 6, 0.08), rgba(28, 17, 14, 0.66)),
        radial-gradient(circle at 22% 16%, rgba(255, 225, 140, 0.18), transparent 40%),
        repeating-linear-gradient(115deg,
            rgba(255, 248, 231, 0.06) 0 2px,
            transparent 2px 18px);
    pointer-events: none;
}

.gallery::after {
    content: '';
    position: absolute;
    inset: -15%;
    background:
        conic-gradient(from 210deg at 20% 18%,
            rgba(255, 232, 165, 0.2) 0deg,
            rgba(255, 232, 165, 0) 24deg,
            rgba(255, 232, 165, 0.14) 44deg,
            rgba(255, 232, 165, 0) 70deg,
            rgba(255, 232, 165, 0.1) 98deg,
            rgba(255, 232, 165, 0) 126deg,
            rgba(255, 232, 165, 0.16) 154deg,
            rgba(255, 232, 165, 0) 186deg,
            rgba(255, 232, 165, 0.12) 214deg,
            rgba(255, 232, 165, 0) 250deg,
            rgba(255, 232, 165, 0.08) 290deg,
            rgba(255, 232, 165, 0) 360deg);
    mix-blend-mode: screen;
    opacity: 0.42;
    pointer-events: none;
}

.gallery .container {
    position: relative;
    z-index: 1;
}

.gallery-shell {
    position: relative;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid rgba(255, 244, 214, 0.22);
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(59, 21, 15, 0.58), rgba(24, 15, 12, 0.72)),
        rgba(255, 248, 231, 0.04);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gallery-shell::before,
.gallery-shell::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.gallery-shell::before {
    top: 18px;
    right: 22px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 230, 167, 0.2), transparent 70%);
}

.gallery-shell::after {
    left: 24px;
    bottom: 24px;
    width: 140px;
    height: 140px;
    background:
        radial-gradient(circle at center, rgba(212, 175, 55, 0.22) 0 16%, transparent 17%),
        radial-gradient(circle at center, transparent 0 53%, rgba(255, 248, 231, 0.14) 54% 55%, transparent 56%);
    opacity: 0.65;
}

.gallery-copy {
    max-width: 740px;
    margin: 0 auto 22px;
    text-align: center;
}

.gallery-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 234, 182, 0.34);
    background: rgba(255, 248, 231, 0.08);
    color: rgba(255, 241, 210, 0.94);
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.gallery-3d-stage {
    position: relative;
    min-height: 600px;
    perspective: 1400px;
}

.gallery-3d-scene {
    position: relative;
    width: 100%;
    height: 520px;
    transform-style: preserve-3d;
}

.gallery-3d-scene::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 38px;
    width: min(86vw, 780px);
    height: 110px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.04) 70%);
    filter: blur(8px);
}

@media (hover: hover) and (pointer: fine) {
    .gallery-3d-scene:hover .gallery-3d-orbit {
        animation-play-state: paused;
    }
}

.gallery-3d-orbit {
    --focus-rotate: 0deg;
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(88vw, 880px);
    height: 100%;
    transform-style: preserve-3d;
    animation: spinOrbit 24s linear infinite;
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-3d-stage.is-focused .gallery-3d-orbit {
    animation: none;
    transform: rotateX(-7deg) rotateY(var(--focus-rotate));
}

.gallery-3d-card {
    --step: calc(360deg / 8);
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(300px, 68vw);
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    transform-style: preserve-3d;
    transform:
        translate(-50%, -50%) rotateY(calc(var(--i) * var(--step))) translateZ(420px) rotateY(calc(var(--i) * var(--step) * -1));
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
    cursor: pointer;
}

.gallery-3d-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    filter: saturate(1.08) contrast(1.05);
    cursor: zoom-in;
}

.gallery-3d-card:hover {
    transform:
        translate(-50%, -50%) rotateY(calc(var(--i) * var(--step))) translateZ(460px) rotateY(calc(var(--i) * var(--step) * -1)) scale(1.03);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.52);
    border-color: rgba(255, 248, 231, 0.78);
}

.gallery-3d-stage.is-focused .gallery-3d-card {
    opacity: 0.28;
    pointer-events: none;
}

.gallery-3d-stage.is-focused .gallery-3d-card.is-active {
    opacity: 1;
    box-shadow: 0 32px 52px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 248, 231, 0.92);
    pointer-events: auto;
}

@keyframes spinOrbit {
    from {
        transform: rotateX(-7deg) rotateY(0deg);
    }

    to {
        transform: rotateX(-7deg) rotateY(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-3d-orbit {
        animation: none;
    }
}

.gallery-preview {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 7, 16, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 10050;
    padding: 20px;
}

.gallery-preview.active {
    opacity: 1;
    visibility: visible;
}

.gallery-preview-img {
    max-width: min(960px, 92vw);
    max-height: 88vh;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
    cursor: zoom-out;
}

.gallery-preview-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

/* ============================================
   GALLERY EDITORIAL REDESIGN
   ============================================ */
.gallery {
    padding: 110px 20px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 222, 148, 0.28), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(139, 0, 0, 0.18), transparent 22%),
        linear-gradient(135deg, #f8edd8 0%, #f2dfbb 46%, #ecd0ab 100%);
}

.gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(139, 0, 0, 0.05)),
        repeating-linear-gradient(90deg, rgba(139, 0, 0, 0.03) 0 1px, transparent 1px 120px);
    pointer-events: none;
}

.gallery .container {
    position: relative;
    z-index: 1;
}

.gallery-editorial {
    position: relative;
    padding: clamp(24px, 4vw, 42px);
    border-radius: 34px;
    border: 1px solid rgba(139, 0, 0, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(255, 247, 233, 0.86)),
        rgba(255, 255, 255, 0.7);
    box-shadow: 0 28px 70px rgba(92, 0, 0, 0.14);
}

.gallery-editorial::before {
    content: none;
}

.gallery-copy {
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: center;
}

.gallery-band-wrap {
    display: flex;
    justify-content: center;
    margin: 24px auto;
}

.gallery-band-gif {
    width: min(100%, 360px);
    height: auto;
    display: block;
    object-fit: contain;
}

.events .section-subtitle {
    margin-bottom: 8px;
}

.events .gallery-band-wrap {
    margin-bottom: 0;
}

.invitation > .container > .gallery-band-wrap {
    margin: 24px auto;
}

.gallery-copy .section-title {
    color: var(--primary-maroon);
    text-shadow: 0 10px 24px rgba(92, 0, 0, 0.08);
}

.gallery-copy .section-subtitle {
    color: var(--text-light);
}

.gallery-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(139, 0, 0, 0.08);
    border: 1px solid rgba(139, 0, 0, 0.12);
    color: var(--primary-maroon);
    font-family: var(--font-display);
    font-size: 0.84rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gallery-storyboard {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(280px, 0.9fr);
    gap: 22px;
    align-items: start;
}

.memory-grid {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.memory-stack {
    display: grid;
    gap: 22px;
}

.memory-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(139, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 42px rgba(92, 0, 0, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.memory-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(92, 0, 0, 0.18);
}

.memory-card-feature {
    grid-column: 1 / 3;
}

.memory-card-aside {
    display: grid;
    gap: 18px;
    align-self: start;
    grid-column: 3 / 4;
    grid-row: 1;
}

.memory-stack {
    grid-column: 1 / 2;
}

.memory-card-wide {
    grid-column: 1 / -1;
}

.memory-card-small {
    min-width: 0;
}

.memory-photo {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.memory-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
    cursor: zoom-in;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.memory-card:hover .memory-photo img {
    transform: scale(1.04);
    filter: saturate(1.04);
}

.memory-copy {
    padding: 14px 16px 16px;
}

.memory-copy h3 {
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    color: var(--primary-dark);
    line-height: 1.15;
}

.memory-copy p {
    color: var(--text-light);
    line-height: 1.7;
}

.memory-tag,
.memory-note-label {
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.memory-card-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(92, 0, 0, 0.94)),
        var(--primary-maroon);
}

.memory-card-note blockquote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.45;
    color: var(--cream);
}

.memory-card-note .memory-note-label {
    color: rgba(244, 208, 63, 0.9);
}

.gallery-preview-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.gallery-preview-strip span {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(212, 175, 55, 0.34);
    color: var(--primary-maroon);
    font-family: var(--font-display);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

/* ============================================
   GALLERY ATELIER REDESIGN
   ============================================ */
.gallery-atelier {
    display: grid;
    gap: 24px;
}

.gallery-lead-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    gap: 22px;
    align-items: center;
    padding: 22px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 236, 0.88)),
        rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(139, 0, 0, 0.08);
    box-shadow: 0 20px 44px rgba(92, 0, 0, 0.12);
}

.gallery-lead-copy {
    padding: 4px 6px;
}

.gallery-lead-kicker {
    margin-bottom: 10px;
    color: var(--gold-dark);
    font-family: var(--font-display);
    font-size: 0.86rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.gallery-lead-copy h3 {
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 0.98;
}

.gallery-lead-copy p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

.gallery-lead-photo,
.gallery-frame {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(139, 0, 0, 0.08);
    box-shadow: 0 16px 34px rgba(92, 0, 0, 0.1);
}

.gallery-lead-photo img,
.gallery-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.gallery-frame {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(92, 0, 0, 0.16);
}

.frame-portrait {
    grid-column: span 4;
}

.frame-landscape {
    grid-column: span 4;
}

.frame-square {
    grid-column: span 4;
}

.gallery-frame .memory-photo {
    background: transparent;
}

.venue-spotlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 18px auto 0;
    padding: 24px 28px;
    max-width: 980px;
    border-radius: 24px;
    border: 1px solid rgba(255, 233, 188, 0.24);
    background:
        linear-gradient(135deg, rgba(255, 248, 231, 0.14), rgba(255, 255, 255, 0.04)),
        rgba(57, 24, 17, 0.52);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.venue-copy {
    max-width: 640px;
}

.venue-label {
    margin-bottom: 8px;
    color: var(--gold-light);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.venue-spotlight h3 {
    margin-bottom: 8px;
    color: var(--cream);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 600;
}

.venue-meta {
    margin-bottom: 10px;
    color: rgba(255, 234, 204, 0.86);
    font-family: var(--font-body);
    font-size: 1.02rem;
}

.venue-note {
    color: rgba(255, 248, 231, 0.72);
    line-height: 1.7;
}

.venue-map-btn {
    flex-shrink: 0;
    padding: 14px 26px;
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.22);
}

/* ============================================
   STORY SECTION (TIMELINE)
   ============================================ */
.story {
    background: var(--cream);
    padding: 100px 20px;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--primary-maroon), var(--gold));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--cream);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
    z-index: 2;
}

.marker-dot {
    width: 15px;
    height: 15px;
    background: var(--primary-maroon);
    border-radius: 50%;
}

.timeline-content {
    max-width: 350px;
}

.timeline-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--shadow);
    border-left: 4px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-maroon);
    color: var(--cream);
    padding: 5px 15px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-maroon);
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   RSVP SECTION
   ============================================ */
.rsvp {
    background: linear-gradient(180deg, var(--cream-dark), var(--cream));
    padding: 100px 20px;
}

.rsvp-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    position: relative;
    box-shadow: 0 20px 60px var(--shadow);
}

.rsvp-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--gold);
    pointer-events: none;
}

.rsvp-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-maroon);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.rsvp-subtitle {
    font-family: var(--font-handwriting);
    font-size: 1.5rem;
    color: var(--gold-dark);
    text-align: center;
    margin-bottom: 40px;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--cream-dark);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s ease;
    background: var(--cream);
    padding: 0 5px;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 0.85rem;
    color: var(--gold-dark);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%238B0000' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.attendance {
    margin-top: 10px;
}

.attendance-label {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: center;
}

.attendance-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.attendance-option {
    cursor: pointer;
}

.attendance-option input {
    display: none;
}

.option-btn {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid var(--cream-dark);
    border-radius: 30px;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    background: var(--cream);
}

.attendance-option input:checked+.option-btn {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-dark));
    color: var(--cream);
    border: none;
    border-radius: 40px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.btn-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.rsvp-note {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 25px;
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-maroon));
    padding: 80px 20px 30px;
    color: var(--cream);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
    margin-bottom: 50px;
}

.footer-names h2 {
    font-family: var(--font-handwriting);
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.footer-names .ampersand {
    font-family: var(--font-handwriting);
    color: var(--cream);
}

.footer-tagline {
    font-family: var(--font-handwriting);
    font-size: 1.5rem;
    color: var(--cream);
}

.footer h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-contact p {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--cream);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: var(--gold);
    transition: fill 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    transform: translateY(-5px);
}

.social-link:hover svg {
    fill: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-bottom p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--cream);
    opacity: 0.8;
}

.footer-views {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.view-icon {
    width: 18px;
    height: 18px;
    fill: var(--gold);
    opacity: 0.95;
}

.designer-credit {
    margin-top: 8px;
}

.designer-credit a {
    color: var(--gold-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(244, 208, 63, 0.55);
}

.designer-credit a:hover {
    color: var(--cream);
    border-bottom-color: rgba(255, 248, 231, 0.85);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CARD REDESIGN OVERRIDES
   ============================================ */

.invitation-card,
.rsvp-card,
.timeline-card,
.event-card {
    border-radius: 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.invitation-card,
.rsvp-card {
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.38), rgba(255, 248, 231, 0.26)),
        radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.16), transparent 45%);
    border: 1px solid rgba(212, 175, 55, 0.45);
}

.timeline-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 248, 231, 0.22));
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-left: 4px solid var(--gold);
}

.events-grid {
    align-items: stretch;
}

.event-card {
    --event-accent: var(--gold);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(255, 248, 231, 0.22)),
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--event-accent) 22%, transparent), transparent 45%);
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow:
        0 14px 28px rgba(92, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
    isolation: isolate;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 4px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, transparent, var(--event-accent), transparent);
    opacity: 0.8;
}

.event-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.55) 52%, transparent 64%);
    transform: translateX(-130%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.event-card:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: color-mix(in srgb, var(--event-accent) 70%, #ffffff 30%);
    box-shadow:
        0 24px 44px rgba(92, 0, 0, 0.2),
        0 0 0 1px color-mix(in srgb, var(--event-accent) 42%, transparent);
}

.event-card:hover::after {
    transform: translateX(130%);
}

.event-details {
    position: relative;
    z-index: 2;
}

.event-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--event-accent) 14%, #ffffff 86%);
    border: 1px solid color-mix(in srgb, var(--event-accent) 36%, #ffffff 64%);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--event-accent) 28%, transparent);
}

.event-card h3 {
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.event-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--event-accent) 12%, #ffffff 88%);
    border: 1px solid color-mix(in srgb, var(--event-accent) 28%, #ffffff 72%);
    margin-bottom: 12px;
}

.event-time,
.event-venue,
.event-address {
    padding-left: 2px;
}

.map-btn {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(92, 0, 0, 0.18);
}

.event-card[data-event="engagement"] {
    --event-accent: #c77d3a;
}

.event-card[data-event="haldi"] {
    --event-accent: #d5a909;
}

.event-card[data-event="mehendi"] {
    --event-accent: #3f8b4e;
}

.event-card[data-event="sangeet"] {
    --event-accent: #8750c6;
}

.event-card[data-event="wedding"] {
    --event-accent: #b78c2e;
}

.event-card[data-event="reception"] {
    --event-accent: #4e7fab;
}

.event-card.wedding,
.event-card.reception {
    background:
        linear-gradient(160deg, rgba(92, 0, 0, 0.56), rgba(62, 0, 0, 0.5)),
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--event-accent) 30%, transparent), transparent 52%);
    border-color: color-mix(in srgb, var(--event-accent) 55%, #ffffff 45%);
}

.event-card.wedding .event-icon,
.event-card.reception .event-icon {
    background: color-mix(in srgb, var(--event-accent) 20%, rgba(255, 255, 255, 0.1));
    border-color: color-mix(in srgb, var(--event-accent) 60%, #ffffff 40%);
}

.event-card.wedding .event-date,
.event-card.reception .event-date {
    background: color-mix(in srgb, var(--event-accent) 24%, rgba(255, 255, 255, 0.06));
    border-color: color-mix(in srgb, var(--event-accent) 45%, rgba(255, 255, 255, 0.55));
    color: var(--cream);
}

.event-card.wedding .event-time,
.event-card.wedding .event-venue,
.event-card.wedding .event-address,
.event-card.reception .event-time,
.event-card.reception .event-venue,
.event-card.reception .event-address {
    color: rgba(255, 248, 231, 0.92);
}

.event-card.wedding h3,
.event-card.reception h3 {
    color: var(--cream);
}

.event-card.wedding .map-btn,
.event-card.reception .map-btn {
    background: linear-gradient(135deg, #f0d27e, #cd9b2c);
    color: #412506;
}

/* ============================================
   EVENTS TIMELINE CARD REDESIGN
   ============================================ */
.events .timeline {
    max-width: 920px;
    margin-top: 0;
    padding-top: 0;
}

.events .timeline-content {
    max-width: 390px;
}

.events .event-timeline-card {
    position: relative;
    border-radius: 20px;
    padding: 26px 24px 22px;
    border-left: 0;
    border: 1px solid rgba(212, 175, 55, 0.42);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(255, 248, 231, 0.36)),
        radial-gradient(circle at 95% 5%, rgba(212, 175, 55, 0.22), transparent 42%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 34px rgba(44, 24, 16, 0.2);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.events .timeline-item:hover .event-timeline-card {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px rgba(44, 24, 16, 0.28);
    border-color: rgba(244, 208, 63, 0.74);
}

.events .event-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(244, 208, 63, 0.95), rgba(212, 175, 55, 0.95));
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.42);
    overflow: hidden;
}

.events .event-icon-img {
    width: 64%;
    height: 64%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.events .event-timeline-card h3 {
    margin-top: 2px;
    margin-bottom: 10px;
    font-size: 1.7rem;
}

.events .event-meta {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--primary-maroon);
    font-weight: 700;
    margin: 0 0 6px;
}

.events-venue-summary {
    text-align: center;
    margin: 0 auto 36px;
}

.events-venue-label {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-maroon);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.events-venue-name {
    margin: 0 0 16px;
    font-size: 1rem;
    color: var(--text-dark);
}

.events-venue-map {
    display: inline-flex;
}

.events .event-place {
    font-size: 0.98rem;
    color: var(--text-light);
    margin: 0 0 16px;
}

.events .event-detail {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.events .event-detail strong {
    color: var(--primary-maroon);
    font-family: var(--font-display);
    font-weight: 700;
}

.events .timeline-item[data-event="engagement"] .event-icon-badge {
    background: linear-gradient(135deg, #f9ce73, #cf9333);
}

.events .timeline-item[data-event="haldi"] .event-icon-badge {
    background: linear-gradient(135deg, #ffe37a, #d9a900);
}

.events .timeline-item[data-event="mehendi"] .event-icon-badge {
    background: linear-gradient(135deg, #8fd18b, #3f8b4e);
}

.events .timeline-item[data-event="sangeet"] .event-icon-badge {
    background: linear-gradient(135deg, #bf95ff, #7f4ec1);
}

.events .timeline-item[data-event="wedding"] .event-icon-badge {
    background: linear-gradient(135deg, #ffd37c, #b98b2b);
}

.events .timeline-item[data-event="reception"] .event-icon-badge {
    background: linear-gradient(135deg, #9fc2ff, #4d79b3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .gallery-3d-stage {
        min-height: 520px;
        perspective: 1100px;
    }

    .gallery-3d-scene {
        height: 460px;
    }

    .gallery-3d-card {
        width: min(250px, 72vw);
        transform:
            translate(-50%, -50%) rotateY(calc(var(--i) * var(--step))) translateZ(330px) rotateY(calc(var(--i) * var(--step) * -1));
    }

    .gallery-3d-card img {
        height: 310px;
    }

    .gallery-3d-card:hover {
        transform:
            translate(-50%, -50%) rotateY(calc(var(--i) * var(--step))) translateZ(360px) rotateY(calc(var(--i) * var(--step) * -1)) scale(1.02);
    }
}

@media (max-width: 768px) {
    .invocation-lines {
        font-size: 1rem;
        line-height: 1.6;
    }

    .invitation-blessing {
        font-size: 1.7rem;
    }

    .invitation-hosts {
        font-size: 1.9rem;
    }

    .invitation-body {
        font-size: 1.12rem;
        line-height: 1.75;
    }

    .invitation-lineage {
        font-size: 0.95rem;
    }

    .gallery-lead-card {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .gallery-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .frame-portrait,
    .frame-landscape,
    .frame-square {
        grid-column: span 1;
    }

    .gallery-storyboard {
        grid-template-columns: 1fr;
    }

    .memory-grid {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .memory-card-feature,
    .memory-stack,
    .memory-card-aside,
    .memory-grid {
        grid-column: auto;
        grid-row: auto;
    }

    .memory-card-note blockquote {
        font-size: 1.2rem;
    }

    .hero-wedding {
        font-size: 3rem;
    }

    .name-text {
        font-size: 2.2rem;
    }

    .couple-names {
        gap: 15px;
    }

    .name-box {
        padding: 15px 25px;
    }

    .couple-ampersand {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.8rem;
    }

    .countdown-item {
        min-width: 80px;
        padding: 15px 20px;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-separator {
        font-size: 2rem;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-marker {
        left: 20px;
        width: 40px;
        height: 40px;
    }

    .timeline-content {
        max-width: 100%;
    }

    .invitation-card,
    .rsvp-card {
        padding: 30px 20px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        padding: 26px;
    }

    .event-icon {
        width: 66px;
        height: 66px;
        font-size: 2.4rem;
    }

    .events .timeline-content {
        max-width: 100%;
    }

    .events .event-timeline-card {
        padding: 22px 18px 18px;
    }

    .gallery-shell {
        padding: 22px 16px;
        border-radius: 24px;
    }

    .gallery-copy {
        margin-bottom: 12px;
    }

    .gallery-band-wrap {
        margin-bottom: 14px;
    }

    .gallery-band-gif {
        width: min(100%, 300px);
    }

    .venue-spotlight {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 18px;
        border-radius: 20px;
    }

    .venue-map-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .invitation-symbol {
        width: 42px;
    }

    .invitation-symbol img {
        width: 42px;
    }

    .invitation-ornament.couple-figure {
        width: 56px;
    }

    .invitation-ornament.couple-figure img {
        width: 56px;
    }

    .invocation-lines {
        font-size: 0.88rem;
    }

    .invitation-symbol {
        font-size: 2.5rem;
    }

    .invitation-blessing {
        font-size: 1.45rem;
    }

    .invitation-hosts {
        font-size: 1.55rem;
    }

    .invitation-body {
        font-size: 1rem;
    }

    .invitation-name-large {
        font-size: 2.5rem;
    }

    .invitation-with {
        font-size: 1.8rem;
    }

    .ornament-couple {
        width: 88px;
        height: 88px;
    }

    .gallery-lead-copy h3 {
        font-size: 2rem;
    }

    .gallery-mosaic {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-lead-photo,
    .gallery-frame {
        border-radius: 18px;
    }

    .gallery-editorial {
        padding: 18px;
        border-radius: 24px;
    }

    .gallery-editorial::before {
        inset: 10px;
        border-radius: 18px;
    }

    .gallery-copy {
        margin-bottom: 22px;
    }

    .gallery-kicker {
        letter-spacing: 0.12em;
    }

    .memory-copy {
        padding: 16px;
    }

    .memory-card {
        border-radius: 18px;
    }

    .memory-copy {
        padding: 12px 14px 14px;
    }

    .gallery-preview-strip {
        gap: 10px;
    }

    .gallery-preview-strip span {
        width: 100%;
        text-align: center;
    }

    .hero-wedding {
        font-size: 2.5rem;
    }

    .hero-invite {
        font-size: 0.9rem;
    }

    .name-text {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-kicker {
        letter-spacing: 0.14em;
        font-size: 0.74rem;
    }

    .gallery-band-gif {
        width: min(100%, 240px);
    }

    .venue-spotlight h3 {
        font-size: 1.45rem;
    }

    .venue-meta,
    .venue-note {
        font-size: 0.95rem;
    }

    .music-toggle {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .language-switcher {
        top: 14px;
        left: 14px;
    }

    .language-startup-hint {
        font-size: 0.78rem;
        padding: 7px 12px;
    }

    .language-trigger {
        min-width: 42px;
        height: 42px;
        padding: 0 12px;
    }

    .language-switcher.show-select-hint .language-trigger {
        min-width: 98px;
    }

    .language-btn {
        padding: 9px 10px;
        font-size: 0.78rem;
    }

    .music-text {
        display: none;
    }

    .preloader-vessel {
        width: 145px;
        height: 184px;
    }

    .preloader-mantra {
        gap: 6px;
        margin-bottom: 14px;
    }

    .preloader-mantra-line {
        font-size: 0.92rem;
        letter-spacing: 0.5px;
    }

    .preloader-ornament {
        width: 145px;
    }

    .preloader-name {
        font-size: 1.6rem;
    }

    .preloader-ampersand {
        font-size: 2rem;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 12px 15px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .countdown-separator {
        display: none;
    }

    .gallery {
        padding: 80px 14px;
    }

    .gallery-3d-stage {
        min-height: 430px;
        perspective: 900px;
    }

    .gallery-3d-scene {
        height: 390px;
    }

    .gallery-3d-scene::before {
        width: min(90vw, 360px);
        height: 70px;
        bottom: 28px;
    }

    .gallery-3d-orbit {
        position: absolute;
        width: 100%;
        height: 100%;
        animation: spinOrbit 20s linear infinite;
    }

    .gallery-3d-card {
        width: min(170px, 48vw);
        border-radius: 12px;
        transform:
            translate(-50%, -50%) rotateY(calc(var(--i) * var(--step))) translateZ(220px) rotateY(calc(var(--i) * var(--step) * -1));
    }

    .gallery-3d-card:hover {
        transform:
            translate(-50%, -50%) rotateY(calc(var(--i) * var(--step))) translateZ(240px) rotateY(calc(var(--i) * var(--step) * -1)) scale(1.02);
    }

    .gallery-3d-card img {
        height: 220px;
    }

    .gallery-3d-scene:hover .gallery-3d-orbit {
        animation-play-state: running;
    }

    .attendance-options {
        flex-direction: column;
    }

    .option-btn {
        width: 100%;
    }

    .event-date {
        font-size: 1rem;
    }
}
