﻿@font-face {
    font-family: 'Garamond';
    src: url('fonts/garamond_[allfont.ru].ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Parfumerie Script Pro';
    src: url('fonts/ParfumerieScriptPro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f8f6f4;
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --accent: #d4a574;
    --bg-light: #faf9f7;
    
}

html {
    scrollbar-width: none;
    overflow-x: hidden;
    max-width: 100%;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Hero Navbar */
.hero-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
}

.hero-navbar .nav-left {
    flex: 1.5;
    display: flex;
    justify-content: flex-start;
}

.hero-navbar .nav-center {
    flex: 2;
    text-align: center;
    display: flex;
    justify-content: flex-end;
}

.hero-navbar .nav-right {
    flex: 0;
    display: flex;
    justify-content: flex-end;
    padding-left: 2rem;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    line-height: 0.4;
    gap: 0;
}

.nav-logo .logo-joseph {
    color: var(--text-light);
    margin-left: -16px;
}

.nav-logo .logo-j {
    font-family: 'Alex Brush', cursive;
    font-size: 30px;
    font-weight: 400;
    color: var(--text-light);
    margin-right: 4px;
}

.nav-logo .logo-oseph {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-light);
}

.nav-logo .logo-amp {
    font-family: 'Alex Brush', cursive;
    font-size: 32px;
    font-weight: 400;
    color: var(--text-light);
    padding-left: 90px;
}

.nav-logo .logo-kate {
    color: var(--text-light);
    padding-left: 110px;
}

.nav-logo .logo-k {
    font-family: 'Alex Brush', cursive;
    font-size: 30px;
    font-weight: 400;
    color: var(--text-light);
    margin-right: 4px;
}

.nav-logo .logo-ate {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-light);
}

.hero-navbar a:not(.nav-logo):not(.mobile-logo) {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1.2rem;
    font-size: 1rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    font-family: 'Garamond', serif;
    font-weight: 900;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.hero-navbar a:not(.nav-logo):not(.mobile-logo):hover {
    opacity: 1;
    color: #ffeda8;
    border-bottom: 1px solid #ffeda8;
}

.hero-navbar .nav-center a {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 400;
    white-space: nowrap;
}

.rsvp-btn {
    background: #f0dfa0;
    border: 1.5px solid #b8922a;
    color: #7a5c1e;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Garamond', serif;
    font-weight: 700;
    border-radius: 6px;
}

.hero-navbar .rsvp-btn:hover {
    background: rgba(201, 168, 76, 0.15);
}

/* Mobile Logo (J&K monogram) */
.mobile-logo {
    display: none;
    font-family: 'Alex Brush', cursive;
    color: #507253;
    text-decoration: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 0.4;
    flex: 1;
    text-align: center;
}

.ml-j {
    font-size: 1.4rem;
    align-self: center;
    margin-left:3rem;
    
    
}

.ml-amp {
    font-size: 1.2rem;
    align-self: center;
    margin-left: 5.3rem;
    
}

.ml-k {
    font-size: 1.4rem;
    align-self: center;
    margin-left: 6.5rem;
    margin-top: 0.2rem;
   
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.burger-menu span {
    width: 25px;
    height: 2px;
    background: #807253;
    margin: 3px 0;
    transition: all 0.3s ease;
    display: block;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #f0ecdc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.4s ease;
    z-index: 999;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    color: #3a4a25;
    text-decoration: none;
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin: 1.5rem 0;
    font-family: 'Alex Brush', cursive;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu.active a {
    animation: fadeInMenuItem 0.5s ease forwards;
}

.mobile-menu.active a:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu.active a:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-menu.active a:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-menu.active .rsvp-btn {
    animation-delay: 0.4s;
}

.mobile-menu a:hover {
    opacity: 0.7;
    transform: translateX(10px);
}

.mobile-menu .rsvp-btn {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -15%;
    left: 0;
    right: 0;
    bottom: -15%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0.3) 100%),
                url('images/herobg.jpg') center/cover;
    background-size: 100%, 115%;
    background-position: 0% 64%;
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    will-change: transform;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-light);
    animation: fadeInUp 1.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-text {
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-family: 'Garamond', serif;
    font-weight: 700;
    color: var(--text-light);
    transform: translateY(-7.5rem);
}

.couple-names {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 0.4;
    gap: 0;
    margin: 0;
    width: 800px;
    transform: translateY(-6.5rem) translateX(-6rem);
}

.couple-line {
    display: inline-flex;
    align-items: baseline;
}

.couple-line:first-child {
    padding-left: 250px;
}

.couple-amp {
    font-family: 'Alex Brush', cursive;
    font-size: 6rem;
    font-weight: 100;
    color: #fdbe4b;
    padding-left: 460px;
    transform: translateY(0.5rem);
}

.couple-line:last-child {
    padding-left: 525px;
}

.name-initial {
    font-family: 'Alex Brush', cursive;
    font-size: 4rem;
    font-weight: 400;
    color: #ffeda8;
    margin-right: 4px;
}

.name-rest {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #ffeda8;
}

.wedding-date {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-top: 1.5rem;
    font-family: 'Garamond', serif;
    font-weight: 700;
    color: var(--text-light);
    transform: translateY(9rem);
}

.wedding-location {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-top: 0.3rem;
    font-family: 'Garamond', serif;
    font-weight: 700;
    color: var(--text-light);
    transform: translateY(9rem);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-dot {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 20px;
    position: relative;
    opacity: 0.7;
}

.scroll-dot::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

/* Section Styles */
section {
    padding: 6rem 2rem;
    scroll-margin-top: var(--navbar-height);  /* ADD THIS LINE */
}

.section-dark {
    background: #1a1a1a;
    color: var(--text-light);
}

.hero-story-flower-anchor {
    position: relative;
    height: 0;
}

.story-yellowflower {
    position: absolute;
    top: 0;
    right: 1%;
    transform: translateY(-50%);
    width: 320px;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

.section-light {
    background: var(--bg-light);
}

.container {
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 3rem;
}

 /* Story Section - FIXED */
        #story {
            position: relative;
            padding: 0;
            overflow: hidden;
            background: #eeeadf;
            color: var(--text-dark);
        }

        .story-sunflower {
            display: none;
        }

       #story .container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    .story-label {
        font-size: 1.5rem;
        color: #999;
        font-family: 'Liana Script', cursive;
        font-style: italic;
        letter-spacing: 1px;
        margin-bottom: 2rem;
        font-weight: 300;
        padding-left: 2rem;
        padding-top: 2rem;
    }

    .our-love-story-title {
        text-align: center;
        margin: 1.5rem 0 1rem;
        font-size: 2.8rem;
        font-weight: normal;
        color: #5a7a52;
        line-height: 1;
    }

    .our-love-story-title .ols-initial {
        font-family: 'Alex Brush', cursive;
        font-size: 3.8rem;
        color: #5a7a52;
    }

    .our-love-story-title .ols-rest {
        font-family: 'Cinzel', serif;
        font-size: 2.2rem;
        color: #5a7a52;
        letter-spacing: 2px;
    }

    .story-started-title {
        text-align: left;
        font-family: 'Cinzel', serif;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
        white-space: nowrap;
        color: #e9a021;
        margin: 0 0 1rem;
        padding-left: 4rem;
    }

    .story-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 0 4rem 2rem;
    }

    .story-col p {
        font-family: 'Quicksand', sans-serif;
        font-size: 1.5rem;
        line-height: 1.9;
        color: #3a3a3a;
        text-align: justify;
        margin-bottom: 1.2rem;
    }

    .story-highlight {
        color: #e9a021;
        font-weight: 700;
    }

    .story-carousel-outer {
        position: relative;
    }

    .story-carousel-wrapper {
        border-top: 3px solid #507253;
        border-bottom: 3px solid #507253;
        margin: 2rem 0 0;
        overflow: hidden;
        background: #507253;
    }

    .event-carousel-outer .story-carousel-wrapper {
        margin-top: 0;
    }

    .story-whiteflower {
        position: absolute;
        top: -80px;
        left: -60px;
        width: 240px;
        height: auto;
        z-index: 5;
        pointer-events: none;
    }

    .story-carousel {
        overflow: hidden;
    }

    .story-carousel-track {
        display: flex;
        gap: 3px;
        animation: storyScroll 12s linear infinite;
    }


    .story-photo-frame {
        flex: 0 0 calc(100% / 3 - 1px);
        padding: 12px;
        background: #eeeadf;
        box-sizing: border-box;
    }

    .story-photo-frame img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        display: block;
    }

    @keyframes storyScroll {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    .story-text-center {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
        margin-bottom: 4rem;
    }

    .story-title {
        font-size: 3.1rem;
        font-weight: 700;
        margin: 0;
        color: #ffffff;
        line-height: 1.2;
        letter-spacing: 2px;
        text-align: left;
        padding-left: 2rem;
    }

    .story-description {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #d0d0d0;
        font-weight: 300;
        text-align: justify;
        margin: 0;
        column-count: 2;
        padding-right: 1rem;
      
    }

        .carousel-container {
            width: 100%;
            height: 750px; /* Increased from implicit height */
            overflow: hidden;
        }

        .carousel {
            width: 100%;
            height: 100%;
            display: flex;
            overflow-x: auto;
        }

        .carousel::-webkit-scrollbar {
            display: none;
        }

        .carousel-track {
            display: flex;
            height: 100%;
            animation: spin 30s infinite linear; 
        }

        .carousel-img {
            flex: 0 0 auto;
            height: 100%;
            width: auto; 
            object-fit: cover;
        }

        @keyframes spin{ 
            from {
                translate: 0;
            }
            to {
                translate: -100%;
            }
        }

    /* Event Section */
#event {
    background-image: url('images/sched.png');
    background-size: cover;
    background-position: center;
    height: 1100px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding: 80px 20px;
}

#event .container {
    max-width: 1400px;
    width: 100%;
}

.big-day-title {
    text-align: center;
    color: #ffe575;
    font-size: 3.5rem;
    font-weight: normal;
    margin-top: 2rem;
    margin-bottom: 60px;
    line-height: 1;
    transform: translateY(-3rem);

}

.big-day-title .ols-initial {
    font-family: 'Alex Brush', cursive;
    font-size: 6rem;
    color: #ffe575;
}

.big-day-title .ols-rest {
    font-family: 'Cinzel', serif;
    font-size: 3.6rem;
    letter-spacing: 3px;
    color: #ffe575;
}

.sched-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8rem;
    padding: 0;
    margin-right: 0;
    transform: translate(-9rem, -5rem);
}

.sched-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.sched-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 1.1rem;
    opacity: 0.9;
}

.sched-time {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffe575;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.sched-name {
    font-family: 'Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffe575;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.sched-location {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #f9f3e3;
    line-height: 1.4;
    white-space: nowrap;
}

.sched-item:first-child .sched-location {
    word-spacing: 0.3em;
}

.sched-card-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.sched-card {
    width: 600px;
    object-fit: contain;
    margin-top: -5rem;
}

.map-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.map-card {
    position: relative;
    display: inline-block;
}

.map-card-map {
    position: absolute;
    top: 20%;
    left: 48%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: auto;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.map-card-link:hover .map-card-map {
    transform: translate(-50%, -50%) scale(1.08);
}

.map-card-cta {
    position: absolute;
    bottom: 28%;
    left: 46%;
    transform: translateX(-50%);
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff8b1d;
    white-space: nowrap;
}

.timeline-container {
    position: relative;
    padding: 100px 0;
}

/* The main horizontal line */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%);
}

.timeline-events {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 8%;
}

.timeline-event {
    flex: 1;
    text-align: center;
    position: relative;
    color: white;
}

/* Vertical line markers */
.timeline-event::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100px;
    background: rgba(255, 255, 255, 0.8);
    top: -100px;
}

/* Alternate vertical lines - some go up, some go down */
.timeline-event:nth-child(odd)::before {
    top: auto;
    bottom: -100px;
}

.event-time {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.event-name {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    line-height: 1.4;
}

.event-location {
    font-size: 0.85rem;
    font-weight: 300;
    font-style: italic;
    opacity: 0.9;
    line-height: 1.3;
}

/* Position odd events above the line */
.timeline-event:nth-child(odd) {
    transform: translateY(-120px);
}

/* Position even events below the line */
.timeline-event:nth-child(even) {
    transform: translateY(120px);
}

/* Wedding Party Section */
#party {
    background-color: #efeadd;
    background-image: url('images/entouragebg.png');
    background-size: 1800px;
    background-position: bottom 80px right -250px;
    background-repeat: no-repeat;
    position: relative;
    padding: 0;
}

.party-vine-decor {
    position: absolute;
    top: 500px;
    right: -250px;
    height: 72%;
    width: auto;
    z-index: 2;
    pointer-events: none;
    transform: rotate(-3deg);
}

/* Entourage Layout */
.party-layout {
    padding-bottom: 2rem;
}

.party-photos {
    display: flex;
    flex-direction: column;
}

.party-img-container {
    flex: 1 1 0;
    min-height: 0;
    border: 2px solid #507253;
    background: #efeadd;
    padding: 20px;
}

.party-img-container:first-child {
    border-top: none;
    padding-top: 0;
}

    @media (min-width: 769px) {
    .party-img-container:nth-child(6) {
        display: none;
    }

    .party-img-container:nth-last-child(2) {
        border-bottom: none;
        padding-bottom: 0;
    }
}

.party-img-container:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.party-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.party-carousel-outer {
    position: relative;
    margin-top: 7rem;
}

.party-carousel-wrapper {
    border-top: 3px solid #507253;
    border-bottom: 3px solid #507253;
    overflow: hidden;
    background: #507253;
}

.party-carousel {
    overflow: hidden;
}

.party-carousel-track {
    display: flex;
    gap: 3px;
    animation: partyScroll 12s linear infinite;
}


.party-photo-frame {
    flex: 0 0 calc(100% / 3 - 2px);
    height: 500px;
    padding: 20px;
    background: #efeadd;
    box-sizing: border-box;
}

.party-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.party-photo-frame img[src*="c1.jpg"] {
    object-position: center 25%;
}

.party-photo-frame img[src*="c2.jpg"] {
    object-position: center 30%;
}

.party-photo-frame img[src*="c3.jpg"] {
    object-position: center 15%;
}

.party-photo-frame img[src*="c4.JPG"] {
    object-position: center 20%;
}

.party-photo-frame img[src*="c5.JPG"],
.party-photo-frame img[src*="c6.JPG"],
.party-photo-frame img[src*="c7.JPG"],
.party-photo-frame img[src*="c8.JPG"] {
    object-position: center 18%;
}

@keyframes partyScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.party-entourage {
    flex: 1;
    padding: 3rem 5rem 3rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Entourage Title */
.entourage-title {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 0.1rem;
    line-height: 1.2;
    word-spacing: 1em;
    letter-spacing: 6px;
}

.entourage-initial {
    font-family: 'Alex Brush', cursive;
    font-size: 10rem;
    font-weight: 400;
    color: #e9a021;
}

.entourage-rest {
    font-family: 'Cinzel', serif;
    font-size: 6.2rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: #e9a021;
    text-transform: uppercase;
}

/* Entourage Grid */
.entourage-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 65%;
    margin: 0.5rem auto;
    text-align: center;
}

.entourage-row-3col {
    grid-template-columns: 1fr 1fr 1fr;
    width: 90%;
}

.entourage-bearers {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "ring coin bible"
        "flower flower flower";
    width: 90%;
    gap: 2rem;
    margin: 0.5rem auto;
    text-align: center;
}

.eb-ring { grid-area: ring; min-width: 0; }
.eb-coin { grid-area: coin; min-width: 0; }
.eb-bible { grid-area: bible; min-width: 0; }
.eb-flower { grid-area: flower; margin-top: 1rem; min-width: 0; }

