/* --- Reset and Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    background-color: #fcfcfc; 
    color: #333;
    font-family: 'Cormorant Garamond', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* --- Header & Nav Styles --- */
header {
    width: 100%;
    text-align: center;
    padding-top: 60px;
    background-color: #fcfcfc;
    position: relative;
}

.couple-names {
    font-family: 'Pinyon Script', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.date-location {
    font-size: 1.1rem;
    font-style: italic;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 20px;
}

/* --- Countdown Timer --- */
#countdown-container {
    text-align: center;
    margin-bottom: 40px; 
    color: #444;
}

#days-left {
    display: block;
    font-size: 3.5rem; 
    font-weight: 600;
    line-height: 1;
    margin-bottom: 5px;
}

.label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: italic;
    color: #777;
}

/* --- Hamburger Toggle Button (hidden on desktop) --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 100;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: .14em;
    background-color: #1a1a1a;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Animate hamburger to X when open */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Navigation --- */
.main-nav {
    width: 100%;
    padding-bottom: 0px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 8px; 
    transition: color 0.3s ease;
    display: inline-block;
    border-bottom: 1px solid transparent;
}

.nav-link:hover { color: #000; }
.nav-link.active {
    color: #000;
    border-bottom: 1px solid #333;
}

/* --- Main Content & Layout --- */
main {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 550px);
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image-container img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    display: block;
    /* filter: grayscale(100%);  */
}

/* --- Home Page Events Preview --- */
.home-events-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;             
    padding: 80px 20px 0px 20px;    
    max-width: 700px;
    margin: 0 auto;        
    text-align: center;
}

.event-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 3.5rem;       
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.event-timing p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;   
    line-height: 1.6;
    color: #444;
    margin: 0;
}

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

.event-location p {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.venue-name { margin-bottom: 5px; }

.event-divider {
    width: 60px;
    height: 1px;
    background-color: #ddd; 
    margin: 10px 0;
}

/* --- Gallery Grid --- */
.scroll-gallery-grid {
    column-count: 2;
    column-gap: 30px;
    padding: 20px 0;
}

@media (min-width: 900px) {
    .scroll-gallery-grid {
        column-count: 3;
    }
}

.card-animation-layer {
    break-inside: avoid;
    margin-bottom: 30px;
    cursor: pointer;
}

/* --- Card Styling --- */
.gallery-card {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    /* filter: grayscale(100%); */
    transition: filter 0.4s ease;
}

.gallery-card:hover {
    transform: scale(1.05);
}

.gallery-card:hover img {
    filter: grayscale(0%);
}

.gallery-card.landscape img { aspect-ratio: 4/3; }
.gallery-card.portrait img { aspect-ratio: 3/4; }
.gallery-card.square img { aspect-ratio: 1/1; }


/* --- The Scroll Animation Logic --- */
@keyframes fan-in {
    from {
        opacity: 0;
        scale: 0.85;
        rotate: calc((var(--side, 1) * (5deg * var(--amp, 1))));
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        scale: 1;
        rotate: 0deg;
        transform: translateY(0);
    }
}

@supports (animation-timeline: view()) {
    
    .card-animation-layer {
        animation: fan-in linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 30%; 
    }
    
    .scroll-gallery-grid > .card-animation-layer {
        
        &:nth-of-type(2n + 1) { transform-origin: bottom right; --side: -1; --amp: 1; }
        &:nth-of-type(2n)     { transform-origin: bottom left;  --side: 1;  --amp: 1; }
        
        @media (min-width: 900px) {
            &:nth-of-type(3n + 1) { transform-origin: bottom right; --side: -1; --amp: 2; }
            &:nth-of-type(3n + 2) { transform-origin: bottom center; --side: -1; --amp: 0.5; }
            &:nth-of-type(3n)     { transform-origin: bottom left;  --side: 1;  --amp: 2; }
        }
    }
}

/* --- Schedule / Location Block --- */
.location-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;  
    max-width: 1100px;
    margin: 40px auto;
}

.location-block.single-column {
    grid-template-columns: 1fr;
    margin-top: 40px;
}

.location-image-wrapper {
    position: relative;    
    width: 100%;
    border-radius: 4px; 
    overflow: hidden; 
    min-width: 0; /* override the original 650px min-width — important for mobile */
}

.location-image-wrapper img {
    display: block;        
    width: 100%;           
    height: auto;
    filter: opacity(0.9); 
}

.location-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0; 
    box-shadow: inset 0 0 20px 20px #fcfcfc; 
    pointer-events: none; 
}

.location-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; 
}

.single-column .event-title {
    margin-bottom: 0px;
}

.single-column .venue-name {
    font-size: 1.25em;
}

.directions-link {
    display: inline-block;
    margin-top: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.directions-link:hover {
    color: #888;
    border-color: #888;
}

/* --- Registry Page Styles --- */
.registry-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 4rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
    letter-spacing: 1px;
}

