@font-face {
    font-family: 'Bodoni Moda';
    src: url('https://envitelle.com/assets/fonts/Bodoni-Moda.woff2') format('woff2');
}

/* =============================
   Reset & Base
============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--ivory);
    color: var(--navy);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-size: clamp(0.92rem, 2.6vw, 1.08rem);
    line-height: 1.5;
}

img,
video {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

/* =============================
   Root Variables
============================= */
:root {
    --font-body: 'Inter', sans-serif;
    --font-title: 'Bodoni Moda', serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-script: 'Ballet', cursive;
    --font-nunito: 'Nunito', sans-serif;

    --navy: #1B1F3B;
    --ivory: #FDFDFC;
    --silver: #D1D4D9;
    --white: #FFFFFF;
    --muted: #636375;

    --silver-soft: #ECEEF1;
    --silver-line: rgba(27, 31, 59, 0.18);
    --navy-soft: rgba(27, 31, 59, 0.72);
    --navy-muted: rgba(27, 31, 59, 0.52);
    --white-soft: rgba(253, 253, 252, 0.86);

    --section-bg: var(--ivory);
    --section-text: var(--navy);
    --section-accent: rgba(27, 31, 59, 0.46);
    --card-bg: var(--white);
    --card-text: var(--navy);
    --card-accent: rgba(27, 31, 59, 0.28);
    --btn-text: var(--ivory);

    --shadow-soft: 0 18px 48px rgba(27, 31, 59, 0.06);
    --shadow-float: 0 18px 46px rgba(27, 31, 59, 0.16);
    --transition: 0.25s ease;
}

/* =============================
   Typography Helpers
============================= */
.bodoni-number {
    font-family: var(--font-title);
    font-weight: 400;
}

.ballet-script {
    font-family: var(--font-script);
    font-weight: 400;
}

/* =============================
   Section Base
============================= */
.section {
    --section-bg: var(--ivory);
    --section-text: var(--navy);
    --section-accent: rgba(27, 31, 59, 0.46);
    --card-bg: var(--white);
    --card-text: var(--navy);
    --card-accent: rgba(27, 31, 59, 0.28);
    --btn-text: var(--ivory);

    padding: clamp(3.5rem, 9vw, 6rem) 0;
    position: relative;
    background: var(--section-bg);
    color: var(--section-text);
    text-align: center;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1080px, calc(100% - 42px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(27, 31, 59, 0.16),
        rgba(209, 212, 217, 0.58),
        transparent
    );
    z-index: 0;
}

.section.no-line::before {
    display: none;
}

.section .container {
    position: relative;
    width: min(100% - 40px, 1120px);
    margin-inline: auto;
    z-index: 2;
}

/* =============================
   Section Backgrounds
============================= */

.bg-white {
    --section-bg: var(--ivory);
    --section-text: var(--navy);
    --section-accent: rgba(27, 31, 59, 0.46);
    --card-bg: var(--white);
    --card-text: var(--navy);
    --card-accent: rgba(27, 31, 59, 0.28);
    --btn-text: var(--ivory);

    background:
        linear-gradient(
            180deg,
            rgba(253, 253, 252, 0) 0%,
            var(--ivory) 9%,
            var(--ivory) 91%,
            rgba(253, 253, 252, 0) 100%
        ),
        radial-gradient(circle at 12% 12%, rgba(27, 31, 59, 0.05), transparent 28rem),
        var(--ivory);
}

.bg-soft {
    --section-bg: var(--silver);
    --section-text: var(--navy);
    --section-accent: rgba(27, 31, 59, 0.52);
    --card-bg: rgba(253, 253, 252, 0.72);
    --card-text: var(--navy);
    --card-accent: rgba(27, 31, 59, 0.28);
    --btn-text: var(--ivory);

    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            rgba(209, 212, 217, 0) 0%,
            var(--silver-soft) 9%,
            var(--silver-soft) 91%,
            rgba(209, 212, 217, 0) 100%
        ),
        radial-gradient(circle at 86% 12%, rgba(27, 31, 59, 0.08), transparent 28rem),
        var(--silver-soft);
}

.bg-soft::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    background-image: url(../img/bg.png);
    background-repeat: repeat;
}

