/* =========================================================
   DONI & MARSYA
   Luxury Editorial Wedding Invitation
   Version 2.0
   ========================================================= */

/*==================================================
01. GOOGLE FONT
==================================================*/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

html, body{

    margin:0;

    padding:0;

}

/*==================================================
02. ROOT VARIABLES
==================================================*/
:root{

    --primary:#b68c5a;
    --primary-dark:#8e6a43;
    --primary-light:#d8b98d;

    --secondary:#2f3542;

    --white:#ffffff;
    --ivory:#fcfaf7;
    --cream:#f5f1ea;

    --text:#4d4d4d;
    --text-light:#777777;

    --border:#ebe4da;

    --radius-sm:12px;
    --radius:20px;
    --radius-lg:30px;

    --shadow-sm:0 8px 20px rgba(0,0,0,.05);
    --shadow-md:0 18px 45px rgba(0,0,0,.08);
    --shadow-lg:0 30px 70px rgba(0,0,0,.12);

    --transition:.35s ease;

    --container:1200px;

}


/*==================================================
03. RESET
==================================================*/

*,
*::before,
*::after{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    color:var(--text);

    background:var(--ivory);

    line-height:1.8;

    overflow-x:hidden;

    -webkit-font-smoothing:antialiased;

}

img{

    max-width:100%;

    display:block;

}

a{

    color:inherit;

    text-decoration:none;

    transition:var(--transition);

}

ul{

    list-style:none;

}

button{

    border:none;

    background:none;

    cursor:pointer;

}

input,
textarea,
select{

    font:inherit;

    outline:none;

}

section{

    position:relative;

    padding:120px 0;

}


/*==================================================
04. TYPOGRAPHY
==================================================*/

h1,
h2,
h3,
h4,
h5{

    font-family:'Cormorant Garamond',serif;

    color:#2d2d2d;

    line-height:1.2;

}

h1{

    font-size:72px;

}

h2{

    font-size:54px;

}

h3{

    font-size:36px;

}

p{

    color:var(--text-light);

    font-size:16px;

}


/*==================================================
05. LAYOUT
==================================================*/

.container{

    width:min(1200px,92%);
    margin:auto;

}

.section{

    position:relative;

}

.section-title{

    max-width:760px;

    margin:0 auto 70px;

    text-align:center;

}

.section-title small{

    display:inline-block;

    color:var(--primary);

    text-transform:uppercase;

    letter-spacing:4px;

    font-size:13px;

    font-weight:600;

}

.section-title h2{

    margin-top:15px;

    margin-bottom:18px;

}

.section-title p{

    margin:auto;

    max-width:650px;

}

.divider{

    width:90px;

    height:3px;

    background:var(--primary);

    border-radius:20px;

    margin:24px auto;

}


/*==================================================
06. GRID
==================================================*/

.grid-2{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:60px;

}

.grid-3{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:40px;

}

.flex{

    display:flex;

}

.flex-center{

    display:flex;

    align-items:center;

    justify-content:center;

}


/*==================================================
07. CARD
==================================================*/

.card{

    background:#fff;

    border-radius:24px;

    overflow:hidden;

    box-shadow:var(--shadow-md);

    transition:var(--transition);

}

.card:hover{

    transform:translateY(-8px);

}


/*==================================================
08. BUTTON
==================================================*/

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:16px 36px;

    border-radius:999px;

    background:var(--primary);

    color:#fff;

    font-weight:600;

    transition:var(--transition);

}

.btn:hover{

    background:var(--primary-dark);

    transform:translateY(-3px);

}

.btn-outline{

    background:transparent;

    border:2px solid var(--primary);

    color:var(--primary);

}

.btn-outline:hover{

    background:var(--primary);

    color:#fff;

}


/*==================================================
09. FORM
==================================================*/

.form-control{

    width:100%;

    padding:16px 20px;

    border:1px solid var(--border);

    border-radius:16px;

    background:#fff;

    transition:.3s;

}

.form-control:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 5px rgba(182,140,90,.12);

}

/*==================================================
10. HEADER
==================================================*/

.header{

    position:fixed;

    top:0;

    left:0;
    
    right:0;

    width:100%;

    z-index:999;

}

/* =================================================
   NAVBAR HIDDEN DI AWAL
   ================================================= */

.header .logo,
.header #menuToggle{

    opacity:0;

    visibility:hidden;

    transform:translateY(-12px);

    pointer-events:none;

    transition:
        opacity .5s ease,
        visibility .5s ease,
        transform .5s ease;

}


/* =================================================
   NAVBAR MUNCUL SETELAH SCROLL
   ================================================= */

.header.nav-show .logo,
.header.nav-show #menuToggle{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

    pointer-events:auto;

}

.header.scrolled{

    background:rgba(255,255,255,.65);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    border-bottom:1px solid rgba(0,0,0,.06);

    box-shadow:0 8px 30px rgba(0,0,0,.08);

}

.header.scrolled::before{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(255,255,255,.4);

    backdrop-filter:blur(25px);

    -webkit-backdrop-filter:blur(25px);

    z-index:-1;

}

.header .container{

    display:flex;

    align-items:center;

    justify-content:space-between;

}

.logo{
    font-family: "Playfair Display", serif;

    font-size:30px;

    color:var(--heading);

    font-weight:700;

}

#menu{

    display:flex;

    align-items:center;

    gap:40px;

    list-style:none;

    margin:0;

    padding:0;

}

#menu li{

    list-style:none;

}

#menu a{

    text-decoration:none;

    color:var(--heading);

    font-weight:500;

    transition:.3s;

}

#menu a:hover{

    color:var(--primary);

}

#menuToggle{

    display:none;

}

@media (max-width:768px){

    #menuToggle{
        display:flex;
        align-items:center;
        justify-content:center;
        font-size:28px;
        cursor:pointer;
    }
    
    .hero-content{

        padding:45px 25px;
    
    }
    
    .hero-title{
        font-family: 'Cormorant Garamond', serif;
        font-style: normal;
        font-size:60px;
    
    }
    
    .hero-title span{
    
        font-size:34px;
    
    }
    
    .hero-quote{
    
        font-size:17px;
    
        line-height:1.8;
    
    }
    
    .hero-divider{
    
        width:120px;
    
    }
    
    .gallery-pin{

        transform: translateY(90px);

    }
    
    .memory-card{

        width:260px;

        flex:0 0 260px;
        
        opacity:.35;

    }

    .polaroid{

        width:260px;

        padding:12px 12px 22px;

    }

    .polaroid img{

        height:320px;

    }

    .memory-caption h3{

        font-size:28px;

    }
    
    .gallery-track{

        gap:45px;

        padding-left:calc((100vw - 260px)/2);

        padding-right:calc((100vw - 260px)/2);

    }

}

.nav{

    display:flex;

    align-items:center;

    gap:38px;

}

.nav a{

    font-size:15px;

    font-weight:500;

    position:relative;

}

.nav a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-6px;

    width:0;

    height:2px;

    background:var(--primary);

    transition:.35s;

}

.nav a:hover::after{

    width:100%;

}

.menu-toggle{

    display:none;

    font-size:28px;

    cursor:pointer;

}

/*==================================================
11. HERO
==================================================*/

#hero{
    min-height:100vh;

    padding:90px 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    overflow:hidden;
    position:relative;
    color:#fff;

    background-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.20),
            rgba(0,0,0,.35),
            rgba(0,0,0,.55)
        ),
        
        url("../img/gunung.png");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

#hero::before{
    display:none;
}

#hero video,
#hero img{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

}

.hero-content{

    width:100%;
    max-width:820px;

    margin:auto;

    padding:70px 45px;

    border-radius:0px;

    background:rgba(255,255,255,.08);

    /*backdrop-filter:blur(10px);*/
    /*-webkit-backdrop-filter:blur(10px);*/
    
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);

    border:1px solid rgba(255,255,255,.15);

    box-shadow:
        0 20px 60px rgba(0,0,0,.18);

}

.hero-subtitle{

    display:inline-block;

    font-size:14px;

    letter-spacing:8px;

    text-transform:uppercase;

    color:rgba(255,255,255,.92);

}

.hero-title{

    font-size:98px;

    line-height:1.05;

    margin:35px 0;

    color:#fff;

    text-shadow:
        0 10px 30px rgba(0,0,0,.35);

}

.hero-title span{

    display:block;

    margin:14px 0;

    font-size:48px;

    color:#e9d8b4;

}

.hero-divider{

    width:180px;

    height:2px;

    margin:35px auto;

    background:
    linear-gradient(

    to right,

    transparent,

    var(--primary),

    transparent

    );

}

.hero-quote{

    max-width:620px;

    margin:40px auto 0;

    font-size:20px;

    line-height:2;

    font-style:italic;

    color:rgba(255,255,255,.94);

}

.hero-verse{

    display:block;

    margin-top:25px;

    letter-spacing:5px;

    font-size:14px;

    color:#ecd8ab;

}

/*==================================================
12. COUNTDOWN
==================================================*/

.countdown{

    margin-top:55px;

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.count-item{

    width:115px;

    height:115px;

    background:rgba(255,255,255,.15);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.2);

    border-radius:24px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

}

.count-item span{

    font-size:42px;

    font-weight:700;

    color:#fff;

}

.count-item small{

    margin-top:8px;

    text-transform:uppercase;

    letter-spacing:2px;

    font-size:12px;

}

.hero-button{

    margin-top:55px;

    display:inline-flex;

}

.scroll-down{

    margin-top:45px;

    display:inline-flex;

    width:54px;

    height:54px;

    border-radius:50%;

    justify-content:center;

    align-items:center;

    color:#fff;

    border:1px solid rgba(255,255,255,.3);

    transition:.35s;

    animation:bounce 2s infinite;

}

.scroll-down:hover{

    background:rgba(255,255,255,.15);

}

@keyframes floatDown{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(12px);

    }

    100%{

        transform:translateY(0);

    }

}

@keyframes bounce{

0%,100%{

transform:translateY(0);

}

50%{

transform:translateY(10px);

}

}

/*==================================================
13. BIBLE
==================================================*/

#bible{

    background:var(--white);

    position:relative;

}

.bible-card{

    max-width:900px;

    margin:auto;

    padding:70px 60px;

    background:linear-gradient(180deg,#ffffff,#fcfaf7);

    border-radius:32px;

    box-shadow:var(--shadow-lg);

    text-align:center;

    position:relative;

    overflow:hidden;

}

.bible-card::before{

    content:"";

    position:absolute;

    top:-120px;

    right:-120px;

    width:260px;

    height:260px;

    border-radius:50%;

    background:rgba(182,140,90,.06);

}

.bible-card::after{

    content:"";

    position:absolute;

    bottom:-120px;

    left:-120px;

    width:260px;

    height:260px;

    border-radius:50%;

    background:rgba(182,140,90,.05);

}

.bible-icon{

    width:90px;

    height:90px;

    margin:0 auto 35px;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:34px;

    box-shadow:0 20px 40px rgba(182,140,90,.25);

}

.bible-card blockquote{

    font-family:'Cormorant Garamond',serif;

    font-size:34px;

    line-height:1.5;

    color:#333;

    font-style:italic;

    margin-bottom:35px;

    position:relative;

}

.bible-card blockquote::before{

    content:"“";

    position:absolute;

    left:-25px;

    top:-25px;

    font-size:80px;

    color:rgba(182,140,90,.2);

}

.bible-card p{

    max-width:650px;

    margin:0 auto;

    font-size:17px;

}

.bible-reference{

    display:inline-block;

    margin-top:35px;

    padding:12px 28px;

    border-radius:999px;

    background:var(--cream);

    color:var(--primary);

    font-weight:600;

    letter-spacing:2px;

}

/*==================================================
14. COUPLE
==================================================*/

#couple{

    background:var(--ivory);

    overflow:hidden;

}

.couple-monogram{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:30px;

    margin-bottom:70px;

}

.couple-monogram span{

    width:120px;

    height:1px;

    background:var(--border);

}

.couple-circle{

    width:150px;

    height:150px;

    border-radius:50%;

    background:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-direction:column;

    box-shadow:var(--shadow-md);

    border:1px solid var(--border);

}

.couple-circle h2{

    font-size:44px;

    color:var(--primary);

    line-height:1;

}

.couple-circle small{

    margin:6px 0;

    color:var(--primary);

    letter-spacing:3px;

}

.couple-list{

    display:grid;
    grid-template-columns:repeat(2,minmax(320px,1fr));

    gap:60px;

    align-items:start;

}

@media (max-width:992px){

    .couple-list{

        grid-template-columns:1fr;

        gap:35px;

    }

    .couple-center{

        position:relative;

        left:auto;
        top:auto;

        transform:none;

        display:flex;

        justify-content:center;

        margin:10px auto;

        order:2;

    }
    
    .couple-mini-monogram{

        width:70px;

        height:70px;

    }

    .couple-mini-monogram span{

        font-size:22px;

    }

}

/*=========================
  CENTER MONOGRAM
=========================*/

.couple-center{

    display:flex;

    justify-content:center;

    align-items:center;

}

.couple-mini-monogram{

    width:90px;

    height:90px;

    background:#fff;

    border-radius:50%;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    border:1px solid rgba(182,140,90,.2);

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:.35s;

}

.couple-mini-monogram:hover{

    transform:scale(1.06);

}

.couple-mini-monogram span{

    font-family:var(--heading-font);

    font-size:28px;

    color:var(--primary);

    line-height:1;

}

.couple-mini-monogram small{

    color:var(--primary);

    letter-spacing:2px;

    margin:3px 0;

}

.c-card{

    background:#fff;

    border-radius:30px;

    overflow:hidden;

    box-shadow:var(--shadow-md);

    transition:var(--transition);

}

.c-card:hover{

    transform:translateY(-12px);

    box-shadow:var(--shadow-lg);

}

.c-card-image{

    overflow:hidden;

    position:relative;

}

.c-card-image img{

    width:100%;

    height:580px;

    object-fit:cover;

    transition:1s;

}

.c-card:hover .c-card-image img{

    transform:scale(1.08);

}

.c-card-body{

    padding:45px;

    text-align:center;

}

.c-card-body h3{

    font-size:48px;

    margin-bottom:15px;

}

.couple-role{

    color:var(--primary);

    font-weight:600;

    margin-bottom:22px;

    letter-spacing:2px;

    text-transform:uppercase;

    font-size:13px;

}

.c-card-body p{

    margin-bottom:30px;

}

.c-social{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:12px 22px;

    margin:auto;

    border-radius:50px;

    background:var(--primary);

    color:#fff;

    text-decoration:none;

    font-size:15px;

    font-weight:500;

    transition:.35s;

}

.c-social i{

    font-size:20px;

}

.c-social:hover{

    background:var(--primary-dark);

    transform:translateY(-4px);

}

/*==================================================
15. EVENT
==================================================*/

#event{

    background:var(--white);
    position:relative;

}

.event-wrapper{

    max-width:1100px;
    margin:auto;

}

.timeline{

    position:relative;
    padding-left:90px;

}

.timeline::before{

    content:"";
    position:absolute;
    left:30px;
    top:0;
    bottom:0;
    width:2px;
    background:var(--border);

}

.timeline-item{

    position:relative;
    margin-bottom:70px;

}

.timeline-item:last-child{

    margin-bottom:0;

}

.timeline-dot{

    position:absolute;
    left:-62px;
    top:35px;

    width:18px;
    height:18px;

    border-radius:50%;
    background:var(--primary);

    border:5px solid var(--ivory);

    box-shadow:0 0 0 4px rgba(182,140,90,.15);

}

.event-card{

    background:#fff;

    border-radius:30px;

    padding:42px;

    box-shadow:var(--shadow-md);

    transition:var(--transition);

    border:1px solid rgba(0,0,0,.04);

}

.event-card:hover{

    transform:translateY(-10px);

    box-shadow:var(--shadow-lg);

}

.event-card h3{

    display:flex;
    align-items:center;
    gap:14px;

    margin-bottom:35px;

}

.event-card h3 i{

    color:var(--primary);

    font-size:28px;

}

.event-meta{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:18px;

    margin-bottom:35px;

}

.event-meta div{

    background:var(--cream);

    border-radius:18px;

    padding:18px 15px;

    text-align:center;

}

.event-meta strong{

    display:block;

    font-size:13px;

    text-transform:uppercase;

    color:var(--primary);

    margin-bottom:8px;

}

.event-meta span{

    font-weight:600;

    color:#333;

}

.event-location{

    background:#fafafa;

    padding:26px;

    border-radius:18px;

    font-style:normal;

    margin-bottom:28px;

    border-left:5px solid var(--primary);

}

.map-btn{

    display:inline-flex;

    align-items:center;

    gap:10px;

}

/*==================================================
16. GALLERY
==================================================*/

#gallery{
    
    padding:0;
    
    background:var(--ivory);

}

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:24px;

}

.c-gallery-item{

    position:relative;

    overflow:hidden;

    border-radius:26px;

    display:block;

    box-shadow:var(--shadow-sm);

}

.c-gallery-item img{

    width:100%;

    height:420px;

    object-fit:cover;

    transition:1s;

}

.c-gallery-item::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.45),
        rgba(0,0,0,0)
    );

    opacity:0;

    transition:.4s;

    z-index:2;

}

.c-gallery-item::after{

    content:"+";

    position:absolute;

    left:50%;

    top:50%;

    transform:translate(-50%,-50%) scale(.7);

    width:70px;

    height:70px;

    border-radius:50%;

    background:rgba(255,255,255,.9);

    color:var(--primary);

    font-size:40px;

    display:flex;

    align-items:center;

    justify-content:center;

    opacity:0;

    transition:.4s;

    z-index:3;

}

.c-gallery-item:hover img{

    transform:scale(1.12);

}

.c-gallery-item:hover::before{

    opacity:1;

}

.c-gallery-item:hover::after{

    opacity:1;

    transform:translate(-50%,-50%) scale(1);

}

.gallery-story{
    
    position:relative;

    height:400vh;

    background:var(--ivory);

}

.gallery-story::before{

    content:"";

    position:absolute;

    left:0;

    right:0;

    top:50%;

    height:2px;

    background:

    linear-gradient(

    to right,

    transparent,

    rgba(255,255,255,.15),

    transparent

    );

}

.gallery-pin{
    
    position:sticky;

    top:0;

    height:100vh;

    overflow:hidden;
    
}

.gallery-track{

    position:absolute;

    top:70%;

    left:0;

    display:flex;

    align-items:center;

    gap:90px;

    transform:translateY(-50%);

    will-change:transform;

}

.gallery-header{

    position:absolute;

    top:70px;

    left:50%;

    transform:translateX(-50%);

    width:100%;

    z-index:50;

}

.memory-card{

    width:360px;

    flex-shrink:0;

    position:relative;

    opacity:.55;

    filter:blur(1px);

    transform:scale(.90);

    transition:
        transform .6s ease,
        opacity .6s ease,
        filter .6s ease;

}

.memory-card.active{

    opacity:1;

    filter:none;

    transform:scale(1.12);

    z-index:50;

}