.registry-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.registry-card {
    border: 1px solid #333;
    padding: 50px 30px;
    text-align: center;
    text-decoration: none;
    color: #333;
    background-color: transparent;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.registry-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.registry-card p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    transition: color 0.4s ease;
}

.registry-card:hover {
    background-color: #1a1a1a;
    color: #fcfcfc;
}

.registry-card:hover h3,
.registry-card:hover p {
    color: #fcfcfc;
}

/* --- Q&A Page Styles --- */
.qa-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 20px;
}

.accordion-wrapper {
    margin-top: 40px;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.accordion-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #1a1a1a;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.accordion-question:hover {
    color: #777;
}

.accordion-icon {
    font-size: 1.8rem;
    font-weight: 300;
    color: #888;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
    margin-left: 15px;
}

.accordion-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.4s ease;
}

.accordion-answer p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #555;
    padding-bottom: 25px;
    padding-right: 40px;
}

.accordion-item.active .accordion-answer {
    max-height: 300px;
    opacity: 1;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    color: #1a1a1a;
}

/* --- Travel Page Styles --- */
.travel-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0px 20px;
}

.travel-category-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.5rem;
    color: #1a1a1a;
    text-align: center;
    margin: 40px 0 20px 0;
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.travel-grid.single-card {
    grid-template-columns: minmax(300px, 600px);
    justify-content: center;
}

.travel-card {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.travel-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.travel-card p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.travel-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
    align-self: flex-start;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.travel-link:hover {
    color: #888;
    border-color: #888;
}

/* --- RSVP Page Styles --- */
.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0px 20px;
    text-align: center;
}

.rsvp-step {
    animation: fadeIn 0.5s ease;
}

.search-prompt {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.rsvp-input {
    width: 50%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #aaa;
    padding: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    text-align: center;
    color: #1a1a1a;
    transition: border-color 0.3s ease;
}

.rsvp-input:focus {
    outline: none;
    border-bottom: 1px solid #1a1a1a;
}

.error-text {
    color: #b91c1c;
    font-style: italic;
    margin-top: 15px;
}

.mt-large { margin-top: 40px; }

.primary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #1a1a1a;
    color: #fcfcfc;
    border: 1px solid #1a1a1a;
    padding: 12px 30px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 250px;
}

.primary-btn:hover {
    background-color: #333;
}

.primary-btn.outline-btn {
    background-color: transparent;
    color: #1a1a1a;
}

.primary-btn.outline-btn:hover {
    background-color: #1a1a1a;
    color: #fcfcfc;
}

.loader {
    animation: spin 1s linear infinite; 
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-block;
}

.outline-btn .loader {
    border: 2px solid rgba(0,0,0,0.1);
    border-top: 2px solid #1a1a1a;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rsvp-card {
    background-color: #fff;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.card-border-outer {
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    pointer-events: none;
}

.card-border-inner {
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.card-overline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 10px;
}

.card-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1;
}

.card-date {
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
}

.guest-list-wrapper {
    margin-top: 40px;
    text-align: left;
    position: relative;
    z-index: 10;
}

.guest-row {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.guest-row h4 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.radio-group {
    display: flex;
    gap: 30px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #555;
    transition: color 0.3s ease;
}

.radio-label:hover { color: #000; }

.radio-input { display: none; }
.radio-box {
    width: 18px;
    height: 18px;
    border: 1px solid #888;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.radio-input:checked + .radio-box {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}
.radio-input:checked + .radio-box::after {
    content: "✓";
    color: white;
    font-size: 12px;
}

.success-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.success-message {
    font-size: 1.3rem;
    color: #555;
}

#rsvp .section-header {
    margin-bottom: 10px;
}

#gallery .section-header {
    margin-bottom: 20px;
}

/* --- Footer --- */
.wedding-footer {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fcfcfc;
}

.footer-perspective-wrapper {
    perspective: 1200px; 
    overflow: visible;
    margin-bottom: 25px;
}

.rotating-element-block {
    display: inline-block;
    transform-origin: center; 
    backface-visibility: visible; 
    animation: gentle-spin 6s cubic-bezier(0.3, 0.1, 0.3, 0.9) infinite;
}

.footer-initials {
    display: block;
    font-family: 'Cormorant Garamond', serif; 
    font-size: 3.5rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1;
}

.footer-separator {
    width: 250px;
    height: 1px;
    border: none;
    background-color: #333;
    margin: 0 auto 15px auto; 
}

.footer-date {
    display: block;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.2rem;
    color: #555;
}

.footer-attribution {
    margin-top: 5px;
    font-style: italic;
    color:#aaa;
}

@keyframes gentle-spin {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(360deg); }
    100% { transform: rotateY(720deg); }
}

/* --- Lightbox Modal Styles --- */
#lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(252, 252, 252, 0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

#lightbox-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: #1a1a1a;
    font-size: 3rem;
    font-family: var(--sans), sans-serif;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    user-select: none;
}