.eb-flower-names {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.entourage-row-groom-bride {
    gap: 14rem;
    transform: translateX(-40px);
}

.entourage-row-groom-bride .entourage-role,
.entourage-row-groom-bride .entourage-name {
    transform: translateX(-40px);
}

.entourage-row-parents {
    gap: 14rem;
    transform: translateX(-15px);
}

.entourage-row-parents .entourage-col:first-child {
    transform: translateX(-50px);
}

.entourage-row-parents .entourage-col:last-child {
    transform: translateX(30px);
}

.entourage-row-sponsors {
    gap: 16.5rem;
    transform: translateX(-25px);
}

.entourage-row-sponsors .entourage-col:first-child {
    transform: translateX(-40px);
}

.entourage-row-sponsors .entourage-col:last-child {
    transform: translateX(25px);
}

.entourage-row-parents .entourage-name {
    white-space: nowrap;
}

.entourage-row-candle-veil {
    gap: 14rem;
    transform: translateX(-140px);
}

.entourage-row-candle-veil .entourage-col:first-child {
    transform: translateX(-65px);
}

.entourage-row-candle-veil .entourage-col:last-child {
    transform: translateX(30px);
}

.entourage-shift-left .entourage-col:first-child {
    transform: translateX(-160px);
}

.entourage-shift-left .entourage-col:last-child {
    transform: translateX(60px);
}

.entourage-shift-left .entourage-role,
.entourage-shift-left .entourage-name {
    line-height: 1.2;
}

.entourage-shift-left .entourage-role {
    letter-spacing: 3px;
}



.entourage-row-groom-bride .entourage-name {
    white-space: nowrap;
}

.entourage-row-groom-bride .entourage-col:first-child {
    transform: translateX(-70px);
}

.entourage-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.entourage-single {
    text-align: center;
    margin: 0.5rem 0;
}

/* Role headers (GROOM, BRIDE, PARENTS OF...) */
.entourage-role {
    font-family: 'Garamond', 'EB Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    -webkit-text-stroke: 0.3px #ff8b1d;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #ff8b1d;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.entourage-role-parents {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: 8px;
    font-size: 2.8rem;
}

.entourage-role-sponsors-title,
.entourage-role-secondary {
    font-size: 2.8rem;
    letter-spacing: 10px;
}

.entourage-role-secondary,
.entourage-row-candle-veil .entourage-role,
.entourage-single .entourage-role {
    margin-top: 0;
    margin-bottom: 0;
}

.entourage-row-candle-veil .entourage-role,
.entourage-single .entourage-role {
    font-size: 2.6rem;
}

.entourage-row-candle-veil .entourage-name,
.entourage-single .entourage-name {
    line-height: 1.2;
}

.entourage-role-secondary {
    margin-top: 1.5rem;
    transform: translateX(50px);
}

.entourage-row-groom-bride .entourage-role {
    margin-top: 0;
    margin-bottom: 0;
}

.entourage-name-cord2 {
    transform: translateX(20px);
}

/* Section titles (PRINCIPAL SPONSORS, SECONDARY SPONSORS) */
.entourage-section-title {
    font-family: 'Garamond', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #5a7a52;
    text-align: center;
    margin: 0.6rem 0 0.4rem;
}

/* Name text */
.entourage-name {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #507253;
    margin-bottom: 0.15rem;
    text-align: center;
    letter-spacing: 5px;
    white-space: nowrap;
}

.entourage-row-sponsors .entourage-name {
    letter-spacing: 3px;
}

/* Divider */
.entourage-divider {
    display: flex;
    align-items: center;
    width: 95%;
    margin: 0.8rem auto;
}

.divider-diamond {
    width: 10px;
    height: 10px;
    background: #fdbe4b;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    flex-shrink: 0;
}

.divider-line {
    flex: 1;
    height: 3px;
    background: #fdbe4b;
    margin: 0;
}

/* Attire Section */
#attire {
    background-color: #efeadf;
    padding: 20px 0;
    margin: 0;
    min-height: 100vh;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.06);
}

.attire-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 3fr repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    min-height: 100vh;
}

.attire-cell {
    border: 1px solid #8e9f4f;
}

/* Remove outer left border */
.attire-grid > .attire-cell:nth-child(1),
.attire-grid > .attire-cell:nth-child(8) {
    border-left: none;
}

/* Remove outer right border */
.attire-grid > .attire-cell:nth-child(7),
.attire-grid > .attire-cell:nth-child(13) {
    border-right: none;
}


@media (min-width: 769px) {
    .story-title-break,
    .rsvp-title-break {
        display: none;
    }

    .story-columns-mobile {
        display: none;
    }

    .story-sunflower-mobile {
        display: none;
    }

    .attire-photo-women-1 {
        background-image: url('images/women1.png');
        background-size: 80%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .attire-photo-women-2 {
        background-image: url('images/women2.png');
        background-size: 78%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .attire-photo-women-3 {
        background-image: url('images/women3.png');
        background-size: 78%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .attire-photo-women-4 {
        background-image: url('images/women4.png');
        background-size: 110%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .attire-photo-women-5 {
        background-image: url('images/women5.png');
        background-size: 75%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .attire-photo-women-6 {
        background-image: url('images/women6.png');
        background-size: 64%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .attire-photo-men-1 {
        background-image: url('images/men1.png');
        background-size: 78%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .attire-photo-men-2 {
        background-image: url('images/men2.png');
        background-size: 75%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .attire-photo-men-3 {
        background-image: url('images/men3.png');
        background-size: 82%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .attire-photo-men-4 {
        background-image: url('images/men4.png');
        background-size: 80%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .attire-photo-men-5 {
        background-image: url('images/men5.png');
        background-size: 78%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .attire-photo-men-6 {
        background-image: url('images/men6.png');
        background-size: 78%;
        background-position: center;
        background-repeat: no-repeat;
    }
}

.attire-center {
    grid-column: 4;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.attire-upflower {
    position: absolute;
    top: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: auto;
}

.attire-title {
    margin-bottom: 1.2rem;
    font-weight: normal;
    line-height: 1.1;
}

.attire-initial {
    font-family: 'Alex Brush', cursive;
    font-size: 5rem;
    font-weight: 400;
    color: #ffcc6f;
}

.attire-word {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: #ffcc6f;
    text-transform: uppercase;
}

#attire .attire-title .attire-initial {
    font-size: 6.5rem;
}

#attire .attire-title .attire-word {
    font-size: 4.2rem;
}

#attire .attire-title {
    margin-top: 0rem;
}

.attire-desc {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.45rem;
    line-height: 1.7;
    color: #507253;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.attire-subtitle {
    font-family: 'EB Garamond', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #e9a021;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.attire-swatches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}

.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.leaf-swatch-img {
    height: 70px;
    width: auto;
}


.swatch-item span {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    color: #507253;
}

.attire-footer-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    color: #507253;
    line-height: 1.5;
}



/* Registry Section */
.registry-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.registry-title .attire-initial {
    color: #ffe575;
    margin-right: 1rem;
}

.registry-title .attire-word {
    color: #ffe575;
}

#registry {
    background: url('images/registry.jpg') center 56%/cover no-repeat;
    min-height: 900px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.registry-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 4rem 2rem;
    transform: translateY(-12rem);
}

.registry-card-wrapper {
    position: absolute;
    bottom: 2rem;
    right: 0;
    display: flex;
    align-items: center;
}

.registry-map-card-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    width: 100%;
}

.registry-map-card {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
}

.registry-bpi-mobile {
    display: none;
}

.registry-bpi-mobile-img {
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
}

.registry-cardno-wrapper {
    display: none;
    position: relative;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
}

.registry-cardno-inner {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.registry-cardno {
    width: 100%;
    max-width: 420px;
    display: block;
    position: relative;
    z-index: 2;
}

.registry-cardno-bpi {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 350px;
    z-index: 3;
}

.registry-cardno-flower {
    position: absolute;
    bottom: -28px;
    left: 8px;
    width: 112px;
    height: auto;
    z-index: 4;
    pointer-events: none;
}



.registry-card-frame {
    border: 1.5px solid #f9f3e3;
    border-right: none;
    border-radius: 210px 0 0 210px;
    padding: 20px 0 20px 20px;
    background: transparent;
}

.registry-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: #f9f3e3;
    border-radius: 200px 0 0 200px;
    padding: 0 2.5rem 0 3rem;
    height: 350px;
    width: 375px;
    box-sizing: content-box;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.registry-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.registry-card-qr-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.registry-card-bank {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #cc0000;
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
}

.registry-card-name {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.2rem;
}

.registry-card-number {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: #2c2c2c;
    margin-bottom: 0.8rem;
}

.registry-qr {
    width: 500px;
    height: 500px;
    object-fit: contain;
}

.registry-card-note {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.7rem;
    font-style: italic;
    color: #7aada0;
}

.registry-desc {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #ffffff;
    max-width: 750px;
    margin-bottom: 2rem;
}

.registry-desc strong {
    font-family: 'Quicksand', sans-serif;
}

.registry-btn {
    display: inline-block;
    font-family: 'Garamond', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #7a5c1e;
    text-decoration: none;
    background: #f0dfa0;
    border: 1.5px solid #b8922a;
    padding: 0.9rem 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.registry-btn:hover {
    background: rgba(201, 168, 76, 0.15);
}

/* Gift List Modal */
.gift-modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 12, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gift-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gift-modal {
    background: #f9f3e3;
    border: 1.5px solid #b8922a;
    border-radius: 16px;
    max-width: 850px;
    width: 100%;
    max-height: 85vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.gift-modal-scroll {
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #8e9f4f transparent;
    padding: 2.5rem 2rem 3rem;
}

.gift-modal-scroll::-webkit-scrollbar {
    width: 12px;
}

.gift-modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.gift-modal-scroll::-webkit-scrollbar-thumb {
    background-color: #8e9f4f;
    border-radius: 999px;
    border: 3px solid #f9f3e3;
}

.gift-modal-scrollbar-track {
    display: none;
}

.gift-modal-close {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #778d60;
    cursor: pointer;
    z-index: 10;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    isolation: isolate;
    transition: opacity 0.2s ease;
}

.gift-modal-close:hover {
    opacity: 0.6;
}

.gift-modal-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #507253;
    margin-bottom: 0.5rem;
}

.gift-modal-sprig {
    display: flex;
    justify-content: center;
    color: #8e9f4f;
    margin-bottom: 0.8rem;
}

.gift-modal-subtitle {
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #7a5c1e;
    margin-bottom: 1.8rem;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem 1rem;
}

.gift-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    background: #fffdf7;
    border: 1px solid rgba(184, 146, 42, 0.25);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(80, 60, 20, 0.08);
}

.gift-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.gift-card-body {
    width: 100%;
    padding: 0.8rem 0.6rem 0.9rem;
}

.gift-card-name {
    color: #2c2c2c;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.gift-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #dfe8c8;
    color: #5a7a52;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

.gift-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.gift-footer-line {
    width: 30px;
    height: 1px;
    background: #b8922a;
}

.gift-footer-text {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #778d60;
    font-style: italic;
}

@media (max-width: 768px) {
    .gift-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .gift-modal {
        max-width: 100%;
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        transform: translateY(100%);
        transition: transform 0.35s ease;
    }

    .gift-modal-overlay.active .gift-modal {
        transform: translateY(0);
    }

    .gift-modal-scroll {
        max-height: 92vh;
        padding: 2rem 1.2rem 2.5rem;
    }

    .gift-modal::before {
        content: '';
        position: absolute;
        top: 0.7rem;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: rgba(184, 146, 42, 0.35);
    }

    .gift-modal-scrollbar-track {
        display: block;
        position: absolute;
        top: 2rem;
        bottom: 1rem;
        right: 0.35rem;
        width: 4px;
        border-radius: 999px;
        background: rgba(184, 146, 42, 0.15);
        pointer-events: none;
        z-index: 5;
    }

    .gift-modal-scrollbar-thumb {
        position: absolute;
        left: 0;
        width: 100%;
        border-radius: 999px;
        background: #8e9f4f;
    }

    .gift-modal-close {
        top: 0.8rem;
    }

    .gift-modal-sprig {
        align-items: center;
        gap: 0.6rem;
    }

    .gift-modal-sprig::before,
    .gift-modal-sprig::after {
        content: '';
        width: 26px;
        height: 1px;
        background: #b8922a;
    }

    .gift-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.cta-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--accent);
    transition: all 0.3s ease;
}

.cta-link:hover {
    opacity: 0.7;
}

.registry-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
}

/* RSVP Section - New Design */
.rsvp-section {
    background: #efeadf !important;
    min-height: 100vh;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: center;
    overflow: hidden;
}

.rsvp-container {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}


@media (min-width: 769px) {
    .rsvp-downflower {
        position: absolute;
        bottom: -50px;
        right: -20px;
        width: 590px;
        height: auto;
        z-index: 1;
        pointer-events: none;
        transform: rotate(5deg);
    }

    .rsvp-upflower {
        position: absolute;
        bottom: -50px;
        left: -20px;
        width: 590px;
        height: auto;
        z-index: 1;
        pointer-events: none;
        transform: rotate(-5deg);
    }
}

.rsvp-heading {
    text-align: center;
    margin-bottom: 0.5rem;
}

.rsvp-initial {
    font-family: 'Alex Brush', cursive;
    font-size: 8rem;
    font-weight: 400;
    color: #ffbb23;
    margin-right: 1.2rem;
}

.rsvp-word {
    font-family: 'Cinzel', serif;
    font-size: 6rem;
    font-weight: 400;
    color: #ffbb23;
}

.rsvp-main-title {
    text-align: center;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #778d60;
    font-family: 'Garamond', serif;
}

.rsvp-card {
    background: rgba(250, 245, 240, 0.95);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.rsvp-instruction {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.7;
    color: #5a5a5a;
    margin-bottom: 1.5rem;
}

.rsvp-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 1px solid #d0c5ba;
    border-radius: 6px;
    margin: 2rem 0 0.5rem 0;
    font-family: inherit;
    background: white;
    color: #333;
}

.rsvp-input:focus {
    outline: none;
    border-color: #a89584;
}

.rsvp-example {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
    text-align: center;
}

.rsvp-continue-btn {
    width: 100%;
    background: #5a5a3d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.rsvp-continue-btn:hover:not(:disabled) {
    background: #4a4a30;
    transform: translateY(-2px);
}

.rsvp-continue-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rsvp-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #d32f2f;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
}

.rsvp-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #f0efe4;
    border-left: 3px solid #5a5a3d;
    border-radius: 0 6px 6px 0;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    color: #5a5a5a;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: left;
}

.rsvp-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: #5a5a3d;
    color: #fff;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 700;
}

.rsvp-back-btn {
    width: 100%;
    background: transparent;
    color: #5a5a3d;
    border: 1.5px solid #5a5a3d;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 0.8rem;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.rsvp-back-btn:hover {
    background: #5a5a3d;
    color: #ffffff;
}

/* Step 2 - Guest Selection */
.rsvp-select-instruction {
    text-align: center;
    font-size: 1.1rem;
    color: #4a7a5a;
    margin-bottom: 2rem;
}

/* Guest Name Selection Boxes */
.guest-name-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
}

/* Guest Attendance Selection */
.guest-attendance-item {
    padding: 1.5rem 0;
}

.guest-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.guest-name-label {
    font-size: 1.1rem;
    color: #4a4a4a;
    font-weight: 500;
}

.rsvp-status-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-attending { background: #e8f5e9; color: #2e7d32; }
.badge-declined  { background: #fce4ec; color: #c62828; }
.badge-pending   { background: #f0efe4; color: #888; }

.guest-radio-group {
    display: flex;
    gap: 2rem;
    margin-left: 0;
}

.guest-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #5a5a5a;
}

.guest-radio-label input[type="radio"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5a5a3d;
}

.guest-separator {
    height: 1px;
    background: #e0d5ca;
    margin: 0;
}

/* Old guest-name-box styles - kept for backwards compatibility if needed */
.guest-name-box {
    background: white;
    border: 2px solid #d0c5ba;
    padding: 1.2rem 1.5rem;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
}

.guest-name-box label {
    margin: 0;
    padding: 0;
    color: #333;
}

.guest-name-box:hover {
    border-color: #5a5a3d;
    background: #f5f0eb;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.guest-name-box.selected {
    background: #5a5a3d;
    color: white;
    border-color: #5a5a3d;
}

.guest-name-box.selected label {
    color: white;
}

.rsvp-select-btn {
    width: 100%;
    background: #5a5a3d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin-top: 2rem;
}

.rsvp-select-btn:hover {
    background: #4a4a30;
    transform: translateY(-2px);
}

/* Step 3 - Confirmation Form */
.rsvp-confirm-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #4a4a4a;
}

#step3 .form-group {
    margin-bottom: 2rem;
}

#step3 .form-group label {
    display: block;
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 0.8rem;
    font-weight: 400;
}

#step3 .required {
    color: #d32f2f;
}

#step3 input[type="email"],
#step3 textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #d0c5ba;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: #333;
}

#step3 input[type="email"]:focus,
#step3 textarea:focus {
    outline: none;
    border-color: #a89584;
}

#step3 .radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

#step3 .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    background: white;
    border: 2px solid #e0d5ca;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#step3 .radio-label:hover {
    border-color: #5a5a3d;
    background: #fafafa;
}