.bg-soft > * {
    position: relative;
    z-index: 1;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.eyebrow {
    color: var(--section-accent);
    font-size: clamp(.76rem, 2.6vw, .9rem);
    letter-spacing: 0.36em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-title);
    color: var(--section-text);
    font-size: clamp(1.9rem, 6vw, 3.2rem);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.15rem, 3.6vw, 1.35rem);
    line-height: 1.7;
    color: var(--section-text);
    opacity: 0.76;
    max-width: 34rem;
    margin: 1rem auto 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 24px;
    border: 1px solid var(--navy);
    border-radius: 999px;
    background: var(--navy);
    color: var(--ivory);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(27,31,59,0.12);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: transparent;
    color: var(--navy);
}

.btn ion-icon {
    font-size: 1rem;
    margin-top: -1px;
    flex: 0 0 auto;
}

.btn-outline {
    background: transparent;
    color: var(--navy);
}


/* =============================
   Navbar
============================= */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 64px;
    z-index: 900;
    padding: 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, transform 0.35s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.site-navbar.is-solid {
    background: rgba(253, 253, 252, 0.92);
    border-bottom-color: rgba(27, 31, 59, 0.14);
    box-shadow: 0 12px 34px rgba(27, 31, 59, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-navbar .container {
    width: min(100% - 40px, 1120px);
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-brand {
    flex: 0 0 auto;
    font-family: var(--font-title);
    color: var(--ivory);
    text-decoration: none;
    font-size: 1.08rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    min-width: 0;
}

.navbar-menu a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.68rem 0.82rem 0.58rem;
    color: var(--ivory);
    text-decoration: none;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: color 0.22s ease, border-color 0.22s ease;
}

.is-solid .navbar-menu a:hover,
.is-solid .navbar-menu a.is-active {
    color: var(--navy);
    background: transparent;
}

.navbar-menu a:hover {
    color: var(--ivory);
    background: transparent;
    border-bottom-color: var(--ivory);
}

.navbar-menu a.is-active {
    border-bottom-color: var(--navy);
}

.is-solid .navbar-menu a,
.is-solid .navbar-brand {
    color: var(--navy);
}

.navbar-menu ion-icon {
    display: none;
    font-size: 1.05rem;
    line-height: 1;
}

.mobile-nav {
    display: none !important;
}

/* =============================
   Mobile Navbar
============================= */
@media (max-width: 760px) {
    .site-navbar {
        top: auto !important;
        left: 10px !important;
        right: 10px !important;
        bottom: calc(10px + env(safe-area-inset-bottom));
        width: auto !important;
        min-height: 0;
        display: block !important;
        padding: 0.42rem;
        border: 1px solid rgba(27, 31, 59, 0.14);
        border-radius: 24px;
        background: rgba(253, 253, 252, 0.92);
        box-shadow: 0 18px 46px rgba(27, 31, 59, 0.16);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .site-navbar .container {
        width: 100%;
        min-height: 0;
        display: block;
    }

    .site-navbar.is-hidden-on-home {
        transform: translateY(calc(100% + 30px));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .navbar-brand {
        display: none !important;
    }

    .navbar-menu {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.18rem;
        overflow: visible !important;
    }

    .navbar-menu a {
        min-width: 0;
        min-height: 58px;
        padding: 0.48rem 0.16rem;
        border: 0;
        border-radius: 18px;
        flex-direction: column;
        gap: 0.22rem;
        font-size: 0.52rem;
        letter-spacing: 0.08em;
        white-space: nowrap;
    }

    .is-solid .navbar-menu a.is-active {
        color: var(--navy);
        background: rgba(209, 212, 217, 0.55);
    }

    .navbar-menu ion-icon {
        display: block;
        font-size: 1.14rem;
    }
}

/* =============================
   Opening Cover
============================= */
.opening-cover {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: var(--navy);
    color: var(--ivory);
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.opening-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cover-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(27,31,59,0.35), rgba(27,31,59,0.78));
}

.cover-card {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    text-align: center;
    padding: 2.2rem 1.6rem;
}

.cover-kicker {
    font-size: clamp(.76rem, 2.6vw, .9rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.cover-names {
    font-family: var(--font-title);
    font-size: clamp(3rem, 14vw, 5.4rem);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cover-script {
    display: block;
    font-family: var(--font-script);
    font-size: clamp(1.8rem, 8vw, 3rem);
    letter-spacing: 0.08em;
    color: rgba(253,253,252,0.75);
}

.cover-guest {
    margin: 1rem auto 0;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cover-guest strong {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--ivory);
}

.cover-message {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 340px;
    margin: 0 auto 16px;
}

.cover-button {
    border-color: rgba(253,253,252,0.7);
    background: rgba(253,253,252,0.95);
    color: var(--navy);
}

.cover-button:hover {
    color: var(--ivory);
}

/* =============================
   Hero
============================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    text-align: center;
    padding: 0 2rem 14vh;
    background: var(--navy);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.4s ease-in-out;
}

.hero-bg.is-active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(27,31,59,0.22) 0%,
        rgba(27,31,59,0.02) 35%,
        rgba(27,31,59,0.62) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-invite-tag {
    text-align: center;
    font-family: var(--font-body);
    font-size: clamp(.76rem, 2.6vw, .9rem);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
}

.hero-name {
    font-family: var(--font-title);
    font-size: clamp(3rem, 14vw, 5.4rem);
    font-weight: 400;
    line-height: 0.95;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 2px 24px rgba(0,0,0,0.45);
    margin: 0;
}

.hero-and {
    display: block;
    font-family: var(--font-script);
    font-size: clamp(1.8rem, 8vw, 3rem);
    letter-spacing: 0.08em;
    color: #fff;
}

.scroll-down {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 18px auto 0;
}

.scroll-down span {
    position: absolute;
    width: 20px;
    height: 20px;
    border-bottom: 1.6px solid #fff;
    border-right: 1.6px solid #fff;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    animation: scrollDown 1.5s infinite;
}

.scroll-down span:nth-child(2) {
    top: 18px;
    animation-delay: 0.2s;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translate(-50%, -15px) rotate(45deg);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px) rotate(45deg);
    }
}

/* ---------- WEDDING DATE ---------- */
.wedding-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(3.25rem, 8vw, 5rem) 2rem clamp(2.25rem, 6vw, 4rem);
    background: var(--ivory);
    text-align: center;
}

.date-title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-transform: none;
}

.date-digits {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: clamp(0.35rem, 1.6vw, 0.85rem);
    line-height: 1;
    white-space: nowrap;
    margin-top: 14px;
}

.date-digit,
.date-separator {
    font-family: var(--font-title);
    font-size: clamp(4.2rem, 14vw, 7rem);
    font-weight: 200;
    letter-spacing: -0.04em;
    color: var(--navy);
}

.date-separator {
    opacity: 0.38;
    transform: translateY(-0.04em);
}

.date-labels {
    width: min(100% - 15px, 34rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: clamp(0.45rem, 2vw, 0.9rem);
    margin: 1rem auto 0;
}

.date-labels .date-label:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.date-labels .date-label:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.date-labels .date-label:nth-child(3) {
    grid-column: 5;
    grid-row: 1;
}

.date-label {
    display: block;
    min-width: 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: clamp(0.5rem, 1vw, 0.7rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(27,31,59,0.36);
    line-height: 1;
}

.date-subtitle {
    font-size: clamp(0.72rem, 2vw, 0.88rem);
    color: var(--navy);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
}

/* ---------- INTRO ---------- */
.intro-card {
    max-width: 760px;
    margin: 0 auto;
}

.intro-copy {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.35rem, 5vw, 2rem);
    line-height: 1.55;
    color: var(--section-text);
}

.intro-note {
    max-width: 620px;
    margin: 1.5rem auto 0;
    color: var(--section-text);
    opacity: 0.68;
    font-size: 0.88rem;
    line-height: 1.8;
}

/* ---------- EVENT CARDS ---------- */
.dress-copy,
.bank-detail {
    font-size: 0.88rem;
    color: var(--card-text);
    opacity: 0.68;
    line-height: 1.65;
}

.event-grid {
    display: grid;
    gap: 18px;
    margin-top: 42px;
}

.event-card {
    min-height: 380px;
    position: relative;
    overflow: hidden;
    color: var(--ivory);
    display: flex;
    align-items: flex-end;
    padding: 26px 20px;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 28px 80px rgba(27, 31, 59, 0.13);
}

.event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 31, 59, 0.32), rgba(27, 31, 59, 0.88));
}

.event-body {
    position: relative;
    z-index: 1;
    text-align: left;
}

.event-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    color: rgba(253, 253, 252, 0.74);
    margin-bottom: 12px;
    font-weight: 700;
}

.event-card h3 {
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    line-height: 0.9;
    font-weight: 500;
    margin-bottom: 18px;
}

.event-list {
    display: grid;
    gap: 6px;
    color: rgba(253, 253, 252, 1);
    line-height: 1.55;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.event-list p {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.event-list ion-icon {
    font-size: 1rem;
    margin-top: 2px;
    flex: 0 0 auto;
}

.event-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.event-actions .btn {
    min-height: 42px;
    font-size: 0.66rem;
    width: 100%;
}

.map-button {
    background: var(--ivory);
    color: var(--navy);
    border-color: rgba(253, 253, 252, 0.78);
}

.map-button:hover {
    color: var(--ivory);
}

@media (min-width: 900px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-card {
        min-height: 420px;
        padding: 30px;
    }
    
    .event-actions .btn {
        width: auto;
    }
}

/* ---------- GALLERY ---------- */
#gallery, 
#gallery .section-heading {
    padding-left:0; 
    padding-right:0;
}

/* Gallery */
.masonry-grid {
    columns: 4;
    column-gap: 20px;
    margin-top: 46px;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;

    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.4s ease;
    background: var(--white, #fff);

    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.masonry-item:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.masonry-item img,
.masonry-item video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.8s ease;

    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.masonry-item video {
    background: #f8f3ea;
}

.masonry-item:hover img,
.masonry-item:hover video {
    transform: scale(1.05);
}

.masonry-item .content-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.5);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 3;
}

/* Video Play Button */
.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 4;
}

.video-play:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play ion-icon {
    color: var(--charcoal);
    font-size: 1.4rem;
    margin-left: 5px;
}

/* Modal Image */
#imageModal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#imageModal.active {
    display: flex;
    opacity: 1;
}