.lightbox-close {
    top: 20px;
    right: 40px;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #888;
    transform: scale(1.1);
}

/* --- Page Switching Logic --- */
.page-section {
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.hidden { display: none; }

.placeholder-content {
    padding: 100px;
    border: 1px dashed #ccc;
    background-color: #fafafa;
    color: #888;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */


/* --- TABLET (iPad: up to ~1024px) --- */
@media (max-width: 1024px) {

    /* Header */
    header {
        padding-top: 40px;
    }

    .couple-names {
        font-size: 3.8rem;
    }

    /* Schedule location blocks */
    .location-block {
        gap: 20px;
        margin: 30px auto;
    }

    /* Gallery */
    .scroll-gallery-grid {
        column-gap: 20px;
    }

    /* Travel cards */
    .travel-card {
        padding: 30px;
    }
}


/* --- MOBILE (up to 768px) --- */
@media (max-width: 768px) {

    /* ---- Header ---- */
    header {
        padding-top: 30px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .couple-names {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    #countdown-container {
        margin-bottom: 25px;
    }

    #days-left {
        font-size: 2.8rem;
    }

    .label {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    /* ---- Hamburger toggle: show on mobile ---- */
    .nav-toggle {
        display: flex;
        top: 38px;
    }

    /* ---- Mobile nav: hidden by default, slides in ---- */
    .main-nav {
        display: none;
        width: 100%;
        background-color: #fcfcfc;
        border-top: 1px solid #eee;
        padding: 20px 0 30px;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 0.8rem;
        letter-spacing: 2.5px;
        border-bottom: none;
    }

    .nav-link.active {
        border-bottom: none;
        color: #000;
        background-color: #f5f5f5;
    }

    /* ---- Main content ---- */
    main {
        padding: 25px 15px;
    }

    /* ---- Home page ---- */
    .home-events-container {
        gap: 40px;
        padding: 40px 10px 0;
    }

    .event-title {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }

    .event-timing p {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .event-location p {
        font-size: 0.85rem;
    }

    /* ---- Gallery ---- */
    .scroll-gallery-grid {
        column-count: 2;
        column-gap: 12px;
    }

    .card-animation-layer {
        margin-bottom: 12px;
    }

    .gallery-card {
        padding: 8px;
    }

    /* ---- Schedule ---- */
    .location-block {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px auto;
    }

    /* On mobile, always show image first, then details */
    .location-block .location-details {
        order: 2;
    }
    .location-block .location-image-wrapper {
        order: 1;
    }

    /* ---- Registry ---- */
    .registry-container {
        padding: 0 10px;
    }

    .registry-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .registry-card {
        padding: 35px 25px;
    }

    /* ---- Q&A ---- */
    .qa-container {
        padding: 0 10px;
    }

    .accordion-question {
        font-size: 1.15rem;
        padding: 16px 0;
    }

    .accordion-answer p {
        font-size: 1rem;
        padding-right: 15px;
    }

    .accordion-icon {
        font-size: 1.5rem;
    }

    /* ---- Travel & Things To Do ---- */
    .travel-container {
        padding: 0 10px;
    }

    .travel-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .travel-grid.single-card {
        grid-template-columns: 1fr;
    }

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

    .travel-category-title {
        font-size: 2rem;
        margin: 30px 0 15px;
    }

    /* ---- RSVP ---- */
    .rsvp-container {
        padding: 0 10px;
    }

    .input-group {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .rsvp-input {
        width: 85%;
    }

    .primary-btn {
        width: 100%;
        max-width: 300px;
    }

    .rsvp-card {
        padding: 35px 35px;
    }

    .card-title {
        font-size: 2.8rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    .guest-row h4 {
        font-size: 1.2rem;
    }

    .success-title {
        font-size: 4rem;
    }

    /* ---- Section headers ---- */
    .section-header {
        margin-bottom: 35px;
    }

    .section-subtitle {
        font-size: 1.05rem;
    }

    /* ---- Footer ---- */
    .footer-initials {
        font-size: 2.8rem;
    }

    .footer-separator {
        width: 180px;
    }

    .footer-date {
        font-size: 1.3rem;
    }

    /* ---- Lightbox ---- */
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 2.2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
}


/* --- SMALL MOBILE (up to 480px) --- */
@media (max-width: 480px) {

    .couple-names {
        font-size: 2.5rem;
    }

    #days-left {
        font-size: 2.2rem;
    }

    .label {
        font-size: 0.8rem;
    }

    .event-title {
        font-size: 2.4rem;
    }

    /* Single column gallery on very small screens */
    .scroll-gallery-grid {
        column-count: 1;
    }

    .registry-card {
        padding: 30px 20px;
    }

    .rsvp-input {
        width: 100%;
    }

    .card-title {
        font-size: 2.4rem;
    }

    .success-title {
        font-size: 3.5rem;
    }

    .footer-initials {
        font-size: 2.3rem;
    }
}