.memory-card.active .polaroid{

    transform:rotate(0deg);
    /*transform:none;*/

    box-shadow:
        0 40px 90px rgba(0,0,0,.28);

}

.polaroid{

    position:relative;

    width:360px;

    background:#fff;

    padding:18px 18px 32px;

    border-radius:4px;

    box-shadow:

        0 20px 45px rgba(0,0,0,.15);

    transition:.6s;

}

.polaroid img{

    width:100%;

    height:420px;

    object-fit:cover;
    
    transition:.7s;

}

.tape{

    position:absolute;

    top:-12px;

    left:50%;

    transform:translateX(-50%) rotate(-3deg);

    width:90px;

    height:24px;

    background:rgba(255,245,180,.7);

    backdrop-filter:blur(3px);

    box-shadow:

    0 2px 6px rgba(0,0,0,.15);

}

.memory-caption{

    margin-top:18px;

    text-align:center;

    opacity:1;

    transform:translateY(18px);

    transition:.4s;

}

.memory-card.active .memory-caption{

    transform:none;
    
    opacity:1;

}

.memory-card:not(.active) .memory-caption{

    opacity:.35;

}

.memory-caption h3{

    font-size:38px;

    font-family:"Caveat",cursive;

    color:#333;

}

.memory-caption span{

    color:#999;

    letter-spacing:3px;

    font-size:13px;

}

.memory-card:nth-child(1) .polaroid{

    transform:rotate(-8deg);

}

.memory-card:nth-child(2) .polaroid{

    transform:rotate(5deg);

}

.memory-card:nth-child(3) .polaroid{

    transform:rotate(-4deg);

}

.memory-card:nth-child(4) .polaroid{

    transform:rotate(7deg);

}

.memory-card:nth-child(5) .polaroid{

    transform:rotate(-5deg);

}

.memory-card:nth-child(6) .polaroid{

    transform:rotate(4deg);

}

/*==================================================
17. SECTION ANIMATION
==================================================*/

.fade-up{

    opacity:0;

    transform:translateY(40px);

    transition:all .8s ease;

}

.fade-up.show{

    opacity:1;

    transform:none;

}

.fade{

    opacity:0;

    transition:all .8s ease;

}

.fade.show{

    opacity:1;

}

/*==================================================
18. VENUE
==================================================*/

#venue{

    background:var(--white);
    position:relative;

}

/*.venue-grid{*/

/*    display:grid;*/
/*    grid-template-columns:repeat(2,1fr);*/
/*    gap:45px;*/

/*}*/

.venue-grid{

    max-width:1100px;

    margin:0 auto;

}

.venue-card{

    background:#fff;

    border-radius:32px;

    overflow:hidden;

    box-shadow:var(--shadow-md);

    transition:var(--transition);

    border:1px solid rgba(0,0,0,.04);

}

.venue-card:hover{

    transform:translateY(-10px);

    box-shadow:var(--shadow-lg);

}

.venue-image{

    position:relative;

    overflow:hidden;

}

/*.venue-image img{*/

/*    width:100%;*/

/*    height:320px;*/

/*    object-fit:cover;*/

/*    transition:1s;*/

/*}*/

.venue-image img{

    width:100%;

    height:450px;

    object-fit:cover;
    
    transition:1s;

}

.venue-card:hover .venue-image img{

    transform:scale(1.08);

}

/*.venue-body{*/

/*    padding:40px;*/

/*}*/

.venue-body{

    padding:50px;

}

.venue-body h3{

    margin-bottom:18px;

}

.venue-address{

    font-style:normal;

    line-height:1.9;

    color:var(--text-light);

    margin-bottom:28px;

}

/*.venue-action{*/

/*    display:flex;*/
/*    gap:16px;*/
/*    flex-wrap:wrap;*/

/*}*/

.venue-action{

    display:flex;

    justify-content:center;

    gap:16px;

    flex-wrap:wrap;

}

/*==================================================
19. GIFT
==================================================*/

#gift{

    background:var(--cream);

}

.gift-wrapper{

    max-width:900px;
    margin:auto;

}

.gift-card{

    background:#fff;

    border-radius:30px;

    padding:45px;

    text-align:center;

    box-shadow:var(--shadow-md);

}

.bank-logo{

    height:70px;

    margin:auto auto 25px;

    object-fit:contain;

}

.bank-name{

    font-size:32px;

    margin-bottom:8px;

}

.bank-number{

    font-size:30px;

    letter-spacing:3px;

    font-weight:700;

    color:var(--primary);

    margin:20px 0;

}

.bank-owner{

    color:var(--text-light);

    margin-bottom:30px;

}

.copy-btn{

    margin-top:20px;

}

.qris{

    width:280px;

    margin:40px auto;

    padding:18px;

    border-radius:22px;

    background:#fff;

    box-shadow:var(--shadow-sm);

}

.qris img{

    width:100%;

    border-radius:14px;

}

/*==================================================
20. RSVP
==================================================*/

#wishes{

    background:var(--ivory);

}

.rsvp-box{

    max-width:900px;

    margin:auto;

    background:#fff;

    border-radius:30px;

    padding:55px;

    box-shadow:var(--shadow-lg);

}

.form-group{

    margin-bottom:25px;

}

textarea.form-control{

    resize:vertical;

    min-height:170px;

}

.btn-submit{

    width:100%;

    justify-content:center;

}

.result-message{

    margin-top:25px;

    padding:18px;

    border-radius:16px;

    display:none;

}

.result-message.success{

    display:block;

    background:#eaf8ef;

    color:#2c7a43;

}

.result-message.error{

    display:block;

    background:#fdeeee;

    color:#b42318;

}

.wishes-list{

    margin-top:70px;

}

.wish-card{

    background:#fff;

    border-radius:24px;

    padding:30px;

    margin-bottom:25px;

    box-shadow:var(--shadow-sm);

}

.wish-name{

    font-weight:600;

    color:#222;

    margin-bottom:10px;

}

.wish-date{

    font-size:13px;

    color:#999;

    margin-bottom:15px;

}

/*==================================================
21. FOOTER
==================================================*/

.footer{
    font-family: "Playfair Display", serif;

    background:#222;

    color:rgba(255,255,255,.85);

    text-align:center;

    padding:90px 0 40px;

}

.footer h2{

    color:#fff;

    font-size:58px;

    margin-bottom:15px;

}

.footer p{

    color:rgba(255,255,255,.7);

}

.footer-social{

    display:flex;

    justify-content:center;

    gap:18px;

    margin:35px 0;

}

.footer-social a{

    width:52px;

    height:52px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    transition:.35s;

}

.footer-social a:hover{

    background:var(--primary);

    transform:translateY(-4px);

}

.copyright{

    margin-top:40px;

    font-size:14px;

    color:rgba(255,255,255,.55);

}

/*==================================================
22. BACK TO TOP
==================================================*/

.back-to-top{

    position:fixed;

    right:30px;

    bottom:30px;

    width:55px;

    height:55px;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    box-shadow:var(--shadow-md);

    z-index:999;

    opacity:0;

    visibility:hidden;

    transition:.35s;

}

.back-to-top.active{

    opacity:1;

    visibility:visible;

}

/*==================================================
23. MUSIC BUTTON
==================================================*/

.music-button{

    position:fixed;

    right:30px;

    bottom:30px;

    width:60px;

    height:60px;

    border-radius:50%;

    background:#fff;

    color:var(--primary);

    display:flex;

    align-items:center;

    justify-content:center;

    box-shadow:var(--shadow-md);

    z-index:999;

    transition:.35s;

}

.music-button:hover{

    transform:rotate(180deg);

}

.music-button.playing i{

    animation:spinMusic 4s linear infinite;

}

@keyframes spinMusic{

    from{

        transform:rotate(0);

    }

    to{

        transform:rotate(360deg);

    }

}

/*==================================================
24. CUSTOM SCROLLBAR
==================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:var(--cream);

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-dark);

}

/*==================================================
25. TEXT SELECTION
==================================================*/

::selection{

    background:var(--primary);

    color:#fff;

}

::-moz-selection{

    background:var(--primary);

    color:#fff;

}

/*==================================================
26. SCROLL PROGRESS
==================================================*/

#progressContainer{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:4px;

    z-index:9999;

    background:transparent;

}

#progressBar{

    width:0;

    height:100%;

    background:linear-gradient(
        90deg,
        var(--primary),
        var(--primary-light)
    );

}

/*==================================================
27. LOADER
==================================================*/

#loader{

    position:fixed;

    inset:0;

    background:#fff;

    z-index:99999;

    display:flex;

    align-items:center;

    justify-content:center;

    transition:.5s;

}

#loader.hide{

    opacity:0;

    visibility:hidden;

}

.loader-circle{

    width:70px;

    height:70px;

    border-radius:50%;

    border:5px solid var(--cream);

    border-top-color:var(--primary);

    animation:loaderSpin 1s linear infinite;

}

.loader-logo{

    font-family:var(--font-script);

    font-size:76px;

    color:var(--primary);

    margin-bottom:15px;

    line-height:1;

    animation:fadeUp .8s ease;

}

.loader-text{

    font-family:var(--font-heading);

    font-size:34px;

    color:var(--heading);

    letter-spacing:2px;

    margin-bottom:10px;

}

.loader-subtitle{

    color:var(--text-light);

    letter-spacing:5px;

    text-transform:uppercase;

    font-size:13px;

}

.loader-line{

    width:220px;

    height:2px;

    background:#eee;

    margin:40px auto 0;

    overflow:hidden;

    border-radius:10px;

}

.loader-line span{

    display:block;

    width:40%;

    height:100%;

    background:linear-gradient(
        90deg,
        transparent,
        var(--primary),
        transparent
    );

    animation:loaderLine 1.5s linear infinite;

}

@keyframes loaderLine{

    from{

        transform:translateX(-220px);

    }

    to{

        transform:translateX(220px);

    }

}

@keyframes loaderSpin{

    to{

        transform:rotate(360deg);

    }

}

/* ==========================================
   COVER
========================================== */

#cover {
    position: fixed;
    inset: 0;
    z-index: 9999;

    min-height: 100vh;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #1a1a1a;
}

#cover::before {
    content: "";

    position: absolute;

    top: -40px;
    right: -40px;
    bottom: -40px;
    left: -40px;

    z-index: 0;

    background:
        url('../img/gunung.png')
        center center / cover
        no-repeat;

    filter: blur(25px);

    transform: scale(1.08);
}


/* ==========================================
   OVERLAY
========================================== */

.cover-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(15, 15, 15, 0.35) 0%,
            rgba(20, 20, 20, 0.55) 50%,
            rgba(10, 10, 10, 0.72) 100%
        );
}


/* ==========================================
   GLOW
========================================== */

.cover-glow {
    position: absolute;
    z-index: 2;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    filter: blur(100px);

    pointer-events: none;
}

.glow-1 {
    top: -150px;
    left: -150px;

    background: rgba(183, 139, 83, 0.12);
}

.glow-2 {
    right: -150px;
    bottom: -150px;

    background: rgba(183, 139, 83, 0.10);
}


/* ==========================================
   CONTENT
========================================== */

.cover-content {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 480px;

    padding: 50px 32px;

    text-align: center;
    color: #ffffff;
}


/* ==========================================
   INTRO
========================================== */

.cover-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-bottom: 24px;
}

.cover-intro span {
    width: 28px;
    height: 1px;

    background: rgba(255, 255, 255, 0.35);
}

.cover-intro p {
    margin: 0;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 6px;

    color: rgba(255, 255, 255, 0.78);
}


/* ==========================================
   NAMA PASANGAN
========================================== */

.couple-name {
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    line-height: 0.95;
}

.couple-name strong {
    font-family: "Playfair Display", serif;

    font-size: clamp(64px, 14vw, 92px);
    font-weight: 600;

    letter-spacing: -2px;

    color: #ffffff;

    text-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);
}

.ampersand {
    margin: 10px 0;

    font-family: "Playfair Display", serif;

    font-size: 42px;
    font-weight: 400;
    font-style: italic;

    color: #c59b63;
}


/* ==========================================
   DIVIDER
========================================== */

.cover-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 35px auto 30px;
}

.cover-divider span {
    width: 55px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(197, 155, 99, 0.9)
        );
}

.cover-divider span:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(197, 155, 99, 0.9),
            transparent
        );
}

.cover-divider i {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #c59b63;
}


/* ==========================================
   DATE
========================================== */

.cover-date {
    margin: 0 0 48px;

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 4px;

    color: rgba(255, 255, 255, 0.78);
}


/* ==========================================
   GUEST BOX
========================================== */

.guest-box {
    width: 100%;
    max-width: 320px;

    margin: 0 auto 32px;

    padding: 22px 25px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.025)
        );

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 20px 50px rgba(0, 0, 0, 0.18);
}

.guest-label {
    margin-bottom: 8px;

    font-size: 11px;

    letter-spacing: 1px;

    color: rgba(255, 255, 255, 0.65);
}

.guest-name {
    font-family: "Playfair Display", serif;

    font-size: clamp(20px, 5vw, 26px);
    font-weight: 500;

    line-height: 1.35;

    color: #ffffff;
}


/* ==========================================
   BUTTON
========================================== */

.open-invitation {
    border: none;

    min-width: 225px;

    padding: 16px 28px;

    border-radius: 0px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    color: #ffffff;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #b98b54,
            #d2ad79
        );

    box-shadow:
        0 12px 30px rgba(185, 139, 84, 0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.open-invitation:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 40px rgba(185, 139, 84, 0.35);
}

.open-invitation:active {
    transform: scale(0.97);
}

.button-icon {
    font-size: 15px;
}

/*==================================================
29. NAV ACTIVE
==================================================*/
#navbar{

    width:100%;

    height:75px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 30px;

}

#navbar.scrolled{

    background:rgba(255,255,255,.65);

    backdrop-filter:blur(20px);

    -webkit-backdrop-filter:blur(20px);

    border-bottom:1px solid rgba(255,255,255,.4);

    box-shadow:0 10px 35px rgba(0,0,0,.06);

}

.nav a.active{

    color:var(--primary);

}

.nav a.active::after{

    width:100%;

}

#musicButton{

    transition:.4s;

}

#musicButton.playing{

    background:var(--primary);

    color:#fff;

}

/*==================================================
31. ORNAMENT
==================================================*/

.ornament{

    position:absolute;

    opacity:.08;

    pointer-events:none;

    animation:float 12s ease-in-out infinite;

}

@keyframes float{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-25px);

    }

    100%{

        transform:translateY(0);

    }

}

/*==================================================
32. GLOBAL ANIMATION
==================================================*/

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(50px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

@keyframes zoomIn{

    from{

        opacity:0;

        transform:scale(.9);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}

.zoom-in{

    animation:zoomIn .8s ease both;

}

.fade-up{

    animation:fadeUp .8s ease both;

}
/* =========================================================
   MODERN EDITORIAL COUPLE — v3
   Scroll-driven blur -> clear reveal
   ========================================================= */

#couple.couple-editorial {
    --editorial-bg: #aaa8a8;
    --editorial-ink: #f8f7f4;
    --editorial-muted: rgba(248,247,244,.72);
    --editorial-accent: #d8c1a0;
    position: relative;
    min-height: 100vh;
    padding: clamp(70px, 9vw, 120px) clamp(18px, 4vw, 64px) 90px;
    overflow: clip;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,.12), transparent 35%),
        var(--editorial-bg);
}

.couple-editorial-head {
    width: min(1080px, 100%);
    margin: 0 auto clamp(35px, 5vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--editorial-ink);
    text-align: center;
}

.couple-editorial-head .couple-kicker,
.couple-editorial-head p {
    margin: 0;
    color: var(--editorial-muted);
    font-family: Poppins, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    white-space: nowrap;
}

.couple-editorial-head p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-style: italic;
    letter-spacing: .04em;
    text-transform: none;
}

.couple-line {
    width: 44px;
    height: 1px;
    flex: 0 0 auto;
    background: rgba(255,255,255,.35);
}

.couple-editorial-grid {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 38px);
}

.couple-editorial-card {
    --couple-progress: 0;
    position: relative;
    min-height: min(78vh, 820px);
    isolation: isolate;
    overflow: hidden;
    background: #777;
    box-shadow: 0 25px 70px rgba(25,25,25,.16);
    transform: translateY(calc((1 - var(--couple-progress)) * 20px));
    transition: box-shadow .5s ease;
}

.couple-editorial-card:hover {
    box-shadow: 0 30px 80px rgba(25,25,25,.22);
}

.couple-editorial-media,
.couple-editorial-media img,
.couple-editorial-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.couple-editorial-media {
    z-index: -3;
    overflow: hidden;
}

.couple-editorial-media img {
    filter:
        blur(calc((1 - var(--couple-progress)) * 10px))
        grayscale(calc((1 - var(--couple-progress)) * 12%));

    transform:
        scale(calc(1.045 - (var(--couple-progress) * .045)));

    opacity:
        calc(.78 + (var(--couple-progress) * .22));

    transition:
        filter .08s linear,
        transform .08s linear,
        opacity .08s linear;
}

.couple-editorial-shade {
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(10,10,10,.42) 0%, rgba(10,10,10,.04) 28%, rgba(10,10,10,.08) 48%, rgba(10,10,10,.76) 100%),
        linear-gradient(90deg, rgba(0,0,0,.14), transparent 55%);
    pointer-events: none;
}

.couple-editorial-top {
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,.88);
    font: 500 10px/1 Poppins, sans-serif;
    letter-spacing: .28em;
    text-transform: uppercase;
    filter: blur(calc((1 - var(--couple-progress)) * 9px));
    opacity: calc(.55 + (var(--couple-progress) * .45));
    transition: filter .1s linear, opacity .1s linear;
}

.couple-index {
    letter-spacing: .12em;
    opacity: .65;
}

.couple-editorial-content {
    position: absolute;
    left: clamp(25px, 4vw, 46px);
    right: clamp(25px, 4vw, 46px);
    bottom: clamp(28px, 4vw, 46px);
    color: #fff;
    text-align: left;
    filter: blur(calc((1 - var(--couple-progress)) * 9px));
    opacity: calc(.45 + (var(--couple-progress) * .55));
    transform: translateY(calc((1 - var(--couple-progress)) * 20px));
    transition: filter .1s linear, opacity .1s linear, transform .1s linear;
}

.couple-overline {
    display: block;
    margin-bottom: 7px;
    color: rgba(255,255,255,.78);
    font: italic 400 clamp(15px, 1.8vw, 18px)/1.2 'Cormorant Garamond', serif;
    letter-spacing: .04em;
}

.couple-editorial-content h2 {
    margin: 0;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 500;
    line-height: .88;
    letter-spacing: -.025em;
    text-wrap: balance;
    text-shadow: 0 10px 35px rgba(0,0,0,.24);
}

.couple-role-modern {
    display: block;
    margin-top: 15px;
    color: var(--editorial-accent);
    font: 500 9px/1.2 Poppins, sans-serif;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.couple-family {
    margin-top: 19px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
    max-width: 440px;
    color: rgba(255,255,255,.78);
    font: 400 12px/1.4 Poppins, sans-serif;
}

.couple-family i {
    color: var(--editorial-accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
}

.couple-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 21px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,.45);
    color: rgba(255,255,255,.88);
    font: 400 10px/1.4 Poppins, sans-serif;
    letter-spacing: .08em;
}