#imageModal .modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.5s ease;
    background-color: transparent;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#imageModal .modal-content img,
#imageModal .modal-content video {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 3px;
    display: block;
}

#imageModal .close-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#imageModal .close-modal:hover {
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 1200px) {
    .masonry-grid {
        columns: 3;
    }
}

@media (max-width: 992px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        columns: 2;
        column-gap: 12px;
    }

    .masonry-item {
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .masonry-item img,
    .masonry-item video {
        border-radius: 16px;
    }

    .masonry-item:hover img,
    .masonry-item:hover video {
        transform: none;
    }

    .masonry-item:hover {
        box-shadow: var(--shadow);
    }

    .masonry-item .content-type {
        top: 10px;
        right: 10px;
        padding: 5px 12px;
        font-size: 0.6rem;
    }

    .video-play {
        width: 52px;
        height: 52px;
    }
}

/* ---------- PROGRAM ---------- */
.program-timeline {
    max-width: 560px;
    margin: 0 auto;
}

.program-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.program-time {
    width: 120px;
    font-family: var(--font-title);
    font-size: 3.2rem;
    line-height: 0.95;
    font-weight: 200;
    text-align: left;
}

.program-label {
    flex: 1;
    text-align: left;
}

.program-label h3 {
    font-size: clamp(.76rem, 2.6vw, .9rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.program-label p {
    font-size: 1.25rem;
    font-family: var(--font-serif);
    color: var(--section-text);
    opacity: 0.78;
}

.program-item:last-child {
    border-bottom: none;
}

/* ---------- DRESS CODE ---------- */
.dress-code-container {
    max-width: 600px;
    margin: 0 auto;
}

.dress-card {
    min-width: 220px;
}

.dress-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1;
}

.color-swatch-group {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.swatch {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.7);
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, z-index 0.25s ease;
}

.swatch + .swatch {
    margin-left: -24px;
}

.swatch:hover,
.swatch.is-active {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    z-index: 5;
}

/* Tooltip Bubble */
.swatch::before {
    content: attr(data-color-name);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform: translateX(-50%) translateY(6px);
    background: #1B1F3B;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 8px 20px rgba(27,31,59,0.18);
    z-index: 10;
}

/* Tooltip Arrow */
.swatch::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(6px);
    border-width: 7px 7px 0 7px;
    border-style: solid;
    border-color: #1B1F3B transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 10;
}