#step3 .radio-label input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #5a5a3d;
}

#step3 .radio-label span {
    font-size: 1rem;
    color: #4a4a4a;
}

.rsvp-submit-btn {
    width: 100%;
    background: #5a5a3d;
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.rsvp-submit-btn:hover:not(:disabled) {
    background: #4a4a30;
    transform: translateY(-2px);
}

.rsvp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* RSVP Success Modal */
.rsvp-success-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 15, 12, 0.75);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.rsvp-success-modal.active {
    display: flex;
}

.rsvp-success-content {
    background: #f9f3e3;
    border: 1.5px solid #b8922a;
    border-radius: 16px;
    padding: 3rem 2.5rem 2.5rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.rsvp-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(90, 90, 61, 0.1);
    border: 2px solid #5a5a3d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.6rem;
    color: #5a5a3d;
}

.rsvp-success-title {
    font-family: 'Alex Brush', cursive;
    font-size: 3rem;
    color: #5a5a3d;
    margin-bottom: 0.8rem;
    line-height: 1;
}

.rsvp-success-msg {
    font-size: 1.05rem;
    color: #5a5a5a;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.rsvp-success-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: #ffbb23;
    opacity: 0.85;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
}

.rsvp-success-btn {
    background: #5a5a3d;
    color: #fff;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.rsvp-success-btn:hover {
    background: #4a4a30;
    transform: scale(1.04);
}

/* Step Transitions */
.rsvp-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
    visibility: hidden;
}

.rsvp-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}


.faq-title {
    text-align: left;
    margin-bottom: 3rem;
    line-height: 1;
    white-space: nowrap;
    padding-top: 4rem;
    padding-left: 1rem;
}

.faq-initial {
    font-family: 'Alex Brush', cursive;
    font-size: 5rem;
    font-weight: 400;
    color: #e9a021;
    margin-right: 0.5rem;
}

.faq-word {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #e9a021;
    letter-spacing: 2px;
}

/* Footer */
footer {
    background: linear-gradient(to right, rgba(0,0,0,0.5) 25%, rgba(5,10,5,0.9) 38%, rgba(5,10,5,0.9) 42%, transparent 55%),
                url('images/added.png') left 45%/40% no-repeat,
                url('images/faqs.JPG') right 30%/70% no-repeat;
    
    color: var(--text-light);
    padding: 1rem 2rem 0.5rem;
    min-height: 120vh;
    text-align: right;
    scroll-margin-top: var(--navbar-height);  /* ADD THIS LINE */
}

.footer-content {
    max-width: 800px;
    margin: 0;
    margin-left: 4rem;
    height: 100vh;
}

.faq-container {
    text-align: left;
    width: 100%;
    padding-left: 2.5rem;
}

.faq-item {
    margin-bottom: 0;
    border-bottom: none;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    opacity: 0.8;
}

.faq-question h4 {
    font-size: 1.2rem;
    margin: 0;
    letter-spacing: 3px;
    font-weight: 700;
    font-family: 'Garamond', serif;
    color: #ffeda8;
    text-transform: uppercase;
    flex: 1;
    padding-right: 1rem;
}

.faq-toggle {
    font-size: 2.5rem;
    font-weight: 300;
    color: #ffeda8;
    transition: transform 0.3s ease;
    line-height: 1;
    min-width: 20px;
    text-align: center;
    order: -1;
    display: flex;
    align-items: center;
    align-self: center;
    transform: translateY(-6px);
    margin-right: 1rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    font-size: 0.95rem;
    color: #ffeda8;
    font-family: 'Garamond', serif;
    line-height: 1.6;
    margin: 0;
    padding-left: calc(20px + 1rem);
    padding-right: 2rem;
   
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

   

    /* 4K and above */
@media (max-width: 2561px) {
        .registry-qr {
            width: 1000px;
            height: 1000px;
            margin-top: 18rem;
            transform: translateX(40px);
        }

        .map-card-map {
            top: 33%;
        }

        .map-card-cta {
            font-size: 1.3rem;
        }

        .welcome-text {
            font-size: 1.6rem;
        }

        .name-initial {
            font-size: 4rem;
        }

        .name-rest {
            font-size: 3rem;
        }

        .couple-amp {
            font-size: 6rem;
        }

        .wedding-date {
            font-size: 2rem;
        }

        .wedding-location {
            font-size: 2rem;
        }

        .hero-navbar {
            padding: 4rem 8rem;
        }

        .hero-navbar .nav-center a {
            font-size: 1.3rem;
        }

        .hero-navbar .rsvp-btn {
            padding: 1.3rem 2.8rem;
            font-size: 1.3rem;
        }

        .nav-logo .logo-j,
        .nav-logo .logo-k {
            font-size: 30px;
        }

        .nav-logo .logo-oseph,
        .nav-logo .logo-ate {
            font-size: 24px;
        }

        .nav-logo .logo-amp {
            font-size: 32px;
        }

        .story-started-title {
            text-align: left;
            padding-left: 4rem;
            font-size: 2.83rem;
    }

        .our-love-story-title {
            font-size: 4.5rem;
            margin-bottom: 3.5rem;
            margin-top: 3.5rem;
        }

        .our-love-story-title .ols-initial {
            font-size: 8rem;
        }

        .our-love-story-title .ols-rest {
            font-size: 5rem;
        }

        .story-col p {
            font-size: 2.65rem;
        }

        .story-photo-frame img {
            height: 550px;
        }

        .rsvp-downflower,
        .rsvp-upflower {
            width: 700px;
        }

        .big-day-title {
            margin-top: 4rem;
        }

        .big-day-title .ols-initial {
            font-size: 9rem;
        }

        .big-day-title .ols-rest {
            font-size: 5.4rem;
        }

        .sched-icon {
            width: 190px;
            height: 190px;
        }

        .sched-time {
            font-size: 2.3rem;
        }

        .sched-name {
            font-size: 2.8rem;
        }

        .sched-location {
            font-size: 2.1rem;
        }

        .sched-grid {
            gap: 12rem;
            transform: translate(-26rem, -5rem);
        }

        #event {
            height: 1250px;
        }
}

 @media (max-width: 1921px) {
        .sched-card {
            width: 750px;
        }

        .registry-qr {
            width: 900px;
            height: 900px;
            margin-top: 16rem;
            transform: translateX(40px);
        }

        .map-card-map {
            top: 38%;
        }

        .map-card-cta {
            font-size: 1.4rem;
            bottom: 22%;
        }

        .welcome-text {
            font-size: 1.6rem;
        }

        .name-initial {
            font-size: 4rem;
        }

        .name-rest {
            font-size: 3rem;
        }

        .couple-amp {
            font-size: 6rem;
        }

        .wedding-date {
            font-size: 2rem;
        }

        .wedding-location {
            font-size: 2rem;
        }

        .hero-navbar {
            padding: 3rem 6rem;
        }

        .hero-navbar .nav-center a {
            font-size: 0.85rem;
        }

        .hero-navbar .rsvp-btn {
            padding: 0.9rem 2rem;
            font-size: 1rem;
        }

        .nav-logo .logo-j,
        .nav-logo .logo-k {
            font-size: 30px;
        }

        .nav-logo .logo-oseph,
        .nav-logo .logo-ate {
            font-size: 24px;
        }

        .nav-logo .logo-amp {
            font-size: 32px;
        }

        .story-started-title {
            text-align: left;
            padding-left: 4rem;
            font-size: 2rem;
        }

        .our-love-story-title {
            font-size: 3.6rem;
            margin-bottom: 2.8rem;
            margin-top: 2.8rem;
        }

        .our-love-story-title .ols-initial {
            font-size: 6rem;
            padding: 0.1rem;
        }

        .our-love-story-title .ols-rest {
            font-size: 4rem;
            padding: 0.3rem;
        }

        .story-col p {
            font-size: 1.95rem;
        }

        .story-photo-frame img {
            height: 350px;
        }

        .rsvp-downflower,
        .rsvp-upflower {
            width: 590px;
        }

        .big-day-title .ols-initial {
            font-size: 6.4rem;
        }

        .big-day-title .ols-rest {
            font-size: 4.3rem;
        }

        .sched-icon {
            width: 148px;
            height: 148px;
        }

        .sched-time {
            font-size: 1.82rem;
        }

        .sched-name {
            font-size: 2.2rem;
        }

        .sched-location {
            font-size: 1.68rem;
        }

        .sched-grid {
            gap: 7rem;
            transform: translate(-10rem, -5rem);
        }

        .entourage-title {
            margin-top: 4rem;
        }

        .entourage-initial {
            font-size: 10rem;
        }

        .entourage-rest {
            font-size: 6.2rem;
        }

        .entourage-role,
        .entourage-role-parents,
        .entourage-role-sponsors-title,
        .entourage-role-secondary {
            font-size: 2.8rem;
            letter-spacing: 8px;
        }

        .entourage-name {
            font-size: 2.2rem;
            letter-spacing: 5px;
        }

        .entourage-row-groom-bride {
            gap: 14rem;
            transform: translateX(-40px);
        }

        .entourage-row-groom-bride .entourage-role,
        .entourage-row-groom-bride .entourage-name {
            transform: translateX(-40px);
        }

        .entourage-row-groom-bride .entourage-col:first-child {
            transform: translateX(-70px);
        }

        .entourage-row-parents {
            gap: 14rem;
            transform: translateX(-15px);
        }

        .entourage-row-parents .entourage-col:first-child {
            transform: translateX(-50px);
        }

        .entourage-row-parents .entourage-col:last-child {
            transform: translateX(30px);
        }

        .entourage-row-sponsors {
            gap: 16.5rem;
            transform: translateX(-25px);
        }

        .entourage-row-sponsors .entourage-col:first-child {
            transform: translateX(-40px);
        }

        .entourage-row-sponsors .entourage-col:last-child {
            transform: translateX(25px);
        }

        .entourage-row-candle-veil {
            gap: 14rem;
            transform: translateX(-140px);
        }

        .entourage-row-candle-veil .entourage-col:first-child {
            transform: translateX(-65px);
        }

        .entourage-row-candle-veil .entourage-col:last-child {
            transform: translateX(30px);
        }

        .entourage-shift-left .entourage-col:first-child {
            transform: translateX(-160px);
        }

        .entourage-shift-left .entourage-col:last-child {
            transform: translateX(60px);
        }

        .entourage-role-secondary {
            transform: translateX(50px);
        }

        .story-yellowflower {
            width: 400px;
        }
    }

@media (max-width: 1513px) {
        .story-yellowflower {
            width: 320px;
        }

        .attire-upflower {
            width: 190px;
            top: 0.5rem;
        }

        .attire-subtitle {
            font-size: 1.5rem;
        }

        #attire .attire-title {
            padding-top: 2.9rem;
        }

        #attire .attire-title .attire-initial {
            font-size: 5rem;
        }

        #attire .attire-title .attire-word {
            font-size: 3.2rem;
        }

        .attire-desc {
            font-size: 1.35rem;
        }

        .welcome-text {
            font-size: 1.6rem;
        }

        .name-initial {
            font-size: 4rem;
        }

        .name-rest {
            font-size: 3rem;
        }

        .couple-amp {
            font-size: 6rem;
        }

        .wedding-date {
            font-size: 2rem;
        }

        .wedding-location {
            font-size: 2rem;
        }

        .hero-navbar {
            padding: 3rem 6rem;
        }

        .hero-navbar .nav-center a {
            font-size: 0.85rem;
        }

        .hero-navbar .rsvp-btn {
            padding: 0.9rem 2rem;
            font-size: 1rem;
        }

        .nav-logo .logo-j,
        .nav-logo .logo-k {
            font-size: 30px;
        }

        .nav-logo .logo-oseph,
        .nav-logo .logo-ate {
            font-size: 24px;
        }

        .nav-logo .logo-amp {
            font-size: 32px;
        }

        .story-started-title {
            text-align: left;
            padding-left: 4rem;
            font-size: 1.46rem;
    }

        .our-love-story-title {
            font-size: 3.2rem;
        }

        .our-love-story-title .ols-initial {
            font-size: 6.2rem;
        }

        .our-love-story-title .ols-rest {
            font-size: 3.5rem;
        }

        .story-col p {
            font-size: 1.5rem;
        }

        .story-photo-frame img {
            height: 350px;
        }

        .rsvp-downflower,
        .rsvp-upflower {
            width: 470px;
        }

        .party-photo-frame {
            flex: 0 0 calc(100% / 2.5 - 2px);
        }

        .big-day-title .ols-initial {
            font-size: 5.6rem;
        }

        .big-day-title .ols-rest {
            font-size: 3.3rem;
        }

        .sched-icon {
            width: 100px;
            height: 100px;
        }

        .sched-time {
            font-size: 1.4rem;
        }

        .sched-name {
            font-size: 1.65rem;
        }

        .sched-location {
            font-size: 1.2rem;
        }

        .sched-grid {
            gap: 5.5rem;
            transform: translate(2.5rem, -5rem);
        }

        .entourage-title {
            margin-top: 3.3rem;
        }

        .entourage-initial {
            font-size: 8.6rem;
        }

        .entourage-rest {
            font-size: 5.3rem;
        }

        .entourage-role,
        .entourage-role-parents,
        .entourage-role-sponsors-title,
        .entourage-role-secondary {
            font-size: 2.5rem;
            letter-spacing: 6.5px;
        }

        .entourage-name {
            font-size: 1.9rem;
            letter-spacing: 3.5px;
        }

        .entourage-row-groom-bride {
            gap: 10rem;
            transform: translateX(-30px);
        }

        .entourage-row-groom-bride .entourage-role,
        .entourage-row-groom-bride .entourage-name {
            transform: translateX(-30px);
        }

        .entourage-row-groom-bride .entourage-col:first-child {
            transform: translateX(-50px);
        }

        .entourage-row-parents {
            gap: 10rem;
            transform: translateX(-12px);
        }

        .entourage-row-parents .entourage-col:first-child {
            transform: translateX(-35px);
        }

        .entourage-row-parents .entourage-col:last-child {
            transform: translateX(20px);
        }

        .entourage-row-sponsors {
            gap: 12rem;
            transform: translateX(-90px);
        }

        .entourage-row-sponsors .entourage-col:first-child {
            transform: translateX(-30px);
        }

        .entourage-row-sponsors .entourage-col:last-child {
            transform: translateX(18px);
        }

        .entourage-row-candle-veil {
            gap: 10rem;
            transform: translateX(-100px);
        }

        .entourage-row-candle-veil .entourage-col:first-child {
            transform: translateX(-45px);
        }

        .entourage-row-candle-veil .entourage-col:last-child {
            transform: translateX(20px);
        }

        .entourage-shift-left .entourage-col:first-child {
            transform: translateX(-115px);
        }

        .entourage-shift-left .entourage-col:last-child.entourage-col-shift-right {
            transform: translateX(90px);
        }

        .entourage-shift-left .entourage-col:last-child {
            transform: translateX(42px);
        }

        .entourage-role-secondary {
            transform: translateX(35px);
        }
}

