/* --- Variables & Reset --- */
:root {
    --primary-color: #7B5B4C;
    --secondary-color: #9B7460;
    --accent-color: #D4AD8F;
    --deep-bg: #7B5B4C;
    --rich-accent: #9B7460;
    --light-bg: #FAF6F1;
    --dark-text: #4A3728;
    --light-text: #FAF6F1;
    --white: #FFFDF9;
    --champagne: #E8D5C0;
    --taupe: #A89A8E;
    --cream: #FAF6F1;
    --nude: #D4AD8F;

    --font-heading: 'Cormorant', serif;
    --font-body: 'Montserrat', sans-serif;

    --glass-bg: rgba(250, 246, 241, 0.25);
    --glass-border: rgba(232, 213, 192, 0.35);
    --glass-shadow: 0 8px 32px 0 rgba(123, 91, 76, 0.1);

    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-tap-highlight-color: transparent;
}

#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    /* Bring forward so it falls over sections, but behind modals/navbars */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    /* For floating elements */
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    margin: 10px auto 0;
    border-radius: 2px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 20px;
}

.bg-light {
    background-color: var(--champagne);
    background-image: linear-gradient(135deg, var(--champagne) 0%, var(--cream) 100%);
}

/* .bg-gradient {
    background: linear-gradient(135deg, #f5f7fa 0%, #F9F6F0 100%);
} */

.btn-premium {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--cream);
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(123, 91, 76, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 91, 76, 0.5);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(250, 246, 241, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(123, 91, 76, 0.08);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-speed);
}

.logo:hover .nav-logo-img {
    transform: scale(1.05);
}


.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    /* Reduced for desktop */
    color: var(--secondary-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100dvh;
    /* Allow height to grow if content overflows */
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(rgba(92, 61, 46, 0.55), rgba(123, 91, 76, 0.55)), url('assets/images/sample/8.webp') no-repeat center center/cover;
    background-attachment: fixed;
    /* Parallax effect */
    /* Placeholder background used above from Unsplash source for wedding implementation */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    /* overflow: hidden; Removed to allow background to scale with content */
    padding: 120px env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    /* Increased top padding to push monogram down on desktop */
}

/* iOS Performance/Display Fix: background-attachment: fixed is buggy on mobile Safari */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        background-attachment: scroll !important;
    }
}



.hero-content {
    z-index: 2;
}

.hero-monogram {
    margin-bottom: 20px;
}

.hero-monogram-img {
    height: 180px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}