.swatch:hover::before,
.swatch:hover::after,
.swatch.is-active::before,
.swatch.is-active::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ---------- ACCOMMODATION ---------- */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}

.hotel-card {
    padding: 1.5rem;
    text-align: center;
}

.hotel-card{
    background:
        linear-gradient(135deg, rgba(209, 212, 217, 0.12), transparent 48%),
        var(--ivory);
    color: var(--card-text);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(27, 31, 59, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hotel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 62px rgba(27, 31, 59, 0.1);
}

.hotel-card {
    padding: 0;
}

.hotel-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--silver);
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hotel-card:hover .hotel-image img {
    transform: scale(1.05);
}

.hotel-body {
    padding: 1.75rem;
    text-align: left;
}

.hotel-title {
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 4vw, 1.8rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 12px;
}

.hotel-address {
    color: var(--card-text);
    opacity: 0.68;
    line-height: 1.65;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
}

.hotel-address ion-icon {
    font-size: 1rem;
}

.event-meta {
    margin-bottom: 20px;
}

.hotel-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.parking-card {
    max-width: 860px;
    margin: 1rem auto 0;
    padding: 1.4rem;
    background: var(--card-bg);
    text-align: center;
    background: transparent !important;
    box-shadow: none !important;
}

.parking-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.parking-copy {
    font-size: 0.88rem;
    color: var(--card-text);
    opacity: 0.68;
    line-height: 1.65;
}