@media (max-width: 1441px) {
        .rsvp-downflower,
        .rsvp-upflower {
            width: 400px;
        }

        .party-photo-frame {
            flex: 0 0 calc(100% / 2.5 - 2px);
        }

        .attire-upflower {
            width: 172px;
            top: 0.5rem;
        }

        .attire-subtitle {
            font-size: 1.35rem;
        }

        #attire .attire-title {
            padding-top: 2.7rem;
        }

        #attire .attire-title .attire-initial {
            font-size: 4.85rem;
        }

        #attire .attire-title .attire-word {
            font-size: 3.05rem;
        }

        .attire-desc {
            font-size: 1.25rem;
        }

        .welcome-text {
            font-size: 1.6rem;
        }

        .name-initial {
            font-size: 4rem;
        }

        .name-rest {
            font-size: 3rem;
        }

        .couple-amp {
            font-size: 6rem;
        }

        .wedding-date {
            font-size: 2rem;
        }

        .wedding-location {
            font-size: 2rem;
        }

        .hero-navbar {
            padding: 3rem 6rem;
        }

        .hero-navbar .nav-center a {
            font-size: 0.85rem;
        }

        .hero-navbar .rsvp-btn {
            padding: 0.9rem 2rem;
            font-size: 1rem;
        }

        .nav-logo .logo-j,
        .nav-logo .logo-k {
            font-size: 30px;
        }

        .nav-logo .logo-oseph,
        .nav-logo .logo-ate {
            font-size: 24px;
        }

        .nav-logo .logo-amp {
            font-size: 32px;
        }

        .story-started-title {
            text-align: left;
            padding-left: 4rem;
            font-size: 1.39rem;
        }

        .our-love-story-title {
            font-size: 3.2rem;
        }

        .our-love-story-title .ols-initial {
            font-size: 6.2rem;
        }

        .our-love-story-title .ols-rest {
            font-size: 3.5rem;
        }

        .story-col p {
            font-size: 1.43rem;
        }

        .story-photo-frame img {
            height: 350px;
        }

        .big-day-title .ols-initial {
            font-size: 5.2rem;
        }

        .big-day-title .ols-rest {
            font-size: 3.1rem;
        }

        .sched-icon {
            width: 100px;
            height: 100px;
        }

        .sched-time {
            font-size: 1.35rem;
        }

        .sched-name {
            font-size: 1.6rem;
        }

        .sched-location {
            font-size: 1.2rem;
        }

        .sched-grid {
            gap: 4.5rem;
            transform: translate(3.5rem, -5rem);
        }

        .entourage-title {
            margin-top: 3rem;
        }

        .entourage-initial {
            font-size: 8.1rem;
        }

        .entourage-rest {
            font-size: 5rem;
        }

        .entourage-role,
        .entourage-role-parents,
        .entourage-role-sponsors-title,
        .entourage-role-secondary {
            font-size: 2.35rem;
            letter-spacing: 6px;
        }

        .entourage-name {
            font-size: 1.8rem;
            letter-spacing: 3px;
        }

        .entourage-row-groom-bride {
            gap: 9rem;
            transform: translateX(-25px);
        }

        .entourage-row-groom-bride .entourage-role,
        .entourage-row-groom-bride .entourage-name {
            transform: translateX(-25px);
        }

        .entourage-row-groom-bride .entourage-col:first-child {
            transform: translateX(-90px);
        }

        .entourage-row-parents {
            gap: 9rem;
            transform: translateX(-10px);
        }

        .entourage-row-parents .entourage-col:first-child {
            transform: translateX(-30px);
        }

        .entourage-row-parents .entourage-col:last-child {
            transform: translateX(18px);
        }

        .entourage-row-sponsors {
            gap: 14rem;
            transform: translateX(-80px);
        }

        .entourage-row-sponsors .entourage-col:first-child {
            transform: translateX(-25px);
        }

        .entourage-row-sponsors .entourage-col:last-child {
            transform: translateX(15px);
        }

        .entourage-row-candle-veil {
            gap: 9rem;
            transform: translateX(-90px);
        }

        .entourage-row-candle-veil .entourage-col:first-child {
            transform: translateX(-40px);
        }

        .entourage-row-candle-veil .entourage-col:last-child {
            transform: translateX(-20px);
        }

        .entourage-single {
            transform: translateX(20px);
        }

        .entourage-shift-left .entourage-col:first-child {
            transform: translateX(-100px);
        }

        .entourage-shift-left .entourage-col:last-child.entourage-col-shift-right {
            transform: translateX(95px);
        }

        .entourage-shift-left .entourage-col:last-child {
            transform: translateX(38px);
        }

        .entourage-role-secondary {
            transform: translateX(30px);
        }
}

@media (max-width: 1367px) {
        .attire-upflower {
            width: 155px;
            top: 0.5rem;
        }

        .party-photo-frame {
            flex: 0 0 calc(100% / 2.5 - 2px);
        }

        .attire-subtitle {
            font-size: 1.2rem;
        }

        #attire .attire-title {
            padding-top: 5rem;
        }

        #attire .attire-title .attire-initial {
            font-size: 4.5rem;
        }

        #attire .attire-title .attire-word {
            font-size: 2.80rem;
        }

        .attire-desc {
            font-size: 1.20rem;
        }

        .story-yellowflower {
            width: 280px;
        }

        .welcome-text {
            font-size: 1.6rem;
        }

        .name-initial {
            font-size: 4rem;
        }

        .name-rest {
            font-size: 3rem;
        }

        .couple-amp {
            font-size: 6rem;
        }

        .wedding-date {
            font-size: 2rem;
        }

        .wedding-location {
            font-size: 2rem;
        }

        .hero-navbar {
            padding: 3rem 6rem;
        }

        .hero-navbar .nav-center a {
            font-size: 0.85rem;
        }

        .hero-navbar .rsvp-btn {
            padding: 0.9rem 2rem;
            font-size: 1rem;
        }

        .nav-logo .logo-j,
        .nav-logo .logo-k {
            font-size: 30px;
        }

        .nav-logo .logo-oseph,
        .nav-logo .logo-ate {
            font-size: 24px;
        }

        .nav-logo .logo-amp {
            font-size: 32px;
        }

        .story-started-title {
            text-align: left;
            padding-left: 4rem;
            font-size: 1.26rem;
    }

        .our-love-story-title {
            font-size: 3rem;
            margin-bottom: 2.5rem;
            margin-top: 2.5rem;
        }

        .our-love-story-title .ols-initial {
            font-size: 5rem;
            padding: 0.1rem;
        }

        .our-love-story-title .ols-rest {
            font-size: 3.5rem;
        }

        .story-col p {
            font-size: 1.3rem;
        }

        .story-photo-frame img {
            height: 350px;
        }

        .rsvp-downflower,
        .rsvp-upflower {
            width: 380px;
        }

        .big-day-title .ols-initial {
            font-size: 5rem;
        }

        .big-day-title .ols-rest {
            font-size: 3rem;
        }

        .sched-icon {
            width: 95px;
            height: 95px;
        }

        .sched-time {
            font-size: 1.3rem;
        }

        .sched-name {
            font-size: 1.55rem;
        }

        .sched-location {
            font-size: 1.15rem;
        }

        .sched-grid {
            gap: 4rem;
            transform: translate(3rem, -5rem);
        }

        .entourage-title {
            margin-top: 2.7rem;
        }

        .entourage-initial {
            font-size: 7.3rem;
        }

        .entourage-rest {
            font-size: 4.5rem;
        }

        .entourage-role,
        .entourage-role-parents,
        .entourage-role-sponsors-title,
        .entourage-role-secondary {
            font-size: 2.1rem;
            letter-spacing: 5px;
        }

        .entourage-name {
            font-size: 1.6rem;
            letter-spacing: 2.5px;
        }

        .entourage-row-groom-bride {
            gap: 8rem;
            transform: translateX(-20px);
        }

        .entourage-row-groom-bride .entourage-role,
        .entourage-row-groom-bride .entourage-name {
            transform: translateX(-20px);
        }

        .entourage-row-groom-bride .entourage-col:first-child {
            transform: translateX(-38px);
        }

        .entourage-row-parents {
            gap: 8rem;
            transform: translateX(-8px);
        }

        .entourage-row-parents .entourage-col:first-child {
            transform: translateX(-25px);
        }

        .entourage-row-parents .entourage-col:last-child {
            transform: translateX(15px);
        }

        .entourage-row-sponsors {
            gap: 9rem;
            transform: translateX(-60px);
        }

        .entourage-row-sponsors .entourage-col:first-child {
            transform: translateX(-20px);
        }

        .entourage-row-sponsors .entourage-col:last-child {
            transform: translateX(12px);
        }

        .entourage-row-candle-veil {
            gap: 8rem;
            transform: translateX(-75px);
        }

        .entourage-row-candle-veil .entourage-col:first-child {
            transform: translateX(-32px);
        }

        .entourage-row-candle-veil .entourage-col:last-child {
            transform: translateX(15px);
        }

        .entourage-shift-left .entourage-col:first-child {
            transform: translateX(-85px);
        }

        .entourage-shift-left .entourage-col:last-child.entourage-col-shift-right {
            transform: translateX(32px);
        }

        .entourage-shift-left .entourage-col:last-child {
            transform: translateX(32px);
        }

        .entourage-role-secondary {
            transform: translateX(25px);
        }
}