.couple-instagram:hover {
    color: #fff;
    border-color: #fff;
}

.couple-instagram i {
    font-size: 13px;
}

.couple-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    color: rgba(255,255,255,.55);
    font: 500 8px/1 Poppins, sans-serif;
    letter-spacing: .28em;
}

.couple-scroll-hint i {
    width: 1px;
    height: 34px;
    background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
    animation: coupleHint 1.8s ease-in-out infinite;
}

@keyframes coupleHint {
    0%, 100% { transform: scaleY(.55); transform-origin: top; opacity: .45; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

@media (max-width: 800px) {
    #couple.couple-editorial {
        padding: 70px 14px 75px;
    }

    .couple-editorial-head {
        margin-bottom: 28px;
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .couple-editorial-head p {
        flex-basis: 100%;
    }

    .couple-editorial-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .couple-editorial-card {
        min-height: 78svh;
    }

    .couple-editorial-top {
        top: 21px;
        left: 21px;
        right: 21px;
    }

    .couple-editorial-content {
        left: 22px;
        right: 22px;
        bottom: 25px;
    }

    .couple-editorial-content h2 {
        font-size: clamp(46px, 14vw, 64px);
    }

    .couple-family {
        max-width: 100%;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .couple-editorial-card,
    .couple-editorial-media img,
    .couple-editorial-content,
    .couple-editorial-top {
        transition: none;
    }

    .couple-scroll-hint i {
        animation: none;
    }
}

/* =========================================================
   EVENT — MODERN EDITORIAL / CINEMATIC
   Add-on styles. Keeps the existing site styles intact.
   ========================================================= */

#event.event-modern {
    --event-ink: #272522;
    --event-muted: #77736c;
    --event-line: rgba(39,37,34,.12);
    --event-gold: var(--primary);
    background:
        radial-gradient(circle at 8% 18%, rgba(182,140,90,.055), transparent 28%),
        radial-gradient(circle at 92% 82%, rgba(182,140,90,.045), transparent 25%),
        var(--ivory);
    min-height: 100vh;
    padding: clamp(90px, 12vw, 160px) 0;
    overflow: hidden;
}

#event.event-modern .container {
    width: min(1180px, 90%);
}

/* Intro */

.event-intro {
    max-width: 720px;
    margin: 0 auto clamp(60px, 9vw, 100px);
    text-align: center;
    opacity: calc(.55 + var(--reveal, 0) * .45);

    filter:
        blur(calc((1 - var(--reveal, 0)) * 5px));

    transform:
        translateY(
            calc((1 - var(--reveal, 0)) * 24px)
        );

    transition:
        opacity .45s ease,
        filter .45s ease,
        transform .65s cubic-bezier(.2,.8,.2,1);
}

.event-intro.is-visible {
    opacity: 1;
}

.event-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--event-gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .34em;
    text-transform: uppercase;
}

.event-kicker::before,
.event-kicker::after {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: .45;
}

.event-intro h2 {
    margin: 18px 0 10px;
    color: var(--event-ink);
    font-size: clamp(48px, 7vw, 76px);
    font-weight: 500;
    letter-spacing: -.025em;
}

.event-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin: 22px auto 24px;
}

.event-line span {
    width: 55px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--event-gold));
}

.event-line span:last-child {
    background: linear-gradient(90deg, var(--event-gold), transparent);
}

.event-line i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--event-gold);
}

.event-intro p {
    max-width: 570px;
    margin: auto;
    text-align: center;
    font-size: 15px;
    line-height: 1.9;
    color: var(--event-muted);
}

/* Main editorial composition */

.event-editorial {
    opacity: calc(.58 + var(--reveal, 0) * .42);

    filter:
        blur(calc((1 - var(--reveal, 0)) * 5px));

    transform:
        translateY(
            calc((1 - var(--reveal, 0)) * 34px)
        )
        scale(
            calc(.975 + var(--reveal, 0) * .025)
        );

    transition:
        opacity .55s ease,
        filter .65s ease,
        transform .8s cubic-bezier(.16,1,.3,1);
}

.event-editorial::before {
    content: "";
    position: absolute;
    left: calc(230px + clamp(35px, 7vw, 90px) / 2);
    top: 28px;
    bottom: 28px;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--event-line),
        var(--event-line),
        transparent
    );
}

.event-editorial.is-visible {
    opacity: 1;
}

/* Date side */

.event-date-column {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 470px;
    padding: 35px 25px;
    text-align: center;
}

.event-number {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 10px;
    letter-spacing: .22em;
    color: #aaa49b;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-day,
.event-month {
    color: var(--event-gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .28em;
}

.event-date strong {
    margin: 6px 0 2px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(100px, 12vw, 145px);
    line-height: .72;
    font-weight: 500;
    color: var(--event-ink);
    letter-spacing: -.06em;
    position: relative;
    top: -20px;
}

.event-date-rule {
    width: 42px;
    height: 1px;
    margin: 32px 0 20px;
    background: var(--event-gold);
}

.event-time {
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--event-muted);
}

/* Main card */

.event-main-card {
    position: relative;
    z-index: 2;
    padding: clamp(34px, 5vw, 58px);
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(39,37,34,.07);
    box-shadow:
        0 30px 80px rgba(35,31,26,.08),
        inset 0 1px 0 rgba(255,255,255,.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform .5s ease, box-shadow .5s ease;
}

.event-main-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 40px 100px rgba(35,31,26,.12),
        inset 0 1px 0 rgba(255,255,255,.8);
}

.event-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--event-line);
}

.event-type,
.event-city {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.event-type {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--event-gold);
}

.event-type i {
    color: inherit;
    font-size: 13px;
}

.event-city {
    color: #aaa49b;
}

.event-heading {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin: 32px 0 12px;
}

.event-heading > span {
    color: var(--event-gold);
    font-size: 11px;
    letter-spacing: .1em;
}

.event-heading h3 {
    margin: 0;
    color: var(--event-ink);
    font-size: clamp(40px, 5vw, 58px);
    font-weight: 500;
    letter-spacing: -.02em;
}

.event-description {
    max-width: 600px;
    margin-bottom: 34px;
    color: var(--event-muted);
    font-size: 15px;
    line-height: 1.9;
}

/* Details */

.event-details {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 28px;
    padding: 30px 0;
    border-top: 1px solid var(--event-line);
    border-bottom: 1px solid var(--event-line);
}

.event-detail {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
}

.detail-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(182,140,90,.25);
    color: var(--event-gold);
    font-size: 13px;
}

.event-detail small {
    display: block;
    margin-bottom: 5px;
    color: #aaa49b;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.event-detail strong {
    display: block;
    color: var(--event-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.event-detail p {
    margin-top: 5px;
    color: var(--event-muted);
    font-size: 12px;
    line-height: 1.7;
}

/* Footer / map */

.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-top: 28px;
}

.event-card-footer > span {
    max-width: 300px;
    color: #aaa49b;
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    font-style: italic;
    line-height: 1.4;
}

#event.event-modern .map-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    color: var(--event-ink);
    border-bottom: 1px solid var(--event-gold);
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    white-space: nowrap;
}

#event.event-modern .map-btn i {
    color: var(--event-gold);
    font-size: 12px;
    transition: transform .3s ease;
}

#event.event-modern .map-btn:hover {
    color: var(--event-gold);
    transform: none;
}

#event.event-modern .map-btn:hover i {
    transform: translate(3px, -3px);
}

/* Small scroll cue */

.event-scroll-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 65px;
    color: #aaa49b;
}

.event-scroll-note span {
    width: 34px;
    height: 1px;
    background: var(--event-gold);
}

.event-scroll-note small {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .3em;
}

/* Responsive */

@media (max-width: 820px) {
    #event.event-modern {
        padding: 90px 0 110px;
    }

    .event-editorial {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 620px;
    }

    .event-editorial::before {
        display: none;
    }

    .event-date-column {
        min-height: auto;
        padding: 0 0 50px;
    }

    .event-number {
        position: static;
        margin-bottom: 18px;
    }

    .event-date strong {
        font-size: 105px;
        position: relative;
        top: -20px;
    }

    .event-main-card {
        padding: 30px 24px;
    }

    .event-details {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .event-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-card-footer > span {
        max-width: 340px;
    }
}

@media (max-width: 520px) {
    #event.event-modern .container {
        width: min(92%, 440px);
    }

    .event-kicker {
        font-size: 8px;
        letter-spacing: .22em;
    }

    .event-kicker::before,
    .event-kicker::after {
        width: 15px;
    }

    .event-intro h2 {
        font-size: 48px;
    }

    .event-intro p {
        font-size: 13px;
    }

    .event-date strong {
        font-size: 92px;
        position: relative;
        top: -20px;
    }

    .event-day,
    .event-month {
        font-size: 9px;
        letter-spacing: .22em;
    }

    .event-main-card {
        padding: 25px 20px;
    }

    .event-card-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .event-heading {
        gap: 10px;
    }

    .event-heading h3 {
        font-size: 39px;
    }

    .event-description {
        font-size: 13px;
    }

    .event-detail {
        grid-template-columns: 36px 1fr;
    }

    .detail-icon {
        width: 34px;
        height: 34px;
    }

    .event-card-footer > span {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #event.event-modern *,
    #event.event-modern *::before,
    #event.event-modern *::after {
        transition: none !important;
        animation: none !important;
    }
}





/* =========================================================
   GALLERY — CLEAN EDITORIAL
   Replaces the old horizontal polaroid gallery.
   ========================================================= */

#gallery.gallery-editorial {
    position: relative;
    min-height: auto;
    padding: clamp(90px, 11vw, 150px) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(182,140,90,.055), transparent 27%),
        radial-gradient(circle at 92% 88%, rgba(182,140,90,.04), transparent 28%),
        var(--ivory);
}

#gallery.gallery-editorial .container {
    width: min(1160px, 90%);
    margin: 0 auto;
}

/* Header */

.gallery-intro {
    max-width: 690px;
    margin: 0 auto clamp(52px, 8vw, 82px);
    text-align: center;
}

.gallery-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--event-gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .34em;
    text-transform: uppercase;
}

.gallery-kicker::before,
.gallery-kicker::after {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: .45;
}

.gallery-intro h2 {
    margin: 16px 0 16px;
    color: #282623;
    font-size: clamp(48px, 7vw, 72px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1;
}

.gallery-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
}

.gallery-divider span {
    width: 52px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary));
}

.gallery-divider span:last-child {
    background: linear-gradient(90deg, var(--primary), transparent);
}

.gallery-divider i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

.gallery-intro p {
    max-width: 560px;
    margin: 0 auto;
    color: #77736c;
    font-size: 14px;
    line-height: 1.9;
}

/* Grid */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(18px, 2.6vw, 32px);
    align-items: start;
}

.gallery-item {
    min-width: 0;
    grid-column: span 4;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(28px);
    transition:
        opacity .8s ease,
        filter .8s ease,
        transform .9s cubic-bezier(.16,1,.3,1);
    transition-delay: var(--gallery-delay, 0ms);
}

.gallery-item.is-visible,
.gallery-intro.is-visible,
.gallery-foot.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

.gallery-item--tall {
    grid-column: span 4;
}

.gallery-item--wide {
    grid-column: span 8;
}

.gallery-image {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: #e8e4dc;
    isolation: isolate;
}

.gallery-item--standard .gallery-image {
    aspect-ratio: 4 / 5;
}

.gallery-item--tall .gallery-image {
    aspect-ratio: 3 / 4.25;
}

.gallery-item--wide .gallery-image {
    aspect-ratio: 16 / 9;
}

.gallery-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(20,18,15,0) 55%,
        rgba(20,18,15,.18)
    );
    opacity: 0;
    transition: opacity .45s ease;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(.88);
    transform: scale(1.015);
    transition:
        transform .9s cubic-bezier(.16,1,.3,1),
        filter .7s ease;
}

.gallery-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.gallery-view {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%;
    color: #fff;
    background: rgba(30,28,25,.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: scale(.8);
    transition:
        opacity .4s ease,
        transform .5s cubic-bezier(.16,1,.3,1);
}

.gallery-view i {
    font-size: 11px;
    transform: rotate(0deg);
}

.gallery-image:hover img {
    transform: scale(1.055);
    filter: saturate(1);
}

.gallery-image:hover::after,
.gallery-image:hover .gallery-view {
    opacity: 1;
}

.gallery-image:hover .gallery-view {
    transform: scale(1);
}

/* Caption */

.gallery-caption {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 2px 0;
}

.gallery-caption > div {
    display: flex;
    align-items: baseline;
    gap: 11px;
    min-width: 0;
}

.gallery-index {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .12em;
}

.gallery-caption h3 {
    margin: 0;
    color: #2b2926;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(23px, 2.3vw, 30px);
    font-weight: 500;
    line-height: 1;
}

.gallery-date {
    flex: 0 0 auto;
    padding-top: 3px;
    color: #9a958d;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .13em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Footer */

.gallery-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: clamp(55px, 8vw, 85px);
    color: #aaa49b;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(15px);
    transition:
        opacity .7s ease,
        filter .7s ease,
        transform .7s ease;
}

.gallery-foot span {
    width: 38px;
    height: 1px;
    background: var(--primary);
    opacity: .6;
}

.gallery-foot small {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .28em;
}

/* Mobile */

@media (max-width: 820px) {

    #gallery.gallery-editorial {
        padding: 85px 0 100px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .gallery-item,
    .gallery-item--tall,
    .gallery-item--wide {
        grid-column: span 1;
    }

    .gallery-item--wide {
        grid-column: 1 / -1;
    }

    .gallery-item--wide .gallery-image {
        aspect-ratio: 4 / 3;
    }

    .gallery-caption {
        display: block;
        padding-top: 12px;
    }

    .gallery-caption > div {
        gap: 8px;
    }

    .gallery-caption h3 {
        font-size: 24px;
    }

    .gallery-date {
        display: block;
        margin-top: 7px;
    }
}

@media (max-width: 520px) {

    #gallery.gallery-editorial .container {
        width: 91%;
    }

    .gallery-intro {
        margin-bottom: 46px;
    }

    .gallery-kicker {
        font-size: 8px;
        letter-spacing: .25em;
    }

    .gallery-intro h2 {
        margin-top: 15px;
        font-size: 47px;
    }

    .gallery-intro p {
        font-size: 13px;
        line-height: 1.8;
    }

    .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 38px;
    }

    .gallery-item,
    .gallery-item--tall,
    .gallery-item--wide {
        width: 100%;
    }

    .gallery-item--standard .gallery-image,
    .gallery-item--tall .gallery-image,
    .gallery-item--wide .gallery-image {
        aspect-ratio: 4 / 5;
    }

    .gallery-item--wide .gallery-image {
        aspect-ratio: 4 / 3;
    }

    .gallery-caption {
        display: flex;
        padding-top: 13px;
    }

    .gallery-caption h3 {
        font-size: 25px;
    }

    .gallery-date {
        margin-top: 0;
        font-size: 8px;
    }

    .gallery-view {
        width: 43px;
        height: 43px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #gallery.gallery-editorial *,
    #gallery.gallery-editorial *::before,
    #gallery.gallery-editorial *::after {
        transition: none !important;
        animation: none !important;
    }
}



/* =========================================================
   WISHES / RSVP — MATCHING VENUE EDITORIAL
   ========================================================= */

#wishes.wishes-venue {
    position: relative;
    padding: 90px 0 115px;
    background:
        radial-gradient(circle at 15% 15%, rgba(182,140,90,.055), transparent 30%),
        var(--ivory);
}

#wishes.wishes-venue .container {
    width: min(1000px, 92%);
}

/* Main white editorial card */

.wishes-card {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 42px);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(39,37,34,.09);
    box-shadow:
        0 25px 65px rgba(35,31,26,.065),
        inset 0 1px 0 rgba(255,255,255,.9);
}

/* Header */

.wishes-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.wishes-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
}

.wishes-kicker-icon {
    display: grid;
    place-items: center;
    width: 13px;
    height: 13px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    font-size: 6px;
}

.wishes-city {
    color: #aaa49b;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .22em;
}

.wishes-rule {
    width: 100%;
    height: 1px;
    margin: 26px 0 35px;
    background: var(--border);
}

/* Heading */

.wishes-heading {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 0;
    align-items: start;
}

.wishes-number {
    padding-top: 17px;
    color: var(--primary);
    font-size: 10px;
    letter-spacing: .08em;
}

.wishes-heading h2 {
    margin: 0 0 14px;
    color: #292724;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px, 6vw, 56px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.025em;
}

.wishes-heading p {
    max-width: 570px;
    margin: 0;
    color: #77736c;
    font-size: 13px;
    line-height: 1.9;
}

.wishes-form-rule {
    height: 1px;
    margin: 35px 0 28px;
    background: var(--border);
}

/* Form */

.wishes-form {
    display: grid;
    gap: 22px;
}

.wishes-field {
    margin: 0;
}

.wishes-field label {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 7px;
    color: #aaa49b;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .2em;
}

.wishes-field label em {
    color: #b4aea6;
    font-size: 8px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: .08em;
}

.wishes-venue .form-control {
    width: 100%;
    min-height: 47px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #ddd8d0;
    border-radius: 0;
    background: transparent;
    color: #37332f;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    line-height: 1.6;
    outline: none;
    box-shadow: none;
    transition: border-color .3s ease, background .3s ease;
}

.wishes-venue .form-control::placeholder {
    color: #b6b0a8;
}

.wishes-venue .form-control:focus {
    border-bottom-color: var(--primary);
    background: rgba(182,140,90,.025);
    box-shadow: none;
}

.wishes-venue select.form-control {
    cursor: pointer;
}

.wishes-venue textarea.form-control {
    min-height: 100px;
    padding-top: 9px;
    resize: vertical;
}

/* Guest count */

.wishes-guest-field {
    max-height: 100px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition:
        max-height .35s ease,
        opacity .25s ease,
        transform .35s ease,
        margin .35s ease;
}

.wishes-guest-field.is-hidden {
    max-height: 0;
    margin-top: -22px;
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
}

.wishes-guest-input {
    position: relative;
}

.wishes-guest-input .form-control {
    padding-right: 65px;
}

.wishes-guest-input > span {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa49b;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .16em;
    pointer-events: none;
}

.wishes-field > small {
    display: block;
    margin-top: 6px;
    color: #aaa49b;
    font-size: 9px;
}

/* Submit */

.wishes-submit-wrap {
    padding-top: 4px;
}

.wishes-submit {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 12px 0 11px;
    border-bottom: 1px solid var(--primary);
    border-radius: 0;
    color: #302d2a;
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .3s ease, transform .3s ease;
}

.wishes-submit i {
    color: var(--primary);
    font-size: 11px;
    transition: transform .3s ease;
}

.wishes-submit:hover {
    color: var(--primary);
    transform: none;
}

.wishes-submit:hover i {
    transform: translate(3px, -3px);
}

.wishes-submit:disabled {
    opacity: .55;
    cursor: wait;
}