.main-headline {
    font-size: 2.2rem;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: 400;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.sub-headline {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    font-family: var(--font-body);
    margin-bottom: 30px;
}

/* Divider removed */

.date-display {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Countdown */
.countdown-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.time-box {
    background: rgba(123, 91, 76, 0.25);
    padding: 15px 20px;
    width: 100px;
    text-align: center;
    color: var(--cream);
    border: 1px solid rgba(212, 173, 143, 0.35);
    backdrop-filter: blur(4px);
}

.time-box span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.time-box small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Animation */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: floating 4s ease-in-out infinite;
}

.floating-delay-1 {
    animation: floating 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.floating-delay-2 {
    animation: floating 5s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-delay-3 {
    animation: floating 5.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

.hero-btn {
    margin-top: 60px;
    position: relative;
    z-index: 10;
}



/* --- Our Story --- */
.story-section {
    background: linear-gradient(145deg, var(--primary-color) 0%, #6B4D3E 100%);
    color: var(--cream);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.story-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.story-image-container {
    flex: 1;
    max-width: 45%;
}

.story-image-frame {
    position: relative;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

.story-image-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.story-image-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    pointer-events: none;
}

.story-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.story-text-container {
    flex: 1;
}

.story-headline {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: none;
    font-weight: 500;
    margin-bottom: 30px;
}

.story-content {
    max-width: 100%;
}

.story-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 25px;
    opacity: 0.9;
}

.story-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: var(--font-body);
    opacity: 0.85;
}

.story-decoration {
    position: absolute;
    font-size: 220px;
    opacity: 0.15;
    pointer-events: none;
    color: var(--white);
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 45px var(--primary-color);
    z-index: 0;
    animation: slow-spin 40s linear infinite;
}

@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.story-decoration.top-right {
    top: -20px;
    right: -20px;
}

.story-decoration.bottom-left {
    bottom: -20px;
    left: -20px;
    /* Reverse spin for the bottom left */
    animation-direction: reverse;
}

@media (max-width: 992px) {
    .story-flex {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .story-image-container {
        max-width: 80%;
    }

    .story-image-frame {
        transform: rotate(0deg);
    }

    .story-headline {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .story-image-container {
        max-width: 100%;
    }

    .story-headline {
        font-size: 1.5rem;
    }
}

/* --- Date & Venue --- */
.venue-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
    padding: 40px 30px;
    /* Deep mocha with warm depth */
    background: linear-gradient(145deg, var(--primary-color), #6B4D3E) !important;
    border: 1px solid rgba(212, 173, 143, 0.15) !important;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(74, 55, 40, 0.2) !important;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    display: flex;
    flex-direction: column;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(212, 173, 143, 0.2);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--cream);
    font-size: 1.5rem;
}

/* .card p {
    margin-bottom: 10px;
    color: var(--cream);
    font-size: 1.5rem;
} */

.venue-name {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--cream);
    font-size: 0.9rem;
    letter-spacing: 1px;
    min-height: 5rem;
    /* Space for 4 lines */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.venue-address {
    color: rgba(250, 246, 241, 0.75);
    margin-bottom: 5px;
    font-size: 0.8rem;
    min-height: 3rem;
    /* Space for 2 lines + padding */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.venue-time {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.btn-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    font-weight: 600;
    border-bottom: 1px solid rgba(212, 173, 143, 0.4);
    transition: all 0.3s ease;
}

.btn-link:hover {
    border-bottom: 1px solid var(--cream);
    color: var(--cream);
}

/* --- Entourage --- */
/* Replacing old grid with structured layout */
.entourage-group {
    margin-bottom: 40px;
    text-align: center;
}

.role-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.entourage-group p {
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.group-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.group-column {
    flex: 1;
    min-width: 250px;
}

/* .sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
} */

.sponsors-grid p {
    margin-bottom: 0;
}

.secondary-sponsors h4,
.bearers-row h4,
.flower-girls h4,
.offertory-row h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 0.7rem;
}

.highlight-name {
    /*font-weight: 600;*/
    font-size: 0.8rem;
}

.flower-girls {
    margin-top: 20px;
}

/* --- Timeline / Events --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    top: 25px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    position: relative;
}

.timeline-content h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
}

/* --- Attire Guide --- */
.mood-board {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 50px;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
    cursor: pointer;
}

.color-swatch::after {
    content: attr(data-title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(54, 38, 26, 0.85);
    /* Dark background matching text */
    color: var(--white);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.color-swatch:hover::after,
.color-swatch:active::after {
    opacity: 1;
    visibility: visible;
    bottom: -30px;
}

.color-swatch:hover {
    transform: translateY(-5px) scale(1.1);
}

.attire-rows-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.attire-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.attire-row.row-reverse {
    flex-direction: row-reverse;
}

.attire-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.attire-content {
    flex: 1.2;
}

.attire-content.text-right {
    text-align: right;
}

.attire-role-title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.attire-img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    mix-blend-mode: multiply;
    border-radius: 12px;
}

.attire-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.attire-item {
    margin-bottom: 5px;
}

.attire-label {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.attire-description {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--primary-color);
    line-height: 1.6;
}

.attire-note-container {
    margin-top: 40px;
    padding: 30px;
    border-top: 1px dashed rgba(123, 91, 76, 0.25);
    text-align: center;
    width: 100%;
}

.attire-note {
    font-size: 1rem;
    color: var(--secondary-color);
    font-style: italic;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Mobile Responsive Attire */
@media (max-width: 768px) {

    .attire-row,
    .attire-row.row-reverse {
        flex-direction: column;
        gap: 30px;
        text-align: center !important;
    }

    .attire-content.text-right {
        text-align: center;
    }

    .attire-role-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .attire-label {
        font-size: 1rem;
    }

    .attire-description {
        font-size: 0.9rem;
    }

    .attire-image {
        order: 1;
    }

    .attire-content {
        order: 2;
    }
}


/* --- Gallery Carousel --- */
/* --- Gallery Carousel (Swiper 3D) --- */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px 0 50px;
    overflow: visible;
    /* Fix for 3D clip */
}

.gallery-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    overflow: visible !important;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 350px;
    height: 500px;
    filter: blur(4px);
    transition: filter 0.3s, transform 0.3s;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.swiper-slide-active {
    filter: blur(0);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Swiper Controls Theme */
.swiper-pagination-bullet {
    background: var(--accent-color) !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    opacity: 1;
    width: 20px;
    border-radius: 5px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.9);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.swiper-button-next {
    right: -25px;
}

.swiper-button-prev {
    left: -25px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 22px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .swiper-slide {
        width: 260px;
        height: 380px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}


/* Dots handled by Swiper */

.gallery-text-container {
    text-align: center;
    margin-top: 30px;
}

.gallery-hint-text {
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    letter-spacing: 1px;
    opacity: 0.8;
    animation: gentle-pulse 2.5s infinite ease-in-out;
}

@keyframes gentle-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

.gallery-hint-text i {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* --- Lightbox --- */
/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Manage overflow internally */
    background-color: rgba(30, 30, 30, 0.95);
    /* Darker background per image */
    flex-direction: column;
    /* Stack main image and thumbs */
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 70vh;
    /* Leave room for thumbs */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    /* Cleaner look */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-lightbox:hover {
    opacity: 1;
}

.lightbox-nav {
    cursor: pointer;
    position: absolute;
    top: 45%;
    /* Moved up slightly */
    transform: translateY(-50%);
    color: white;
    font-weight: 100;
    font-size: 50px;
    /* Thinner, larger arrows */
    border: none;
    background: transparent;
    transition: 0.3s;
    user-select: none;
    padding: 20px;
    z-index: 10002;
    opacity: 0.7;
}

.lightbox-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.next {
    right: 30px;
}

.lightbox-nav.prev {
    left: 30px;
}

/* Thumbnail Strip */
.lightbox-thumbnails {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: 20px;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #555 transparent;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 3px;
}

.thumb-img {
    height: 100%;
    width: 120px;
    /* Fixed aspect ratio roughly */
    object-fit: cover;
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    border: 2px solid transparent;
}

.thumb-img:hover {
    opacity: 0.8;
}

.thumb-img.active {
    opacity: 1;
    border-color: var(--primary-color);
    /* Earthy accent color */
    transform: scale(1.05);
}

/* --- RSVP --- */
.rsvp-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-family: var(--font-body);
}

.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 253, 249, 0.92);
    border: 1px solid rgba(232, 213, 192, 0.4);
}

.custom-rsvp-form {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.radio-pill-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.radio-pill-container input[type="radio"] {
    display: none;
}

.radio-pill {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.radio-pill-container input[type="radio"]:checked+.radio-pill {
    background-color: var(--primary-color);
    color: var(--cream);
    box-shadow: 0 4px 10px rgba(123, 91, 76, 0.3);
}

.form-control {
    width: 100%;
    padding: 15px 5px 5px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark-text);
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-control:focus {
    border-bottom-color: var(--primary-color);
}

.floating-label {
    position: absolute;
    top: 15px;
    left: 5px;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left top;
}

/* Floating label effect */
.form-control:focus~.floating-label,
.form-control:not(:placeholder-shown)~.floating-label {
    transform: translateY(-20px) scale(0.85);
    color: var(--primary-color);
}

.submit-btn {
    align-self: center;
    width: auto;
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Loader */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    text-align: left;
    font-weight: 500;
}

.form-control.invalid {
    border-bottom-color: #e74c3c;
}

.submit-btn.loading .btn-text {
    visibility: hidden;
}

.submit-btn.loading .loader {
    display: block;
}

/* Success State */
.rsvp-success {
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-text);
}

.rsvp-success.hidden {
    display: none;
}

.success-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.rsvp-success h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

/* --- Notes on Gifts --- */
.notes-section {
    background: linear-gradient(145deg, var(--primary-color) 0%, #6B4D3E 100%);
    color: var(--cream);
    text-align: center;
    padding: 80px 0;
}

.notes-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: 400;
}

.gift-icon-container {
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
    color: var(--white);
}

.gift-icon {
    width: 100%;
    height: 100%;
}

.notes-text {
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-body);
    max-width: 800px;
    margin: 0 auto;
}

/* --- FAQ --- */
.accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.accordion-item {
    margin-bottom: 15px;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-content p {
    padding-bottom: 20px;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    /* Arbitrary large height */
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* --- Footer --- */
.footer {
    background: linear-gradient(135deg, #5C3D2E 0%, var(--primary-color) 100%);
    color: var(--cream);
    padding: 5px 0;
    text-align: center;
}

.footer h2 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-top: 10px;
    margin-bottom: 5px;
    object-fit: contain;
}

.footer-note {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-style: italic;
    margin: 10px 0;
    opacity: 0.9;
    letter-spacing: 1px;
}

.copyright {
    font-size: 0.6rem;
    margin-bottom: 10px;
}

/* --- Responsive Design --- */
/* --- Lightbox Zoom Controls --- */
/* (Controls removed for gesture support) */

.lightbox-content img {
    /* transition: transform 0.3s ease; */
    /* Remove transition for instant drag/zoom response */
    transform-origin: center center;
    cursor: grab;
    touch-action: none;
    /* Prevent browser zooming/scrolling */
}

.lightbox-content img:active {
    cursor: grabbing;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        left: auto;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--cream);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 80px;
        box-shadow: -5px 0 30px rgba(123, 91, 76, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
        left: auto;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        font-size: 1.1rem;
        /* Restore original size for mobile menu */
    }

    .main-headline {
        font-size: 2.5rem;
        letter-spacing: 0.15rem;
        margin: 25px 0;
    }

    .hero-content {
        margin-top: -50px;
        /* Shift content upwards slightly */
    }

    .hero-monogram {
        margin-bottom: 30px;
    }

    .hero-monogram-img {
        height: 150px;
    }

    .sub-headline {
        font-size: 1.0rem;
        letter-spacing: 0.3em;
        margin-bottom: 40px;
    }

    .date-display {
        font-size: 2.2rem;
        /* Increased size */
        margin-bottom: 40px;
    }

    .countdown-container {
        flex-wrap: wrap;
        gap: 15px;
        /* Increased gap */
        justify-content: center;
        margin-top: 30px;
        width: 100%;
        /* Ensure full width usage */
    }

    .time-box {
        width: 120px;
        /* Increased width even further */
        padding: 15px 10px;
    }

    .time-box span {
        font-size: 2rem;
        /* Increased size further */
    }

    .time-box small {
        font-size: 0.7rem;
    }

    .hero-btn {
        margin-top: 30px;
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    /* Story Section */
    .story-headline {
        font-size: 1.3rem;
        letter-spacing: 0.1em;
        line-height: 1.5;
    }

    .story-subtitle {
        font-size: 0.95rem;
        letter-spacing: 0.2em;
    }

    .story-text {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
    }

    /* Timeline */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(even)::after {
        left: 21px;
    }

    /* Entourage Mobile: Keep Desktop-like Layout */
    .group-row {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .group-column {
        min-width: 0;
    }

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        text-align: center;
    }

    .secondary-sponsors .group-column h4,
    .bearers-row h4,
    .group-column,
    .flower-girls h4 {
        font-size: 0.7rem;
        word-wrap: break-word;
    }

    .group-column p {
        font-size: 0.6rem;
    }

    .bearers-row p {
        font-size: 0.6rem;
    }

    .secondary-sponsors p {
        font-size: 0.6rem;
    }

    .entourage-group p {
        font-size: 0.7rem;
        word-wrap: break-word;
    }

    .role-title {
        font-size: 0.8rem;
    }

    /* Attire */
    .attire-role-title {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .attire-instruction {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .mood-board {
        gap: 12px;
    }

    .color-swatch {
        width: 45px;
        height: 45px;
    }

    /* Gallery Swiper mobile handled inside media query above */

    /* Notes */
    .notes-title {
        font-family: var(--font-heading);
        font-size: 1.3rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        margin-bottom: 25px;
        font-weight: 400;
    }

    .notes-text {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        line-height: 1.8;
    }

    /* Lightbox mobile */
    .lightbox-content {
        max-width: 95%;
        max-height: 60vh;
    }

    .lightbox-nav {
        font-size: 35px;
        padding: 10px;
    }

    .lightbox-nav.next {
        right: 5px;
    }

    .lightbox-nav.prev {
        left: 5px;
    }

    .close-lightbox {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .lightbox-thumbnails {
        height: 70px;
    }

    .thumb-img {
        width: 80px;
    }

    /* Venue cards */
    .card {
        min-width: unset;
        width: 100%;
    }

    .venue-cards {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    /* FAQ */
    .accordion-header {
        font-size: 0.8rem;
        padding: 15px;
    }

    .accordion-content p {
        font-size: 0.7rem;
    }

    /* Floating Label */
    .floating-label {
        font-size: 0.65rem;
    }
}

/* Small phones (≤ 480px) */
/* Small phones (≤ 480px) */
@media (max-width: 480px) {
    .hero-monogram {
        margin-bottom: 20px;
    }

    .hero-monogram-img {
        height: 120px;
    }

    .main-headline {
        font-size: 2.2rem;
        letter-spacing: 0.1rem;
    }

    .sub-headline {
        font-size: 0.9rem;
    }

    .date-display {
        font-size: 1.5rem;
    }

    .time-box {
        width: 62px;
    }

    .time-box span {
        font-size: 1.25rem;
    }

    .story-headline {
        font-size: 1.1rem;
    }

    .section {
        padding: 50px 0;
    }

    .story-section {
        padding: 60px 0;
    }
}

/* Desktop Specifics */
@media (min-width: 992px) {
    .carousel-container {
        max-width: 1200px;
    }

    .carousel-slide {
        height: 75vh;
        max-height: 800px;
    }
}

/* --- Intro Overlay --- */
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    /* Prevent scrolling while overlay is up */
}

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(236, 235, 232, 0.3), rgba(236, 235, 232, 0.3)), url('assets/images/bg_overlay.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 2s ease;
    perspective: 1000px;
    /* Enable 3D transforms */
    overflow: hidden;
}

.youre-invited {
    font-family: 'Great Vibes', cursive;
    font-size: 6rem;
    font-style: italic;
    font-weight: 100;
    letter-spacing: 10px;
    color: var(--dark-text);
    margin-bottom: -1rem;
    z-index: 106;
    padding: 0 20px;
    box-sizing: border-box;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
    -webkit-font-smoothing: antialiased;
    /* text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); */
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-align: center;
    animation: fadeInDown 1.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* --- Envelope Container --- */
.envelope-wrapper {
    position: relative;
    width: 300px;
    height: 200px;
    /* Standard envelope ratio */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    animation: floating 6s ease-in-out infinite;
    z-index: 105;
    /* Above intro content usually, but here envelope IS the content */
}

@media (min-width: 768px) {
    .envelope-wrapper {
        width: 450px;
        /* Reduced from 650px */
        height: 300px;
        /* Reduced from 430px */
    }

    /* Responsive adjustments for seal and paper */
    .wax-seal {
        width: 95px !important;
        height: 95px !important;
    }


}

.envelope {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #E8DCC9;
    backdrop-filter: blur(2px);
}

/* --- Envelope Parts --- */
/* Back of the envelope (inside color) */
.envelope-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #E8DCC9;
    border-radius: 5px;
    z-index: 1;
}

.envelope-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/envelope-liner.png');
    background-size: cover;
    background-position: center;
    border-radius: 0 0 5px 5px;
    clip-path: polygon(8% 0%, 92% 0%, 100% 8%, 100% 100%, 0% 100%, 0% 8%);
}

.envelope-back::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

/* Paper removed */

.envelope::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Using SVG ensures the lines perfectly connect the exact corners to the exact center, regardless of aspect ratio */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cline x1='0' y1='0' x2='50%25' y2='50%25' stroke='rgba(0,0,0,0.2)' stroke-width='2' /%3E%3Cline x1='100%25' y1='0' x2='50%25' y2='50%25' stroke='rgba(0,0,0,0.2)' stroke-width='2' /%3E%3C/svg%3E");
    z-index: 5;
    /* Above pocket, below seal */
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#intro-overlay.envelope-open .envelope::after {
    opacity: 0;
}

.envelope-pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Noise Texture */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E"),
        #E8DCC9;
    border-radius: 0 0 5px 5px;
    filter: drop-shadow(0 -1px 3px rgba(0, 0, 0, 0.2));
    /* Puzzle fit: Pocket covers sides and bottom, cutout for flap with rounded tip */
    clip-path: polygon(0% 0%, 47% 48%, 48% 49.3%, 49% 49.8%, 50% 50%, 51% 49.8%, 52% 49.3%, 53% 48%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 3;
    pointer-events: none;
    /* Let clicks pass to seal */
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    transform-origin: top;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    /* filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2)); */
}

.envelope-flap::before,
.flap-back-base,
.flap-liner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 5px 5px 0 0;
}

.envelope-flap::before {
    content: '';
    clip-path: polygon(0% 0%, 100% 0%, 53% 48%, 52% 49.3%, 51% 49.8%, 50% 50%, 49% 49.8%, 48% 49.3%, 47% 48%);
    background: #E8DCC9;
    /* Sharper drop-shadow to make the edges look like distinct lines */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.15));
}

.flap-back-base {
    clip-path: polygon(0% 0%, 100% 0%, 53% 48%, 52% 49.3%, 51% 49.8%, 50% 50%, 49% 49.8%, 48% 49.3%, 47% 48%);
    background: #E8DCC9;
    transform: rotateY(180deg);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.flap-liner {
    clip-path: polygon(8% 0%, 92% 0%, 53% 39.8%, 52% 41.1%, 51% 41.6%, 50% 41.8%, 49% 41.6%, 48% 41.1%, 47% 39.8%);
    background-image: url('assets/images/envelope-liner.png');
    background-size: cover;
    background-position: center;
    transform: rotateY(180deg) translateZ(1px);
}

/* --- Wax Seal --- */
.wax-seal {
    position: absolute;
    top: 50%;
    /* Align with flap tip */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.5s ease;
}

.seal-image {
    width: 110%;
    height: 110%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.wax-seal:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.seal-image {
    width: 110%;
    height: 110%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}


/* --- Intro Text --- */
.intro-content {
    position: relative;
    margin-top: 30px;
    width: 100%;
    text-align: center;
    color: var(--white);
    z-index: 106;
    pointer-events: none;
    transition: opacity 0.5s ease;
    padding: 0 20px;
    box-sizing: border-box;
}

.invite-text {
    font-family: 'Saol Display', serif;
    font-weight: 400;
    /* letter-spacing: 0px; */
    font-size: 1.4rem;
    /* Reduced for longer text */
    line-height: 2.3;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    max-width: 900px;
    text-transform: none;
}

.envelope-seal-hint {
    font-family: 'Open Sans', serif;
    font-size: 1.4rem;
    color: var(--dark-text);
    letter-spacing: 4px;
    margin-top: 20px;
    animation: hintPulse 2s infinite ease-in-out;
}

@keyframes hintPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Hide hint when envelope is opened */
#intro-overlay.envelope-open .envelope-seal-hint {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hide "You're Invited" when envelope is opened */
#intro-overlay.envelope-open .youre-invited {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* --- OPENING ANIMATIONS --- */

/* 1. Flap Opens */
#intro-overlay.envelope-open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
    transition-delay: 0.2s;
}

/* 2. Seal Fades Out or Breaks */
#intro-overlay.envelope-open .wax-seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
    pointer-events: none;
}

/* Paper removed */

/* 4. Overlay Fades Out */
#intro-overlay.envelope-open {
    opacity: 0;
    pointer-events: none;
    transition-delay: 2.5s;
    /* Give more time for the pop up to be seen */
    /* Wait for envelope animation */
}

/* --- Particles --- */
.particles-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(176, 196, 222, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
    opacity: 0.9;
    user-select: none;
    pointer-events: none;
}

@keyframes drift {
    0% {
        transform: translateY(-10vh) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg) translateX(50px);
        opacity: 0;
    }
}

/* Floating Animation for Idle State */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- Interaction Hint (removed from HTML) --- */

/* --- Mobile Intro Responsive --- */
@media (max-width: 768px) {
    .invite-text {
        font-size: 0.9rem;
        /* letter-spacing: 1px; */
        line-height: 1.8;
        padding: 0 15px;
    }

    .youre-invited {
        font-size: 4rem;
        margin-bottom: 0.5rem;
        letter-spacing: 4px;
    }

    .envelope-wrapper {
        width: 260px;
        height: 175px;
        margin-top: 60px;
    }

    .interaction-hint {
        display: none;
    }

    .hint-text {
        font-size: 0.7rem;
    }

    .envelope-seal-hint {
        font-size: 0.85rem;
        margin-top: 20px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .invite-text {
        font-size: 1.0rem;
        letter-spacing: 0.5px;
        line-height: 1.8;
    }

    .envelope-wrapper {
        width: 230px;
        height: 155px;
        margin-top: 20px;
    }

    .youre-invited {
        font-size: 3rem;
        margin-bottom: 40px;
        letter-spacing: 2px;
    }

    .wax-seal {
        width: 55px;
        height: 55px;
    }
}

/* --- Music Control Button --- */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    /* Above navbar but below intro overlay */
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--dark-text);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.music-control:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.music-control i {
    font-size: 1.1rem;
    color: var(--dark-text);
}

.music-control.paused i::before {
    content: "\f6a9";
    /* FontAwesome volume-xmark/mute */
}

@media (max-width: 768px) {
    .music-control {
        bottom: 25px;
        right: 25px;
        width: 40px;
        height: 40px;
    }
}

/* --- Mobile Groomsmen/Bridesmaids Alignment --- */
@media (max-width: 576px) {
    .wedding-party-row p {
        font-size: 10px;
        /* min-height: 2.6em;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 2px; */
    }
}