/* Responsive */
@media (max-width: 1200px) {
    /* Large tablet/small desktop adjustments */
    
    .hero-navbar {
        padding: 1.5rem 3rem;
    }
    
    .hero-navbar a {
        margin: 0 1rem;
        font-size: 0.9rem;
    }.nav-logo .logo-j,
        .nav-logo .logo-k {
            font-size: 30px;
        }

        .nav-logo .logo-oseph,
        .nav-logo .logo-ate {
            font-size: 24px;
        }

        .nav-logo .logo-amp {
            font-size: 32px;
        }

        .story-started-title {
            text-align: left;
            padding-left: 4rem;
            font-size: 1.05rem;
    }

        .our-love-story-title {
            font-size: 1rem;
            margin-bottom: 2rem;
            margin-top: 2rem;
        }

        .our-love-story-title .ols-initial {
            font-size: 4rem;
            padding: 0.1rem;
        }

        .our-love-story-title .ols-rest {
            font-size: 2.5rem;
        }

        .story-col p {
            font-size: 1.14rem;
        }

        .story-photo-frame img {
            height: 280px;
        }

    
    .story-text-center {
        gap: 2rem;
    }

     .big-day-title {
        font-size: 4rem;
        letter-spacing: 0.3em;
    }
    
    .event-time {
        font-size: 1.2rem;
    }
    
    .event-name {
        font-size: 0.9rem;
    }
    
    .event-location {
        font-size: 0.75rem;
    }
    
    .party-content {
        max-width: 90%;
        padding-left: 10px;
    }
    
    .party-text {
        padding-right: 100px;
        padding-left: 20px;
    }
    
    .party-text h3 {
        font-size: 2.5rem;
    }
    
    .party-images {
        width: 220px;
    }
   
    
    .party-img-container {
        height: 210px;
    }
    
    .event-content {
        gap: 3rem;
    }
    
    .registry-content {
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    /* Tablet adjustments */
    .hero-navbar {
        padding: 1.5rem 2rem;
    }
    
    .couple-names {
        font-size: 4.5rem;
    }
    
    .story-label {
        text-align: center;
    }
    .story-text-center {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .story-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .story-description {
        column-count: 2;
        padding: 0;
    }
     .story-started-title {
            text-align: left;
            padding-left: 4rem;
        }
    
    .carousel-container {
        height: 600px;
    }
    
    .party-content {
        max-width: 95%;
        padding-left: 15px;
    }
    
    .party-text {
        padding-right: 60px;
    }
    
    .party-text h3 {
        font-size: 2.2rem;
    }
    
    .party-images {
        width: 200px;
    }
    
    .party-img-container {
        height: 190px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rsvp-main-title {
        font-size: 2rem;
    }
    
    .rsvp-card {
        padding: 2rem 1.5rem;
    }

    #step2 .rsvp-card,
    #step3 .rsvp-card {
        margin-bottom: 2.5rem;
    }
    
    .guest-radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rsvp-section {
        padding: 4rem 1rem;
    }
}
@media (max-width: 768px) {

     :root {
        --navbar-height: 71px;  /* ADD THIS at the top of the 768px media query */
    }
    /* Navigation */
    .hero-navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 0.8rem 1.2rem;
        background: transparent !important;
        justify-content: space-between;
    }

    .hero-navbar .nav-left,
    .hero-navbar .nav-center {
        display: none;
    }

    .hero-navbar .nav-right {
        display: flex;
        justify-content: flex-end;
    }

    .hero-navbar .rsvp-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
        color: #807253;
        font-weight: 900;
    }

    .mobile-logo {
        display: flex;
        flex-direction: column;
        margin-right: 1rem;
    }

    .burger-menu {
        display: flex;
        margin-left: 0;
        order: -1;
    }

    .burger-menu span {
        background: #807253;
    }

    .hero-navbar .nav-right {
        order: 1;
    }
    
    /* Hero Section */
    .hero {
        height: 100vh;
    }

    .hero::before {
        background-position: 90% 70%;
    }
    
    .couple-names {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }

    .welcome-text {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    .wedding-date {
        font-size: 1.4rem;
        letter-spacing: 5px;
    }
    
    .scroll-indicator {
        bottom: 2rem;
    }

    /* Story Section */
    #story {
        padding:  0;
    }

    .story-text-center {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
        padding: 0 1.5rem;
    }
    
    .story-label {
        font-size: 1.2rem;
        padding-left: 1.5rem;
        padding-top: 1rem;
    }
    
    .story-title {
        font-size: 2rem;
        padding: 0 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
        line-height: 1.3;
    }

    .story-description {
        font-size: 1rem;
        padding: 0 1.5rem;
        line-height: 1.7;
        column-count: 1;
        text-align: center;
    }

    .carousel-container {
        height: 450px;
    }

   #event {
        padding: 60px 20px;
    }

    .big-day-title {
        font-size: 2.5rem;
        letter-spacing: 0.3em;
        margin-bottom: 80px;
    }
    
    .timeline-container {
        padding: 40px 0;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .timeline-events {
        flex-direction: column;
        gap: 0;
        padding: 0;
        align-items: stretch;
    }
    
    /* Vertical timeline line */
    .timeline-line {
        left: 50%;
        right: auto;
        width: 2px;
        height: 100%;
        top: 0;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.8);
    }
    
    .timeline-event {
        transform: none !important;
        margin-bottom: 50px;
        width: 50%;
        position: relative;
    }

    .timeline-event:last-child {
        margin-bottom: 0;
    }
    
    /* Left side events (odd) */
    .timeline-event:nth-child(odd) {
        align-self: flex-start;
        text-align: right;
        padding-right: 40px;
    }

    /* Right side events (even) */
    .timeline-event:nth-child(even) {
        align-self: flex-end;
        text-align: left;
        padding-left: 40px;
    }
    
    /* Horizontal lines - Left side */
    .timeline-event:nth-child(odd)::before {
        width: 30px;
        height: 2px;
        top: 10px;
        left: auto;
        right: 0;
        bottom: auto;
        transform: none;
        background: rgba(255, 255, 255, 0.8);
    }

    /* Horizontal lines - Right side */
    .timeline-event:nth-child(even)::before {
        width: 30px;
        height: 2px;
        top: 10px;
        left: 0;
        right: auto;
        bottom: auto;
        transform: none;
        background: rgba(255, 255, 255, 0.8);
    }
    
    .event-time {
        font-size: 1.3rem;
        margin-bottom: 10px;
        font-weight: 400;
    }

    .event-name {
        font-size: 0.85rem;
        margin-bottom: 5px;
        letter-spacing: 0.1em;
    }

    .event-location {
        font-size: 0.75rem;
    }

    /* Party Section */
    #party {
        background-position: center center;
        min-height: auto;
        padding: 4rem 0;
    }

    .party-content {
        flex-direction: column;
        max-width: 100%;
        padding: 0 1.5rem;
        min-height: auto;
    }

    .party-text {
        padding: 2rem 0;
        order: 2;
    }

    .party-text h3 {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .party-text .subtitle {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .party-text p {
        font-size: 1rem;
        text-align: justify;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    .party-images {
        width: 100%;
        flex-direction: row;
        order: 1;
        padding: 0;
        gap: 10px;
        margin-bottom: 1.5rem;
    }

    .party-img-container {
        width: calc(33.33% - 7px);
        height: 220px;
    }

    /* Attire Section */
    #attire {
        padding:0;
        margin: 0;
    }
    .attire-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

     #attire .section-title {
        padding: 1.5rem;
    }
  

    /* Registry Section */
    #registry {
        padding: 0;
        background-size: 145% auto;
        background-position: left;
    }
    .registry-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    #registry .section-title {
        padding: 1.5rem;
    }

    .registry-text {
        padding: 0 1.5rem;
        order: 2;
        text-align: center;
       
    }
    
    .registry-text p {
        font-size: 1.05rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }

    .registry-image {
        height: 400px;
        order: 1;
    }

    .registry-card-wrapper {
        display: none !important;
    }

    .registry-cardno-wrapper {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: -3rem !important;
        width: 100% !important;
    }

    .registry-cardno-bpi {
        top: 45%;
    }


     .cta-link {
        font-size: 1rem;
        padding-top: 1rem;
        padding-bottom: 3rem;
        display: block;
        text-align: center;
        color: var(--accent);
        text-decoration: none;
        letter-spacing: 1px;
        border-bottom: 1px solid var(--accent);
        transition: all 0.3s ease;
        
    }
    .cta-link:hover {
        opacity: 0.7;
    }

    /* RSVP Section */
    .rsvp-section {
        padding: 4rem 1.5rem;
    }

    .rsvp-main-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .rsvp-card {
        padding: 2.5rem 2rem;
    }

    .rsvp-instruction {
        font-size: 1.2rem;
    }

    /* General adjustments */
    section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
        letter-spacing: 2px;
    }

    footer {
        padding: 3rem 1.5rem 2rem;
        background: linear-gradient(to bottom, rgba(20,20,18,1) 0%, rgba(20,20,18,0.85) 15%, rgba(20,20,18,0) 55%) center bottom/100% auto no-repeat,
                    url('images/longfaqs.png') center top/contain no-repeat !important;
    }

    .footer-content h2 {
        font-size: 2rem !important;
        margin-bottom: 2.5rem !important;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .faq-item {
        margin-bottom: 1.8rem;
    }

    .faq-item h4 {
        font-size: 1.15rem;
    }

    .faq-item p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 768px) {
    .story-columns-desktop {
        display: none !important;
    }

/* Navigation */
    .hero-navbar {
        padding: 0.6rem 0.6rem;
    }

    .hero-navbar .nav-center a {
        font-size: 0.8rem;
    }

    .hero-navbar .rsvp-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .mobile-logo {
        margin-right: 4.5rem;
    }

    .ml-j {
        font-size: 1.4rem;
        align-self: center;
        margin-left: 1.8rem;
    }

    .ml-amp {
        font-size: 1.2rem;
        align-self: center;
        margin-left: 4.1rem;
    }

    .ml-k {
        font-size: 1.4rem;
        align-self: center;
        margin-left: 5rem;
        margin-top: 0.2rem;
    }

    .burger-menu span {
        width: 20px;
    }

    /* Hero Section */
    .hero {
        align-items: flex-start;
        padding-top: 25vh;
    }

    .hero::before {
        background-size: 100%, 220% !important;
        background-position: 0% 50%, 35% 65% !important;
    }

    .welcome-text {
        transform: none !important;
        font-size: 0.8rem !important;
        letter-spacing: 0.5px;
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 0.5rem;
        margin-top: 2rem;
    }

    .couple-names {
        width: 100% !important;
        transform: none !important;
        align-items: center !important;
        padding: 0 !important;
        letter-spacing: 0.5px;
    }

    .couple-line:first-child {
        padding-left: 0 !important;
        justify-content: center !important;
        margin-top: 2   rem;
        font-size: 1.5rem;
        margin-right: 6.5rem;
    }

    .couple-line:last-child {
        padding-left: 0 !important;
        justify-content: center !important;
        margin-left: 7.8rem;
    }

    .couple-amp {
        padding-left: 0 !important;
        font-size: 1.5rem !important;
        transform: none !important;
        margin-top: .3rem;
        margin-left: 1.8rem;
        
    }

    .name-initial { font-size: 1.8rem !important; }
    .name-rest { font-size: 1.3rem !important; }

    .wedding-date {
        transform: none !important;
        font-size: 0.9rem !important;
        letter-spacing: 1px !important;
        text-align: center;
        white-space: nowrap;
        margin-top: 19rem !important;
    }

    .wedding-location {
        transform: none !important;
        font-size: 0.9rem !important;
        text-align: center;
        margin-top: 0.3rem;
    }

    /* Story Section */
    #story {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #story .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .story-sunflower {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 60px;
        height: auto;
        z-index: 5;
        pointer-events: none;
    }

    .story-sunflower-desktop {
        display: none;
    }

    .story-photo-frame {
        flex: 0 0 100% !important;
    }

    .story-photo-frame img {
        height: 180px !important;
    }

    .our-love-story-title .ols-initial {
        font-family: 'Cinzel', serif !important;
        font-size: 1.5rem !important;
        margin-right: -0.1em;
        margin-left: -0.3em;
        padding-right: 0.2rem !important;
    }

    .our-love-story-title .ols-initial:first-child {
        font-family: 'Alex Brush', cursive !important;
        font-size: 1.8rem !important;
        margin-right: -0.1em;
        margin-left: 0;
        padding-right: 0.4rem !important;
    }

    .our-love-story-title .ols-rest {
        font-size: 1.5rem !important;
        letter-spacing: 0 !important;
        padding: 0 !important;
    }

    .our-love-story-title {
        margin: 3rem 0 0.2rem !important;
        white-space: nowrap;
        font-size: 1.1rem !important;
        padding: 0 0.5rem;
        text-align: left;
    }

    .story-label {
        font-size: 1.2rem;
        padding-left: 0.8rem;
        text-align: center;
    }

    .story-text-center {
        padding: 0 0.8rem;
        grid-template-columns: 1fr !important;
        gap: 0.3rem !important;
    }

    .story-title {
        font-size: 0.5rem !important;
        padding: 0 0.8rem;
        line-height: 1.3;
        text-align: justify;
    }

    .story-started-title {
        font-size: 1rem !important;
        line-height: 1.3;
        text-align: left;
        padding: 0 0.5rem;
        margin: 0.5rem 0 1rem !important;
    }

    .story-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0 !important;
    }

    .story-columns-desktop {
        display: none !important;
    }

    .story-col p {
        font-size: 0.9rem !important;
        line-height: 1.5;
        text-align: justify;
        margin: 0 0 0.4rem;
        padding: 0 0.5rem;
    }

    .story-description {
        font-size: 0.85rem !important;
        padding: 0 0.8rem;
        text-align: justify;
        column-count: 1 !important;
        line-height: 1.3;
    }

    .carousel-container {
        height: 150px;
    }

    /* Wedding Schedule Section */
    #event {
        padding: 10px 20px 20px !important;
        min-height: unset !important;
        height: auto !important;
    }

    .sched-card-wrapper {
        margin-top: 120px !important;
    }

    .big-day-title {
        font-size: 1.2rem !important;
        white-space: nowrap;
        transform: none !important;
        margin-top: 1.5rem !important;
    }

    .big-day-title .ols-initial {
        font-family: 'Alex Brush', cursive !important;
        font-size: 1.6rem !important;
    }

    .entourage-single {
        transform: none !important;
    }

    .entourage-name-cord2 {
        transform: none !important;
    }

    .registry-btn.registry-btn-desktop {
        display: none !important;
    }

    .registry-btn-mobile {
        display: block !important;
        position: relative;
        margin: -52px auto 0 !important;
        width: fit-content;
        font-size: 0.7rem !important;
        padding: 1.3rem 2rem !important;
        white-space: nowrap;
        z-index: 999;
    }

    .big-day-title .ols-rest {
        font-family: 'Cinzel', serif !important;
        font-size: 1.2rem !important;
        letter-spacing: 1px !important;
    }

    /* Event Section */
    .event-image {
        height: 240px;
    }

    .timeline-item {
        font-size: 0.95rem;
    }

    /* Schedule Section */
    .sched-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
        transform: none !important;
        margin: 0 auto !important;
        margin-top: -3rem !important;
        align-items: flex-start !important;
        width: fit-content !important;
    }

    .sched-item {
        display: grid !important;
        grid-template-columns: 35px 1fr !important;
        grid-template-rows: auto auto auto !important;
        column-gap: 0.8rem !important;
        row-gap: 0 !important;
        align-items: start !important;
    }

    .sched-icon {
        width: 35px !important;
        height: 35px !important;
        margin-bottom: 0 !important;
        grid-column: 1 !important;
        grid-row: 1 / 4 !important;
        align-self: start !important;
    }

    .sched-time {
        font-size: 0.65rem !important;
        margin-bottom: 0.1rem !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .sched-name {
        font-size: 0.7rem !important;
        white-space: normal !important;
        margin-bottom: 0.1rem !important;
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    .sched-location {
        font-size: 0.6rem !important;
        grid-column: 2 !important;
        grid-row: 3 !important;
    }

    .sched-card {
        width: 450px !important;
        height: 350px !important;
        
    }

    .sched-card-wrapper {
        margin-top: 8rem;
    }

    /* Party / Entourage Section */
    #party {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .party-layout {
        min-height: unset !important;
        padding-bottom: 1rem !important;
    }

    .party-entourage {
        padding: 0.5rem 1rem !important;
        width: 100% !important;
    }

    .entourage-title {
        margin-top: 1.5rem !important;
        margin-bottom: 0.3rem !important;
        transform: none !important;
        word-spacing: normal !important;
    }

    .entourage-initial {
        font-size: 3.1rem !important;
        letter-spacing: -0.05em !important;
        margin-right: 0.1rem;
    }

    .entourage-rest {
        font-size: 1.8rem !important;
        letter-spacing: 1px !important;
    }

    .entourage-role,
    .entourage-role-parents,
    .entourage-role-sponsors-title,
    .entourage-role-secondary {
        font-size: 0.85rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.15rem !important;
        white-space: normal !important;
        letter-spacing: 1.5px !important;
        color: #ff8b1d !important;
        text-transform: uppercase !important;
        font-family: 'Garamond', serif !important;
        font-weight: 700 !important;
        transform: none !important;
        -webkit-text-stroke: 0 !important;
    }

    .entourage-name {
        font-size: 0.72rem !important;
        margin-bottom: 0.05rem !important;
        line-height: 1.4 !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap !important;
    }

    .entourage-role-nowrap {
        white-space: nowrap !important;
    }

    .entourage-row,
    .entourage-row-3col,
    .entourage-row-groom-bride,
    .entourage-row-parents,
    .entourage-row-sponsors,
    .entourage-row-candle-veil {
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
        gap: 0.3rem 0.8rem !important;
        margin-bottom: 0.4rem !important;
        transform: none !important;
    }

    .entourage-bearers {
        grid-template-columns: 1fr 1fr !important;
        grid-template-areas:
            "ring coin"
            "bible flower" !important;
        width: 100% !important;
        gap: 0.3rem 0.8rem !important;
    }

    .eb-flower {
        margin-top: 0 !important;
    }

    .eb-flower-names {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .entourage-shift-left {
        transform: none !important;
        gap: 0.3rem 0.8rem !important;
    }

    .entourage-row-groom-bride .entourage-col:first-child,
    .entourage-row-groom-bride .entourage-role,
    .entourage-row-groom-bride .entourage-name,
    .entourage-row-parents .entourage-col:first-child,
    .entourage-row-parents .entourage-col:last-child,
    .entourage-row-sponsors .entourage-col:first-child,
    .entourage-row-sponsors .entourage-col:last-child,
    .entourage-row-candle-veil .entourage-col:first-child,
    .entourage-row-candle-veil .entourage-col:last-child,
    .entourage-shift-left .entourage-col:first-child,
    .entourage-shift-left .entourage-col:last-child,
    .entourage-col-shift-right {
        transform: none !important;
    }

    .entourage-divider {
        width: 90% !important;
        margin: 0.4rem auto !important;
        transform: none !important;
    }

    .divider-line {
        height: 0.5px !important;
    }

    .divider-diamond {
        width: 3px !important;
        height: 3px !important;
    }

    /* Bottom photo carousel */
    .party-carousel-outer {
        margin-top: 2rem !important;
    }

    .party-photo-frame {
        flex: 0 0 50% !important;
        height: 160px !important;
        padding: 8px !important;
    }

    /* Attire / Dress Code Section */
    #attire {
        padding: 0.75rem;
    }

    .attire-grid {
        display: flex !important;
        flex-direction: column !important;
        min-height: unset !important;

    }

    .attire-center {
        order: 1 !important;
        grid-column: unset !important;
        grid-row: unset !important;
        padding: 12.5rem 1rem 1.5rem !important;
        text-align: center !important;
        border-bottom: none !important;
        height: 260px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        background-image: linear-gradient(to right, rgba(182,171,123,0.5) 15%, transparent 15%, transparent 85%, rgba(182,171,123,0.5) 85%) !important;
        background-size: 100% 1px !important;
        background-position: bottom !important;
        background-repeat: no-repeat !important;
    }

    

    .attire-upflower {
        width: 100px !important;
    }

    .attire-title {
        font-size: 1rem !important;
        margin-bottom: 0.3rem !important;
        white-space: nowrap !important;
    }

    .attire-title .attire-initial {
        font-size: 4rem !important;
    }

    .attire-title .attire-word {
        font-size: 2.56rem !important;
    }

    .attire-desc {
        font-size: 0.79rem !important;
        line-height: 1.5 !important;
        margin-top: auto;

    }

    .attire-subtitle {
        display: block !important;
        font-size: 0.85rem !important;
        font-weight: 700;
    }

    .attire-swatches {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 0.3rem 0.7rem !important;
        margin: 0 !important;
    }

    .attire-swatches .leaf-swatch-img {
        height: 40px !important;
        width: auto !important;
    }

    .attire-swatches .swatch-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.2rem !important;
    }

    .attire-swatches .swatch {
        width: 22px !important;
        height: 22px !important;
        border-radius: 0 !important;
        clip-path: polygon(50% 0%, 80% 10%, 100% 40%, 80% 90%, 50% 100%, 20% 90%, 0% 40%, 20% 10%) !important;
    }

    .attire-swatches .swatch-item span {
        font-size: 0.5rem !important;
        text-align: center !important;
    }

    .attire-footer-text {
        display: none !important;
    }

    .attire-photo {
        order: 2 !important;
    }

    .attire-grid > .attire-photo:first-child {
        border-top: none !important;
        border-bottom: none !important;
        height: 100px !important;
    }

    .attire-cell {
        border: 0.05px solid #b6ab7b !important;
        border-bottom: none !important;
    }

    .attire-grid > .attire-photo {
        height: 80px !important;
        display: block !important;

    }

    .attire-grid > .attire-photo-shrink-mobile {
        height: 70px !important;
    }

    .attire-grid > .attire-photo-women-2 {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .attire-women2-caption {
        font-family: 'EB Garamond', serif;
        font-weight: bold;
        color: #507253;
        font-size: 0.9rem;
        white-space: nowrap;
        text-align: center;
        margin: 0;
        padding: 0 0.3rem;
    }

    #hero {
        overflow: hidden !important;
    }

    #hero .story-yellowflower {
        display: none !important;
    }

    #hero .story-whiteflower {
        display: none !important;
    }

    .attire-grid > .attire-photo-women-3,
    .attire-grid > .attire-extra-box-1 {
        height: 200px !important;
    }

    .attire-grid > .attire-extra-box-1 {
        border-bottom: 1px solid #b6ab7b !important;
    }

    .attire-grid > .attire-photo-women-3,
    .attire-grid > .attire-extra-box-1 {
        display: flex !important;
    }

    .attire-photo-women-3 .attire-sub-box,
    .attire-extra-box-1 .attire-sub-box {
        flex: 1 1 0;
        height: 100%;
        border-right: 1px solid #b6ab7b;
        background-size: 110%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .attire-photo-women-3 .attire-sub-box:nth-child(1) {
        background-size: 113%;
    }

    .attire-photo-women-3 .attire-sub-box:nth-child(4) {
        background-size: 110%;
        background-position: -40% center;
    }

    .attire-photo-women-3 .attire-sub-box:nth-child(5) {
        background-size: 105%;
    }

    .attire-photo-women-3 .attire-sub-box:nth-child(6) {
        background-size: 113%;
    }

    .attire-photo-women-3 .attire-sub-box:last-child,
    .attire-extra-box-1 .attire-sub-box:last-child {
        border-right: none;
    }

    .attire-extra-box-1 .attire-sub-box:nth-child(1) {
        background-size: 165%;
        background-position: 70% center;
    }

    .attire-extra-box-1 .attire-sub-box:nth-child(3) {
        background-size: 95%;
    }

    .attire-extra-box-1 .attire-sub-box:nth-child(4) {
        background-size: 115%;
    }

    .attire-grid > .attire-photo-men-1,
    .attire-grid > .attire-photo-men-2,
    .attire-grid > .attire-photo-men-3,
    .attire-grid > .attire-photo-women-4,
    .attire-grid > .attire-photo-women-5,
    .attire-grid > .attire-photo-women-6,
    .attire-grid > .attire-photo-men-4,
    .attire-grid > .attire-photo-men-5,
    .attire-grid > .attire-photo-men-6 {
        display: none !important;
    }

    .attire-content {
        padding: 0 0.8rem;
    }

    .attire-image {
        height: 280px;
    }

    /* Registry Section */
    .registry-text {
        padding: 0 0.8rem;
    }

    .registry-text p {
        font-size: 0.9rem;
    }

    .registry-image {
        height: 240px;
    }

    /* RSVP Section */
    .rsvp-section {
        padding: 2.5rem 0.8rem;
        justify-content: flex-start !important;
        padding-top: 9rem !important;
    }

    .rsvp-downflower {
        position: absolute;
        bottom: 30px;
        right: 0;
        width: 270px;
        height: auto;
        z-index: 1;
        pointer-events: none;
    }

    .rsvp-upflower {
        position: absolute;
        bottom: 30px;
        left: 0;
        width: 270px;
        height: auto;
        z-index: 1;
        pointer-events: none;
    }

    .rsvp-container {
        display: flex !important;
        flex-direction: column !important;
    }

    .rsvp-heading {
        order: 1 !important;
    }

    .rsvp-step {
        order: 2 !important;
    }

     .rsvp-main-title {
        order: 3 !important;
        font-size: 0.95rem !important;
        color: #778d60 !important;
        margin-top: 1.5rem !important;
        max-width: 330px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .rsvp-initial {
        display: inline-block !important;
        color: #ffbb23 !important;
        font-size: 3.5rem !important;
        margin-right: 0.6rem !important;
    }

    .rsvp-word {
        display: inline-block !important;
        color: #ffbb23 !important;
        font-size: 2.5rem !important;
    }

    .rsvp-card {
        padding: 1.5rem 1.2rem !important;
        border-radius: 6px !important;
    }

    #step2 .rsvp-card,
    #step3 .rsvp-card {
        margin-bottom: 2.5rem !important;
    }

    .rsvp-instruction {
        font-size: 0.8rem !important;
        font-weight: 550 !important;
        padding: 0.1rem;
    }

    .rsvp-input {
        padding: 0.5rem 1rem !important;
        font-size: 16px !important;
        margin: 0.1rem 0 0.1rem !important;
    }

    .rsvp-example {
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
    }

    .rsvp-continue-btn,
    .rsvp-select-btn,
    .rsvp-submit-btn,
    .rsvp-back-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        margin-top: 0.2rem !important;
        border-radius: 6px !important;
    }

    .rsvp-card {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 0.3rem !important;
    }

    .guest-name-label {
        font-size: 0.95rem;
    }

    .guest-radio-label {
        font-size: 0.9rem;
    }

    .guest-radio-group {
        gap: 1.2rem;
    }

    .rsvp-confirm-title {
        font-size: 1.4rem;
    }

    #step3 .form-group label {
        font-size: 0.9rem;
    }

    #step3 input[type="email"],
    #step3 textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    /* General adjustments */
    section {
        padding: 2.5rem 0.8rem;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 1.8rem;
    }

    footer {
        padding: 2rem 0.8rem 1.2rem;
        background: linear-gradient(to bottom, rgba(20,20,18,1) 0%, rgba(20,20,18,0.85) 15%, rgba(20,20,18,0) 55%) center bottom/100% auto no-repeat,
                    url('images/longfaqs.png') center top/contain no-repeat !important;
        background-color: #111 !important;
        text-align: left !important;
        margin-top: -3rem !important;
        position: relative !important;
    }

    .footer-content {
        margin-left: 0 !important;
        padding-left: 0.5rem !important;
        width: 100% !important;
        height: auto !important;
    }

    .faq-title {
        white-space: nowrap !important;
        padding-top: 1.5rem !important;
        padding-left: 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    .faq-initial {
        font-size: 1.9rem !important;
        margin-right: 0 !important;
    }

    .faq-word {
        font-size: 1.15rem !important;
        letter-spacing: 1px !important;
    }

    .footer-content h2 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .faq-container {
        padding-left: 0.5rem !important;
    }

    .faq-question {
        padding: 0.4rem 0 !important;
        justify-content: flex-start !important;
        gap: 0.3rem !important;
    }

    .faq-question h4 {
        font-size: 0.7rem !important;
        letter-spacing: 1px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding-right: 0 !important;
    }

    .faq-toggle {
        font-size: 1rem !important;
        order: -1 !important;
        flex: 0 0 auto !important;
        margin-right: 0.3rem !important;
    }

    .faq-item {
        margin-bottom: 0.8rem;
    }

    .faq-item p {
        font-size: 0.7rem !important;
    }

    .footer-bottom {
        font-size: 0.8rem;
        margin-top: 0;
        padding-top: 1.2rem;
        position: absolute;
        bottom: 1.2rem;
        left: 0.8rem;
        right: 0.8rem;
    }

    /* Registry */
    .registry-title,
    .registry-title .attire-initial,
    .registry-title .attire-word {
        color: #807253 !important;
        text-align: right !important;
        width: 100% !important;
    }

    .registry-desc {
        color: #807253 !important;
        text-align: justify !important;
        font-size: 0.74rem !important;
        line-height: 1.3 !important;
        padding-left: 1.5rem !important;
        margin-left: 2rem !important;
    }

    .registry-btn {
        font-size: 0.5rem !important;
        padding: 0.3rem 0.6rem !important;
        display: block !important;
        margin-left: auto !important;
        text-decoration: underline !important;
    }

    .registry-bpi-mobile {
        display: flex !important;
        justify-content: center !important;
        margin-top: 1rem !important;
        width: 100% !important;
    }

    .registry-cardno-wrapper {
        
        margin-top: -1rem !important;
        transform: translateY(-15rem);
    }
      .registry-cardno {
        width: 290px !important;
        max-width: none !important;
    }
    .registry-cardno-bpi {
        width: 65% !important;
        margin-top: 0.6rem !important;
    }

    .registry-card-wrapper {
        display: none !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {

     :root {
        --navbar-height: 65px;  /* ADD THIS at the top of the 768px media query */
    }
    /* Navigation */
    .hero-navbar {
        padding: 0.8rem 1rem;
    }

    .hero-navbar .nav-center a {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .burger-menu span {
        width: 22px;
    }

    /* Hero Section */
    .hero {
        height: 100vh;
    }

    .couple-names {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .welcome-text {
        font-size: 1rem;
        padding: 0 1rem;
        letter-spacing: 1px;
    }

    .wedding-date {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    .scroll-dot {
        width: 25px;
        height: 45px;
    }

    /* Story Section */
    #story {
        padding: 0;
    }

    .story-label {
        font-size: 1rem;
        padding-left: 1rem;
    }

    .story-text-center {
        padding: 0 1rem;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .story-title {
        font-size: 1.5rem;
        padding: 0 1rem;
        margin-bottom: 0.8rem;
    }
    
    .story-description {
        font-size: 0.95rem;
        padding: 0 1rem;
        line-height: 1.6;
    }

    .carousel-container {
        height: 320px;
    }

    /* Event Section */
    .event-image {
        height: 280px;
    }
    
    .timeline-item {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    /* Party Section */
    #party {
        padding: 3rem 0;
    }
    

    .party-content {
        padding: 0 1rem;
    }
    
    .party-text {
        padding: 1.5rem 0;
    }

    .party-text h3 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .party-text .subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .party-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .party-images {
        gap: 8px;
        margin-bottom: 1rem;
    }

    .party-img-container {
        width: calc(33.33% - 5px);
        height: 150px;
    }

    /* Attire Section */
     #attire {
        padding:0;
        margin: 0;
    }
    .attire-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .attire-images {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .attire-image {
        height: 320px;
    }

    /* Registry Section */

      /* Registry Section */
    #registry {
        padding: 0;
        background-size: 160% auto;
        background-position: 10%;
    }
    .registry-content {
        gap: 2rem;
    }

    .registry-text {
        padding: 0 1rem;
    }

    .registry-image {
        height: 280px;
    }
    
    .registry-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

     #registry {
        flex-direction: column !important;
        align-items: center !important;
    }

    .registry-inner {
        width: 100% !important;
         transform: translateY(-14rem) !important;
    }

    .registry-cardno-wrapper {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
         margin-top: -2rem !important;
        width: 100% !important;
    }

    .registry-cardno {
        width: 300px !important;
        max-width: none !important;
    }

    .registry-cardno-bpi {
        width: 75% !important;

    }

    .cta-link {
        font-size: 1rem;
    }

    /* RSVP Section */
    .rsvp-section {
        padding: 3rem 1rem;
        justify-content: flex-start;
    }

    .rsvp-main-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .rsvp-card {
        padding: 2rem 1.5rem;
    }

    #step2 .rsvp-card,
    #step3 .rsvp-card {
        margin-bottom: 2.5rem;
    }

    .rsvp-instruction {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

    .rsvp-input {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    .rsvp-example {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .rsvp-continue-btn,
    .rsvp-select-btn,
    .rsvp-submit-btn,
    .rsvp-back-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .guest-name-label {
        font-size: 1rem;
    }

    .guest-radio-label {
        font-size: 0.95rem;
    }

    .guest-radio-group {
        gap: 1.5rem;
    }

    .rsvp-confirm-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    #step3 .form-group {
        margin-bottom: 1.5rem;
    }

    #step3 .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }

    #step3 input[type="email"],
    #step3 textarea {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    #step3 .radio-label {
        padding: 0.8rem;
    }

    #step3 .radio-label span {
        font-size: 0.95rem;
    }

    /* General adjustments */
    section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        letter-spacing: 1.5px;
    }

    footer {
        padding: 2.5rem 1rem 1.5rem;
        background: linear-gradient(to bottom, rgba(20,20,18,1) 0%, rgba(20,20,18,0.85) 15%, rgba(20,20,18,0) 55%) center bottom/100% auto no-repeat,
                    url('images/longfaqs.png') center top/105% auto no-repeat !important;
        background-color: #111 !important;
    }

    .footer-content h2 {
        font-size: 1.8rem !important;
        margin-bottom: 2rem !important;
        letter-spacing: 1.5px !important;
    }

    .faq-item {
        margin-bottom: 1.5rem;
    }

    .faq-item h4 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .faq-item p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .footer-bottom {
        margin-top: 1.2rem;
        padding-top: 1rem;
        font-size: 0.85rem;
    }

    /* Registry */
    .registry-title .attire-initial {
        font-size: 3.5rem !important;
    }
    .registry-title .attire-word {
        font-size: 2rem !important;
    }
    #registry .registry-desc {
        font-size: 0.85rem !important;
    }

}