/* Message */

#wishes .result-message {
    display: none;
    margin: 22px 0 0;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    color: #77736c;
    font-size: 11px;
    text-align: left;
}

#wishes .result-message.success,
#wishes .result-message.error {
    display: block;
    background: transparent;
}

#wishes .result-message.success {
    color: #70856a;
}

#wishes .result-message.error {
    color: #a56f67;
}

/* Closing line */

.wishes-thanks {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.wishes-thanks span {
    color: #aaa49b;
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    font-style: italic;
}

/* Wishes list */

.wishes-list-wrap {
    max-width: 700px;
    margin: 55px auto 0;
}

.wishes-list-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.wishes-list-heading span {
    color: var(--primary);
    font-size: 9px;
    letter-spacing: .15em;
}

.wishes-list-heading small {
    color: #aaa49b;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .22em;
}

.wishes-wrapper {
    display: grid;
    gap: 0;
}

.wishes-wrapper:empty {
    display: none;
}

#wishes .wish-card {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 15px;
    padding: 22px 0;
    margin: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#wishes .wish-card:last-child {
    border-bottom: 1px solid var(--border);
}

#wishes .avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(182,140,90,.35);
    border-radius: 50%;
    background: transparent;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
}

#wishes .wish-content h4 {
    margin: 0 0 2px;
    color: #37332f;
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 500;
}

#wishes .wish-content small {
    color: #aaa49b;
    font-size: 8px;
    letter-spacing: .08em;
}

#wishes .wish-content p {
    margin-top: 8px;
    color: #77736c;
    font-size: 12px;
    line-height: 1.8;
}

/* Responsive */

@media (max-width: 600px) {

    #wishes.wishes-venue {
        padding: 70px 0 90px;
    }

    #wishes.wishes-venue .container {
        width: min(92%, 440px);
    }

    .wishes-card {
        padding: 25px 20px;
    }

    .wishes-card-head {
        gap: 10px;
    }

    .wishes-kicker {
        font-size: 8px;
        letter-spacing: .16em;
    }

    .wishes-city {
        font-size: 8px;
    }

    .wishes-rule {
        margin: 23px 0 28px;
    }

    .wishes-heading {
        grid-template-columns: 20px 1fr;
    }

    .wishes-heading h2 {
        font-size: 42px;
    }

    .wishes-heading p {
        font-size: 12px;
        line-height: 1.85;
    }

    .wishes-form-rule {
        margin: 28px 0 24px;
    }

    .wishes-form {
        gap: 20px;
    }

    .wishes-thanks {
        margin-top: 28px;
        padding-top: 22px;
    }

    .wishes-thanks span {
        font-size: 16px;
    }

}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    #wishes.wishes-venue *,
    #wishes.wishes-venue *::before,
    #wishes.wishes-venue *::after {
        transition: none !important;
        animation: none !important;
    }

}


/* =========================================================
   GALLERY VIDEO — LANDSCAPE 16:9 / MOBILE SAFE
   ========================================================= */

.gallery-section {
    position: relative;
    padding: 90px 0 110px;
    background: var(--ivory, #f7f4ef);
}

.gallery-container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.gallery-heading {
    text-align: center;
    margin-bottom: 34px;
}

.gallery-kicker {
    display: block;
    margin-bottom: 9px;
    color: var(--primary, #b68c5a);
    font-family: "Poppins", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .24em;
}

.gallery-heading h2 {
    margin: 0;
    color: #292724;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(44px, 6vw, 62px);
    font-weight: 500;
    line-height: 1;
}

.gallery-rule {
    width: 42px;
    height: 1px;
    margin: 18px auto 0;
    background: var(--primary, #b68c5a);
    opacity: .6;
}

.gallery-video-frame {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    box-shadow: 0 24px 55px rgba(30, 27, 23, .12);
}

.gallery-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
}

.gallery-caption {
    margin: 20px 0 0;
    text-align: center;
    color: #99938b;
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    font-style: italic;
}

@media (max-width: 600px) {

    .gallery-section {
        padding: 70px 0 85px;
    }

    .gallery-container {
        width: 100%;
    }

    .gallery-heading {
        padding: 0 20px;
        margin-bottom: 25px;
    }

    .gallery-heading h2 {
        font-size: 46px;
    }

    .gallery-video-frame {
        width: 100%;
        aspect-ratio: 16 / 9;
        box-shadow: 0 15px 35px rgba(30, 27, 23, .10);
    }

    .gallery-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .gallery-caption {
        padding: 0 20px;
        margin-top: 16px;
        font-size: 16px;
    }

}

@media (max-width: 600px) {

    /* Kurangi ruang kosong setelah kartu Event */
    #event.event-modern {
        min-height: auto;
        padding-bottom: 20px;
    }

    /* Kurangi ruang kosong sebelum kartu Konfirmasi */
    #wishes.wishes-venue {
        padding-top: 20px;
    }

}

/* =========================================================
   COVER RESPONSIVE — LAPTOP 1366x768 / 1366x600 / HP 412px
   Override ditempatkan di akhir agar menimpa aturan cover lama.
   ========================================================= */

#cover {
    height: 100dvh;
    min-height: 100dvh;
}

.cover-content {
    width: 100%;
    max-width: 560px;
    padding: 30px 32px;
}

.cover-intro {
    margin-bottom: 18px;
}

.couple-name strong {
    font-size: clamp(60px, 7vw, 82px);
}

.ampersand {
    margin: 7px 0;
    font-size: 36px;
}

.cover-divider {
    margin: 23px auto 18px;
}

.cover-date {
    margin-bottom: 28px;
}

.guest-box {
    margin-bottom: 22px;
    padding: 18px 22px;
}

.open-invitation {
    min-width: 225px;
    padding: 13px 25px;
}

/* =========================================================
   LAPTOP NORMAL — 1366x768 dan viewport tinggi sejenis
   ========================================================= */
@media (min-width: 821px) and (min-height: 680px) {

    #cover {
        align-items: center;
        overflow: hidden;
    }

    .cover-content {
        max-width: 560px;
        padding: 25px 32px;
    }

    .cover-intro {
        margin-bottom: 16px;
    }

    .couple-name strong {
        font-size: clamp(68px, 6vw, 84px);
    }

    .ampersand {
        margin: 6px 0;
        font-size: 38px;
    }

    .cover-divider {
        margin: 22px auto 18px;
    }

    .cover-date {
        margin-bottom: 27px;
    }

    .guest-box {
        padding: 18px 24px;
        margin-bottom: 20px;
    }

    .open-invitation {
        padding: 13px 27px;
    }
}

/* =========================================================
   LAPTOP KECIL / VIEWPORT PENDEK — 1366x600
   Dipadatkan agar tombol tetap terlihat di dalam layar.
   ========================================================= */
@media (min-width: 821px) and (max-height: 679px) {

    #cover {
        align-items: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .cover-content {
        max-width: 520px;
        padding: 14px 30px 18px;
        margin: auto;
    }

    .cover-intro {
        margin-bottom: 10px;
    }

    .cover-intro p {
        font-size: 9px;
        letter-spacing: 4px;
    }

    .couple-name strong {
        font-size: 56px;
    }

    .ampersand {
        margin: 3px 0;
        font-size: 29px;
    }

    .cover-divider {
        margin: 13px auto 11px;
    }

    .cover-divider span {
        width: 42px;
    }

    .cover-date {
        margin-bottom: 17px;
        font-size: 10px;
        letter-spacing: 2.5px;
    }

    .guest-box {
        max-width: 300px;
        padding: 12px 20px;
        margin-bottom: 13px;
    }

    .guest-label {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .guest-name {
        font-size: 20px;
        line-height: 1.2;
    }

    .open-invitation {
        min-width: 205px;
        padding: 10px 22px;
        font-size: 12px;
    }
}

/* =========================================================
   HP — 412px dan ukuran mobile sejenis
   ========================================================= */
@media (max-width: 820px) {

    #cover {
        align-items: center;
        overflow: hidden;
    }

    .cover-content {
        width: 100%;
        max-width: 430px;
        padding: 25px 22px 28px;
    }

    .cover-intro {
        gap: 10px;
        margin-bottom: 15px;
    }

    .cover-intro span {
        width: 22px;
    }

    .cover-intro p {
        font-size: 9px;
        letter-spacing: 4px;
    }

    .couple-name strong {
        font-size: clamp(54px, 17vw, 72px);
        letter-spacing: -1.5px;
    }

    .ampersand {
        margin: 6px 0;
        font-size: 34px;
    }

    .cover-divider {
        margin: 20px auto 17px;
    }

    .cover-divider span {
        width: 42px;
    }

    .cover-date {
        margin-bottom: 25px;
        font-size: 10px;
        letter-spacing: 2.5px;
    }

    .guest-box {
        max-width: 320px;
        padding: 17px 18px;
        margin-bottom: 20px;
    }

    .guest-label {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .guest-name {
        font-size: clamp(19px, 6vw, 24px);
    }

    .open-invitation {
        min-width: 210px;
        padding: 13px 23px;
        font-size: 13px;
    }
}

/* =========================================================
   HP PENDEK — 412x720 atau viewport mobile lebih pendek
   ========================================================= */
@media (max-width: 820px) and (max-height: 720px) {

    .cover-content {
        padding-top: 15px;
        padding-bottom: 18px;
    }

    .cover-intro {
        margin-bottom: 10px;
    }

    .couple-name strong {
        font-size: 55px;
    }

    .ampersand {
        margin: 3px 0;
        font-size: 30px;
    }

    .cover-divider {
        margin: 15px auto 12px;
    }

    .cover-date {
        margin-bottom: 18px;
    }

    .guest-box {
        padding: 13px 18px;
        margin-bottom: 14px;
    }

    .open-invitation {
        padding: 11px 22px;
    }
}

/* =========================================================
   RESPONSIVE SYSTEM v2 — COUPLE / EVENT / WISHES / COVER
   Final override based on the latest uploaded stylesheet.
   Goal: preserve the editorial design while preventing stretched
   images, cramped text, uneven card widths, and excessive gaps.
   ========================================================= */

/* Font used by the cover name */

/* ---------------------------------------------------------
   COUPLE — prevent stretched photos and normalize cards
   --------------------------------------------------------- */

.couple-editorial-grid {
    width: min(1120px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.6vw, 34px);
}

.couple-editorial-card {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 5;
}

.couple-editorial-media img {
    object-fit: cover;
    object-position: center center;
}

.couple-editorial-content {
    left: clamp(22px, 3vw, 42px);
    right: clamp(22px, 3vw, 42px);
    bottom: clamp(24px, 3vw, 40px);
}

/* ---------------------------------------------------------
   EVENT — stable desktop grid + card width close to Wishes
   --------------------------------------------------------- */

#event.event-modern {
    min-height: auto;
    padding: clamp(76px, 8vw, 120px) 0 clamp(55px, 7vw, 95px);
}

#event.event-modern .container {
    width: min(1120px, 92%);
}

.event-intro {
    margin-bottom: clamp(42px, 6vw, 72px);
}

.event-editorial {
    width: min(1000px, 100%);
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 52px);
}

.event-editorial::before {
    left: calc(220px + clamp(28px, 4vw, 52px) / 2);
}

.event-date-column {
    min-height: 0;
    padding: 30px 15px;
}

.event-main-card {
    width: 100%;
    min-width: 0;
    padding: clamp(30px, 4vw, 48px);
}

.event-heading h3,
.event-description,
.event-detail strong,
.event-detail p {
    overflow-wrap: anywhere;
}

.event-details {
    min-width: 0;
}

/* ---------------------------------------------------------
   WISHES — same visual width family as Event card
   --------------------------------------------------------- */

#wishes.wishes-venue {
    padding: clamp(55px, 7vw, 90px) 0 clamp(70px, 8vw, 115px);
}

#wishes.wishes-venue .container {
    width: min(1000px, 92%);
}

.wishes-card {
    width: min(700px, 100%);
    max-width: 700px;
    padding: clamp(28px, 4vw, 42px);
}

/* ---------------------------------------------------------
   LARGE TABLETS / SMALL LAPTOPS
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .couple-editorial-grid {
        width: 100%;
    }

    .event-editorial {
        width: min(920px, 100%);
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 28px;
    }

    .event-editorial::before {
        left: calc(190px + 14px);
    }

    .event-date strong {
        font-size: clamp(90px, 11vw, 125px);
    }

}

/* ---------------------------------------------------------
   TABLET / MOBILE
   --------------------------------------------------------- */

@media (max-width: 800px) {

    /* COUPLE */
    #couple.couple-editorial {
        min-height: auto;
        padding: 64px 14px 70px;
    }

    .couple-editorial-head {
        width: 100%;
        margin-bottom: 26px;
    }

    .couple-editorial-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .couple-editorial-card {
        width: 100%;
        aspect-ratio: 4 / 5;
        min-height: 0;
    }

    .couple-editorial-media img {
        object-fit: cover;
    }

    .couple-editorial-content {
        left: 22px;
        right: 22px;
        bottom: 25px;
    }

    .couple-editorial-content h2 {
        font-size: clamp(42px, 13vw, 60px);
        line-height: .9;
    }

    .couple-family {
        font-size: 11px;
        line-height: 1.45;
    }

    /* EVENT */
    #event.event-modern {
        min-height: auto;
        padding: 65px 0 45px;
    }

    #event.event-modern .container {
        width: min(92%, 620px);
    }

    .event-intro {
        margin-bottom: 38px;
    }

    .event-editorial {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .event-editorial::before {
        display: none;
    }

    .event-date-column {
        min-height: auto;
        padding: 0 0 28px;
    }

    .event-number {
        position: static;
        align-self: flex-start;
        margin-bottom: 12px;
    }

    .event-date strong {
        font-size: clamp(84px, 23vw, 110px);
        top: -12px;
    }

    .event-date-rule {
        margin: 24px 0 16px;
    }

    .event-main-card {
        width: 100%;
        padding: 27px 22px;
    }

    .event-card-top {
        gap: 12px;
    }

    .event-heading {
        margin: 27px 0 10px;
    }

    .event-heading h3 {
        font-size: clamp(36px, 9vw, 52px);
    }

    .event-description {
        margin-bottom: 25px;
        font-size: 13px;
        line-height: 1.8;
    }

    .event-details {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 0;
    }

    .event-card-footer {
        padding-top: 23px;
    }

    /* WISHES */
    #wishes.wishes-venue {
        padding: 45px 0 75px;
    }

    #wishes.wishes-venue .container {
        width: min(92%, 620px);
    }

    .wishes-card {
        width: 100%;
        padding: 26px 22px;
    }

}

/* ---------------------------------------------------------
   PHONE — 412px and similar
   --------------------------------------------------------- */

@media (max-width: 520px) {

    /* COUPLE */
    #couple.couple-editorial {
        padding: 55px 12px 60px;
    }

    .couple-editorial-head {
        gap: 7px 10px;
        margin-bottom: 22px;
    }

    .couple-editorial-head .couple-kicker {
        font-size: 8px;
        letter-spacing: .22em;
    }

    .couple-editorial-head p {
        font-size: 13px;
    }

    .couple-line {
        width: 28px;
    }

    .couple-editorial-grid {
        gap: 14px;
    }

    .couple-editorial-card {
        aspect-ratio: 4 / 5;
    }

    .couple-editorial-top {
        top: 18px;
        left: 18px;
        right: 18px;
        font-size: 8px;
        letter-spacing: .2em;
    }

    .couple-editorial-content {
        left: 18px;
        right: 18px;
        bottom: 20px;
    }

    .couple-overline {
        font-size: 14px;
    }

    .couple-editorial-content h2 {
        font-size: clamp(40px, 12vw, 52px);
        line-height: .9;
    }

    .couple-role-modern {
        margin-top: 12px;
        font-size: 8px;
        letter-spacing: .2em;
    }

    .couple-family {
        margin-top: 14px;
        gap: 5px 8px;
        font-size: 10px;
    }

    .couple-instagram {
        margin-top: 16px;
        font-size: 9px;
    }

    /* EVENT */
    #event.event-modern {
        padding: 52px 0 35px;
    }

    #event.event-modern .container {
        width: 92%;
    }

    .event-intro {
        margin-bottom: 30px;
    }

    .event-kicker {
        font-size: 8px;
        letter-spacing: .2em;
    }

    .event-kicker::before,
    .event-kicker::after {
        width: 14px;
    }

    .event-intro h2 {
        margin-top: 14px;
        font-size: clamp(42px, 12vw, 50px);
    }

    .event-line {
        margin: 17px auto 18px;
    }

    .event-intro p {
        font-size: 12px;
        line-height: 1.75;
    }

    .event-date-column {
        padding-bottom: 23px;
    }

    .event-date strong {
        font-size: clamp(78px, 24vw, 96px);
        top: -10px;
    }

    .event-day,
    .event-month {
        font-size: 8px;
        letter-spacing: .2em;
    }

    .event-time {
        font-size: 10px;
    }

    .event-main-card {
        padding: 22px 18px;
    }

    .event-card-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-bottom: 18px;
    }

    .event-type,
    .event-city {
        font-size: 8px;
    }

    .event-heading {
        gap: 8px;
        margin: 22px 0 9px;
    }

    .event-heading > span {
        font-size: 9px;
    }

    .event-heading h3 {
        font-size: clamp(34px, 10vw, 42px);
    }

    .event-description {
        font-size: 12px;
        line-height: 1.75;
        margin-bottom: 20px;
    }

    .event-details {
        gap: 17px;
        padding: 20px 0;
    }

    .event-detail {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .detail-icon {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .event-detail small {
        font-size: 8px;
    }

    .event-detail strong {
        font-size: 12px;
    }

    .event-detail p {
        font-size: 11px;
        line-height: 1.6;
    }

    .event-card-footer {
        gap: 14px;
        padding-top: 19px;
    }

    .event-card-footer > span {
        max-width: 100%;
        font-size: 15px;
    }

    #event.event-modern .map-btn {
        font-size: 9px;
        padding: 10px 0;
    }

    .event-scroll-note {
        margin-top: 30px;
    }

    /* WISHES */
    #wishes.wishes-venue {
        padding: 35px 0 60px;
    }

    #wishes.wishes-venue .container {
        width: 92%;
    }

    .wishes-card {
        padding: 23px 18px;
    }

    .wishes-card-head {
        gap: 10px;
        flex-wrap: wrap;
    }

    .wishes-kicker {
        font-size: 8px;
        letter-spacing: .14em;
    }

    .wishes-city {
        margin-left: auto;
        font-size: 7px;
    }

    .wishes-rule {
        margin: 20px 0 24px;
    }

    .wishes-heading {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .wishes-number {
        padding-top: 13px;
        font-size: 9px;
    }

    .wishes-heading h2 {
        font-size: clamp(38px, 11vw, 46px);
        line-height: .95;
    }

    .wishes-heading p {
        font-size: 11px;
        line-height: 1.75;
    }

    .wishes-form-rule {
        margin: 24px 0 20px;
    }

    .wishes-form {
        gap: 18px;
    }

    .wishes-field label {
        font-size: 8px;
    }

    .wishes-venue .form-control {
        min-height: 43px;
        font-size: 12px;
    }

    .wishes-venue textarea.form-control {
        min-height: 90px;
    }

    .wishes-thanks {
        margin-top: 24px;
        padding-top: 20px;
    }

    .wishes-thanks span {
        font-size: 15px;
    }

    .wishes-list-wrap {
        margin-top: 38px;
    }

    #wishes .wish-card {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 11px;
        padding: 18px 0;
    }

    #wishes .avatar {
        width: 30px;
        height: 30px;
    }

    #wishes .wish-content h4 {
        font-size: 20px;
    }

    #wishes .wish-content p {
        font-size: 11px;
        line-height: 1.7;
    }
}