/* ---------- LOVE STORY ---------- */
.story-grid {
    margin-top: 42px;
    display: grid;
    gap: 20px;
    align-items: stretch;
}

.story-feature {
    min-height: 520px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    color: var(--ivory);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.story-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/story1.jpg") center/cover no-repeat;
    transform: scale(1);
    transition: transform 0.8s ease;
    z-index: -2;
}

.story-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(27, 31, 59, 0.18),
        rgba(27, 31, 59, 0.78)
    );
    z-index: -1;
}

.story-feature:hover::before {
    transform: scale(1.08);
}

.story-feature-content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.story-feature .story-year {
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(253, 253, 252, 0.74);
    font-weight: 700;
    margin-bottom: 14px;
}

.story-feature h3 {
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: clamp(1.9rem, 6vw, 3.2rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    font-weight: 500;
    margin-bottom: 16px;
}

.story-feature p {
    color: rgba(253, 253, 252, 0.78);
    max-width: 620px;
    line-height: 1.75;
}

.story-list {
    display: grid;
    gap: 16px;
}

.story-step {
    text-align: left;
    padding: 24px;
    border-radius: 30px;
    border: 1px solid var(--silver-soft);
    background:
        linear-gradient(135deg, rgba(209, 212, 217, 0.12), transparent 48%),
        var(--ivory);
    box-shadow: 0 18px 50px rgba(27, 31, 59, 0.06);
    overflow: hidden;
    transition: padding-left 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.story-step:hover {
    box-shadow: 0 24px 62px rgba(27, 31, 59, 0.1);
}

.story-step-number {
    position: absolute;
    right: 22px;
    font-family: var(--font-title);
    font-size: clamp(1rem, 5.5vw, 1.45rem);
    line-height: 1;
    color: var(--navy-muted);
    font-weight: 600;
}

.story-step h3 {
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 4vw, 2rem);
    line-height: 1;
    font-weight: 500;
    margin-bottom: 10px;
}

.story-step p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 0.86rem;
}

@media (min-width: 900px) {
    .story-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

@media (max-width: 899px) {
    .story-feature {
        min-height: 440px;
    }
}

@media (hover: none) {
    .story-feature:active::before {
        transform: scale(1.06);
    }
}

/* ---------- COUNTDOWN ---------- */
.countdown-grid {
    max-width: 560px;
    margin: 2.2rem auto 0;
}

.countdown-group {
    display: flex;
    gap: 0;
    justify-content: center;
    color: var(--section-text);
}

.countdown-block {
    flex: 1;
    min-width: 64px;
    text-align: center;
}

.countdown-number {
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
}

.countdown-line {
    width: 68%;
    height: 1px;
    background: var(--section-accent);
    margin: 0.5rem auto;
}

.countdown-label {
    font-size: clamp(.62rem, 6vw, .72rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--section-accent);
}

.countdown-sep {
    font-size: 1.5rem;
    align-self: flex-start;
    color: var(--section-accent);
    padding-top: 0.35rem;
}

.countdown-action {
    width: fit-content;
    margin: 0 auto;
}

.calendar-button {
    min-height: auto;
    padding: 0;
    background: transparent;
    color: #1b1f3b;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-top: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: fit-content;
    padding-bottom: 5px;
}

.countdown-action .countdown-line {
    width: 100%;
}

/* Quote */
.quote-section {
    padding: 96px 0;
    background-image:
        linear-gradient(rgba(28, 28, 60, 0.62), rgba(28, 28, 60, 0.72)),
        url('../img/quote-bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--ivory);
    text-align: center;
}

/* Enable fixed background only on desktop */
@media (min-width: 1025px) and (hover: hover) {
    .quote-section {
        background-attachment: scroll, fixed;
    }
}

/* Polaroid Photos */
.polaroid-stack {
    position: relative;
    width: min(310px, 82vw);
    height: 245px;
    margin: 0 auto 45px;
}

.polaroid {
    position: absolute;
    width: 190px;
    padding: 9px 9px 34px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.polaroid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.polaroid span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--card-text);
    letter-spacing: 0.02em;
    text-align: center;
}

.polaroid-one {
    left: 18px;
    top: 18px;
    transform: rotate(-8deg);
    z-index: 1;
}

.polaroid-two {
    right: 16px;
    top: 2px;
    transform: rotate(7deg);
    z-index: 1;
}

.polaroid-one:hover {
    transform: rotate(-12deg) translateY(-8px) scale(1.04);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.34);
    z-index: 5;
}