/* iPhone Pro Max Series */
@media (max-width: 441px) {
    .map-card-map {
        top: 27% !important;
    }

    .map-card-cta {
        font-size: 0.85rem !important;
        bottom: 25% !important;
    }

    .entourage-initial {
        font-size: 3.5rem !important;
    }

    .entourage-rest {
        font-size: 2.05rem !important;
    }

    .our-love-story-title .ols-initial {
        font-size: 1.65rem !important;
    }

    .our-love-story-title .ols-initial:first-child {
        font-size: 2.35rem !important;
    }

    .our-love-story-title .ols-rest {
        font-size: 1.65rem !important;
    }

    .story-started-title {
        font-size: 0.92rem !important;
    }

    .big-day-title {
        font-size: 1.55rem !important;
    }

    .big-day-title .ols-initial {
        font-size: 1.7rem !important;
    }


    .big-day-title .ols-rest {
        font-size: 1.55rem !important;
    }

    .sched-icon {
        width: 50px !important;
        height: 50px !important;
    }

    .sched-time {
        font-size: 0.95rem !important;
    }

    .sched-name {
        font-size: 1rem !important;
    }

    .sched-location {
        font-size: 0.85rem !important;
    }

    .sched-item {
        grid-template-columns: 50px 1fr !important;
        column-gap: 1.1rem !important;
    }

    .sched-card {
        width: 400px !important;
        height: 300px !important;
    }

    .story-sunflower {
        width: 95px;
        top: 2.5rem;
        right: 1.8rem;
    }

    .our-love-story-title {
        font-size: 1.4rem !important;
    }

    #attire {
        padding: 0.75rem;
    }

    #attire .attire-title {
        padding-top: 0.1rem;
    }


    .rsvp-downflower {
        width: 180px;
        bottom: 35px;
    }

    .rsvp-upflower {
        width: 180px;
        bottom: 42px;
    }

    .rsvp-step {
        margin-top: -1rem !important;
    }

    .rsvp-main-title {
        margin-top: 2rem !important;
    }

     .registry-cardno {
        width: 350px !important;
        max-width: none !important;
    }
    .registry-cardno-bpi {
        width: 90% !important;
        margin-top: 0.6rem !important;
        top: 85% !important;
    }
}

@media (max-width: 426px) {
    #attire {
        padding: 0.75rem;
    }

    .story-sunflower {
        width: 70px;
    }

    .rsvp-downflower {
        width: 230px;
    }

    .rsvp-upflower {
        width: 230px;
    }
}

/* iPhone Series */
@media (max-width: 395px) {
    .faq-initial {
        font-size: 1.6rem !important;
    }

    .faq-word {
        font-size: 1rem !important;
    }

    .entourage-initial {
        font-size: 3.1rem !important;
    }

    .entourage-rest {
        font-size: 1.8rem !important;
    }

    .our-love-story-title {
        font-size: 0.8rem !important;
        letter-spacing: 0.5px;
        word-spacing: 0.1em;
    }

    .our-love-story-title .ols-initial {
        font-size: 1.45rem !important;
        margin-right: -0.2em !important;
    }

    .our-love-story-title .ols-initial:first-child {
        font-size: 2.3rem !important;
        margin-left: 0 !important;
        margin-right: -0.2em !important;
    }

    .our-love-story-title .ols-rest {
        font-size: 1.45rem !important;
    }

    .story-started-title {
        font-size: 0.8rem !important;
    }

    .story-col p {
        font-size: 0.75rem !important;
    }

    .map-card-map {
        width: 70% !important;
        top: 26% !important;
    }

    .map-card-cta {
        bottom: 34% !important;
    }

    .sched-item {
        grid-template-columns: 50px 1fr !important;
        column-gap: 1.1rem !important;
    }

    .party-layout {
        min-height: unset !important;
        align-items: start !important;

    }

    .big-day-title {
        font-size: 1.35rem !important;
    }

    .big-day-title .ols-initial {
        font-size: 2rem !important;
    }

    .big-day-title .ols-rest {
        font-size: 1.5rem !important;
    }

    .sched-icon {
        width: 50px !important;
        height: 50px !important;
    }

    .sched-time {
        font-size: 0.8rem !important;
    }

    .sched-name {
        font-size: 0.85rem !important;
    }

    .sched-location {
        font-size: 0.75rem !important;
    }

    .sched-card {
        width: 350px !important;
        height: 320px !important;
    }

    .attire-women2-caption {
        font-size: 0.78rem;
    }

    #attire .attire-title {
        padding-top: 0.8rem;
    }

    .rsvp-heading {
        margin-top: -2rem !important;
    }

    .rsvp-step {
        margin-top: -1rem !important;
    }

    .rsvp-main-title {
        margin-top: 1rem !important;
    }

    .rsvp-downflower {
        bottom: 35px !important;
    }

    .rsvp-upflower {
        bottom: 40px !important;
    }

    .story-sunflower {
        width: 80px;
        right: 2rem;
        top: 3.2rem;
    }

    #story .container {
        padding-left: 2.3rem !important;
        padding-right: 2.3rem !important;
    }

    .rsvp-downflower,
    .rsvp-upflower {
        width: 170px;
    }
}

@media (max-width: 376px) {
    .faq-initial {
        font-size: 1.45rem !important;
    }

    .faq-word {
        font-size: 0.9rem !important;
    }

 #party {
    min-height: unset;
 }

    .registry-cardno-flower {
        width: 90px !important;
    }

    .our-love-story-title .ols-initial {
        font-size: 1.2rem !important;
    }

    .our-love-story-title .ols-initial:first-child {
        font-size: 2.15rem !important;
    }

    .our-love-story-title .ols-rest {
        font-size: 1.35rem !important;
    }

    .story-started-title {
        font-size: 0.75rem !important;
    }

    #attire .attire-title .attire-initial {
        font-size: 3.6rem !important;
    }

    #attire .attire-title .attire-word {
        font-size: 2rem !important;
    }

    #attire .attire-title {
        padding-top: 1.5rem !important;
    }

    .attire-upflower {
        width: 100px !important;
    }

    .story-sunflower {
        width: 80px;
        right: 2rem;
        top: 2.9rem;
    }

    .big-day-title {
        font-size: 1.4rem !important;
    }

    .big-day-title .ols-initial {
        font-size: 2.5rem !important;
    }

    .big-day-title .ols-rest {
        font-size: 1.5rem !important;
    }

    .sched-card {
        width: 340px !important;
        height: 300px !important;
    }

    .sched-icon {
        width: 38px !important;
        height: 38px !important;
    }

    .sched-time {
        font-size: 0.9rem !important;
    }

    .sched-name {
        font-size: 0.9rem !important;
    }

    .sched-location {
        font-size: 0.65rem !important;
    }

    #attire {
        padding: 0.75rem;
    }
    .party-layout {
        min-height: unset !important;
        align-items: start !important;

    }

    .party-photos {
        width: 380px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-right: none;
        box-shadow: none;
    }
      #registry {
         min-height: 865px;
    }
       .registry-inner {
        transform: translateY(-14rem) !important;
    }

    .registry-cardno-wrapper {
        margin-top: -2rem !important;
    }

    .registry-cardno {
        width: 290px !important;
        max-width: none !important;
    }
    .registry-cardno-bpi {
        width: 90% !important;
        margin-top: 0.6rem !important;
    }

     .rsvp-main-title {
        font-size: 0.85rem !important;
        color: #778d60 !important;
        margin-top: 1.3rem !important;
        max-width: 310px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .rsvp-initial {
        display: inline-block !important;
        color: #ffbb23 !important;
        font-size: 3.5rem !important;
        margin-right: 0.6rem !important;
    }

    .rsvp-word {
        display: inline-block !important;
        color: #ffbb23 !important;
        font-size: 2.5rem !important;
    }

    .rsvp-card {
        padding: 1.5rem 1.2rem !important;
        border-radius: 6px !important;
    }

    #step2 .rsvp-card,
    #step3 .rsvp-card {
        margin-bottom: 2.5rem !important;
    }
    .rsvp-upflower {
        width: 190px;
        left:-15px;

    }
    .rsvp-downflower {
        width: 190px;
    }
}