/* ---------------------------------------------------------
   VERY SHORT PHONE — avoid vertical compression/distortion
   --------------------------------------------------------- */

@media (max-width: 520px) and (max-height: 700px) {

    #cover {
        overflow-y: auto;
        align-items: flex-start;
    }

    .cover-content {
        margin: auto;
        padding-top: 12px;
        padding-bottom: 16px;
    }

    .couple-editorial-card {
        aspect-ratio: 5 / 6;
    }
}

/* ---------------------------------------------------------
   GLOBAL MEDIA SAFETY
   --------------------------------------------------------- */

img,
video {
    max-width: 100%;
}

.couple-editorial-media img,
.gallery-video,
.gallery-video-frame video {
    display: block;
}


/* =========================================================
   GALLERY — MATCH EVENT INTRO / KICKER
   Menyamakan "MOMEN YANG DIABADIKAN" dengan
   "MOMEN YANG KITA RAYAKAN" pada Event.
   ========================================================= */

#gallery .gallery-intro .gallery-kicker,
#gallery .gallery-video-intro .gallery-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    color: var(--event-gold, var(--primary, #b68c5a));
    font-family: Poppins, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .34em;
    text-transform: uppercase;
    white-space: nowrap;
}

#gallery .gallery-intro .gallery-kicker::before,
#gallery .gallery-intro .gallery-kicker::after,
#gallery .gallery-video-intro .gallery-kicker::before,
#gallery .gallery-video-intro .gallery-kicker::after {
    content: "";
    display: block;
    width: 22px;
    height: 1px;
    flex: 0 0 22px;
    background: currentColor;
    opacity: .45;
}

#gallery .gallery-intro h2,
#gallery .gallery-video-intro h2 {
    margin: 18px 0 10px;
    color: var(--event-ink, #272522);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(48px, 7vw, 76px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1;
}

#gallery .gallery-intro .gallery-divider,
#gallery .gallery-video-intro .gallery-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin: 22px auto 24px;
}

#gallery .gallery-intro .gallery-divider span,
#gallery .gallery-video-intro .gallery-divider span {
    width: 55px;
    height: 1px;
    flex: 0 0 55px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--event-gold, var(--primary, #b68c5a))
    );
}

#gallery .gallery-intro .gallery-divider span:last-child,
#gallery .gallery-video-intro .gallery-divider span:last-child {
    background: linear-gradient(
        90deg,
        var(--event-gold, var(--primary, #b68c5a)),
        transparent
    );
}

#gallery .gallery-intro .gallery-divider i,
#gallery .gallery-video-intro .gallery-divider i {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: var(--event-gold, var(--primary, #b68c5a));
}

#gallery .gallery-intro p,
#gallery .gallery-video-intro p {
    max-width: 570px;
    margin: 0 auto;
    color: var(--event-muted, #77736c);
    font-family: Poppins, sans-serif;
    font-size: 15px;
    line-height: 1.9;
}

/* Mobile: tetap sama dengan proporsi Event */
@media (max-width: 820px) {
    #gallery .gallery-intro .gallery-kicker,
    #gallery .gallery-video-intro .gallery-kicker {
        font-size: 9px;
        letter-spacing: .28em;
        gap: 10px;
    }

    #gallery .gallery-intro .gallery-kicker::before,
    #gallery .gallery-intro .gallery-kicker::after,
    #gallery .gallery-video-intro .gallery-kicker::before,
    #gallery .gallery-video-intro .gallery-kicker::after {
        width: 18px;
        flex-basis: 18px;
    }

    #gallery .gallery-intro h2,
    #gallery .gallery-video-intro h2 {
        font-size: clamp(44px, 14vw, 64px);
        margin-top: 16px;
    }

    #gallery .gallery-intro .gallery-divider,
    #gallery .gallery-video-intro .gallery-divider {
        margin: 20px auto 20px;
    }

    #gallery .gallery-intro p,
    #gallery .gallery-video-intro p {
        font-size: 13px;
        line-height: 1.8;
    }
}


/* =========================================================
   ANCHOR SCROLL — FIXED HEADER SAFE AREA
   ========================================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

#home,
#couple,
#event,
#wishes,
#gallery {
    scroll-margin-top: 92px;
}


/* =========================================================
   TABLET / HP
   ========================================================= */

@media (max-width: 768px) {

    html {
        scroll-padding-top: 86px;
    }

    #home,
    #couple,
    #event,
    #wishes,
    #gallery {
        scroll-margin-top: 86px;
    }

}


/* =========================================================
   HP KECIL
   ========================================================= */

@media (max-width: 520px) {

    html {
        scroll-padding-top: 82px;
    }

    #home,
    #couple,
    #event,
    #wishes,
    #gallery {
        scroll-margin-top: 82px;
    }

}


/* Gallery sedikit diberi ruang tambahan karena posisi
   judul/konten terhadap fixed header. */
#gallery.gallery-editorial {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    #gallery.gallery-editorial {
        scroll-margin-top: 88px;
    }
}

@media (max-width: 520px) {
    #gallery.gallery-editorial {
        scroll-margin-top: 84px;
    }
}

/* =========================================================
   FOOTER ELEGANT — SENADA DENGAN DESAIN UNDANGAN
   Tempelkan CSS ini di PALING BAWAH style.css
   ========================================================= */

.footer.footer-elegant {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(circle at 50% 0%, rgba(182, 140, 90, .09), transparent 34%),
        var(--ivory);

    color: var(--event-ink, #272522);
    text-align: center;

    padding: 86px 24px 34px;

    border-top: 1px solid rgba(39, 37, 34, .08);
}

/* dekorasi tipis di bagian atas */
.footer.footer-elegant::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(260px, 48vw);
    height: 1px;

    background: var(--primary);
    opacity: .65;

    transform: translateX(-50%);
}

/* inisial D & M */
.footer-elegant .footer-mark {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;

    margin-bottom: 20px;

    color: var(--event-ink, #272522);

    font-family: "Playfair Display", serif;
}

.footer-elegant .footer-mark span {
    font-size: 25px;
    line-height: 1;
}

.footer-elegant .footer-mark i {
    color: var(--primary);
    font-size: 16px;
    font-style: italic;
}

/* kicker */
.footer-elegant .footer-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-bottom: 18px;
}

.footer-elegant .footer-kicker span {
    width: 32px;
    height: 1px;
    background: var(--primary);
    opacity: .55;
}

.footer-elegant .footer-kicker small {
    color: var(--primary);

    font-family: "Poppins", sans-serif;
    font-size: 8px;
    font-weight: 600;

    letter-spacing: .32em;
}

/* nama */
.footer-elegant h2 {
    margin: 0;

    color: var(--event-ink, #272522);

    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 5vw, 58px);
    font-weight: 500;

    line-height: 1.05;
    letter-spacing: -.02em;
}

/* divider */
.footer-elegant .footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin: 24px auto 22px;
}

.footer-elegant .footer-divider span {
    width: 52px;
    height: 1px;

    background: var(--primary);
    opacity: .55;
}

.footer-elegant .footer-divider i {
    width: 5px;
    height: 5px;

    border-radius: 50%;
    background: var(--primary);
}

/* pesan */
.footer-elegant .footer-message {
    max-width: 520px;
    margin: 0 auto;

    color: var(--event-muted, #77736c);

    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 300;

    line-height: 1.9;
}

/* sosial */
.footer-elegant .footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin: 30px 0 28px;
}

.footer-elegant .footer-social a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(182, 140, 90, .42);
    border-radius: 50%;

    background: rgba(255, 255, 255, .35);
    color: var(--event-ink, #272522);

    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.footer-elegant .footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;

    transform: translateY(-3px);
}

/* copyright */
.footer-elegant .copyright {
    margin: 0;
    padding-top: 22px;

    border-top: 1px solid rgba(39, 37, 34, .08);

    font-family: "Poppins", sans-serif;
    font-size: 8px;
    font-weight: 500;

    letter-spacing: .16em;
}

.footer-elegant .copyright a {
    color: #aaa49b;
    text-decoration: none;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 820px) {
    .footer.footer-elegant {
        padding: 70px 22px 28px;
    }

    .footer-elegant h2 {
        font-size: clamp(38px, 10vw, 50px);
    }

    .footer-elegant .footer-message {
        max-width: 400px;
        font-size: 12px;
        line-height: 1.8;
    }
}

/* =========================================================
   HP
   ========================================================= */

@media (max-width: 520px) {
    .footer.footer-elegant {
        padding: 62px 20px 25px;
    }

    .footer.footer-elegant::before {
        width: 150px;
    }

    .footer-elegant .footer-mark {
        margin-bottom: 16px;
    }

    .footer-elegant .footer-kicker {
        gap: 9px;
        margin-bottom: 15px;
    }

    .footer-elegant .footer-kicker span {
        width: 24px;
    }

    .footer-elegant h2 {
        font-size: 39px;
    }

    .footer-elegant .footer-divider {
        margin: 20px auto 18px;
    }

    .footer-elegant .footer-divider span {
        width: 40px;
    }

    .footer-elegant .footer-message {
        max-width: 330px;
        font-size: 11px;
    }

    .footer-elegant .footer-social {
        margin: 25px 0 23px;
    }

    .footer-elegant .footer-social a {
        width: 40px;
        height: 40px;
    }
}



/* =========================================================
   EVENT DATE — NAIKKAN ANGKA TANGGAL SEDIKIT
   Memberi jarak visual yang lebih elegan antara "17" dan
   "OKTOBER 2026" tanpa mengubah layout tanggal lainnya.
   ========================================================= */

.event-date strong {
    top: -28px;
}

@media (max-width: 1100px) {
    .event-date strong {
        top: -26px;
    }
}

@media (max-width: 800px) {
    .event-date strong {
        top: -25px;
    }
}

@media (max-width: 520px) {
    .event-date strong {
        top: -24px;
    }
}

@media (max-width: 520px) and (max-height: 700px) {
    .event-date strong {
        top: -22px;
    }
}


/* =========================================================
   DM MONOGRAM SYSTEM
   ========================================================= */

/* Navbar: works with existing .logo element without requiring
   a change to the navbar markup. */
.logo {
    width: 52px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    background: url("../assets/logo/dm-dark-64.png") center / contain no-repeat;
    flex: 0 0 auto;
}

.logo::before {
    content: "";
    display: none;
}

/* If navbar sits on a dark/photographic background, add
   .logo-light to the logo element. */
.logo.logo-light {
    background-image: url("../assets/logo/dm-white-64.png");
}

/* Cover monogram */
.cover-monogram {
    width: 92px;
    height: 76px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-8px);
    animation: dmLogoIn .9s ease .15s forwards;
}

.cover-monogram img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes dmLogoIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loader */
.loader-logo-image {
    width: 86px;
    height: 72px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Footer */
.footer-logo {
    width: 78px;
    height: 64px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile refinements */
@media (max-width: 600px) {
    .logo {
        width: 46px;
        height: 38px;
    }

    .cover-monogram {
        width: 76px;
        height: 64px;
        margin-bottom: 18px;
    }

    .loader-logo-image {
        width: 74px;
        height: 62px;
        margin-bottom: 18px;
    }

    .footer-logo {
        width: 68px;
        height: 56px;
        margin-bottom: 22px;
    }
}

/* =========================================================
   FINAL DM MONOGRAM + ICON FALLBACK PATCH
   Keeps the existing design intact while removing the
   dependency on the Font Awesome Kit for critical UI icons.
   ========================================================= */
.header .logo {
    width: 52px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#menuToggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: currentColor;
    align-items: center;
    justify-content: center;
}

#menuToggle svg,
.music-button svg,
.button-icon svg,
.scroll-down svg,
.footer-social svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#menuToggle svg {
    width: 23px;
    height: 23px;
}

.music-button .pause-icon {
    display: none;
}

.music-button.playing .music-icon {
    display: none;
}

.music-button.playing .pause-icon {
    display: block;
}

.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-icon svg {
    width: 17px;
    height: 17px;
}

.scroll-down {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-down svg {
    width: 22px;
    height: 22px;
}

.footer-social a svg {
    width: 17px;
    height: 17px;
}

.footer-social svg .fill {
    fill: currentColor;
    stroke: none;
}

/* Refined cover typography: smaller, lighter, more editorial. */
#cover .couple-name {
    margin: 20px 0 0;
    line-height: .94;
}

#cover .couple-name strong {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(46px, 6vw, 66px);
    font-weight: 400;
    letter-spacing: .01em;
    line-height: .96;
}

#cover .ampersand {
    margin: 6px 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
}

#cover .cover-monogram {
    width: 80px;
    height: 70px;
    margin-bottom: 15px;
}

@media (max-width: 820px) {
    .header .logo {
        width: 46px;
        height: 40px;
    }

    #cover .cover-monogram {
        width: 68px;
        height: 60px;
        margin-bottom: 12px;
    }

    #cover .couple-name {
        margin-top: 16px;
    }

    #cover .couple-name strong {
        font-size: clamp(42px, 12vw, 56px);
    }

    #cover .ampersand {
        font-size: 27px;
        margin: 5px 0;
    }
}

@media (max-width: 520px) {
    #cover .couple-name strong {
        font-size: 43px;
    }

    #cover .ampersand {
        font-size: 25px;
    }
}


/* =========================================================
   HERO — ORIGINAL LOOK + CENTERED DM MONOGRAM
   Only visual corrections requested:
   - DM logo perfectly centered
   - remove divider under the names
   - restore restrained editorial typography
   ========================================================= */

.hero-monogram {
    width: 76px;
    height: 76px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex: 0 0 auto;
}

.hero-monogram img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

/* Keep the original simple eyebrow treatment; no decorative brown line. */
.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow span {
    display: none;
}

.hero-eyebrow small {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 6px;
    line-height: 1.4;
    color: rgba(255,255,255,.94);
    text-transform: uppercase;
}

/* Restore the date to a clean, non-heavy editorial treatment. */
.hero-date {
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2.5px;
    line-height: 1.6;
    color: #ecd8ab;
    text-transform: none;
}

/* Quote remains elegant and readable without introducing new decorations. */
.hero-quote {
    max-width: 620px;
    margin: 40px auto 0;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.95;
    font-style: italic;
    color: rgba(255,255,255,.94);
}

/* Verse stays exactly as a quiet gold signature. */
.hero-verse {
    margin-top: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 5px;
    line-height: 1.5;
    color: #ecd8ab;
}

/* The arrow itself is an inline SVG, independent of Font Awesome. */
.scroll-down {
    margin-top: 45px;
}

.scroll-down svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {

    .hero-monogram {
        width: 68px;
        height: 68px;
        margin-bottom: 24px;
    }

    .hero-eyebrow small {
        font-size: 11px;
        letter-spacing: 5px;
    }

    .hero-date {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .hero-quote {
        font-size: 17px;
        line-height: 1.8;
    }

    .hero-verse {
        font-size: 12px;
        letter-spacing: 4px;
    }

}

/* =========================================================
   SCROLL DOWN — CENTER ONLY
   Only fixes the circle + arrow position in the Hero.
   No other Hero typography/layout is changed.
   ========================================================= */

#hero .scroll-down {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 45px auto 0 !important;
    padding: 0;
    box-sizing: border-box;
    flex: 0 0 54px;
}

#hero .scroll-down svg {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 auto;
}

/* =========================================================
   MOBILE MENU — MENU2 VISUAL, MENU1 TYPOGRAPHY
   Desain panel mengikuti referensi menu2:
   - overlay layar penuh
   - panel gelap transparan dengan sudut membulat
   - menu rata kiri
   - nuansa editorial/premium

   Font dan tulisan tetap mengikuti menu1:
   - Poppins
   - Beranda
   - Pasangan
   - Acara
   - Konfirmasi Kehadiran
   - Galeri
   ========================================================= */

@media (max-width: 768px) {

    #menu {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 84px 56px 70px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;

        /* full-screen dark overlay, allowing the page/photo behind to remain visible */
        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,.46) 0%,
                rgba(0,0,0,.58) 100%
            ) !important;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);

        border: 0 !important;
        box-shadow: none !important;

        opacity: 0;
        visibility: hidden;
        transform: none !important;
        pointer-events: none;

        transition:
            opacity .35s ease,
            visibility 0s linear .4s;
        z-index: 9998 !important;
        overflow: hidden !important;
    }

    /* Rounded dark panel — visual language of menu2 */
    #menu::before {
        content: "";
        position: absolute;
        top: 14px;
        left: 7.2%;
        right: 7.2%;
        height: min(498px, calc(100dvh - 120px));

        border-radius: 30px;

        background:
            linear-gradient(
                180deg,
                rgba(12,15,13,.91) 0%,
                rgba(12,14,13,.96) 100%
            );

        box-shadow:
            0 25px 70px rgba(0,0,0,.38),
            inset 0 1px 0 rgba(255,255,255,.035);

        pointer-events: none;
        z-index: 0;
    }

    #menu.active,
    #menu.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition:
            opacity .35s ease,
            visibility 0s;
    }

    #menu li {
        position: relative !important;
        z-index: 2 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;

        opacity: 0;
        transform: translateY(10px);
        transition:
            opacity .32s ease,
            transform .42s cubic-bezier(.22,1,.36,1);
    }

    #menu.active li,
    #menu.open li {
        opacity: 1;
        transform: translateY(0);
    }

    #menu.active li:nth-child(1),
    #menu.open li:nth-child(1) { transition-delay: .05s; }

    #menu.active li:nth-child(2),
    #menu.open li:nth-child(2) { transition-delay: .09s; }

    #menu.active li:nth-child(3),
    #menu.open li:nth-child(3) { transition-delay: .13s; }

    #menu.active li:nth-child(4),
    #menu.open li:nth-child(4) { transition-delay: .17s; }

    #menu.active li:nth-child(5),
    #menu.open li:nth-child(5) { transition-delay: .21s; }

    /* FONT & LABEL MENU1 DIPERTAHANKAN */
    #menu li a {
        position: relative !important;
        display: flex !important;
        align-items: center;
        justify-content: center !important;

        width: 100% !important;
        min-height: 52px !important;
        padding: 7px 0 !important;
        margin: 0 !important;

        color: #ffffff !important;
        background: transparent !important;

        font-family: "Poppins", sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        letter-spacing: .08em !important;
        line-height: 1.45 !important;
        text-decoration: none !important;
        text-align: center !important;

        border: 0 !important;
        transition:
            color .25s ease,
            letter-spacing .25s ease,
            opacity .25s ease;
    }

    #menu li a::after {
        content: none !important;
    }

    #menu li a:hover,
    #menu li a:focus-visible {
        color: #ffffff !important;
        letter-spacing: .10em !important;
        opacity: .72;
    }

    /* Toggle tetap di atas overlay */
    #menuToggle {
        position: fixed !important;
        top: 22px !important;
        right: 20px !important;
        z-index: 10001 !important;
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        color: #ffffff !important;
        background: transparent !important;
    }

    #menuToggle svg {
        width: 24px !important;
        height: 24px !important;
        transition: transform .35s ease, opacity .25s ease;
        transform-origin: center;
    }

    #menuToggle[aria-expanded="true"] svg {
        transform: rotate(90deg);
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 520px) {
    #menu {
        padding: 78px 54px 60px !important;
    }

    #menu::before {
        left: 7.2%;
        right: 7.2%;
        top: 14px;
        height: min(500px, calc(100dvh - 105px));
        border-radius: 28px;
    }

    #menu li a {
        min-height: 50px !important;
        font-size: 13px !important;
        letter-spacing: .075em !important;
    }

    #menuToggle {
        top: 20px !important;
        right: 18px !important;
    }
}