.polaroid-two:hover {
    transform: rotate(12deg) translateY(-8px) scale(1.04);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.34);
    z-index: 5;
}

@media (min-width: 768px) {
    .polaroid-stack {
        width: 420px;
        height: 280px;
        margin-bottom: 54px;
    }

    .polaroid {
        width: 230px;
        padding: 10px 10px 38px;
    }

    .polaroid span {
        font-size: 1.18rem;
    }

    .polaroid-one {
        left: 18px;
        top: 34px;
    }

    .polaroid-two {
        right: 12px;
        top: 0;
    }
}

@media (min-width: 1024px) {
    .polaroid-stack {
        margin-bottom: 65px;
    }
}

@media (max-width: 420px) {
    .polaroid-stack {
        height: 220px;
    }

    .polaroid {
        width: 168px;
    }

    .polaroid-one {
        left: 4px;
        top: 28px;
    }

    .polaroid-two {
        right: 2px;
        top: 4px;
    }
}

.quote-mark {
    font-family: var(--font-nunito);
    font-size: clamp(3rem, 12vw, 5rem);
    line-height: 0.4;
    color: var(--silver-soft);
}

.quote-text {
    font-family: var(--font-title);
    font-size: clamp(1.9rem, 6vw, 3.2rem);
    font-weight: 500;
    line-height: 0.92;
    color: var(--white);
    text-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
    max-width: 820px;
    margin: 0 auto 30px;
}

.quote-author {
    font-size: clamp(.76rem, 2.6vw, .9rem);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--silver-soft);
    font-weight: 600;
}

/* ---------- RSVP ---------- */
.rsvp-box {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
    color: var(--card-text);
    border-radius: 30px;
    border: 1px solid var(--silver-soft);
    background: rgba(255, 255, 255, 0.52);
    padding: 3rem 2rem 2rem;
    box-shadow: 0 18px 50px rgba(27, 31, 59, 0.06);
    overflow: hidden;
    transition: padding-left 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.rsvp-intro {
    margin-bottom: 30px;
}

.rsvp-intro h3 {
    font-family: var(--font-title);
    color: var(--section-text);
    font-size: clamp(1.9rem, 6vw, 3.2rem);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: center;
    margin-bottom: 20px;
}

.rsvp-form-group {
    margin-bottom: 1.2rem;
}

.rsvp-form-group label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--card-text);
    margin-top: 0.5rem;
    margin-bottom: 0.4rem;
}

.rsvp-form-group input,
.rsvp-form-group select,
.rsvp-form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0;
    background: transparent;
    color: var(--card-text);
    border: 0;
    border-bottom: 1px solid var(--card-accent);
    font-family: var(--font-body);
    font-size: 0.86rem;
    transition: border-color 0.2s;
}

.rsvp-form-group textarea {
    resize: vertical;
}

.rsvp-form-group input:focus,
.rsvp-form-group select:focus,
.rsvp-form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
}

/* Radio Buttons - Elegant Custom Style */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.rsvp-form-group .radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.86rem;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--navy-soft);
    transition: color 0.3s ease;
    text-transform: none;
}

.radio-option {
    transition: color 0.25s ease, border-color 0.25s ease;
}