/* Ultra small devices (360px and below) */
@media (max-width: 360px) {
    .registry-cardno-bpi {
        width: 90% !important;
    }

    .map-card-map {
        top: 45% !important;
    }

    .map-card-cta {
        bottom: 22% !important;
        font-size: 0.85rem !important;
    }

    .story-sunflower {
        width: 74px;
        right: 2.5rem;
        top: 1.8rem;
    }

    /* Navigation */
    .hero-navbar {
        padding: 0.6rem 0.6rem;
    }

    .hero-navbar .nav-center a {
        font-size: 0.8rem;
    }

    .hero-navbar .rsvp-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .mobile-logo {
        margin-right: 4.5rem;
    }

    .ml-j {
        font-size: 1.4rem;
        align-self: center;
        margin-left: 1.8rem;
    }

    .ml-amp {
        font-size: 1.2rem;
        align-self: center;
        margin-left: 4.1rem;
    }

    .ml-k {
        font-size: 1.4rem;
        align-self: center;
        margin-left: 5rem;
        margin-top: 0.2rem;
    }

    .burger-menu span {
        width: 20px;
    }

    /* Hero Section */
    .hero {
        align-items: flex-start;
        padding-top: 25vh;
    }

    .hero::before {
        background-size: 100%, 220% !important;
        background-position: 0% 50%, 35% 65% !important;
    }

    .welcome-text {
        transform: none !important;
        font-size: 0.8rem !important;
        letter-spacing: 0.5px;
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 0.5rem;
        margin-top: 2rem;
    }

    .couple-names {
        width: 100% !important;
        transform: none !important;
        align-items: center !important;
        padding: 0 !important;
        letter-spacing: 0.5px;
    }

    .couple-line:first-child {
        padding-left: 0 !important;
        justify-content: center !important;
        margin-top: 2   rem;
        font-size: 1.5rem;
        margin-right: 6.5rem;
    }

    .couple-line:last-child {
        padding-left: 0 !important;
        justify-content: center !important;
        margin-left: 7.8rem;
    }

    .couple-amp {
        padding-left: 0 !important;
        font-size: 1.5rem !important;
        transform: none !important;
        margin-top: .3rem;
        margin-left: 1.8rem;
        
    }

    .name-initial { font-size: 1.8rem !important; }
    .name-rest { font-size: 1.3rem !important; }

    .wedding-date {
        transform: none !important;
        font-size: 0.9rem !important;
        letter-spacing: 1px !important;
        text-align: center;
        white-space: nowrap;
        margin-top: 19rem !important;
    }

    .wedding-location {
        transform: none !important;
        font-size: 0.9rem !important;
        text-align: center;
        margin-top: 0.3rem;
    }

    /* Story Section */
    #story {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #story .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .story-photo-frame {
        flex: 0 0 100% !important;
    }

    .story-photo-frame img {
        height: 180px !important;
    }

    .our-love-story-title .ols-initial {
        font-family: 'Cinzel', serif !important;
        font-size: 1.2rem !important;
        margin-right: 0;
        margin-left: -0.3em;
    }

    .our-love-story-title .ols-initial:first-child {
        font-family: 'Alex Brush', cursive !important;
        font-size: 1.45rem !important;
        margin-right: -0.1em;
        margin-left: 0;
    }

    .our-love-story-title .ols-rest {
        font-size: 1.2rem !important;
    }

    .our-love-story-title {
        margin: 2rem 0 0.2rem !important;
        white-space: nowrap;
        font-size: 1.2rem !important;
        padding: 0 0.5rem;
        text-align: left;
    }

    .story-label {
        font-size: 0.9rem;
        padding-left: 0.8rem;
        text-align: center;
    }

    .story-text-center {
        padding: 0 0.8rem;
        grid-template-columns: 1fr !important;
        gap: 0.3rem !important;
    }

    .story-title {
        font-size: 1.5rem !important;
        padding: 0 0.8rem;
        line-height: 1.3;
        text-align: justify;
    }

    .story-started-title {
        font-size: .80rem !important;
        line-height: 1.3;
        text-align: left;
        padding: 0 0.5rem;
        margin: 0.5rem 0 1rem !important;
        letter-spacing: 1.25px !important;
        max-width: 100% !important;
    }

    .story-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0 !important;
    }

    .story-columns-desktop {
        display: none !important;
    }

    .story-col p {
        font-size: 0.70rem !important;
        line-height: 1.5;
        text-align: justify;
        margin: 0 0 0.4rem;
        padding: 0 0.5rem;
    }

    .story-description {
        font-size: 0.85rem !important;
        padding: 0 0.8rem;
        text-align: justify;
        column-count: 1 !important;
        line-height: 1.3;
    }

    .carousel-container {
        height: 150px;
    }

    /* Wedding Schedule Section */
    #event {
        padding: 10px 10px 10px !important;
        min-height: unset !important;
        height: auto !important;
    }

    .sched-card-wrapper {
        margin-top: 0 !important;
    }

    .big-day-title {
        font-size: 1.7rem !important;
        transform: none !important;
        margin-top: 1.5rem !important;
        word-spacing: -0.5rem !important;
    }

    .big-day-title .ols-initial {
        font-size: 1.7rem !important;
        margin-right: -0.3rem !important;
    }

    .big-day-title .ols-rest {
        font-size: 1.35rem !important;
        letter-spacing: 1px !important;
    }

    /* Event Section */
    .event-image {
        height: 240px;
    }

    .timeline-item {
        font-size: 0.95rem;
    }

    /* Schedule Section */
    .sched-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
        transform: none !important;
        margin: 0 auto !important;
        margin-top: -3rem !important;
        align-items: flex-start !important;
        width: fit-content !important;
    }

    .sched-item {
        display: grid !important;
        grid-template-columns: 35px 1fr !important;
        grid-template-rows: auto auto auto !important;
        column-gap: 0.8rem !important;
        row-gap: 0 !important;
        align-items: start !important;

    }

    .sched-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 0 !important;
        grid-column: 1 !important;
        grid-row: 1 / 4 !important;
        align-self: start !important;
    }

    .sched-time {
        font-size: 0.75rem !important;
        margin-bottom: 0.1rem !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .sched-name {
        font-size: 0.8rem !important;
        white-space: normal !important;
        margin-bottom: 0.1rem !important;
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    .sched-location {
        font-size: 0.68rem !important;
        grid-column: 2 !important;
        grid-row: 3 !important;
    }

    .sched-card {
        width: 310px !important;
        height: 260px !important;
        margin-top: 0.5rem;
    }

    /* Party / Entourage Section */
    #party {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .party-layout {
        min-height: unset !important;
        padding-bottom: 0.8rem !important;
    }

    .party-entourage {
        padding: 0.4rem 0.7rem !important;
        width: 100% !important;
    }

    .entourage-title {
        margin-top: 1.2rem !important;
        margin-bottom: 0.2rem !important;
        transform: none !important;
    }

    .entourage-initial {
        font-size: 2.2rem !important;
        letter-spacing: -0.05em !important;
        margin-right: 0.1rem;
    }

    .entourage-rest {
        font-size: 1.25rem !important;
        letter-spacing: 1px !important;
    }

    .entourage-role,
    .entourage-role-parents,
    .entourage-role-sponsors-title,
    .entourage-role-secondary {
        font-size: 0.72rem !important;
        margin-top: 0.4rem !important;
        margin-bottom: 0.1rem !important;
        white-space: normal !important;
        letter-spacing: 1px !important;
        color: #ff8b1d !important;
        text-transform: uppercase !important;
        font-family: 'Garamond', serif !important;
        font-weight: 700 !important;
        transform: none !important;
        -webkit-text-stroke: 0 !important;
    }

    .entourage-name {
        font-size: 0.62rem !important;
        margin-bottom: 0.05rem !important;
        line-height: 1.4 !important;
        letter-spacing: 0.3px !important;
        white-space: nowrap !important;
    }

    .entourage-role-nowrap {
        white-space: nowrap !important;
    }

    .entourage-row,
    .entourage-row-3col,
    .entourage-row-groom-bride,
    .entourage-row-parents,
    .entourage-row-sponsors,
    .entourage-row-candle-veil {
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
        gap: 0.2rem 0.6rem !important;
        margin-bottom: 0.3rem !important;
        transform: none !important;
    }

    .entourage-bearers {
        grid-template-columns: 1fr 1fr !important;
        grid-template-areas:
            "ring coin"
            "bible flower" !important;
        width: 100% !important;
        gap: 0.2rem 0.6rem !important;
    }

    .eb-flower {
        margin-top: 0 !important;
    }

    .eb-flower-names {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .entourage-shift-left {
        transform: none !important;
        gap: 0.2rem 0.6rem !important;
    }

    .entourage-row-groom-bride .entourage-col:first-child,
    .entourage-row-groom-bride .entourage-role,
    .entourage-row-groom-bride .entourage-name,
    .entourage-row-parents .entourage-col:first-child,
    .entourage-row-parents .entourage-col:last-child,
    .entourage-row-sponsors .entourage-col:first-child,
    .entourage-row-sponsors .entourage-col:last-child,
    .entourage-row-candle-veil .entourage-col:first-child,
    .entourage-row-candle-veil .entourage-col:last-child,
    .entourage-shift-left .entourage-col:first-child,
    .entourage-shift-left .entourage-col:last-child,
    .entourage-col-shift-right {
        transform: none !important;
    }

    .entourage-divider {
        width: 90% !important;
        margin: 0.3rem auto !important;
        transform: none !important;
    }

    .party-carousel-outer {
        margin-top: 1.5rem !important;
    }

    .party-photo-frame {
        flex: 0 0 50% !important;
        height: 130px !important;
        padding: 6px !important;
    }

    .divider-line {
        height: 0.5px !important;
    }

    .divider-diamond {
        width: 3px !important;
        height: 3px !important;
    }

    /* Attire / Dress Code Section */
    #attire {
        padding: 0.75rem;
    }

    .attire-grid {
        display: flex !important;
        flex-direction: column !important;
        min-height: unset !important;

    }

    .attire-center {
        order: 1 !important;
        grid-column: unset !important;
        grid-row: unset !important;
        padding: 12.5rem 1rem 1.5rem !important;
        text-align: center !important;
        border-bottom: none !important;
        height: 220px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        background-image: linear-gradient(to right, rgba(182,171,123,0.5) 15%, transparent 15%, transparent 85%, rgba(182,171,123,0.5) 85%) !important;
        background-size: 100% 1px !important;
        background-position: bottom !important;
        background-repeat: no-repeat !important;
    }



    .attire-upflower {
        width: 90px !important;
    }

    #attire .attire-title {
        padding-top: 0.9rem !important;
    }

    .attire-title {
        font-size: 1rem !important;
        margin-bottom: 0.3rem !important;
        white-space: nowrap !important;
    }

    .attire-title .attire-initial {
        font-size: 3.4rem !important;
    }

    .attire-title .attire-word {
        font-size: 1.9rem !important;
    }

    #attire .attire-title .attire-initial {
        font-size: 2.8rem !important;
    }

    #attire .attire-title .attire-word {
        font-size: 1.5rem !important;
    }

    .attire-desc {
        font-size: 0.61rem !important;
        line-height: 1.5 !important;
        margin-top: auto;

    }

    .attire-subtitle {
        display: block !important;
        font-size: 0.75rem !important;
        font-weight: 700;
    }

    .attire-swatches {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 0.3rem 0.7rem !important;
        margin: 0 !important;
    }

    .attire-swatches .leaf-swatch-img {
        height: 40px !important;
        width: auto !important;
    }

    .attire-swatches .swatch-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.2rem !important;
    }

    .attire-swatches .swatch {
        width: 22px !important;
        height: 22px !important;
        border-radius: 0 !important;
        clip-path: polygon(50% 0%, 80% 10%, 100% 40%, 80% 90%, 50% 100%, 20% 90%, 0% 40%, 20% 10%) !important;
    }

    .attire-swatches .swatch-item span {
        font-size: 0.5rem !important;
        text-align: center !important;
    }

    .attire-grid > .attire-photo.attire-photo-women-2 {
        height: 65px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .attire-women2-caption {
        font-family: 'EB Garamond', serif;
        font-weight: bold;
        color: #507253;
        font-size: .75rem;
        white-space: normal;
        text-align: center;
        margin: 0; 
    }

    #hero {
        overflow: hidden !important;
    }

    #hero .story-yellowflower {
        display: none !important;
    }

    #hero .story-whiteflower {
        display: none !important;
    }

    .attire-footer-text {
        display: none !important;
    }

    .attire-photo {
        order: 2 !important;
    }

    .attire-grid > .attire-photo:first-child {
        border-top: none !important;
        border-bottom: none !important;
    }

    .attire-cell {
        border: 0.05px solid #b6ab7b !important;
        border-bottom: none !important;
    }

    .attire-grid > .attire-photo {
        height: 80px !important;
        display: block !important;

    }

    .attire-photo-3 {
        height: 45px !important;
    }

    .attire-grid > .attire-photo-women-3,
    .attire-grid > .attire-extra-box-1 {
        height: 200px !important;
    }

    .attire-grid > .attire-extra-box-1 {
        border-bottom: 1px solid #b6ab7b !important;
    }

    .attire-grid > .attire-photo-women-3,
    .attire-grid > .attire-extra-box-1 {
        display: flex !important;
    }

    .attire-photo-women-3 .attire-sub-box,
    .attire-extra-box-1 .attire-sub-box {
        flex: 1 1 0;
        height: 100%;
        border-right: 1px solid #b6ab7b;
        background-size: 110%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .attire-photo-women-3 .attire-sub-box:nth-child(1) {
        background-size: 113%;
    }

    .attire-photo-women-3 .attire-sub-box:nth-child(4) {
        background-size: 110%;
        background-position: -40% center;
    }

    .attire-photo-women-3 .attire-sub-box:nth-child(5) {
        background-size: 105%;
    }

    .attire-photo-women-3 .attire-sub-box:nth-child(6) {
        background-size: 113%;
    }

    .attire-photo-women-3 .attire-sub-box:last-child,
    .attire-extra-box-1 .attire-sub-box:last-child {
        border-right: none;
    }

    .attire-extra-box-1 .attire-sub-box:nth-child(1) {
        background-size: 165%;
        background-position: 70% center;
    }

    .attire-extra-box-1 .attire-sub-box:nth-child(3) {
        background-size: 95%;
    }

    .attire-extra-box-1 .attire-sub-box:nth-child(4) {
        background-size: 115%;
    }

    .attire-grid > .attire-photo-men-1,
    .attire-grid > .attire-photo-men-2,
    .attire-grid > .attire-photo-men-3,
    .attire-grid > .attire-photo-women-4,
    .attire-grid > .attire-photo-women-5,
    .attire-grid > .attire-photo-women-6,
    .attire-grid > .attire-photo-men-4,
    .attire-grid > .attire-photo-men-5,
    .attire-grid > .attire-photo-men-6 {
        display: none !important;
    }

    .attire-content {
        padding: 0 0.8rem;
    }

    .attire-image {
        height: 280px;
    }

    /* Registry Section */
    #registry {
         min-height: 770px;
    }
    .registry-text {
        padding: 0 0.8rem;
    }

    .registry-text p {
        font-size: 0.9rem;
    }

    .registry-image {
        height: 240px;
    }

    /* RSVP Section */
    .rsvp-section {
        padding: 2.5rem 0.8rem;
        justify-content: flex-start !important;
        padding-top: 9rem !important;
    }

    .rsvp-downflower {
        position: absolute;
        bottom: 25px;
        right: 0;
        width: 165px;
        height: auto;
        z-index: 1;
        pointer-events: none;
    }

    .rsvp-upflower {
        position: absolute;
        bottom: 25px;
        left: 0;
        width: 165px;
        height: auto;
        z-index: 1;
        pointer-events: none;
    }

    .rsvp-main-title {
        font-size: 0.8rem !important;
        color: #778d60 !important;
        margin-top: 1.2rem !important;
        max-width: 290px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .rsvp-initial {
        display: inline-block !important;
        color: #ffbb23 !important;
        font-size: 4rem !important;
        margin-right: 0.6rem !important;
    }

    .rsvp-word {
        display: inline-block !important;
        color: #ffbb23 !important;
        font-size: 2.4rem !important;
    }

    .rsvp-card {
        padding: 1.5rem 1.2rem !important;
        border-radius: 6px !important;
    }

    #step2 .rsvp-card,
    #step3 .rsvp-card {
        margin-bottom: 2.5rem !important;
    }

    .rsvp-instruction {
        font-size: 0.75rem !important;
        font-weight: 550 !important;
        padding: 0.1rem;
    }

    .rsvp-input {
        padding: 0.5rem 1rem !important;
        font-size: 16px !important;
        margin: 0.1rem 0 0.1rem !important;
    }

    .rsvp-example {
        font-size: 0.65rem !important;
        margin-bottom: 0.3rem !important;
    }

    .rsvp-continue-btn,
    .rsvp-select-btn,
    .rsvp-submit-btn,
    .rsvp-back-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        margin-top: 0.2rem !important;
        border-radius: 6px !important;
    }

    .rsvp-card {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 0.3rem !important;
    }

    .guest-name-label {
        font-size: 0.95rem;
    }

    .guest-radio-label {
        font-size: 0.9rem;
    }

    .guest-radio-group {
        gap: 1.2rem;
    }

    .rsvp-confirm-title {
        font-size: 1.4rem;
    }

    #step3 .form-group label {
        font-size: 0.9rem;
    }

    #step3 input[type="email"],
    #step3 textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    /* General adjustments */
    section {
        padding: 2.5rem 0.8rem;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 1.8rem;
    }

    footer {
        padding: 2rem 0.8rem 1.2rem;
        background: linear-gradient(to bottom, rgba(20,20,18,1) 0%, rgba(20,20,18,0.85) 15%, rgba(20,20,18,0) 55%) center bottom/100% auto no-repeat,
                    url('images/longfaqs.png') center top/108% auto no-repeat !important;
        background-color: #111 !important;
    }

    .footer-content {
        margin-left: 0 !important;
        padding-left: 0.5rem !important;
        width: 100% !important;
        height: auto !important;
    }

    .faq-title {
        white-space: nowrap !important;
        padding-top: 1.5rem !important;
        padding-left: 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    .faq-initial {
        font-size: 1.4rem !important;
        margin-right: 0 !important;
    }

    .faq-word {
        font-size: 0.9rem !important;
        letter-spacing: 1px !important;
    }

    .footer-content h2 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .faq-container {
        padding-left: 0.5rem !important;
    }

    .faq-question {
        padding: 0.4rem 0 !important;
        justify-content: flex-start !important;
        gap: 0.3rem !important;
    }

    .faq-question h4 {
        font-size: 0.7rem !important;
        letter-spacing: 1px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding-right: 0 !important;
    }

    .faq-toggle {
        font-size: 1rem !important;
        order: -1 !important;
        flex: 0 0 auto !important;
        margin-right: 0.3rem !important;
    }

    .faq-item {
        margin-bottom: 0.8rem;
    }

    .faq-item p {
        font-size: 0.7rem !important;
    }

    .footer-bottom {
        font-size: 0.7rem;
        margin-top: 2rem;
        padding-top: 1.2rem;
    }

    /* Registry */
    .registry-inner {
        transform: translateY(-17rem) !important;
    }

    .registry-title .attire-initial {
        font-size: 4rem !important;
        color: #807253 !important;
        margin-left: 2rem !important;
        margin-right: 0.5rem !important;
    }
    .registry-title .attire-word {
        font-size: 2rem !important;
        color: #807253 !important;
        letter-spacing: 0 !important;
    }
    .registry-title {
        text-align: right !important;
        width: 100% !important;
        margin-left: 0.5rem !important;

    }

    .registry-desc {
        color: #807253 !important;
        text-align: justify !important;
        font-size: 0.79rem !important;
        line-height: 1.2 !important;
        padding-left: 0 !important;
        margin-left: 1rem !important;
        
        width: 93% !important;
    }

    .registry-btn {
        font-size: 0.5rem !important;
        padding: 0.3rem 0.6rem !important;
        display: block !important;
        margin-left: auto !important;
        text-decoration: underline !important;
    }

    .registry-bpi-mobile {
        display: flex !important;
        justify-content: center !important;
        margin-top: 1rem !important;
        width: 100% !important;
    }

    .registry-cardno-wrapper {
        display: flex !important;
        margin-top: -1rem !important;
         transform: translateY(-1rem);
          margin-top: -19rem !important;
    }

    .registry-card-wrapper {
        display: none !important;
    }
}