/* =========================================================
   MUSIC ICON ONLY — FINAL
   Uses the same music-note icon while playing.
   No other styles are changed.
   ========================================================= */

.music-button .music-icon {
    display: block !important;
}

.music-button .pause-icon {
    display: none !important;
}

.music-button.playing .music-icon {
    display: block !important;
    animation: spinMusic 4s linear infinite !important;
    transform-origin: center center;
}

.music-button.playing .pause-icon {
    display: none !important;
}

.music-button:not(.playing) .music-icon {
    display: block !important;
    animation: none !important;
}

.music-button:not(.playing) .pause-icon {
    display: block !important;
}

/* The rotation belongs to the note itself, not the whole button. */
.music-button.playing:hover {
    transform: none;
}

/* =========================================================
   MENU LIST — IKUT HILANG BERSAMA HEADER
   ========================================================= */

@media (max-width: 768px) {

    /* Navbar masih hidden di posisi paling atas */
    .header:not(.nav-show) #menu,
    .header:not(.nav-show) #menu.active,
    .header:not(.nav-show) #menu.open {

        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-14px) !important;
        pointer-events: none !important;

        transition:
            opacity .5s ease,
            transform .5s ease,
            visibility 0s linear .5s !important;
    }

    /* Navbar sudah muncul setelah scroll */
    .header.nav-show #menu {

        transition:
            opacity .5s ease,
            transform .5s cubic-bezier(.22,1,.36,1),
            visibility 0s !important;
    }

}


/* =========================================================
   COVER — STYLE MENGIKUTI REFERENSI GAMBAR 1
   - Nama Doni & Marsya dibuat editorial seperti referensi
   - "&" menjadi elemen besar/transparan di belakang nama
   - Area tamu mengikuti format "Dear, / Nama"
   - Kotak tamu dihilangkan
   ========================================================= */

#cover .couple-name {
    position: relative;
    margin: 8px auto 0;
    line-height: .88;
    isolation: isolate;
}

#cover .couple-name strong {
    position: relative;
    z-index: 2;

    font-family: "Cormorant Garamond", "Playfair Display", serif;
    font-size: clamp(56px, 9vw, 76px);
    font-weight: 400;
    letter-spacing: -.015em;
    line-height: .88;

    color: #fff;
    text-shadow: 0 5px 20px rgba(0,0,0,.16);
}

#cover .couple-name .ampersand {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;

    margin: 0;
    transform: translate(-50%, -50%);

    font-family: "Cormorant Garamond", "Playfair Display", serif;
    font-size: clamp(105px, 18vw, 145px);
    font-weight: 400;
    font-style: normal;
    line-height: 1;

    color: rgba(255,255,255,.20);
    text-shadow: none;
    pointer-events: none;
}

/* Referensi gambar 1 tidak memakai divider di bawah nama */
#cover .cover-divider {
    display: none;
}

#cover .cover-date {
    margin: 18px 0 0;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,.92);
}

/* Area tamu tanpa border/kotak */
#cover .guest-box {
    width: auto;
    max-width: 330px;
    margin: clamp(110px, 15vh, 170px) auto 22px;
    padding: 0;

    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

#cover .guest-label {
    margin: 0 0 2px;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0;
    color: rgba(255,255,255,.95);
}

#cover .guest-name {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    color: #fff;
}

#cover .guest-count {
    margin-top: 1px;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255,255,255,.95);
}

#cover .guest-note {
    max-width: 300px;
    margin: 14px auto 0;
    font-family: "Poppins", sans-serif;
    font-size: 9px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: rgba(255,255,255,.92);
}

#cover .open-invitation {
    min-width: 215px;
    padding: 13px 24px;
    border-radius: 7px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 520px) {
    #cover .couple-name strong {
        font-size: 52px;
    }

    #cover .couple-name .ampersand {
        font-size: 110px;
    }

    #cover .cover-date {
        margin-top: 16px;
        font-size: 11px;
        letter-spacing: 2px;
    }

    #cover .guest-box {
        margin-top: clamp(85px, 13vh, 130px);
    }

    #cover .guest-label {
        font-size: 11px;
    }

    #cover .guest-name {
        font-size: 15px;
    }

    #cover .guest-note {
        font-size: 8px;
        margin-top: 12px;
    }

    #cover .open-invitation {
        min-width: 210px;
        padding: 12px 22px;
    }
}

@media (max-width: 520px) and (max-height: 700px) {
    #cover .guest-box {
        margin-top: 65px;
    }

    #cover .guest-note {
        margin-top: 8px;
    }
}


/* =========================================================
   COUPLE — FULL SCREEN EDITORIAL
   Meniru komposisi full-screen couple2, tetapi mempertahankan
   font, ukuran, dan posisi teks dari desain couple1.
   ========================================================= */

#couple.couple-editorial {
    min-height: 100svh;
    height: auto;
    padding: 0;
    background: #aaa8a8;
    overflow: hidden;
}

#couple.couple-editorial .couple-editorial-head {
    position: absolute;
    z-index: 10;
    top: clamp(28px, 5vh, 54px);
    left: 20px;
    right: 20px;
    width: auto;
    margin: 0;
    pointer-events: none;
    color: rgba(255,255,255,.92);
}

#couple.couple-editorial .couple-editorial-head .couple-kicker,
#couple.couple-editorial .couple-editorial-head p {
    color: rgba(255,255,255,.86);
}

#couple.couple-editorial .couple-line {
    background: rgba(255,255,255,.38);
}

#couple.couple-editorial .couple-editorial-grid {
    width: 100%;
    min-height: 100svh;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

#couple.couple-editorial .couple-editorial-card {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
}

#couple.couple-editorial .couple-editorial-card:hover {
    box-shadow: none;
}

#couple.couple-editorial .couple-editorial-media img {
    object-position: center center;
}

#couple.couple-editorial .couple-editorial-content {
    left: clamp(22px, 4vw, 46px);
    right: clamp(22px, 4vw, 46px);
    bottom: clamp(28px, 5vh, 48px);
}

#couple.couple-editorial .couple-scroll-hint {
    display: none;
}

@media (max-width: 800px) {

    #couple.couple-editorial {
        min-height: auto;
    }

    #couple.couple-editorial .couple-editorial-head {
        top: 27px;
        left: 18px;
        right: 18px;
        margin: 0;
    }

    #couple.couple-editorial .couple-editorial-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0;
    }

    #couple.couple-editorial .couple-editorial-card {
        width: 100%;
        height: 100svh;
        min-height: 100svh;
        aspect-ratio: auto;
    }

    #couple.couple-editorial .couple-editorial-top {
        top: 21px;
        left: 21px;
        right: 21px;
    }

    #couple.couple-editorial .couple-editorial-content {
        left: 22px;
        right: 22px;
        bottom: 27px;
    }
}

@media (max-width: 520px) {

    #couple.couple-editorial .couple-editorial-head {
        top: 24px;
        left: 18px;
        right: 18px;
    }

    #couple.couple-editorial .couple-editorial-head p {
        font-size: 13px;
    }

    #couple.couple-editorial .couple-line {
        width: 28px;
    }

    #couple.couple-editorial .couple-editorial-card {
        height: 100svh;
        min-height: 100svh;
    }

    #couple.couple-editorial .couple-editorial-top {
        top: 18px;
        left: 18px;
        right: 18px;
        font-size: 8px;
        letter-spacing: .2em;
    }

    #couple.couple-editorial .couple-editorial-content {
        left: 18px;
        right: 18px;
        bottom: 22px;
    }

    #couple.couple-editorial .couple-editorial-content h2 {
        font-size: clamp(40px, 12vw, 52px);
        line-height: .9;
    }
}

/* =========================================================
   NAVBAR — MINIMAL BURGER ONLY
   Final visual override:
   - No navbar background / glass effect
   - Only burger icon is visible after scroll
   - Burger stays on the left side of the screen
   - Existing nav-show scroll behavior is preserved
   ========================================================= */

.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 0 !important;
    z-index: 9999 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.header.scrolled,
.header.scrolled::before {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#navbar,
#navbar.scrolled {
    width: 100% !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Logo is intentionally hidden: navbar2 only uses the burger. */
.header .logo {
    display: none !important;
}

/* Burger remains hidden until .nav-show is added by the existing JS. */
.header #menuToggle {
    position: fixed !important;
    top: 28px !important;
    right: 30px !important;
    z-index: 10000 !important;

    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-12px) !important;

    transition:
        opacity .5s ease,
        visibility .5s ease,
        transform .5s cubic-bezier(.22,1,.36,1) !important;
}

/* Show only after the existing scroll threshold is reached. */
.header.nav-show #menuToggle {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.header #menuToggle svg {
    width: 25px !important;
    height: 25px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    transition: transform .35s ease !important;
}

.header #menuToggle:hover svg {
    transform: scale(1.04);
}

.header #menuToggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

.header #menuToggle[aria-expanded="true"]:hover svg {
    transform: rotate(90deg) scale(1.04);
}

/* Keep the opened menu panel itself unchanged. */
.header.nav-show #menu {
    z-index: 9998 !important;
}

@media (max-width: 768px) {
    .header #menuToggle {
        top: 22px !important;
        right: 20px !important;
        width: 38px !important;
        height: 38px !important;
    }

    .header #menuToggle svg {
        width: 24px !important;
        height: 24px !important;
    }
}

@media (max-width: 520px) {
    .header #menuToggle {
        top: 20px !important;
        right: 18px !important;
    }
}

/* =========================================================
   MAGNETIC FULL-SCREEN SECTION SCROLL
   One small gesture = one full-screen section.
   Sections: Beranda, Pasangan, Acara, Konfirmasi Kehadiran, Galeri
   ========================================================= */
html.magnetic-scroll,
html.magnetic-scroll body{
    scroll-behavior:auto;
}

html.magnetic-scroll{
    scroll-snap-type:y mandatory;
    overscroll-behavior-y:none;
}

html.magnetic-scroll body{
    overscroll-behavior-y:none;
}

html.magnetic-scroll #hero,
html.magnetic-scroll #couple,
html.magnetic-scroll #event,
html.magnetic-scroll #wishes,
html.magnetic-scroll #gallery{
    min-height:100svh;
    height:100svh;
    padding-top:clamp(76px, 9vh, 110px);
    padding-bottom:clamp(52px, 7vh, 88px);
    scroll-snap-align:start;
    scroll-snap-stop:always;
    display:flex;
    flex-direction:column;
    justify-content:center;
    overflow:hidden;
}

/* Keep the visual transition soft without changing the existing design. */
html.magnetic-scroll .magnetic-section-content{
    filter:blur(0);
    opacity:1;
    transform:translateY(0) scale(1);
    transition:
        filter .42s ease,
        opacity .42s ease,
        transform .65s cubic-bezier(.22,1,.36,1);
    will-change:filter, opacity, transform;
}

html.magnetic-scroll .magnetic-section.is-transitioning .magnetic-section-content{
    filter:blur(9px);
    opacity:.35;
    transform:translateY(12px) scale(.985);
}

html.magnetic-scroll .magnetic-section.is-active .magnetic-section-content{
    animation:magneticReveal .72s cubic-bezier(.22,1,.36,1) both;
}

@keyframes magneticReveal{
    0%{filter:blur(10px);opacity:.35;transform:translateY(16px) scale(.985)}
    55%{filter:blur(3px);opacity:.82;transform:translateY(4px) scale(.995)}
    100%{filter:blur(0);opacity:1;transform:translateY(0) scale(1)}
}

/* Existing reveal animations remain compatible with the magnetic transition. */
html.magnetic-scroll #hero .fade-up,
html.magnetic-scroll #couple .fade-up,
html.magnetic-scroll #event .fade-up,
html.magnetic-scroll #wishes .fade-up,
html.magnetic-scroll #gallery .fade-up,
html.magnetic-scroll #hero .fade,
html.magnetic-scroll #couple .fade,
html.magnetic-scroll #event .fade,
html.magnetic-scroll #wishes .fade,
html.magnetic-scroll #gallery .fade,
html.magnetic-scroll #hero .scale,
html.magnetic-scroll #couple .scale,
html.magnetic-scroll #event .scale,
html.magnetic-scroll #wishes .scale,
html.magnetic-scroll #gallery .scale{
    transition-delay:0s;
}

@media (max-width:768px){
    html.magnetic-scroll #hero,
    html.magnetic-scroll #couple,
    html.magnetic-scroll #event,
    html.magnetic-scroll #wishes,
    html.magnetic-scroll #gallery{
        min-height:100svh;
        height:100svh;
        padding-top:72px;
        padding-bottom:34px;
    }
}

@media (prefers-reduced-motion:reduce){
    html.magnetic-scroll,
    html.magnetic-scroll body{
        scroll-behavior:auto;
    }

    html.magnetic-scroll .magnetic-section-content{
        transition:none;
        animation:none !important;
        filter:none !important;
        opacity:1 !important;
        transform:none !important;
    }
}

/* =========================================================
   MAGNETIC SCROLL v2 — NATURAL HEIGHT / TOP ANCHOR
   Sections are NOT forced into 100vh. Each gesture lands at
   the top of the next content block, so uneven content heights
   no longer create clipped or half-visible sections.
   Gallery + Gift + Footer are treated as one final visual area.
   ========================================================= */
html.magnetic-scroll,
html.magnetic-scroll body{
    scroll-behavior:auto;
}

html.magnetic-scroll{
    scroll-snap-type:y proximity;
    overscroll-behavior-y:none;
}

html.magnetic-scroll body{
    overscroll-behavior-y:none;
}

html.magnetic-scroll .magnetic-section{
    min-height:0 !important;
    height:auto !important;
    padding-top:120px;
    padding-bottom:120px;
    scroll-snap-align:start;
    scroll-snap-stop:always;
    display:block !important;
    overflow:visible !important;
}

/* Hero keeps its original full-screen composition. */
html.magnetic-scroll #hero.magnetic-section{
    min-height:100svh !important;
    height:auto !important;
    display:flex !important;
    flex-direction:column;
    justify-content:center;
    overflow:hidden !important;
}

/* Gallery itself contains the long sticky gallery story, so never clip it. */
html.magnetic-scroll #gallery{
    min-height:0 !important;
    height:auto !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    overflow:visible !important;
}

/* One final magnetic anchor containing Gallery → Gift → Footer. */
html.magnetic-scroll .magnetic-gallery-footer{
    min-height:0 !important;
    height:auto !important;
    padding:0 !important;
    scroll-snap-align:start;
    scroll-snap-stop:always;
    overflow:visible !important;
    background:var(--ivory);
}

html.magnetic-scroll .magnetic-gallery-footer > .magnetic-section-content{
    display:block;
}

/* The footer is now visually attached to the gallery flow. */
html.magnetic-scroll .magnetic-gallery-footer .footer{
    margin-top:0;
}

/* Soft blur/reveal remains, but does not impose a viewport-sized box. */
html.magnetic-scroll .magnetic-section-content{
    filter:blur(0);
    opacity:1;
    transform:translateY(0) scale(1);
    transition:
        filter .42s ease,
        opacity .42s ease,
        transform .62s cubic-bezier(.22,1,.36,1);
    will-change:filter, opacity, transform;
}

html.magnetic-scroll .magnetic-section.is-transitioning .magnetic-section-content{
    filter:blur(9px);
    opacity:.38;
    transform:translateY(10px) scale(.992);
}

html.magnetic-scroll .magnetic-section.is-active .magnetic-section-content{
    animation:magneticRevealNatural .68s cubic-bezier(.22,1,.36,1) both;
}

@keyframes magneticRevealNatural{
    0%{filter:blur(10px);opacity:.35;transform:translateY(14px) scale(.992)}
    55%{filter:blur(3px);opacity:.82;transform:translateY(3px) scale(.998)}
    100%{filter:blur(0);opacity:1;transform:translateY(0) scale(1)}
}

@media (max-width:768px){
    html.magnetic-scroll .magnetic-section{
        padding-top:82px;
        padding-bottom:64px;
    }

    html.magnetic-scroll #hero.magnetic-section{
        min-height:100svh !important;
        padding-top:72px;
        padding-bottom:34px;
    }

    html.magnetic-scroll #gallery{
        padding-top:0 !important;
        padding-bottom:0 !important;
    }
}

@media (prefers-reduced-motion:reduce){
    html.magnetic-scroll .magnetic-section-content{
        transition:none;
        animation:none !important;
        filter:none !important;
        opacity:1 !important;
        transform:none !important;
    }
}

/* =========================================================
   MAGNETIC SCROLL v3 — COUPLE CARDS AS TRUE FULL-SCREEN PANELS
   Fixes:
   1. Fixed navbar is a transparent overlay; it creates NO layout gap.
   2. Couple male and female are two separate magnetic targets.
   3. Each couple card fills the viewport exactly.
   4. Other sections keep their natural content height.
   5. Gallery remains attached to Gift + Footer.
   ========================================================= */

html.magnetic-scroll {
    scroll-snap-type: none !important;
    scroll-padding-top: 0 !important;
}

html.magnetic-scroll body {
    scroll-snap-type: none !important;
}

/* The navbar floats above the content. */
html.magnetic-scroll .header,
html.magnetic-scroll #navbar {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none;
}

html.magnetic-scroll .header #menuToggle {
    pointer-events: auto !important;
}

/* Never reserve a fake top margin for the fixed header. */
html.magnetic-scroll #hero,
html.magnetic-scroll #couple,
html.magnetic-scroll #event,
html.magnetic-scroll #wishes,
html.magnetic-scroll #gallery {
    scroll-margin-top: 0 !important;
}

/* ---------------------------------------------------------
   COUPLE: 2 screens, one card per screen
   --------------------------------------------------------- */
html.magnetic-scroll #couple.couple-editorial {
    height: auto !important;
    min-height: 200svh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    position: relative;
}

html.magnetic-scroll #couple.couple-editorial .couple-editorial-head {
    position: absolute !important;
    z-index: 5;
    top: 28px;
    left: 50%;
    width: min(1080px, calc(100% - 36px));
    margin: 0 !important;
    transform: translateX(-50%);
    pointer-events: none;
}