.radio-option:has(input:checked) {
    color: var(--navy);
    border-color: var(--navy);
}

.radio-option input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 18px;
    height: 18px;
    border: 1px solid var(--navy-muted);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .custom-radio {
    border-color: var(--navy);
}

.radio-option input[type="radio"]:checked + .custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--navy);
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ span, 
.radio-option input[type="radio"]:checked {
    color: var(--navy);
}

.attending-only.is-hidden {
    display: none;
}

.rsvp-submit {
    margin: 0.25rem auto;
}

.form-message {
    display: none;
    margin-top: 1rem;
    font-size: 0.78rem;
    line-height: 1.6;
}

.form-message.is-visible {
    display: block;
}

@media (min-width: 768px) {
    .radio-group {
        flex-direction: row;
        gap: 2rem;
    }
}

.wish-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 860px;
    max-height: 800px;
    margin: 0 auto;
}

.wall-state {
    max-width: 540px;
    margin: 0 auto;
    padding: 1.6rem;
    border: 1px solid var(--card-accent);
    background: var(--card-bg);
    text-align: center;
}

.wall-state.is-hidden {
    display: none;
}

.wish-card {
    text-align: left;
    min-height: 100%;
    border: 1px solid var(--silver-soft);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(209, 212, 217, 0.12), transparent 48%), var(--ivory);
    padding: clamp(1.2rem, 4vw, 1.5rem);
    box-shadow: 0 18px 60px rgba(27, 31, 59, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.wish-message {
    font-size: 0.88rem;
    color: var(--card-text);
    opacity: 0.68;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.wish-name {
    font-family: var(--font-title);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 0.2rem;
}

.wish-time {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--section-accent);
}

/* ---------- Wishing Well ---------- */
.wishing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 860px;
    margin: 0 auto 2.4rem;
}

.wishing-card {
    text-align: left;
    min-height: 100%;
    border: 1px solid var(--silver-soft);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(209, 212, 217, 0.12), transparent 48%),
        var(--ivory);
    padding: 2rem;
    box-shadow: 0 18px 60px rgba(27, 31, 59, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.wishing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 62px rgba(27, 31, 59, 0.1);
}

.wishing-label {
    margin: 0 0 1rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--section-accent);
}

.wishing-card h3 {
    margin: 0 0 1.4rem;
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 400;
    line-height: 1;
    color: var(--navy);
}

.wishing-copy {
    margin: 1rem 0 1.4rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.75;
}

.bank-box {
    margin: 1.2rem 0 1rem;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--card-accent);
    font-family: var(--font-body);
}

.bank-row:last-child {
    border-bottom: none;
}

.bank-row span {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--section-accent);
}

.bank-row strong {
    font-size: 0.88rem;
    font-weight: 500;
    text-align: right;
    color: var(--navy);
}

.copy-message {
    display: none;
    margin: 0.9rem 0 0;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--section-accent);
}

.copy-message.is-visible {
    display: block;
}

.gift-copy {
    font-size: 0.88rem;
    color: var(--card-text);
    opacity: 0.68;
    line-height: 1.65;
}

@media (max-width: 760px) {
    .wishing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .wishing-card {
        padding: 1.65rem 1.35rem 1.35rem;
    }

    .bank-row {
        flex-direction: column;
        gap: 0.35rem;
    }

    .bank-row strong {
        text-align: left;
    }

    .btn {
        width: 100%;
    }
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    text-align: left;
    color: var(--card-text);
    border-radius: 1rem;
    border: 1px solid var(--silver-soft);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: 0 18px 50px rgba(27, 31, 59, 0.06);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 62px rgba(27, 31, 59, 0.1);
}

.faq-question {
    color: var(--card-text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.faq-answer {
    font-size: 0.85rem;
    color: var(--card-text);
    opacity: 0.68;
    line-height: 1.65;
}

.faq-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--card-text);
    padding: 1.1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1.2rem;
}

.faq-item.is-open .faq-answer {
    display: block;
}

/* Footer */
.footer {
    position: relative;
    overflow: hidden;
    background:
        url("../img/footer-bg.jpg") center/cover no-repeat;
    color: var(--ivory);
    padding: 3.25rem 1.25rem 4rem;
    isolation: isolate;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 31, 59, 0.32), rgba(27, 31, 59, 0.88));
    pointer-events: none;
    z-index: 0;
}