/* Ultra small devices (320px and below) */
@media (max-width: 320px) {
    footer {
        background: linear-gradient(to bottom, rgba(20,20,18,1) 0%, rgba(20,20,18,0.85) 15%, rgba(20,20,18,0) 55%) center bottom/100% auto no-repeat,
                    url('images/longfaqs.png') center top/120% auto no-repeat !important;
        background-color: #111 !important;
    }

    .faq-initial {
        font-size: 1.1rem !important;
    }

    .faq-word {
        font-size: 0.7rem !important;
    }

    #attire .attire-title {
        padding-top: 0.6rem !important;
    }

    .rsvp-downflower,
    .rsvp-upflower {
        width: 148px !important;
    }

    .attire-upflower {
        width: 105px !important;
    }

    .map-card-cta {
        font-size: 0.65rem !important;
    }

    #attire .attire-title.attire-initial,
    #attire .attire-title .attire-initial {
        font-size: 2.5rem !important;
    }

    #attire .attire-title .attire-word {
        font-size: 1.36rem !important;
    }

    #party {
        min-height: unset;
    }

    .our-love-story-title {
        font-size: 1rem !important;
    }

    .our-love-story-title .ols-initial {
        font-size: 1.02rem !important;
    }

    .our-love-story-title .ols-initial:first-child {
        font-size: 1.22rem !important;
    }

    .our-love-story-title .ols-rest {
        font-size: 1.02rem !important;
    }

    .story-started-title {
        font-size: 0.68rem !important;
    }

    .story-col p {
        font-size: 0.62rem !important;
    }

    .story-sunflower {
        width: 65px;
        right: 2.2rem;
        top: 1.5rem;
    }

    .sched-card {
        width: 260px !important;
        height: 220px !important;
    }
    .party-img-container {
        height: 190px !important;
    }

    .party-img-container:nth-child(6) {
        display: none !important;
    }

    .party-img-container:nth-last-child(2) {
        border-bottom: none !important;
    }

    .attire-title .attire-initial {
        font-size: 3.3rem !important;
    }

    .attire-title .attire-word {
        font-size: 1.9rem !important;
    }

    .attire-desc {
        font-size: 0.62rem !important;
    }

    .attire-subtitle {
        font-size: 0.65rem !important;
    }

    .attire-footer-text {
        font-size: 0.78rem !important;
    }

    .attire-grid > .attire-photo-women-2 {
        height: 60px !important;
    }

    .attire-women2-caption {
        white-space: normal;
        text-align: center;
        font-size: .65rem !important;
        font-color:#507253;
    }

    .attire-swatches .leaf-swatch-img {
        height: 35px !important;
    }


    .rsvp-downflower {
        width: 200px;
    }

    .rsvp-upflower {
        width: 200px;
    }

    #registry {
        flex-direction: column !important;
        align-items: center !important;
        min-height: 750px !important;
       
    }

    .registry-inner {
        width: 100% !important;
    }
    

    .registry-cardno-wrapper {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: -19rem !important;
        width: 100% !important;
    }

    .registry-cardno {
        width: 300px !important;
        max-width: none !important;
    }

    .registry-cardno-bpi {
        width: 90% !important;

    }
}

/* ============================================
   Invitation Gate (envelope landing screen)
   ============================================ */
#invitation-gate {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2ede2;
    transition: opacity 0.7s ease;
}

#invitation-gate.gate-hidden {
    opacity: 0;
    pointer-events: none;
}

.gate-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    max-width: 90vw;
    min-width: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#invitation-gate.gate-hidden .gate-content {
    opacity: 0;
    transform: translateY(-12px);
}

@keyframes gateTextFadeUp {
    0%   { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes gateTypeReveal {
    from { width: 0; }
    to   { width: 100%; }
}

.gate-logo {
    width: clamp(75px, 22vw, 115px);
    height: auto;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: gateTextFadeUp 0.9s ease-out 0.1s forwards;
}

.gate-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #7c8c4a;
    margin-bottom: 0.9rem;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: gateTypeReveal 1.1s steps(22, end) 0.3s forwards;
}

.gate-from {
    font-family: 'Parfumerie Script Pro', cursive;
    font-size: clamp(2.8rem, 10.5vw, 4.4rem);
    font-weight: 400;
    color: #7c8c4a;
    margin-bottom: 0.4rem;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: gateTypeReveal 0.5s steps(4, end) 1.6s forwards;
}

.gate-names {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 7.5vw, 3.5rem);
    letter-spacing: clamp(0.5px, 0.7vw, 5px);
    text-transform: uppercase;
    color: #7c8c4a;
    margin-bottom: 0.7rem;
    line-height: 1.3;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: gateTypeReveal 1.3s steps(13, end) 2.2s forwards;
}

.gate-names-line {
    display: inline;
}

.gate-name-initial {
    font-family: 'Garamond', serif;
    font-weight: 400;
    font-size: 1em;
    text-transform: none;
    letter-spacing: 0;
    margin-right: 0.05em;
}

.gate-name-rest {
    font-family: 'Garamond', serif;
}

.gate-names .gate-amp {
    font-family: 'Parfumerie Script Pro', cursive;
    font-weight: 400;
    font-size: 2em;
    text-transform: none;
    color: #e3a727;
    margin-right: 0.15rem;
}

.gate-envelope {
    position: relative;
    width: 480px;
    max-width: 86vw;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    perspective: 900px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gate-envelope-img {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 20px rgba(70, 80, 40, 0.25));
    transform-origin: center bottom;
    animation: gateEnvelopeEntrance 6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes gateEnvelopeEntrance {
    0%   { opacity: 0; transform: scale(0.82) rotateX(14deg) translateY(30px); }
    30%  { opacity: 1; transform: scale(1.03) rotateX(-3deg) translateY(-6px); }
    45%  { transform: scale(1) rotateX(0deg) translateY(0); }
    60%  { transform: scale(1) rotateX(0deg) translateY(-5px); }
    75%  { transform: scale(1) rotateX(0deg) translateY(0); }
    100% { opacity: 1; transform: scale(1) rotateX(0deg) translateY(0); }
}

.gate-envelope-glow {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 56%;
    width: 26%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%) scale(1.05);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 205, 90, 0.95) 0%, rgba(255, 205, 90, 0) 72%);
    opacity: 0.7;
    pointer-events: none;
    animation: gateSealGlow 2.5s ease-in-out 1.3s infinite;
}

@keyframes gateSealGlow {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); }
    50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

.gate-sparkle {
    position: absolute;
    z-index: 3;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffe08a;
    box-shadow: 0 0 10px 3px rgba(255, 210, 110, 0.85);
    opacity: 0;
    pointer-events: none;
    animation: gateSparkleFloat 6s ease-out forwards;
}

@keyframes gateSparkleFloat {
    0%, 38%  { opacity: 0; transform: translateY(0) scale(0.4); }
    52%      { opacity: 1; transform: translateY(-14px) scale(1); }
    100%     { opacity: 0; transform: translateY(-90px) scale(0.5); }
}

.gate-sparkle-1 { top: 6%;  left: 18%; animation-delay: 2.6s; }
.gate-sparkle-2 { top: 14%; left: 82%; animation-delay: 3.0s; }
.gate-sparkle-3 { top: 45%; left: 92%; animation-delay: 3.4s; }
.gate-sparkle-4 { top: 68%; left: 6%;  animation-delay: 3.2s; }
.gate-sparkle-5 { top: 30%; left: 50%; animation-delay: 3.8s; }
.gate-sparkle-6 { top: 78%; left: 74%; animation-delay: 4.1s; }

.gate-envelope.opening {
    opacity: 0;
    transform: scale(0.96);
}

.gate-envelope.opening .gate-envelope-img,
.gate-envelope.opening .gate-envelope-glow,
.gate-envelope.opening .gate-sparkle {
    animation: none;
}

.gate-cta {
    margin-top: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #7c8c4a;
    opacity: 0;
    animation: gateTextFadeUp 0.9s ease-out 1.6s forwards;
}

.gate-cta-line {
    width: 26px;
    height: 1px;
    background: #b7a06a;
}

@media (max-width: 2561px) {
    .gate-eyebrow {
        font-size: 1.15rem;
        letter-spacing: 6px;
    }

    .gate-names {
        line-height: 1;
    }

    .gate-envelope {
        width: 800px;
        max-width: 86vw;
    }

    .gate-cta {
        font-size: 0.85rem;
        gap: 1rem;
    }

    .gate-cta-line {
        width: 30px;
    }
}

@media (max-width: 2000px) {
    .gate-eyebrow {
        font-size: 1rem;
        letter-spacing: 5px;
    }

    .gate-names {
        line-height: 1;
    }

    .gate-envelope {
        width: 700px;
        max-width: 86vw;
    }

    .gate-cta {
        font-size: 0.75rem;
        gap: 0.9rem;
    }

    .gate-cta-line {
        width: 26px;
    }
}

@media (max-width: 1024px) {
    .gate-eyebrow {
        font-size: 1rem;
        letter-spacing: 5px;
    }

    .gate-envelope {
        width: 500px;
        max-width: 86vw;
    }

    .gate-cta {
        font-size: 0.75rem;
        gap: 0.9rem;
    }

    .gate-cta-line {
        width: 26px;
    }
}

@media (max-width: 768px) {
    .gate-eyebrow {
        font-size: 0.9rem;
        letter-spacing: 4px;
    }

    .gate-name-rest {
        letter-spacing: 7px;
    }

    .gate-envelope {
        width: 440px;
        max-width: 80vw;
    }

    .gate-cta {
        font-size: 0.7rem;
        gap: 0.75rem;
    }

    .gate-cta-line {
        width: 22px;
    }
}

@media (max-width: 480px) {
    .gate-eyebrow {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .gate-name-rest {
        letter-spacing: 7px;
    }

    .gate-envelope {
        width: 380px;
        max-width: none;
    }

    .gate-cta {
        font-size: 0.65rem;
        gap: 0.6rem;
    }

    .gate-cta-line {
        width: 18px;
    }
}

@media (max-width: 395px) {
    .gate-eyebrow {
        font-size: 0.76rem;
        letter-spacing: 2.8px;
    }

    .gate-name-rest {
        letter-spacing: 5px;
    }

    .gate-envelope {
        width: 380px;
        max-width: none;
    }

    .gate-cta {
        font-size: 0.6rem;
        gap: 0.55rem;
    }

    .gate-cta-line {
        width: 17px;
    }
}

@media (max-width: 375px) {
    .gate-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 2.5px;
    }

    .gate-name-rest {
        letter-spacing: 4px;
    }

    .gate-envelope {
        width: 340px;
        max-width: none;
    }

    .gate-cta {
        font-size: 0.58rem;
        gap: 0.5rem;
    }

    .gate-cta-line {
        width: 16px;
    }
}

@media (max-width: 360px) {
    .gate-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 2px;
    }

    .gate-name-rest {
        letter-spacing: 3px;
    }

    .gate-envelope {
        width: 300px;
        max-width: none;
    }

    .gate-cta {
        font-size: 0.55rem;
        gap: 0.45rem;
    }

    .gate-cta-line {
        width: 14px;
    }
}

@media (max-width: 321px) {
    .gate-eyebrow {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    .gate-name-rest {
        letter-spacing: 3px;
    }

    .gate-envelope {
        width: 300px;
        max-width: none;
    }

    .gate-cta {
        font-size: 0.6rem;
        gap: 0.4rem;
    }

    .gate-cta-line {
        width: 12px;
    }
}