html.magnetic-scroll #couple.couple-editorial .couple-editorial-grid {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 200svh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(2, 100svh) !important;
    gap: 0 !important;
}

html.magnetic-scroll #couple.couple-editorial .couple-editorial-card {
    width: 100% !important;
    height: 100svh !important;
    min-height: 100svh !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    scroll-margin-top: 0 !important;
}

/* Couple images stay cinematic while occupying the complete viewport. */
html.magnetic-scroll #couple.couple-editorial .couple-editorial-media,
html.magnetic-scroll #couple.couple-editorial .couple-editorial-media img,
html.magnetic-scroll #couple.couple-editorial .couple-editorial-shade {
    width: 100%;
    height: 100%;
}

html.magnetic-scroll #couple.couple-editorial .couple-editorial-media img {
    object-fit: cover !important;
    object-position: center center;
}

/* Preserve the existing blur/reveal, but make it deterministic per card. */
html.magnetic-scroll #couple.couple-editorial .couple-editorial-card {
    --couple-progress: 0;
}

html.magnetic-scroll #couple.couple-editorial .couple-editorial-card.is-active {
    --couple-progress: 1;
}

html.magnetic-scroll #couple.couple-editorial .couple-editorial-card.is-transitioning {
    --couple-progress: .08;
}

/* ---------------------------------------------------------
   Hero: exactly one viewport, with no navbar compensation.
   --------------------------------------------------------- */
html.magnetic-scroll #hero.magnetic-section {
    min-height: 100svh !important;
    height: 100svh !important;
    margin: 0 !important;
    padding: 0 20px !important;
    scroll-margin-top: 0 !important;
}

/* ---------------------------------------------------------
   Natural sections: start at their real top, no artificial gap.
   --------------------------------------------------------- */
html.magnetic-scroll #event.magnetic-section,
html.magnetic-scroll #wishes.magnetic-section {
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding-top: clamp(70px, 8vw, 110px) !important;
    padding-bottom: clamp(70px, 8vw, 110px) !important;
    scroll-margin-top: 0 !important;
    overflow: visible !important;
}

/* Gallery/Gift/Footer remain a single natural final flow. */
html.magnetic-scroll .magnetic-gallery-footer {
    margin: 0 !important;
    padding: 0 !important;
    scroll-margin-top: 0 !important;
    overflow: visible !important;
}

html.magnetic-scroll #gallery.gallery-editorial {
    scroll-margin-top: 0 !important;
}

/* ---------------------------------------------------------
   Blur transition layer
   --------------------------------------------------------- */
html.magnetic-scroll .magnetic-section-content {
    will-change: filter, opacity, transform;
}

html.magnetic-scroll .magnetic-section-content.is-transitioning {
    filter: blur(9px) !important;
    opacity: .38 !important;
    transform: translateY(10px) scale(.992) !important;
}

html.magnetic-scroll .magnetic-section-content.is-active {
    animation: magneticRevealV3 .68s cubic-bezier(.22,1,.36,1) both;
}

@keyframes magneticRevealV3 {
    0% {
        filter: blur(10px);
        opacity: .35;
        transform: translateY(14px) scale(.992);
    }
    55% {
        filter: blur(3px);
        opacity: .82;
        transform: translateY(3px) scale(.998);
    }
    100% {
        filter: blur(0);
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Desktop and mobile: both couple cards are intentionally sequential. */
@media (max-width: 800px) {
    html.magnetic-scroll #couple.couple-editorial .couple-editorial-head {
        top: 20px;
        width: calc(100% - 36px);
    }

    html.magnetic-scroll #couple.couple-editorial .couple-editorial-grid {
        grid-template-rows: repeat(2, 100svh) !important;
    }

    html.magnetic-scroll #couple.couple-editorial .couple-editorial-card {
        height: 100svh !important;
        min-height: 100svh !important;
    }

    html.magnetic-scroll #couple.couple-editorial .couple-editorial-top {
        top: 22px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.magnetic-scroll .magnetic-section-content,
    html.magnetic-scroll .magnetic-section-content.is-active,
    html.magnetic-scroll .magnetic-section-content.is-transitioning {
        animation: none !important;
        transition: none !important;
        filter: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* =========================================================
   MAGNETIC SCROLL V5 — EVENT / RSVP EDITORIAL PANELS
   ========================================================= */

/* No browser snap or header spacing: JS controls the magnetic anchors. */
html.magnetic-scroll,
html.magnetic-scroll body{
    scroll-behavior:auto !important;
}

html.magnetic-scroll{
    scroll-snap-type:none !important;
    scroll-padding-top:0 !important;
    overscroll-behavior-y:none;
}

html.magnetic-scroll body{
    overscroll-behavior-y:none;
}

/* Fixed navbar remains a pure overlay. */
html.magnetic-scroll .header{
    height:0 !important;
    min-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
}

html.magnetic-scroll #navbar{
    height:0 !important;
    min-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    pointer-events:none;
}

html.magnetic-scroll #menuToggle{
    pointer-events:auto !important;
}

/* Hero and couple keep the successful v3 composition. */
html.magnetic-scroll #hero.magnetic-section{
    height:100svh !important;
    min-height:100svh !important;
    margin:0 !important;
    padding:0 !important;
    scroll-margin-top:0 !important;
    overflow:hidden !important;
}

html.magnetic-scroll #couple.couple-editorial{
    min-height:200svh !important;
    height:auto !important;
    padding:0 !important;
    margin:0 !important;
    overflow:visible !important;
}

html.magnetic-scroll #couple.couple-editorial .couple-editorial-grid{
    min-height:200svh !important;
    height:auto !important;
    grid-template-rows:repeat(2, 100svh) !important;
    gap:0 !important;
}

html.magnetic-scroll #couple.couple-editorial .couple-editorial-card{
    height:100svh !important;
    min-height:100svh !important;
    margin:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
}

/* ---------------------------------------------------------
   EVENT = one centered card / one magnetic screen
   --------------------------------------------------------- */
html.magnetic-scroll #event.event-modern{
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    height:100svh !important;
    min-height:100svh !important;
    margin:0 !important;
    padding:clamp(76px, 9vh, 100px) 20px !important;
    overflow:hidden !important;
    scroll-margin-top:0 !important;
    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(182,140,90,.08),
            transparent 34%
        ),
        var(--ivory);
}

html.magnetic-scroll #event.event-modern .container.event-stage{
    width:min(980px, 100%) !important;
    max-width:980px !important;
    margin:0 auto !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

html.magnetic-scroll #event.event-modern .event-editorial.event-panel{
    position:relative !important;
    width:min(780px, 100%) !important;
    max-width:780px !important;
    margin:0 auto !important;

    /* Let event.php's reveal system control blur/opacity/position.
       The previous override forced opacity:1/filter:none/transform:none,
       which disabled the blur -> reveal effect on Event. */
    opacity:var(--event-reveal-opacity, calc(.58 + var(--reveal, 0) * .42)) !important;
    filter:blur(calc((1 - var(--reveal, 0)) * 5px)) !important;
    transform:
        translate3d(0, calc((1 - var(--reveal, 0)) * 34px), 0)
        scale(calc(.975 + var(--reveal, 0) * .025)) !important;
    transition:
        opacity .18s ease,
        filter .18s ease,
        transform .28s cubic-bezier(.22,1,.36,1) !important;
    will-change:opacity, filter, transform;
}

html.magnetic-scroll #event.event-modern .event-main-card{
    width:100% !important;
    max-height:calc(100svh - 130px) !important;
    overflow:auto !important;
    margin:0 auto !important;
    padding:clamp(28px, 4vw, 48px) !important;
}

/* ---------------------------------------------------------
   RSVP = one centered card / one magnetic screen
   --------------------------------------------------------- */
html.magnetic-scroll #wishes.wishes-venue{
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    height:100svh !important;
    min-height:100svh !important;
    margin:0 !important;
    padding:clamp(76px, 9vh, 100px) 20px !important;
    overflow:hidden !important;
    scroll-margin-top:0 !important;
    background:
        radial-gradient(
            circle at 18% 80%,
            rgba(182,140,90,.055),
            transparent 34%
        ),
        var(--ivory);
}

html.magnetic-scroll #wishes.wishes-venue .container{
    width:min(1000px, 100%) !important;
    max-width:1000px !important;
    margin:0 auto !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

html.magnetic-scroll #wishes.wishes-venue .wishes-card{
    width:min(700px, 100%) !important;
    max-width:700px !important;
    max-height:calc(100svh - 130px) !important;
    overflow:auto !important;
    margin:0 auto !important;
    padding:clamp(24px, 4vw, 42px) !important;
}

/* The card itself is the animated editorial object. */
html.magnetic-scroll #event .event-panel,
html.magnetic-scroll #wishes .wishes-card{
    will-change:transform, filter, opacity;
}

/* ---------------------------------------------------------
   Blur first, then horizontal editorial slide.
   Event -> RSVP: current exits left, RSVP enters from right.
   RSVP -> Event: current exits right, Event enters from left.
   --------------------------------------------------------- */
html.magnetic-scroll .magnetic-section-content{
    opacity:1;
    filter:blur(0);
    transform:translate3d(0,0,0);
}

html.magnetic-scroll .magnetic-section-content.is-transitioning{
    animation:none !important;
    filter:blur(9px) !important;
    opacity:.45 !important;
}

html.magnetic-scroll .magnetic-section-content.is-active{
    animation:magneticV5Reveal .68s cubic-bezier(.22,1,.36,1) both;
}

@keyframes magneticV5Reveal{
    0%{
        filter:blur(10px);
        opacity:.35;
        transform:translate3d(0,12px,0) scale(.992);
    }
    55%{
        filter:blur(3px);
        opacity:.82;
        transform:translate3d(0,3px,0) scale(.998);
    }
    100%{
        filter:blur(0);
        opacity:1;
        transform:translate3d(0,0,0) scale(1);
    }
}

html.magnetic-scroll .magnetic-out-left{
    animation:magneticOutLeft .68s cubic-bezier(.65,0,.35,1) both !important;
}

html.magnetic-scroll .magnetic-in-right{
    animation:magneticInRight .72s cubic-bezier(.22,1,.36,1) both !important;
}

html.magnetic-scroll .magnetic-out-right{
    animation:magneticOutRight .68s cubic-bezier(.65,0,.35,1) both !important;
}

html.magnetic-scroll .magnetic-in-left{
    animation:magneticInLeft .72s cubic-bezier(.22,1,.36,1) both !important;
}

@keyframes magneticOutLeft{
    0%{
        opacity:1;
        filter:blur(0);
        transform:translate3d(0,0,0) scale(1);
    }
    28%{
        opacity:.92;
        filter:blur(3px);
        transform:translate3d(-4%,0,0) scale(.995);
    }
    100%{
        opacity:0;
        filter:blur(10px);
        transform:translate3d(-108%,0,0) scale(.975);
    }
}

@keyframes magneticInRight{
    0%{
        opacity:0;
        filter:blur(10px);
        transform:translate3d(108%,0,0) scale(.975);
    }
    35%{
        opacity:.55;
        filter:blur(6px);
        transform:translate3d(30%,0,0) scale(.988);
    }
    70%{
        opacity:.88;
        filter:blur(2px);
        transform:translate3d(-2%,0,0) scale(.998);
    }
    100%{
        opacity:1;
        filter:blur(0);
        transform:translate3d(0,0,0) scale(1);
    }
}

@keyframes magneticOutRight{
    0%{
        opacity:1;
        filter:blur(0);
        transform:translate3d(0,0,0) scale(1);
    }
    28%{
        opacity:.92;
        filter:blur(3px);
        transform:translate3d(4%,0,0) scale(.995);
    }
    100%{
        opacity:0;
        filter:blur(10px);
        transform:translate3d(108%,0,0) scale(.975);
    }
}

@keyframes magneticInLeft{
    0%{
        opacity:0;
        filter:blur(10px);
        transform:translate3d(-108%,0,0) scale(.975);
    }
    35%{
        opacity:.55;
        filter:blur(6px);
        transform:translate3d(-30%,0,0) scale(.988);
    }
    70%{
        opacity:.88;
        filter:blur(2px);
        transform:translate3d(2%,0,0) scale(.998);
    }
    100%{
        opacity:1;
        filter:blur(0);
        transform:translate3d(0,0,0) scale(1);
    }
}

/* ---------------------------------------------------------
   Gallery + Gift + Footer = one final destination.
   Once there, normal internal page scrolling remains possible.
   --------------------------------------------------------- */
html.magnetic-scroll .magnetic-gallery-footer{
    margin:0 !important;
    padding:0 !important;
    min-height:0 !important;
    height:auto !important;
    scroll-margin-top:0 !important;
    overflow:visible !important;
}

html.magnetic-scroll #gallery{
    min-height:0 !important;
    height:auto !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    overflow:visible !important;
}

/* Small screens: keep the cards usable without making them microscopic. */
@media (max-width:768px){

    html.magnetic-scroll #event.event-modern,
    html.magnetic-scroll #wishes.wishes-venue{
        padding:70px 14px 28px !important;
    }

    html.magnetic-scroll #event.event-modern .event-main-card,
    html.magnetic-scroll #wishes.wishes-venue .wishes-card{
        max-height:calc(100svh - 98px) !important;
        padding:24px !important;
    }

    html.magnetic-scroll #event.event-modern .event-details{
        grid-template-columns:1fr !important;
        gap:18px !important;
    }

    html.magnetic-scroll #event.event-modern .event-card-footer{
        padding-top:20px !important;
    }

    html.magnetic-scroll #wishes.wishes-venue .wishes-heading h2{
        font-size:clamp(36px, 11vw, 48px) !important;
    }
}

@media (prefers-reduced-motion:reduce){

    html.magnetic-scroll .magnetic-section-content,
    html.magnetic-scroll .magnetic-out-left,
    html.magnetic-scroll .magnetic-in-right,
    html.magnetic-scroll .magnetic-out-right,
    html.magnetic-scroll .magnetic-in-left{
        animation:none !important;
        filter:none !important;
        opacity:1 !important;
        transform:none !important;
    }
}


/* =========================================================
   V6 — CINEMATIC VIDEO BACKGROUND FOR EVENT + RSVP
   Uses the same gallery video as a darkened background so the
   editorial cards remain the visual focus.
   ========================================================= */
html.magnetic-scroll #event.event-modern,
html.magnetic-scroll #wishes.wishes-venue {
    position: relative !important;
    isolation: isolate;
    background: #151515 !important;
}

html.magnetic-scroll .section-video-bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

html.magnetic-scroll .section-bg-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    filter: saturate(.82) contrast(1.04) brightness(.78) !important;
    transform: scale(1.035) !important;
}

html.magnetic-scroll .section-video-overlay {
    position: absolute !important;
    inset: 0 !important;
    background:
        linear-gradient(
            180deg,
            rgba(8,8,8,.34) 0%,
            rgba(8,8,8,.48) 48%,
            rgba(8,8,8,.58) 100%
        ) !important;
}

/* Keep the content above the video layer. */
html.magnetic-scroll #event.event-modern > .container,
html.magnetic-scroll #wishes.wishes-venue > .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Slightly stronger glass treatment against the moving footage. */
html.magnetic-scroll #event.event-modern .event-main-card,
html.magnetic-scroll #wishes.wishes-venue .wishes-card {
    background: rgba(248,246,240,.90) !important;
    box-shadow:
        0 30px 90px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.72) !important;
}

/* Preserve the horizontal Event -> RSVP transition above the video. */
html.magnetic-scroll #event .event-panel,
html.magnetic-scroll #wishes .wishes-card {
    position: relative !important;
    z-index: 3 !important;
}

@media (max-width:768px) {
    html.magnetic-scroll .section-bg-video {
        object-position: center center !important;
        transform: scale(1.045) !important;
    }

    html.magnetic-scroll .section-video-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(8,8,8,.38) 0%,
                rgba(8,8,8,.50) 50%,
                rgba(8,8,8,.62) 100%
            ) !important;
    }
}

@media (prefers-reduced-motion:reduce) {
    html.magnetic-scroll .section-bg-video {
        display: none !important;
    }

    html.magnetic-scroll #event.event-modern,
    html.magnetic-scroll #wishes.wishes-venue {
        background: #171717 !important;
    }
}


/* =========================================================
   V8 — ONE CONTINUOUS VIDEO FOR HERO + EVENT + RSVP
   A single fixed video element is shared by Hero, Event and RSVP,
   so switching menus never restarts the footage.
   ========================================================= */
html.magnetic-scroll .shared-event-video{
    position:fixed !important;
    inset:0 !important;
    z-index:0 !important;
    overflow:hidden !important;
    pointer-events:none !important;
    opacity:0 !important;
    visibility:hidden !important;
    transition:opacity .28s ease, visibility .28s ease !important;
    background:#111 !important;
}

html.magnetic-scroll .shared-event-video.is-visible{
    opacity:1 !important;
    visibility:visible !important;
}

/* Hero uses the exact same fixed video. Keep the hero composition above it. */
html.magnetic-scroll #hero{
    position:relative !important;
    z-index:1 !important;
    background-image:none !important;
    background-color:transparent !important;
}

html.magnetic-scroll #hero > .container{
    position:relative !important;
    z-index:10 !important;
}

html.magnetic-scroll #hero .hero-content,
html.magnetic-scroll #hero .hero-glass{
    position:relative !important;
    z-index:11 !important;
}

html.magnetic-scroll #sharedEventVideoPlayer{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
    display:block !important;
    filter:saturate(.82) contrast(1.04) brightness(.78) !important;
    transform:scale(1.035) !important;
}

html.magnetic-scroll .shared-event-video-overlay{
    position:absolute !important;
    inset:0 !important;
    background:linear-gradient(
        180deg,
        rgba(8,8,8,.34) 0%,
        rgba(8,8,8,.48) 48%,
        rgba(8,8,8,.58) 100%
    ) !important;
}

/* Event/RSVP sections become transparent so the shared footage is visible. */
html.magnetic-scroll #event.event-modern,
html.magnetic-scroll #wishes.wishes-venue{
    background:transparent !important;
}

/* Their content remains above the shared video. */
html.magnetic-scroll #event.event-modern > .container,
html.magnetic-scroll #wishes.wishes-venue > .container{
    position:relative !important;
    z-index:3 !important;
}

html.magnetic-scroll #event.event-modern .event-panel,
html.magnetic-scroll #wishes.wishes-venue .wishes-card{
    position:relative !important;
    z-index:4 !important;
}

@media (max-width:768px){
    html.magnetic-scroll #sharedEventVideoPlayer{
        object-position:center center !important;
        transform:scale(1.045) !important;
    }

    html.magnetic-scroll .shared-event-video-overlay{
        background:linear-gradient(
            180deg,
            rgba(8,8,8,.38) 0%,
            rgba(8,8,8,.50) 50%,
            rgba(8,8,8,.62) 100%
        ) !important;
    }
}

@media (prefers-reduced-motion:reduce){
    html.magnetic-scroll .shared-event-video{
        display:none !important;
    }
}