.footer-shell {
    width: min(100%, 520px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.footer-rule {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-bottom: 1rem;
}

.footer-mark {
    width: clamp(4.2rem, 12vw, 5.8rem);
    height: clamp(4.2rem, 12vw, 5.8rem);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.05rem;
    margin: 0 auto;
}

.footer-monogram {
    text-align: center;
    margin-bottom: 1.75rem;
}

.footer-kicker {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--ivory);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.footer-monogram .cover-names {
    color: var(--ivory);
}

.footer-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.9rem;
    color: var(--ivory);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.footer-message {
    margin: 0 auto 1.85rem;
    max-width: 29rem;
    text-align: center;
    color: var(--white-soft);
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 5vw, 1.65rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.45;
}


.footer-social {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-hashtag {
    font-size: 1rem;
    font-style: italic;
    font-weight: 300;
    color: var(--ivory);
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
}

.footer-note {
    color: var(--silver);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-bottom {
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    text-align: center;
}

.footer-location {
    color: var(--ivory);
    font-size: 0.64rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1.8;
}

.footer-credit {
    color: var(--silver);
    font-size: 0.66rem;
    letter-spacing: 0.05em;
}

.footer-credit span {
    color: rgba(191, 198, 229, 0.7);
}

@media (min-width: 640px) {
    .page-preview {
        min-height: 76vh;
        padding: 6rem 2rem 4rem;
    }

    .ivory-footer {
        padding: 4.4rem 2rem 1.7rem;
    }

    .footer-shell {
        width: min(100%, 720px);
    }

}

@media (min-width: 920px) {
    .footer-shell {
        width: min(100%, 860px);
    }
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27200%27 height=%27200%27%3E%3Cfilter id=%27g%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.72%27 numOctaves=%274%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix type=%27saturate%27 values=%270%27/%3E%3C/filter%3E%3Crect width=%27200%27 height=%27200%27 filter=%27url(%23g)%27 opacity=%270.045%27/%3E%3C/svg%3E');
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.33;
    mix-blend-mode: multiply;
}

.site-wrap {
    position: relative;
    z-index: 1;
    background: var(--ivory);
    min-height: 100svh;
}

@media (max-width: 760px) {
    .hero,
    .opening-cover {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-name {
        font-size: clamp(3.7rem, 18vw, 6rem);
    }

    .event-grid,
    .hotels-grid,
    .bank-grid,
    .registry-grid,
    .wish-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        column-count: 2;
        column-gap: 8px;
    }

    .gallery-item {
        margin-bottom: 8px;
    }

    .hero-invite-tag {
        top: 7.25rem;
    }

    .program-item {
        gap: 1rem;
        align-items: flex-start;
    }

    .program-time {
        width: 94px;
        font-size: 2.4rem;
    }

    .program-label p {
        font-size: 1.1rem;
    }

    .radio-group {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .countdown-block {
        min-width: 0;
    }

    .countdown-number {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }

    .countdown-label {
        letter-spacing: 0.12em;
        font-size: 0.55rem;
    }

    .mobile-nav {
        display: none;
    }

    .footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
}


/* =============================
   Music
============================= */
.music-toggle {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 880;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(27,31,59,0.18);
    background: rgba(253,253,252,0.88);
    color: var(--navy);
    border-radius: 50px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 40px rgba(27,31,59,0.12);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.music-toggle:hover {
    transform: translateY(-2px);
}

.music-toggle.is-playing {
    background: var(--navy);
    color: var(--ivory);
}

.music-toggle ion-icon {
    font-size: 1.05rem;
    transition: transform 0.22s ease;
}

.music-toggle.is-playing ion-icon {
    transform: scale(1.08);
}

.youtube-music-frame {
    position: fixed;
    width: 1px;
    height: 1px;
    left: -9999px;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 760px) {
    .music-toggle {
        bottom: calc(92px + env(safe-area-inset-bottom));
        padding: 0.75rem;
        min-height: auto;
        transition: bottom 0.22s ease, background 0.22s ease, color 0.22s ease;
    }
    
    .music-toggle.is-hidden-on-home {
        bottom: calc(15px + env(safe-area-inset-bottom));
    }

    .music-toggle span {
        display: none;
    }

    .hero-invite-tag {
        top: 1.75rem !important;
    }

    .footer {
        padding-bottom: calc(7rem + env(safe-area-inset-bottom)) !important;
    }
}