/* =========================================================
   PC / TABLET — TRUE MOBILE CANVAS
   Final correction: make the document itself the 430px stage.
   This keeps normal-flow content (Hero, Couple, Event, RSVP,
   Gallery, etc.) in the exact same horizontal coordinate system
   as the shared fixed video.
   ========================================================= */
@media (min-width: 768px) {
    :root {
        --mobile-canvas-width: 430px;
    }

    html {
        width: 100% !important;
        min-width: 100% !important;
        overflow-x: hidden !important;
        background: #111 !important;
    }

    body {
        width: var(--mobile-canvas-width) !important;
        max-width: var(--mobile-canvas-width) !important;
        min-width: var(--mobile-canvas-width) !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        background: #111 !important;
        position: relative !important;
    }

    /* Every normal-flow section now uses the body's centered canvas. */
    body > section,
    body > main,
    body > header,
    body > footer,
    #hero,
    #couple,
    #event,
    #wishes,
    #gallery,
    #gift,
    footer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Remove desktop-sized inner widths that can escape the canvas. */
    #hero .container,
    #couple .container,
    #event .container,
    #wishes .container,
    #gallery .container,
    #gift .container,
    footer .container,
    .container,
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    /* Couple's desktop 2-column grid becomes the existing magnetic
       2-screen layout without overflowing horizontally. */
    html.magnetic-scroll #couple.couple-editorial,
    html.magnetic-scroll #couple.couple-editorial .couple-editorial-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Event / RSVP cards stay centered inside the same 430px stage. */
    html.magnetic-scroll #event.event-modern .container.event-stage,
    html.magnetic-scroll #wishes.wishes-venue .container,
    html.magnetic-scroll #event.event-modern .event-editorial.event-panel,
    html.magnetic-scroll #wishes.wishes-venue .wishes-card {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    html.magnetic-scroll #event.event-modern,
    html.magnetic-scroll #wishes.wishes-venue {
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    /* The card width is reduced by the section's own horizontal padding,
       so it cannot jump to the left/right edge of the monitor. */
    html.magnetic-scroll #event.event-modern .event-main-card,
    html.magnetic-scroll #wishes.wishes-venue .wishes-card {
        max-width: calc(100% - 40px) !important;
        width: calc(100% - 40px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    /* Shared video is the same 430px stage, centered on the monitor. */
    #sharedEventVideo {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 50% !important;
        right: auto !important;
        width: var(--mobile-canvas-width) !important;
        max-width: var(--mobile-canvas-width) !important;
        height: 100dvh !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #sharedEventVideoPlayer {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
    }

    /* Fixed header/menu must use exactly the same canvas center. */
    .header,
    header,
    #siteHeader,
    .site-header {
        width: var(--mobile-canvas-width) !important;
        max-width: var(--mobile-canvas-width) !important;
        min-width: 0 !important;
        left: 50% !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
    }

    #menu {
        width: var(--mobile-canvas-width) !important;
        max-width: var(--mobile-canvas-width) !important;
        min-width: 0 !important;
        left: 50% !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
    }

    #menuToggle {
        left: calc(50% + 157px) !important;
        right: auto !important;
        box-sizing: border-box !important;
    }

    /* Cover/opening screen follows the same mobile stage. */
    #cover {
        width: var(--mobile-canvas-width) !important;
        max-width: var(--mobile-canvas-width) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Progress indicators and floating controls stay inside the stage. */
    #progressBar,
    .progress-bar,
    .scroll-progress,
    .magnetic-progress {
        left: 50% !important;
        right: auto !important;
        width: var(--mobile-canvas-width) !important;
        max-width: var(--mobile-canvas-width) !important;
        transform: translateX(-50%) !important;
    }

    /* Prevent accidental viewport-width media from creating a second stage. */
    body img,
    body video,
    body iframe {
        max-width: 100% !important;
    }
}

/* =========================================================
   FINAL PC / TABLET FIX — MOBILE CANVAS + HIDDEN NAV
   Applies only to >=768px. Mobile layout remains untouched.
   ========================================================= */
@media (min-width: 768px) {

    :root { --mobile-canvas-width: 430px; }

    /* One centered 430px stage */
    html {
        width: 100% !important;
        min-width: 100% !important;
        overflow-x: hidden !important;
        background: #111 !important;
    }

    body {
        width: var(--mobile-canvas-width) !important;
        max-width: var(--mobile-canvas-width) !important;
        min-width: var(--mobile-canvas-width) !important;
        margin: 0 auto !important;
        padding: 0 !important;
        position: relative !important;
        overflow-x: hidden !important;
        background: #111 !important;
    }

    /* All main sections share the exact same canvas. */
    #cover,
    #hero,
    #couple,
    #event,
    #wishes,
    #gallery,
    #gift,
    footer,
    main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .container,
    .container-fluid,
    #hero .container,
    #couple .container,
    #event .container,
    #wishes .container,
    #gallery .container,
    #gift .container,
    footer .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    /* -----------------------------------------------------
       NAV: hidden by default; burger is the only visible UI.
       When JS opens the menu, .active/.open/body.menu-open
       reveals it. This matches the phone behavior.
       ----------------------------------------------------- */

    .header {
        width: var(--mobile-canvas-width) !important;
        max-width: var(--mobile-canvas-width) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        z-index: 10000 !important;
    }

    .header #menu {
        position: fixed !important;
        top: 0 !important;
        left: 50% !important;
        right: auto !important;
        width: var(--mobile-canvas-width) !important;
        max-width: var(--mobile-canvas-width) !important;
        height: 100dvh !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: 9998 !important;
    }

    /* Never show the desktop horizontal list. */
    .header #menu:not(.active):not(.open),
    .header:not(.menu-open) #menu:not(.active):not(.open) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Open states used by the existing menu CSS/JS. */
    .header #menu.active,
    .header #menu.open,
    body.menu-open .header #menu,
    .header.menu-open #menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Keep the burger anchored inside the 430px canvas. */
    .header #menuToggle {
        position: fixed !important;
        left: calc(50% + 157px) !important;
        right: auto !important;
        top: 28px !important;
        z-index: 10001 !important;
    }

    /* -----------------------------------------------------
       COUPLE: one person per magnetic screen.
       Desktop 2-column grid was the source of the split layout.
       ----------------------------------------------------- */
    html.magnetic-scroll #couple.couple-editorial {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 200svh !important;
        height: auto !important;
        overflow: visible !important;
    }

    html.magnetic-scroll #couple.couple-editorial .couple-editorial-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 200svh !important;
        height: auto !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: repeat(2, 100svh) !important;
        gap: 0 !important;
    }

    html.magnetic-scroll #couple.couple-editorial .couple-editorial-card {
        width: 100% !important;
        max-width: 100% !important;
        height: 100svh !important;
        min-height: 100svh !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* -----------------------------------------------------
       EVENT: stack the date column + event card.
       The old desktop 220px + card grid left only ~160px for
       the card inside a 430px canvas, causing the clipping.
       ----------------------------------------------------- */
    html.magnetic-scroll #event.event-modern {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 100svh !important;
        height: 100svh !important;
        padding: 70px 14px 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    html.magnetic-scroll #event.event-modern .container.event-stage {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    html.magnetic-scroll #event.event-modern .event-editorial.event-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        box-sizing: border-box !important;
    }

    html.magnetic-scroll #event.event-modern .event-date-column {
        width: 100% !important;
        min-height: 0 !important;
        padding: 12px 10px 18px !important;
        box-sizing: border-box !important;
    }

    html.magnetic-scroll #event.event-modern .event-main-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 24px 20px !important;
        max-height: calc(100svh - 250px) !important;
        overflow: auto !important;
        box-sizing: border-box !important;
    }

    /* The vertical divider belongs to the desktop two-column
       composition; remove it when the card is stacked. */
    html.magnetic-scroll #event.event-modern .event-editorial.event-panel::before {
        display: none !important;
    }

    /* Keep event text inside the card. */
    html.magnetic-scroll #event.event-modern .event-main-card * {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
    }

    /* -----------------------------------------------------
       RSVP: full-width card inside the same 430px stage.
       ----------------------------------------------------- */
    html.magnetic-scroll #wishes.wishes-venue {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 100svh !important;
        height: 100svh !important;
        padding: 70px 14px 24px !important;
        box-sizing: border-box !important;
    }

    html.magnetic-scroll #wishes.wishes-venue .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    html.magnetic-scroll #wishes.wishes-venue .wishes-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* -----------------------------------------------------
       GALLERY: force the heading/intro to the center of the
       430px canvas. Prevent horizontal clipping.
       ----------------------------------------------------- */
    #gallery.gallery-editorial {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    #gallery.gallery-editorial .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 22px !important;
        padding-right: 22px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    #gallery .gallery-intro,
    #gallery .gallery-video-intro {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    #gallery .gallery-intro h2,
    #gallery .gallery-video-intro h2 {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        transform: none !important;
    }

    #gallery .gallery-intro .gallery-kicker,
    #gallery .gallery-video-intro .gallery-kicker,
    #gallery .gallery-intro .gallery-divider,
    #gallery .gallery-video-intro .gallery-divider,
    #gallery .gallery-intro p,
    #gallery .gallery-video-intro p {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    /* Shared video = exactly the same 430px stage. */
    #sharedEventVideo {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 50% !important;
        right: auto !important;
        width: var(--mobile-canvas-width) !important;
        max-width: var(--mobile-canvas-width) !important;
        height: 100dvh !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #sharedEventVideoPlayer {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
    }
}


/* =========================================================
   FINAL PC/TABLET POLISH
   1) Gallery title centered to the 430px mobile canvas.
   2) Desktop/tablet navigation is hidden until burger opens.
      The open panel follows the Menu 3 composition.
   ========================================================= */

@media (min-width: 768px) {

    :root {
        --mobile-canvas-width: 430px;
    }

    /* -------------------------
       GALLERY — TRUE CANVAS CENTER
       ------------------------- */
    #gallery.gallery-section {
        width: var(--mobile-canvas-width) !important;
        max-width: var(--mobile-canvas-width) !important;
        min-width: var(--mobile-canvas-width) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    #gallery.gallery-section .gallery-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 22px !important;
        padding-right: 22px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    #gallery.gallery-section .gallery-intro,
    #gallery.gallery-section .gallery-video-intro {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 25px !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    #gallery.gallery-section .gallery-intro h2,
    #gallery.gallery-section .gallery-video-intro h2 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        text-align: center !important;
        transform: none !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    #gallery.gallery-section .gallery-divider {
        width: 42px !important;
        margin: 18px auto 0 !important;
        align-self: center !important;
    }

    #gallery.gallery-section .gallery-caption {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }


    /* -------------------------
       BURGER MENU — PC/TABLET
       Closed = ONLY BURGER VISIBLE
       ------------------------- */

    /* Header itself remains over the 430px canvas. */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 50% !important;
        right: auto !important;
        width: var(--mobile-canvas-width) !important;
        max-width: var(--mobile-canvas-width) !important;
        height: 0 !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
        z-index: 10000 !important;
        pointer-events: none !important;
    }

    /* Burger is always the clickable control. */
    .header #menuToggle {
        display: flex !important;
        position: fixed !important;
        top: 28px !important;
        left: auto !important;
        right: 18px !important;
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        z-index: 10002 !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        cursor: pointer !important;
        color: #fff !important;
        background: transparent !important;
        border: 0 !important;
    }

    /* The horizontal desktop list must NEVER be visible in the closed state. */
    .header #menu {
        position: fixed !important;
        top: 0 !important;
        left: 50% !important;
        right: auto !important;
        width: var(--mobile-canvas-width) !important;
        max-width: var(--mobile-canvas-width) !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 84px 54px 60px !important;
        transform: translateX(-50%) !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,.48) 0%,
                rgba(0,0,0,.60) 100%
            ) !important;
        backdrop-filter: blur(3px) !important;
        -webkit-backdrop-filter: blur(3px) !important;

        border: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
        z-index: 10001 !important;
        box-sizing: border-box !important;
    }

    /* Menu 3 dark rounded panel */
    .header #menu::before {
        content: "" !important;
        position: absolute !important;
        top: 14px !important;
        left: 7.2% !important;
        right: 7.2% !important;
        height: min(498px, calc(100dvh - 105px)) !important;
        border-radius: 28px !important;
        background:
            linear-gradient(
                180deg,
                rgba(12,15,13,.93) 0%,
                rgba(12,14,13,.97) 100%
            ) !important;
        box-shadow:
            0 25px 70px rgba(0,0,0,.38),
            inset 0 1px 0 rgba(255,255,255,.035) !important;
        pointer-events: none !important;
        z-index: 0 !important;
    }

    /* Support the common open states used by the existing JS. */
    .header #menu.active,
    .header #menu.open,
    .header.nav-show #menu.active,
    .header.nav-show #menu.open,
    body.menu-open .header #menu,
    .header.menu-open #menu,
    .header #menuToggle[aria-expanded="true"] ~ #menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* If JS adds nav-show, do NOT make the list visible by itself. */
    .header.nav-show #menu:not(.active):not(.open),
    .header:not(.menu-open) #menu:not(.active):not(.open) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Menu items use Menu 1's existing Poppins/text, but Menu 3 layout. */
    .header #menu li {
        position: relative !important;
        z-index: 2 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        list-style: none !important;
    }

    .header #menu li a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 52px !important;
        padding: 7px 0 !important;
        margin: 0 !important;

        color: #fff !important;
        background: transparent !important;
        border: 0 !important;

        font-family: "Poppins", sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        letter-spacing: .08em !important;
        line-height: 1.45 !important;
        text-align: center !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .header #menu li a::after {
        content: none !important;
    }

    .header #menu li a:hover,
    .header #menu li a:focus-visible {
        color: #fff !important;
        opacity: .72 !important;
        letter-spacing: .10em !important;
    }

    /* Close icon remains above the panel. */
    .header #menuToggle[aria-expanded="true"] {
        z-index: 10003 !important;
    }
}

/* =========================================================
   FINAL GALLERY TITLE CENTER — PC / TABLET
   The title itself is centered against the 430px canvas,
   independently from any legacy desktop heading rules.
   ========================================================= */
@media (min-width: 768px) {
    #gallery.gallery-section .gallery-intro.gallery-video-intro h2 {
        display: block !important;
        position: relative !important;
        left: 50% !important;
        right: auto !important;
        width: max-content !important;
        max-width: calc(100% - 4px) !important;
        margin: 18px 0 10px !important;
        padding: 0 !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }
}


/* =========================================================
   GALLERY — FINAL PC/TABLET CENTER FIX
   The previous PC rule used left:50% + translateX(-50%) on
   a flex item that was already centered. That double-offset
   the title. Keep the title/divider as normal centered flex items.
   ========================================================= */
@media (min-width: 768px) {

    #gallery.gallery-section .gallery-intro.gallery-video-intro {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    #gallery.gallery-section .gallery-intro.gallery-video-intro h2 {
        position: static !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;

        display: block !important;
        width: max-content !important;
        max-width: 100% !important;
        margin: 18px auto 10px !important;
        padding: 0 !important;

        align-self: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    #gallery.gallery-section .gallery-intro.gallery-video-intro .gallery-divider {
        display: flex !important;
        width: max-content !important;
        max-width: 100% !important;
        height: auto !important;

        align-self: center !important;
        justify-content: center !important;
        align-items: center !important;

        margin: 18px auto 20px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    #gallery.gallery-section .gallery-intro.gallery-video-intro .gallery-divider span {
        flex: 0 0 52px !important;
        width: 52px !important;
        min-width: 52px !important;
    }

    #gallery.gallery-section .gallery-intro.gallery-video-intro .gallery-divider i {
        flex: 0 0 5px !important;
        width: 5px !important;
        min-width: 5px !important;
    }
}


/* =========================================================
   FINAL OVERRIDE — GALLERY TITLE + DIVIDER TRUE CENTER
   PC / TABLET only. Uses the exact 430px canvas center.
   ========================================================= */
@media (min-width: 768px) {
    #gallery.gallery-section .gallery-container {
        width: 430px !important;
        max-width: 430px !important;
        min-width: 430px !important;
        margin: 0 !important;
        padding-left: 22px !important;
        padding-right: 22px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    #gallery.gallery-section .gallery-intro,
    #gallery.gallery-section .gallery-video-intro {
        position: relative !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    #gallery.gallery-section .gallery-intro h2,
    #gallery.gallery-section .gallery-video-intro h2 {
        position: static !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 18px auto 10px !important;
        padding: 0 !important;
        align-self: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    #gallery.gallery-section .gallery-intro .gallery-divider,
    #gallery.gallery-section .gallery-video-intro .gallery-divider {
        position: static !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        display: flex !important;
        width: max-content !important;
        max-width: 100% !important;
        margin: 18px auto 24px !important;
        align-self: center !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
}

/* =========================================================
   EVENT — USE THE SAME MAGNETIC REVEAL AS EVERY OTHER SECTION
   The Event section no longer runs its own viewport-based reveal.
   Its parent .magnetic-section-content is the single animation layer.
   ========================================================= */
html.magnetic-scroll #event.event-modern.magnetic-section .event-editorial.event-panel{
    opacity:1 !important;
    filter:none !important;
    transform:none !important;
    transition:none !important;
    animation:none !important;
    will-change:auto;
}

html.magnetic-scroll #event.event-modern.magnetic-section .event-editorial.event-panel.is-visible{
    opacity:1 !important;
    filter:none !important;
    transform:none !important;
}



/* =========================================================
   EVENT = same visual transition target as RSVP / WISHES
   The Event DOM intentionally mirrors #wishes:
   section > container > wishes-card.
   ========================================================= */

html.magnetic-scroll #event.event-modern.wishes-venue{
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    height:100svh !important;
    min-height:100svh !important;
    margin:0 !important;
    padding:clamp(76px, 9vh, 100px) 20px !important;
    overflow:hidden !important;
    scroll-margin-top:0 !important;
}

html.magnetic-scroll #event.event-modern.wishes-venue > .container{
    width:min(1000px, 100%) !important;
    max-width:1000px !important;
    margin:0 auto !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

html.magnetic-scroll #event.event-modern.wishes-venue .wishes-card.event-main-card{
    width:min(700px, 100%) !important;
    max-width:700px !important;
    max-height:calc(100svh - 130px) !important;
    overflow:auto !important;
    margin:0 auto !important;
    padding:clamp(24px, 4vw, 42px) !important;
    will-change:transform, filter, opacity;
}

/* Event no longer has its own reveal transform. */
html.magnetic-scroll #event.event-modern.wishes-venue .event-main-card{
    opacity:1;
    filter:none;
    transition:none;
}

html.magnetic-scroll #event.event-modern.wishes-venue .event-main-card:hover{
    transform:none !important;
}

@media (max-width:768px){
    html.magnetic-scroll #event.event-modern.wishes-venue{
        padding:70px 14px 24px !important;
    }

    html.magnetic-scroll #event.event-modern.wishes-venue > .container{
        width:100% !important;
        max-width:100% !important;
    }

    html.magnetic-scroll #event.event-modern.wishes-venue .wishes-card.event-main-card{
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
    }
}
