/*
Theme Name: Oscar & Julienne Wedding
Theme URI: https://example.com/
Author: ChatGPT
Description: Custom wedding invitation theme for Oscar & Julienne with scroll animations and image placeholders.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: oscarjuliennewedding
*/

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    background-color: #f7f4ee;
    background-image: radial-gradient(circle at top left, rgba(0,0,0,0.02) 0, transparent 55%),
                      radial-gradient(circle at bottom right, rgba(0,0,0,0.02) 0, transparent 55%);
    color: #3c3c3c;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* DESKTOP NAVIGATION (HEADER) SECTION */

.top-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    padding: 20px 40px;
    font-family: "Montserrat", Arial, sans-serif;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.18em;
    column-gap: 20px;
}

.top-nav .nav-left {
    justify-self: flex-start;
}

.top-nav .nav-center {
    justify-self: center;
}

.top-nav .nav-right {
    justify-self: flex-end;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.primary-menu li {
    position: relative;
}

.primary-menu li ul {
    position: absolute;
    top: 140%;
    left: 0;
    background: #f7f4ee;
    border: 1px solid #ddd0b8;
    padding: 10px 0;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 20;
}

.primary-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu li ul li {
    padding: 6px 18px;
    white-space: nowrap;
}

.rsvp-button {
    border: 1px solid #c8a26b;
    padding: 8px 18px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    background: transparent;
    color: #c8a26b;                 /* ← GOLD TEXT WHEN NOT HOVERED */
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover effect — elegant gold fill */
.rsvp-button:hover {
    background: #c8a26b;
    color: #fff;
    border-color: #c8a26b;
}

.rsvp-button {
    box-shadow: 0 0 0 rgba(0,0,0,0);   /* prevent shift on hover */
}

.rsvp-button:hover {
    box-shadow: 0 4px 12px rgba(200,162,107,0.35);
}

.nav-right .rsvp-button {
    color: #c8a26b !important;
}
.nav-right .rsvp-button:hover {
    color: #fff !important;
}

/* Header Layout */
.site-header {
    width: 100%;
    position: fixed;
    top: 0; left: 0;
    background: #faf7f1;
    z-index: 999;
    transition: transform .35s ease;
    border-bottom: 1px solid #e8e3d9;
}

.main-nav .nav-inner {
    max-width: 1200px; /* Update the spacing in bewteen menus */
    margin: auto;
    padding: 12px 32px; /* Reduced header top-bottom spacing */
    display: flex;
    align-items: center;
    justify-content: center; /* Center everything */
    gap: 90px; 
    font-family: "Montserrat", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
	font-weight: 300;
}

.nav-left, .nav-right {
    display: flex;
    gap: 28px;
    flex: 1;               /* ensures they take equal width */
    justify-content: center;
}
.nav-left li, .nav-right li { list-style: none; }
.nav-left a, .nav-right a { 
	color:#333; 
	text-decoration:none; 
	font-weight: 400; /* update header text thickness */
	font-size: 15px;
}

/* Center couple name between nav menus */
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Couple name in center */
.nav-couple-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
	font-weight: 500;
    letter-spacing: 0.12em;
    color: #4a3f2f;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none; /* prevents blocking clicks on nav links */
}

/* Slightly smaller screens fix */
@media (max-width: 1100px) {
    .nav-couple-name {
        font-size: 18px;
        letter-spacing: 0.1em;
    }
}

/* Push left menu a bit more left */
.nav-left {
    margin-left: -70px;   /* Update space between left menu */
}

/* Push right menu a bit more right */
.nav-right {
    margin-right: -70px;  /* Update space between right menu */
}
/* Gold underline hover effect for desktop nav links (excluding RSVP) */
.nav-left a,
.nav-right a {
    position: relative;
    padding-bottom: 4px; /* spacing for the underline */
}

.nav-left a::after,
.nav-right a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px; 
    width: 0%;
    height: 2px;
    background-color: #c8a26b; /* gold color */
    transition: width 0.3s ease;
}

/* Expand on hover */
.nav-left a:hover::after,
.nav-right a:hover::after {
    width: 100%;
}

/* ❌ Exclude RSVP button */
.nav-right .rsvp-button::after {
    display: none !important;
}

/* Mobile  header section */
.menu-dropdown { position: relative; }
.menu-dropdown .dropdown-menu {
    position: absolute;
    background: #faf7f1;
    top: 32px;
    left: 0;
    padding: 15px 20px;
    border: 1px solid #e8e3d9;
    display: none;
}
.menu-dropdown:hover .dropdown-menu {
    display: block;
}

/* MOBILE HEADER NAVIGATION SECTION */
.mobile-only { 
    display: none; 
}

@media (max-width: 980px) {
    .mobile-only {
        display: flex !important;
    }
}

/*****************************************************
 NEW ELEGANT MOBILE MENU (LEFT SIDE SLIDE-IN)
*****************************************************/

/* --- MENU WRAPPER --- */
.new-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 78%;
    max-width: 330px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 4px 0 18px rgba(0,0,0,0.15);
    transform: translateX(-100%);
    transition: all .35s ease;
    z-index: 9998;
    overflow-y: auto;
}

/* --- BLUE HEADER AREA --- */
/* PURE COVER PHOTO HEADER */
.mobile-profile-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 360px;
    border-radius: 0 !important;
    position: relative;
}
.mobile-profile-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.22);
    border-radius: 0 !important;
}

.mobile-profile-names {
    font-size: 20px;
    color: #fff;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
}

.mobile-profile-sub {
    font-size: 13px;
    color: #eaeaea;
    font-family: "Montserrat", sans-serif;
}

/* --- MENU ITEMS --- */
.mobile-menu-list {
    padding: 20px;
}

.mobile-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    color: #444;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s ease;
}

.mobile-item:hover {
    background: rgba(0,0,0,0.06);
}

.mobile-item .icon {
    font-size: 18px;
}

/* RSVP item highlight */
.mobile-item.rsvp-link {
    font-weight: 600;
    color: #A47C4F;
}

/* --- STATE WHEN OPEN --- */
.new-mobile-menu.open {
    transform: translateX(0);
}

/**************************************
 FIX MOBILE HEADER VISIBILITY & LAYOUT
***************************************/

/* Hide desktop nav on mobile */
@media (max-width: 980px) {
    .nav-left,
    .nav-right {
        display: none !important;
    }
}

/* Show mobile header */
.mobile-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    height: 62px; /* Update mobile header height */
    padding: 0 40px;
    background: #faf7f1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10020;
    border-bottom: 1px solid #e8e3d9;
}

/* Ensure RSVP button looks correct */
.mobile-rsvp-inline {
    padding: 6px 14px;
    border: 1px solid #c29a5b;
    background: none;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #6b5436;
}

/* HAMBURGER ICON FIX */
.hamburger {
    width: 26px;
    height: 16px;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 10030;
}

.hamburger span {
    height: 2px;
    background: #574c3b;
    border-radius: 2px;
    transition: .35s;
}

/* X animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Push content down so it doesn't go behind header */
@media (max-width:980px) {
    body {
        padding-top: 62px;
    }
}

/* Hide mobile header when menu is open */
.mobile-header.hide {
    transform: translateY(-100%);
    opacity: 0;
}

/**************************************
 ELEGANT WEDDING MOBILE MENU PANEL
***************************************/

/* Panel container refinement */
.new-mobile-menu {
    background: #ffffff;
    border-radius: 0 24px 24px 0 !important; /* ❗ remove top-right curve */
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    padding-bottom: 20px;
    border-right: 1px solid rgba(194, 154, 91, 0.20);
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.new-mobile-menu {
    border: 2px solid rgba(194, 154, 91, 0.55);
    border-left: none; /* so it blends with the edge */
}


/* Cover header refinement */
.mobile-profile-header {
    height: 360px; /* taller for portrait photo */
    background-position: center;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    position: relative;
    overflow: hidden;
}

/* Optional elegant soft dark fade */
.mobile-profile-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.28)
    );
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

/* Menu spacing */
.mobile-menu-list {
    padding: 26px 20px;
}

/* Each row item */
.mobile-item {
    padding: 10px 10px;
    margin-bottom: 4px;
    font-size: 15px;
    letter-spacing: .02em;
}

/* Elegant hover */
.mobile-item:hover {
    background: rgba(194, 154, 91, 0.12); /* soft champagne gold */
    transform: translateX(4px);
}

/* Icons */
.mobile-item .icon {
    font-size: 20px;
    opacity: 0.8;
}

/* Highlight for RSVP */
.mobile-item.rsvp-link {
    font-weight: 600;
    color: #b08a57; /* wedding gold tone */
}

.mobile-item {
    padding: 14px 6px;
    margin: 2px 0;
    color: #4a4a4a;
    font-size: 16px;
    letter-spacing: 0.015em;
    font-family: "Montserrat", sans-serif;
    border-bottom: 1px solid rgba(180, 150, 100, 0.10); /* subtle divider */
    transition: all .25s ease;
}

.mobile-item:last-child {
    border-bottom: none;
}

/* Elegant hover slide */
.mobile-item:hover {
    color: #b08a57; /* soft champagne gold */
    transform: translateX(6px);
}

.hide {
    display: none !important;
}

.mobile-profile-header {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    overflow: hidden !important;
}

/* === UPDATED MOBILE HEADER (Oscar & Julienne + RSVP + Hamburger) === */

.mobile-header {
    display: flex !important;
    justify-content: center; /* center entire inner wrapper */
    align-items: center;
    height: 72px; /* update header height */
    padding: 0;
    background: #faf7f1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10020;
    border-bottom: 1px solid #e8e3d9;
}

/* Inner wrapper to control spacing */
.mobile-header-inner {
    width: 100%;
    max-width: 520px; /* gives even better center alignment */
    display: flex;
    justify-content: space-between; /* couples name left / buttons right */
    align-items: center;
    padding: 0 18px; /* ← adjust this for global spacing */
}

/* Couple Name */
.mobile-couple-name {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #4a3f2f;
    text-align: left;
    margin-left: -6px; /* ← move names further left */
}

/* GOLD RSVP BUTTON */
.mobile-rsvp-gold {
    padding: 7px 18px;
    background: #c29a5b; /* gold */
    color: #fff !important;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
	font-weight: 400;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    margin-right: 16px; /* ← move whole group left */
}

/* Move hamburger to the left (fix clipping on right side) */
.mobile-header .hamburger {
    margin-right: -6px;  /* ← pulls hamburger left */
    transform: scale(1.05); /* optional: make slightly bigger */
}

/* =========================================
   STACKED NAMES — Screenshot 1 Style
   ========================================= */
.mobile-couple-name {
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.05;
    color: #4a3f2f;
    text-transform: uppercase;
    margin-left: 10px; /* move left */
	letter-spacing: 0.12em;
}

/* ================================================================
   D — LUXURY DOT-MENU ICON (Gold background + white accents)
   ================================================================ */

.menu-icon-dotmenu {
    width: 44px;
    height: 38px;
    background: #c29a5b;            /* gold */
    border-radius: 12px;             /* elegant rounded box */
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
    box-sizing: border-box;
    cursor: pointer;
}

/* Three horizontal lines */
.menu-icon-dotmenu .lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 16px;
}

.menu-icon-dotmenu .lines span {
    width: 16px;
    height: 2px;
    background: #ffffff;            /* white lines */
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Accent dot */
.menu-icon-dotmenu .dot {
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 🔥 Active animation — convert lines into an X */
.menu-icon-dotmenu.active .lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-icon-dotmenu.active .lines span:nth-child(2) {
    opacity: 0;
}
.menu-icon-dotmenu.active .lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================================================================
   D — LUXURY DOT-MENU ICON (Gold background + white accents)
   ================================================================ */

.menu-icon-dotmenu {
    width: 44px;
    height: 38px;
    background: #c29a5b;            /* gold */
    border-radius: 12px;             /* elegant rounded box */
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
    box-sizing: border-box;
    cursor: pointer;
}

/* Three horizontal lines */
.menu-icon-dotmenu .lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 16px;
}

.menu-icon-dotmenu .lines span {
    width: 16px;
    height: 2px;
    background: #ffffff;            /* white lines */
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Accent dot */
.menu-icon-dotmenu .dot {
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 🔥 Active animation — convert lines into an X */
.menu-icon-dotmenu.active .lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-icon-dotmenu.active .lines span:nth-child(2) {
    opacity: 0;
}
.menu-icon-dotmenu.active .lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-right-group {
    display: flex;
    align-items: center;
    gap: 10px;        /* spacing between RSVP & icon */
    margin-right: 10px;
}

/* 🔒 Hide mobile header on desktop */
@media (min-width: 981px) {
    .mobile-header {
        display: none !important;
    }
}

/* 🔒 Hide desktop header on mobile */
@media (max-width: 980px) {
    .desktop-only {
        display: none !important;
    }
}

/* HERO SECTION */

.hero-desktop,
.hero-mobile {
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img.image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.75);
}

.hero-overlay .small-accent {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 18px;
    color: #f5d3a2;
    margin-bottom: 16px;
}

/* Desktop hero tweaks */
.hero-desktop {
    min-height: auto;       /* allow section to grow with image */
    overflow: visible;      /* stop clipping the image */
}

.hero-desktop .hero-media {
    position: relative;     /* no absolute cropping */
    inset: unset;
}

.hero-desktop .hero-media img.image-placeholder {
    width: 100%;
    height: auto;           /* <-- reveal full image height */
    object-fit: cover;      /* stays elegant in wide view */
}

/* Mobile hero tweaks */
.hero-mobile {
    display: none;
}

@media (max-width: 768px) {

    .hero-desktop { 
        display: none; 
    }

    .hero-mobile { 
        display: block; 
        min-height: auto;
        overflow: visible;
    }

    .hero-mobile .hero-media {
        position: relative;
        inset: unset;
    }

    .hero-mobile .hero-media img.image-placeholder {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .top-nav {
        grid-template-columns: 1fr;
        row-gap: 10px;
        padding: 16px 20px;
        text-align: center;
    }

    .top-nav .nav-left,
    .top-nav .nav-center,
    .top-nav .nav-right {
        justify-self: center;
    }

    /* ✅ ADD THIS — centers text vertically on mobile */
    .hero-mobile .hero-overlay {
        justify-content: center;  /* center vertically */
        align-items: center;      /* center horizontally */
        padding: 0 20px;          /* remove bottom padding */
    }
}
/* Line 1 */
.hero-line-1 {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    letter-spacing: 0.05em;
    opacity: 0;
}

.hero-names-group {
    margin: 18px 0;
    opacity: 1; /* show the wrapper */
}

.hero-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 58px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.hero-amp {
    font-family: "Cormorant Garamond", serif;
    font-size: 54px;
    margin: 8px 0;
}

/* Line 2 — date + venue */
.hero-line-2 {
    margin-top: 18px;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    letter-spacing: 0.02em;
    line-height: 1.6;
    opacity: 0;
}

/* MOBILE TEXT SIZE */
@media (max-width: 768px) {
    .hero-name { font-size: 40px; }
    .hero-amp { font-size: 36px; }
    .hero-line-1 { font-size: 16px; }
    .hero-line-2 { font-size: 16px; }
}


.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;   /* ← CENTER vertically */
    align-items: center;       /* ← CENTER horizontally */
    padding: 0 20px;
    text-align: center;
    color: white;
    pointer-events: none;
}

.hero-line-1,
.groom-name,
.bride-name,
.hero-amp,
.hero-line-2 {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-line-1.show,
.groom-name.show,
.bride-name.show,
.hero-amp.show,
.hero-line-2.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* WELCOME MESSAGE SECTION */

.welcome-section {
    background: #F8F5F0;
    padding: 90px 20px;
    text-align: center;
    position: relative;      /* ⭐ add this */
    overflow: hidden;        /* ⭐ add this so sparkles don't spill outside */
}

.welcome-inner {
    max-width: 820px;
    margin: auto;
    position: relative;   /* ⭐ add */
    z-index: 2;           /* ⭐ add */
}

/* Decorative lines */
.welcome-line {
    width: 90px;
    height: 1.6px;
    background: #c8a26b;      /* elegant gold */
    margin: 20px auto 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s ease;
}

/* Desktop only – make decorative lines longer */
@media (min-width: 769px) {
    .welcome-line {
        width: 160px;   /* ← adjust length here */
        height: 2px;    /* optional: slightly thicker */
    }
}

.welcome-text {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6b604e;
    line-height: 1.9;
    margin-bottom: 32px;

    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s ease;
}


.welcome-names {
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #3f3629;
    font-weight: 500;
    margin-bottom: 40px;

    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s ease;
}

@media (max-width: 768px) {
    .welcome-text {
        font-size: 17px;
        letter-spacing: 0.20em;
        margin-bottom: 26px;
    }

    .welcome-names {
        font-size: 24px;
        letter-spacing: 0.12em;
        margin-bottom: 32px;
    }

    .welcome-line {
        margin: 12px auto 28px;
    }
}

.welcome-section.show .welcome-line,
.welcome-section.show .welcome-text,
.welcome-section.show .welcome-names {
    opacity: 1;
    transform: translateY(0);
}
/* ✨ High-visibility gold sparkles */
.welcome-section::before,
.welcome-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;

    background-image:
        radial-gradient(circle, rgba(255,190,80,1) 0px, rgba(255,200,120,0) 18px),
        radial-gradient(circle, rgba(255,210,120,1) 0px, rgba(255,230,170,0) 10px),
        radial-gradient(circle, rgba(255,170,60,1) 0px, rgba(255,255,255,0) 7px),
        radial-gradient(circle, rgba(255,230,150,1) 0px, rgba(255,210,140,0) 9px),
        radial-gradient(circle, rgba(255,240,180,1) 0px, rgba(255,245,200,0) 11px);

    background-size: 
        180px 220px,
        250px 260px,
        140px 160px,
        210px 200px,
        290px 300px;

    opacity: 2;
    mix-blend-mode: screen;
}

.welcome-section::before {
    animation: sparkleFloatBack 18s linear infinite;
}

.welcome-section::after {
    animation: sparkleFloatFront 12s linear infinite;
}

@keyframes sparkleFloatBack {
    0% {
        transform: translate3d(-80px, 40px, 0) scale(1.05);
    }
    50% {
        transform: translate3d(90px, -60px, 0) scale(1.1);
    }
    100% {
        transform: translate3d(-80px, 40px, 0) scale(1.05);
    }
}

@keyframes sparkleFloatFront {
    0% {
        transform: translate3d(120px, -80px, 0) scale(1.15);
    }
    50% {
        transform: translate3d(-140px, 140px, 0) scale(1.2);
    }
    100% {
        transform: translate3d(120px, -80px, 0) scale(1.15);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .welcome-section::before,
    .welcome-section::after {
        background-size:
            150px 160px,
            200px 200px,
            120px 130px,
            170px 180px,
            200px 200px;
        opacity: 0.85;
    }
}
/* COUPLE SECTION */

.couple-section {
    padding: 40px 40px;
}

/* DESKTOP GRID — SAME STRUCTURE AS YOUR SCREENSHOT */
.couple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 80px;
}


/* Groom Desktop Layout: Text Left, Photo Right */
.groom-block {
    grid-template-columns: 1fr 1fr;
}

.groom-block .couple-text {
    order: 1;
}

.groom-block .couple-photo-placeholder {
    order: 2;
}

.couple-photo-placeholder {
    width: 100%;
    max-width: 450px;     /* adjust desktop size HERE */
    margin: 0 auto;
}

.couple-photo-placeholder img {
    width: 100%;
    height: auto;
    object-fit: contain;  /* ensures full photo is visible */
    display: block;
}

.couple-text .role {
    font-style: italic;
    color: #c29a5b;
    margin-bottom: 4px;
}

.couple-text .name {
    font-size: 32px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.couple-text p {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: #6a6a6a;
    line-height: 1.7;
}


@media (max-width: 768px) {

    .couple-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    /* Bride mobile: photo → text */
    .couple-grid:nth-child(2) .couple-photo-placeholder { order: 1; }
    .couple-grid:nth-child(2) .couple-text { order: 2; }

    /* Groom mobile: photo → text */
    .couple-grid:nth-child(3) .couple-photo-placeholder { order: 1; }
    .couple-grid:nth-child(3) .couple-text { order: 2; }

    .couple-photo-placeholder {
        max-width: 100%;
    }
}


/* Move title closer to photos */
.couple-title-block {
    max-width: 520px;
    margin-left: 0;
    margin-bottom: 30px; 
    margin-top: 0;
    text-align: left;
}

/* Pull the bride grid upward so image aligns with title */
.couple-section .couple-grid:first-of-type {
    margin-top: -40px;
}

/* Align the BRIDE grid so the photo starts under "MEET THE COUPLE" */
.couple-section .couple-grid:nth-of-type(2) {
    justify-content: flex-start;  /* push content to the left */
}

/* Left-align the bride photo inside its column */
.couple-section .couple-grid:nth-of-type(2) .couple-photo-placeholder {
    margin-left: 0 !important;
    margin-right: auto;          /* keep it hugging the left */
    justify-self: start;         /* extra safety for CSS grid */
}

/* Justify bride & groom descriptions */
.couple-text p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.couple-subtitle {
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    font-style: italic;
    color: #c8a26b;
    margin-bottom: 8px;
}

.couple-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #3f3b37;
    margin: 0;
}

@media (max-width: 768px) {
    .couple-title-block {
        text-align: center;
        max-width: 100%;
        margin-left: 0;
    }
}
/* BRIDE GRID — always the first .couple-grid */
.couple-section .couple-grid:nth-of-type(2) {
    gap: 20px !important;
}
.couple-section .couple-grid:nth-of-type(2) .couple-text {
    margin-left: -60px; /* update text closer to the bride photo */
}
/* Decorative gold line — centered under text, no shifting */
.couple-text {
    position: relative;
    padding-bottom: 40px; /* space for the line */
}

.couple-text p::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;          /* adjust distance from paragraph */
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background-color: #c29a5b;
    pointer-events: none;
}

/* Desktop: slightly longer line */
@media (min-width: 769px) {
    .couple-text p::after {
        width: 160px;
    }
}
/* MOBILE — center bride text block, but KEEP paragraph justified */
@media (max-width: 768px) {

    /* center the whole bride text container */
    .couple-section .couple-grid:nth-of-type(2) .couple-text {
        margin-left: 0 !important;
        text-align: center; /* centers role + name */
    }

    /* keep paragraph justified but centered as a block */
    .couple-section .couple-grid:nth-of-type(2) .couple-text p {
        text-align: justify;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%; /* optional: makes it visually balanced */
    }
}

/* COUNTDOWN SECTION */
.date-countdown {
    text-align: center;
    padding: 20px 20px 20px;
    background-color: #f8f5f0;
    font-family: "Cormorant Garamond", serif;
    color: #ffffff; /* ALL TEXT WHITE */
    position: relative;
    overflow: hidden;
}

/* Background video */
.countdown-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.45;
}

/* Dark overlay */
.date-countdown::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95); /* black transparent overlay */
    z-index: -1;
}

/* Floral images */
.countdown-floral img {
    max-width: 220px;
    opacity: 0.85;
    margin-bottom: 18px;
}

/* Wedding date text */
.date-countdown .wedding-date {
    font-size: 22px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 28px;
    color: #ffffff;
}

/* MAIN DIVIDER */
.countdown-divider {
    width: 70%;
    max-width: 420px;
    margin: 0 auto 36px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.45); /* WHITE */
}

/* Ceremony + Reception container */
.ceremony-reception {
    max-width: 520px;
    margin: 0 auto 50px;
}

/* Each block */
.event-block {
    margin-bottom: 32px;
}

/* Ceremony / Reception titles — BIGGER */
.event-title {
    font-size: 20px; /* increased */
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #ffffff;
}

/* Time — Montserrat + white */
.event-sub {
    font-family: "Montserrat", sans-serif;
    font-size: 16px; /* slightly larger */
    font-style: italic;
    color: #ffffff;
    margin-bottom: 6px;
}

/* Location text */
.ceremony-reception p {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    color: #ffffff;
}

/* Inner divider between ceremony & reception */
.countdown-inner-line {
    width: 60%;
    max-width: 340px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.35); /* WHITE */
    margin: 28px auto;
}

/* Countdown values */
.countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 50px auto 36px;
}

/* Countdown labels and numbers */
.time-box {
    text-align: center;
}

/* Countdown NUMBERS — Montserrat */
.time-number {
    font-family: "Montserrat", sans-serif;
    font-size: 40px;
    letter-spacing: 0.1em;
    color: #ffffff; /* WHITE */
    margin-bottom: 6px;
}

/* Countdown labels */
.time-label {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #ffffff;
}

/* Floral bottom spacing */
.countdown-floral.bottom {
    margin: 0 !important;
}

/* Make mobile text beautiful */
@media(max-width: 640px) {
    .countdown {
        gap: 20px;
    }
    .time-number {
        font-size: 30px;
    }
}

.wedding-date {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    backdrop-filter: blur(2px);  /* optional: elegant frosted look */
}

.time-number {
    font-size: 40px;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 10px;
    
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    display: inline-block;
    backdrop-filter: blur(2px); /* soft frosted effect */
}

.time-number,
.wedding-date {
    box-shadow: 0 0 8px rgba(255,255,255,0.15);
}
/* MOBILE FIXES */
@media (max-width: 600px) {

    /* Reduce padding + make the date box fit nicely */
    .wedding-date {
        font-size: 16px;
        padding: 10px 18px;
        line-height: 1.4;
        border-radius: 6px;
        display: inline-block;
        max-width: 90%;
        box-sizing: border-box;
        white-space: normal;
    }

    /* Ceremony / Reception title spacing */
    .event-title {
        font-size: 15px;
        letter-spacing: 0.2em;
    }

    .event-sub {
        font-size: 14px;
    }

    /* Countdown boxes adjust width + padding */
    .time-number {
        font-size: 28px;
        padding: 8px 14px;
        border-radius: 6px;
        width: auto;
    }

    /* Reduce gap between time boxes */
    .countdown {
        gap: 14px;
    }

    /* Keep labels readable */
    .time-label {
        font-size: 10px;
        letter-spacing: 0.18em;
    }
}

/* OUR STORY SECTION */
.story-section {
    padding: 80px 40px;
    background-color: #f0ead2;
    text-align: center;
    position: relative;
}

.story-section h2 {
    font-size: 32px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 50px;
    font-family: "Cormorant Garamond", serif;
    color: #3f3b37;
}

/* REMOVE GOLD DIVIDER & LINES */
.story-divider,
.timeline-line {
    display: none !important;
}

/* GRID LAYOUT */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
    position: relative;
    z-index: 2;
}

/* TEXT CARDS – WITH MORE SPARKLES ✨ */
.story-card {
    background: none;
    padding: 0 20px;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

/* animation on reveal */
.story-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* titles */
.story-card h3 {
    font-size: 18px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-family: "Cormorant Garamond", serif;
    color: #3f3b37;
}

/* paragraph */
.story-card p {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: #605a54;
    line-height: 1.7;
    max-width: 340px;
    margin: 0 auto 18px auto;
}

/* year UNDER the text */
.year-tag {
    display: inline-block;
    background-color: #c29a5b;
    color: #fff;
    padding: 6px 18px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 4px;
    margin-top: 12px;
}

/* STARLIGHT SPARKLES (MULTIPLE) ✨ */
.story-card::before,
.story-card::after,
.story-card .spark-1,
.story-card .spark-2,
.story-card .spark-3 {
    content: "";
    position: absolute;
    background: radial-gradient(white, rgba(255,255,255,0));
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.8;
    animation: sparkleFloat 4s infinite ease-in-out;
}

/* 5 sparkle points around each story block */
.story-card::before { top: -20px; left: 30%; animation-delay: 0s; }
.story-card::after  { top: 10px; right: 25%; animation-delay: 1.2s; }

.story-card .spark-1 { top: -30px; right: 50%; animation-delay: 0.6s; }
.story-card .spark-2 { bottom: -20px; left: 40%; animation-delay: 1.8s; }
.story-card .spark-3 { bottom: -35px; right: 30%; animation-delay: 0.9s; }

@keyframes sparkleFloat {
    0%   { transform: scale(0.5); opacity: 0.3; }
    50%  { transform: scale(1); opacity: 1;   }
    100% { transform: scale(0.5); opacity: 0.3; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }
}
.story-section .section-label {
    font-style: italic;
    color: #c29a5b !important;
    font-size: 16px;
    margin-bottom: 10px;
}
/* PERFECT EVEN DIVIDERS BASED ON ACCURATE CARD POSITIONS */
.story-grid {
    position: relative;
}

/* Base line styles */
.story-grid::before,
.story-grid::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1.3px; /* slightly thicker for perfect optical rendering */
    background: rgba(194,149,91,0.5);
    z-index: 1;
    pointer-events: none;
}

/* Divider 1 — exactly between card 1 and 2 */
.story-grid::before {
    left: calc(100% / 3);
    transform: translateX(-0.65px);
}

/* Divider 2 — exactly between card 2 and 3 */
.story-grid::after {
    left: calc(100% * 2/3);
    transform: translateX(-0.65px);
}

/* Hide on mobile */
@media (max-width: 900px) {
    .story-grid::before,
    .story-grid::after {
        display: none;
    }
}
/* Justify the story descriptions */
.story-card p {
    text-align: justify;
    text-justify: inter-word;
}

/* Keep titles centered */
.story-card h3 {
    text-align: center;
}

/* GALLERY SECTION */

/* Container */
.gallery-section {
    padding: 80px 40px;
}

/* Header */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.gallery-header .section-label {
    font-style: italic;
    color: #c29a5b;
    margin-bottom: 4px;
}

.gallery-header h2 {
    font-size: 30px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.gallery-header .view-all {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid #c29a5b;
    padding: 10px 22px;
}

/* -----------------------------------------
   GRID — NO MASONRY, NATURAL IMAGE SIZES
------------------------------------------*/

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: #f2f2f2;
    cursor: pointer;
}

/* Natural aspect images */
.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    backface-visibility: visible;
    transform: none;
    -webkit-transform: none;
    image-rendering: auto;
}

/* Hover overlay */
.hover-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.40);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item:hover .hover-overlay {
    opacity: 1;
}

.magnify-circle {
    display: none; /* Fully removed */
}

/* -----------------------------------------
   RESPONSIVE GRID
------------------------------------------*/

/* Tablet */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile — 2 column grid */
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-section {
        padding: 40px 18px;
    }
}

/* -----------------------------------------
   SAFARI / iOS FIXES
------------------------------------------*/

@supports (-webkit-overflow-scrolling: touch) {
    .gallery-item img {
        backface-visibility: visible !important;
        transform: none !important;
        -webkit-transform: none !important;
        image-rendering: auto !important;
    }
}

/* Hide broken images */
.gallery-item img:not([src]),
.gallery-item img[src=""] {
    display: none !important;
}

/* -----------------------------------------
   LIGHTBOX
------------------------------------------*/

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lightbox-image.fade-in {
    opacity: 1;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: rgba(255,255,255,0.85);
    padding: 10px 18px;
    cursor: pointer;
    user-select: none;
    transition: 0.25s ease;
    z-index: 10000;
}

.lightbox-arrow.left {
    left: 10px;
}
.lightbox-arrow.right {
    right: 10px;
}

@media (min-width: 641px) {
    .lightbox-arrow:hover {
        color: #c29a5b;
        transform: translateY(-50%) scale(1.1);
    }
}

@media (max-width: 640px) {
    .lightbox-arrow {
        font-size: 34px;
        padding: 8px 12px;
        color: rgba(255,255,255,0.95);
    }
}
#gallery.js-animate {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
/* Masonry Layout for Desktop */
@media (min-width: 1025px) {
    .gallery-grid {
        column-count: 3;
        column-gap: 12px;
    }

    .gallery-item {
        display: inline-block;
        width: 100%;
        margin-bottom: 12px;
    }
}
/* Masonry Layout — Desktop Only */
@media (min-width: 1025px) {
    .gallery-grid {
        display: block !important;   /* IMPORTANT: disable CSS grid */
        column-count: 3;
        column-gap: 12px;
    }

    .gallery-item {
        width: 100%;
        display: inline-block;
        margin-bottom: 12px;
        break-inside: avoid;   /* Prevents items from splitting */
    }
}
/* Masonry — Mobile (2 columns) */
.gallery-grid {
    display: block !important;   /* Turn OFF CSS Grid everywhere */
    column-count: 2;
    column-gap: 10px;
}

.gallery-item {
    width: 100%;
    display: inline-block;
    margin-bottom: 10px;
    break-inside: avoid;
}
@media (min-width: 641px) and (max-width: 1024px) {
    .gallery-grid {
        column-count: 2; /* or 3 if you want */
        column-gap: 12px;
    }

    .gallery-item {
        margin-bottom: 12px;
    }
}
/* Lightbox close button (default for desktop & mobile) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;      /* 🔥 now on the RIGHT for ALL devices */
    left: auto;       /* remove old desktop left position */
    font-size: 36px;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    z-index: 11000;
    transition: 0.25s ease;
    user-select: none;
}

/* Hover effect (desktop only) */
@media (min-width: 641px) {
    .lightbox-close:hover {
        color: #c29a5b;
        transform: scale(1.15);
    }
}

/* 🔥 MOBILE: slightly bigger X icon */
@media (max-width: 640px) {
    .lightbox-close {
        font-size: 44px;   /* bigger size for small screens */
        top: 18px;
        right: 18px;
    }
}

/* PRENUP VIDEO SECTION */
.prenup-video-section {
    position: relative;
    width: 100%;
    height: 70vh; /* adjust section height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

/* Background Video */
.prenup-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(65%);
}

/* Soft overlay for readability */
.prenup-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.20); /* elegant soft darkening */
    z-index: 1;
}

/* Video Section */
.prenup-video-section {
    position: relative;
    width: 100%;
    height: 100vh; /* show full height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

/* Background Video */
.prenup-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: none !important; /* remove gray/dark filter */
}

/* Overlay */
.prenup-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 1;
}

/* Text Area */
.prenup-video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
}

/* Subtitle */
.prenup-subtitle {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-style: italic;
    letter-spacing: 2px;
    opacity: 0.92;
    margin-bottom: 10px;
}

/* Title */
.prenup-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0;
}

/* Fade animation */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp 1.6s ease forwards;
}

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

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

    .prenup-video-section {
        height: 52vh;
    }

    .prenup-title {
        font-size: 30px;
        letter-spacing: 2px;
    }

    .prenup-subtitle {
        font-size: 16px;
    }

    .prenup-floral img {
        max-width: 180px;
    }
}
/* Animated Title Container */
.prenup-animated-title {
    font-size: 35px; /* tweak animated text size */
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    font-family: "Cormorant Garamond", serif;
    text-align: center;
    position: relative;
    display: inline-block;
    line-height: 1.3;
    overflow: hidden; /* ensures animation stays neat */
    padding: 8px 0;
}

/* Subtitle (make slightly bigger & softer) */
.prenup-sub {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 26px;
    letter-spacing: 2px;
    opacity: 0.95;
    margin-bottom: 12px;
}

/* Animated Phrase */
#animatedPhrase {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);  /* start LOWER (bottom → top) */
    transition: all 1.8s ease;   /* tweak for slower transition */
    white-space: nowrap;         /* prevents breaking into two lines */
}

/* When visible */
#animatedPhrase.visible {
    opacity: 1;
    transform: translateY(0); /* moves UP */
}
/* ---------- MOBILE VIDEO FIX ---------- */
@media (max-width: 768px) {

    /* Shorter section height for small screens */
    .prenup-video-section {
        height: 70vh; /* adjust between 60–80vh depending on your preference */
        margin-top: 40px; /* reduce big spacing */
    }

    /* Ensure video fits mobile properly */
    .prenup-video {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        transform: none; /* removes desktop centering that causes cropping */
        object-fit: cover; /* keep beautiful full bleed effect */
    }

    /* Adjust overlay */
    .prenup-video-overlay {
        background: rgba(0, 0, 0, 0.28); /* slightly darker for readability */
    }

    /* Reposition the text higher so it's visible */
    .prenup-video-content {
        position: absolute;
        bottom: 22%;
        width: 100%;
        padding: 0 20px;
    }

    /* Subtitle adjustments */
    .prenup-subtitle,
    .prenup-sub {
        font-size: 16px !important;
        margin-bottom: 6px;
    }

    /* Title (main animated text) */
    .prenup-animated-title {
        font-size: 24px !important;   /* change this number to resize */
        line-height: 1.3;
        letter-spacing: 0.12em;
    }

    #animatedPhrase {
        font-size: inherit;
    }
}
/* ---------- MOBILE FIX FOR ANIMATED VIDEO TEXT ---------- */
@media (max-width: 768px) {

    /* Move text higher so it’s not cut by bottom */
    .prenup-video-content {
        bottom: 30%;
        padding: 0 16px;
    }

    /* Subtitle ("From First Glance to Forever") */
    .prenup-sub,
    .prenup-subtitle {
        font-size: 15px !important;
        letter-spacing: 1px;
    }

    /* MAIN ANIMATED TITLE */
    .prenup-animated-title {
        font-size: 22px !important;        /* ↓ reduce text size */
        line-height: 1.3;                  /* ↓ avoid cropping */
        letter-spacing: 0.12em;
        white-space: normal !important;    /* ↓ allow wrapping */
        overflow-wrap: break-word !important;
        word-break: break-word !important; /* force wrap if long */
        max-width: 90%;
        margin: 0 auto;
    }

    #animatedPhrase {
        display: inline-block;
        font-size: inherit;
        line-height: inherit;
        word-break: break-word !important; 
        white-space: normal !important;
    }
}

/* Clean centered text container */
.prenup-video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #fff;
}

/* Main animated title */
.prenup-animated-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 40px; /* Update animated text size */
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0 auto;
    color: #fff;
}

/* FADE ONLY (no rising) */
#animatedPhrase {
    display: inline-block;
    opacity: 0;
    transform: none !important;     /* remove rising */
    transition: opacity 0.8s ease;  /* pure fade */
}

#animatedPhrase.visible {
    opacity: 1;
}

/* Remove ALL floral code completely */
.prenup-floral,
.prenup-floral img {
    display: none !important;
}

/* MOBILE FIXES */
@media (max-width: 768px) {
    .prenup-video-section {
        height: 65vh;
    }

    .prenup-video-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        text-align: center;
        padding: 0;
    }

    .prenup-animated-title {
        font-size: 26px;
        letter-spacing: 0.12em;
    }

    #animatedPhrase {
        white-space: normal !important;
        word-break: break-word;
    }
}

/* ENTOURAGE SECTION */
.entourage-wrap{ padding:24px 0; }   /* keep if you want a bit of spacing */

.entourage-grid{
  display: grid;
  grid-template-columns: 1fr;       /* ← always one column */
  gap: 18px;
  max-width: 820px;                 /* desktop width cap (adjust if you like) */
  margin-inline: auto;
  justify-items: center;            /* center each image in the column */
}

.entourage-grid img{
  width: 100%;
  max-width: 720px;                 /* keeps each page nicely sized on desktop */
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  background: #eee;
  cursor: zoom-in;
}

/* Optional: slightly tighter on phones */
@media (max-width: 900px){
  .entourage-grid{
    gap: 14px;
    max-width: 700px;
  }
  .entourage-grid img{
    max-width: none;                /* let it fill the column */
  }
}

/* Phones: stack one per row and shrink florals */
@media (max-width:900px){
  .entourage-grid{
    grid-template-columns: 1fr;  /* vertical */
    max-width: 720px;
  }
  .entourage-wrap{ padding:16px 0; }
  .entourage-wrap .flower{ width:min(140px, 28vw); }
  .entourage-wrap .flower.left{  left:-8vw;  transform:translateY(-50%); }
  .entourage-wrap .flower.right{ right:-8vw; transform:translateY(-50%) scaleX(-1); }
}

/* Center items in their cells */
.entourage-grid{
  justify-items: center;
}

/* Mobile already stacks to 1 column; keep it full-width there */
@media (max-width:900px){
  .entourage-grid{
    grid-template-columns: 1fr;
    max-width: 720px;
    justify-items: stretch;  /* let images go full width on phones */
  }
  .entourage-grid img{ max-width: none; }
}

/* ENT — mobile 1-col, desktop 3-col */
.entourage-wrap{ padding:24px 0; }

.entourage-grid{
  display:grid;
  grid-template-columns: 1fr;   /* default: stack vertically */
  gap:18px;
  max-width:720px;              /* nice width on phones */
  margin-inline:auto;
  justify-items:center;
}

.entourage-grid img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.06);
  background:#eee;
  cursor:zoom-in;
}

/* Desktop: 3 across in one row */
@media (min-width:1024px){
  .entourage-grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
  /* stretch to full container width on desktop */
    max-width:1200px;
    gap:22px;
    justify-items:stretch;
  }
  .entourage-grid img{ max-width:none; } /* remove any caps */
}

#entourage {
    background: #F6F3ED;
    padding: 80px 0 90px;
    text-align: center;
}

/* Subtitle */
.entourage-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    color: #A47C4F;
    margin-bottom: 8px;
}

/* Title */
.entourage-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 35px;
    letter-spacing: 4px;
    color: #333;
    font-weight: 450;
    margin-bottom: 40px;
}

/* GOLD DIVIDER LINES */
.entourage-divider-top,
.entourage-divider-bottom {
    width: 90%;
    max-width: 700px;
    height: 1px;
    background: rgba(181,147,92,0.7);
    margin: 35px auto;
}

/* IMAGE GRID */
.entourage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 820px;
    margin: 0 auto;
    justify-items: center;
}

.entourage-grid img {
    width: 100%;
    max-width: 720px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    background: #eee;
    cursor: zoom-in;
    opacity: 1;              /* ← always visible */
    transform: none;         /* ← no initial offset */
    transition: transform .7s ease;  /* keep hover smooth, no fade needed */
}

/* Desktop → 3 per row */
@media (min-width: 1024px) {
    .entourage-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
        max-width: 1200px;
        justify-items: stretch;
    }
    .entourage-grid img {
        max-width: none;
    }
}
/* Lightbox image fade animation */
.lightbox-image {
    opacity: 0;
    transition: opacity .4s ease;
}

.lightbox-image.fade-in {
    opacity: 1;
}
.entourage-item {
    position: relative;
    cursor: pointer;
    opacity: 1;
    transform: none;
}
.entourage-item.in-view {
    opacity: 1;
    transform: none;
}
@media (max-width: 768px) {
    .entourage-grid img {
        width: 95%;       /* update entourage photo size in mobile */
        margin: 0 auto;   /* center the photo */
        display: block;
    }
}
.entourage-grid img {
    border: 1px solid rgba(181,147,92,0.85); /* update entourage photo border color */
    box-shadow: 
        0 8px 18px rgba(0,0,0,0.15),
        0 0 12px rgba(181,147,92,0.35);
}

/* RSVP SECTION */
.rsvp-section {
    padding: 90px 40px;
    background-color: #fef9ef;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.rsvp-section .section-label {
    font-style: italic;
    color: #c29a5b;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.rsvp-title {
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.rsvp-subtext {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    margin-bottom: 40px;
    color: #5d5851;
}

/* Form */
.rsvp-form {
    max-width: 780px;
    margin: 0 auto;
    text-align: left;
    background: #f8f7f3;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    border: 1px solid #e4e1d6;
}

.rsvp-form-row {
    display: flex;
    gap: 22px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.rsvp-form .field {
    flex: 1;
}

.rsvp-form label {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 6px;
    color: #6e6b64;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c8c3b5;
    background: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
}

.rsvp-form textarea {
    min-height: 130px;
    resize: vertical;
}

/* Submit Button */
.rsvp-submit {
    width: 100%;
    background-color: #c29a5b;
    color: #fff;
    border: none;
    padding: 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s ease;
}

.rsvp-submit:hover {
    background-color: #a8844c;
}

/* Success message */
.rsvp-success {
    background: #f0ede6;
    padding: 12px;
    border-radius: 6px;
    color: #4b473f;
    margin-bottom: 20px;
}

/* Desktop field width alignment fix */
.rsvp-form-row .field {
    min-width: 0; /* prevents flex overflow issues */
}

.rsvp-form-row.single .field {
    flex: 100%;
}

/* Ensure consistent max-width for full-width inputs */
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    box-sizing: border-box;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .rsvp-form {
        padding: 24px;
    }
}

/* Fix RSVP form overlapping corners on mobile */
@media (max-width: 600px) {

    .rsvp-form {
        padding: 28px 20px;
        border-radius: 14px;
        background: #f8f7f3;
        overflow: hidden; /* prevents form controls from spilling outside rounded corners */
    }

    .rsvp-form-row {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 18px;
    }

    .rsvp-form .field {
        width: 100%;
    }

    .rsvp-form input,
    .rsvp-form select,
    .rsvp-form textarea {
        font-size: 15px;
        padding: 14px 16px;
        border-radius: 10px;
        box-sizing: border-box; /* prevents overflow */
    }

    .rsvp-form textarea {
        min-height: 140px;
    }

    .rsvp-submit {
        width: 100%;
        padding: 16px 0;
        font-size: 14px;
        letter-spacing: 0.26em;
        border-radius: 10px;
        margin-top: 6px;
    }
}

/* RSVP Toast Notification */
.rsvp-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #d4b16a;
    color: #fff;
    
    padding: 10px 18px;               /* ↓ less padding */
    border-radius: 12px;               
    font-family: "Montserrat", sans-serif;
    font-size: 13px;                   /* ↓ smaller */
    letter-spacing: 0.10em;            /* ↓ tighter spacing */
    text-transform: uppercase;

    text-align: center !important;
    display: inline-flex;              /* ↓ reduces excess space */
    align-items: center;
    justify-content: center;

    line-height: 1.4;                  /* ↓ fixes big spacing between lines */

    box-shadow: 0 6px 22px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;

    max-width: 92%;
    width: auto;                       /* ↓ prevents over-wide box */
    z-index: 9999;
    transition: all 0.45s ease;
}

.rsvp-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* RSVP LOADER SECTION (Loading icon during the sending of RSVP) */
#rsvp-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* <-- KEY FIX */
    transition: opacity .35s ease;
}
/* Center content (mobile-safe) */
#rsvp-loader .loader-inner {
    text-align: center;
}

/* Gold spinner */
#rsvp-loader .loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(217,183,119,0.35);
    border-top-color: #D9B777;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

/* Elegant text */
#rsvp-loader .loader-text {
    color: #D9B777;
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    letter-spacing: 2px;
}

/* Spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* MOBILE FIX: ensure loader stays perfectly centered */
@media (max-width: 768px) {
    #rsvp-loader {
        height: 100dvh !important; /* dynamic viewport height */
        padding-bottom: env(safe-area-inset-bottom); /* iPhone notch fix */
    }
}
#rsvp-loader.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* RSVP Messages */

.rsvp-msg-content {
    flex-grow: 1;
}

.rsvp-msg-name {
    font-weight: 700;
    font-size: 18px;
}

.rsvp-msg-time {
    font-size: 14px;
    margin-bottom: 10px;
    color: #888;
}
/* ======================
   RSVP MESSAGE CONTAINER
========================= */
#rsvp-messages-wrapper {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    position: relative;
}

#rsvp-message-box {
    width: 100%;
    max-width: 900px;
    height: 320px;     /* ← FIXED HEIGHT — REQUIRED */
    overflow: hidden;  /* ← REQUIRED — hides overflow for loop */
    position: relative;
}

#rsvp-messages {
    display: flex;
    flex-direction: column;
    gap: 22px;
    animation: msgScroll 12s linear infinite;
}

@keyframes msgScroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* ======================
   MESSAGE CARD
========================= */
.rsvp-msg-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.rsvp-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #A8844C;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.rsvp-msg-main { flex: 1; }

.rsvp-msg-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.rsvp-msg-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 700;
    color: #3e3a33;
}

.rsvp-msg-time {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    color: #8f8475;
    white-space: nowrap;
}

.rsvp-msg-text {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    color: #4a443a;
    line-height: 1.2;
    text-align: left;
}

/* FINAL FIX – force correct sizing */
#rsvp-messages-wrapper {
    height: auto !important;
    overflow: visible !important;
}

#rsvp-message-box {
    height: 320px !important;
    overflow: hidden !important;
}

#rsvp-messages {
    animation: msgScroll 12s linear infinite !important;
}

/* Wrapper */
#rsvp-messages-wrapper {
    margin-top: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* LIST container (fixed height) */
.rsvp-list {
    width: 100%;
    max-width: 900px;
    height: 400px;        /* displays 3 messages */
    overflow: hidden;
    position: relative;
}

/* Track = the sliding container (NOT flex!) */
.rsvp-track {
    display: block;
    will-change: transform;
    transition: transform .6s ease;
}

/* Each message card */
.rsvp-msg-card {
    background: #fff;
    border-radius: 18px;
    padding: 26px 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin-bottom: 22px;
    display: flex;
    gap: 18px;
}
@media (max-width: 600px) {

    /* Container height (shows 3 messages comfortably) */
    .rsvp-list {
        height: 420px;
    }

    /* Message card */
    .rsvp-msg-card {
        padding: 14px 16px;      /* unified */
        border-radius: 14px;
        margin-bottom: 16px;
        gap: 12px;               /* unified (smaller gap) */
    }

    /* Avatar (choose more compact version) */
    .rsvp-avatar {
        width: 36px;             /* from compact version */
        height: 36px;
        font-size: 16px;
    }

    /* Top row (name + timestamp) */
    .rsvp-msg-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;                /* compact version */
    }

    /* Name size */
    .rsvp-msg-name {
        font-size: 16px;         /* compact version */
        line-height: 1.1;
    }

    /* Timestamp */
    .rsvp-msg-time {
        font-size: 11px;         /* compact */
        text-align: left;
        white-space: normal;
    }

    /* Main message text */
    .rsvp-msg-text {
        font-size: 14px;         /* compact */
        line-height: 1.35;       /* tighter */
        margin-top: 2px;
    }
}
/* Center messages under the RSVP form — FINAL FIX */
#rsvp-messages-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.rsvp-list {
    max-width: 780px;   /* match RSVP form width */
    width: 100%;
    margin: 0 auto;     /* center */
    padding: 0 4px;     /* prevents tiny overflow rounding on Safari */
}

/* Gold dividers above and below the scrolling message list */
#rsvp-messages-wrapper {
    position: relative;
    padding: 40px 0; /* space for dividers */
}

#rsvp-messages-wrapper::before,
#rsvp-messages-wrapper::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 200px;                 /* divider length */
    height: 2px;
    background: #C29A5B;          /* gold color */
    transform: translateX(-50%);
    opacity: 0.5;                 /* soft elegant gold */
}

/* Top divider */
#rsvp-messages-wrapper::before {
    top: 0;
}

/* Bottom divider */
#rsvp-messages-wrapper::after {
    bottom: 0;
}

/* Background wrapper */
.rsvp-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* The full-section image */
.rsvp-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.75;
}

/* Content wrapper that adds padding (NOT the section itself) */
.rsvp-inner {
    position: relative;
    z-index: 2;
    padding: 60px 40px 60px; /* spacing controls section height */
}


/* Section itself only establishes position */
.rsvp-section {
    position: relative;
    background: #fef9ef; /* fallback */
}

/* MOBILE */
@media (max-width: 600px) {
    .rsvp-inner {
        padding: 30px 20px 30px;
    }

    .rsvp-bg img {
        object-fit: cover; 
        object-position: top;
    }
}
.msg-counter {
    margin-top: 6px;
    font-size: 12px;
    font-family: "Montserrat", sans-serif;
    color: #777;
    text-align: right;
}
/* ===========================
   VIEW ALL MESSAGES BUTTON
=========================== */
.view-all-container {
    text-align: center;
    margin-top: 35px;
}

.view-all-btn {
    background: #c29a5b;
    color: #ffffff;
    border: none;
    padding: 14px 34px;
    font-size: 13px;
    letter-spacing: 0.14em;
    border-radius: 8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s ease;
	width: 260px;
}

.view-all-btn:hover {
    background: #a8844c;
}

/* Allow clicking THROUGH the background image layer */
.rsvp-bg,
.rsvp-bg img {
    pointer-events: none !important;
}

/* VIEW ALL button stays above background */
.view-all-container {
    text-align: center;
    margin-top: 35px;
    position: relative;
    z-index: 3;
}
.view-all-btn {
    position: relative;
    z-index: 4;
    background: #c29a5b;
    color: #fff;
    border: none;
    padding: 14px 34px;
    font-size: 15px;
    letter-spacing: 0.14em;
    border-radius: 8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s ease;
}
.view-all-btn:hover {
    background: #a8844c;
}
/* ===== FULLSCREEN OVERLAY (centered, no background scroll) ===== */
.all-msg-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex !important;
    justify-content: center;     /* center horizontally */
    align-items: flex-start;     /* start from top so it never goes off screen */
    padding-top: 40px;           /* push panel a bit down */
    padding-inline: 12px;
    z-index: 999999;
}

/* Hidden state */
.all-msg-modal[hidden] {
    display: none !important;
}

/* ===== MODAL PANEL ===== */
.all-msg-panel {
    background: #ffffff;
    width: 94%;
    max-width: 720px;
    max-height: 90vh;

    display: flex;
    flex-direction: column;
    overflow: hidden;            /* no white edges */

    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* ===== GOLD STICKY HEADER ===== */
.all-msg-header {
    position: sticky;
    top: 0;
    z-index: 2;

    background: #C29A5B;
    color: #fff;
    padding: 16px 56px 16px 24px;

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

    border-radius: 28px 28px 0 0;   /* rounded top corners only */
}

/* Centered title */
.all-msg-title {
    margin: 0;
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

/* Close button on the right */
.all-msg-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);

    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
}

.all-msg-close:hover {
    opacity: 1;
}

/* ===== SCROLLABLE CONTENT ===== */
.all-msg-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling (optional) */
.all-msg-list::-webkit-scrollbar {
    width: 8px;
}
.all-msg-list::-webkit-scrollbar-thumb {
    background: #d3c6af;
    border-radius: 8px;
}

/* ===== FREEZE BACKGROUND WHEN MODAL IS OPEN ===== */
body.no-scroll,
html.no-scroll {
    overflow: hidden !important;
    height: 100%;
}

/* ===== MOBILE TWEAKS ===== */
@media (max-width: 600px) {
    .all-msg-panel {
        width: 96%;
        max-height: 90vh;
        border-radius: 24px;
    }

    .all-msg-header {
        border-radius: 24px 24px 0 0;
        padding: 14px 48px 14px 18px;
    }

    .all-msg-title {
        font-size: 18px;
    }

    .all-msg-close {
        right: 16px;
        font-size: 26px;
    }
}

#rsvp-loader.active,
#rsvp-loader.show {
    z-index: 99999 !important; /* only comes forward when actually visible */
}
#rsvp-loader {
    z-index: -1 !important;    /* sits BEHIND the website when hidden */
}

#rsvp-loader.active {
    z-index: 99999 !important; /* only comes forward when visible */
}

/* EVENT INFO SECTION */

.event-info-section {
    padding: 80px 40px;
}

.event-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
    gap: 60px;
    align-items: flex-start;
}

.event-info-section .section-label {
    font-style: italic;
    color: #c29a5b;
    margin-bottom: 4px;
}

.event-info-section h2 {
    font-size: 30px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.event-info-section p.lead {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    margin-bottom: 30px;
}

.event-accordion {
    border-top: 1px solid #cfcfcf;
}

.event-accordion-item {
    border-bottom: 1px solid #cfcfcf;
}

.event-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.event-accordion-header span.plus {
    font-size: 24px;
    transition: transform 0.2s ease;
}

.event-accordion-header.active span.plus {
    transform: rotate(45deg);
}

.event-info-content-panel {
    position: relative;
    min-height: 260px;
    height: auto;              /* allow natural height */
    overflow: visible;         /* prevent content being cut */
}
/* Accordion Highlight Active State */
.event-accordion-header {
    padding: 14px 18px;
    transition: background-color .35s ease, color .35s ease;
    position: relative;
}

/* Smooth gold highlight when active */
.event-accordion-header.active {
    background-color: rgba(194, 154, 91, 0.16); /* soft gold glow */
    color: #8b6a37; /* slightly richer text color */
}

/* Keep text span color consistent even when highlighted */
.event-accordion-header.active span {
    color: #8b6a37;
}

/* Animate the + turning to x */
.event-accordion-header .plus {
    transition: transform .25s ease, color .25s ease;
}

/* Make + sign gold when active */
.event-accordion-header.active .plus {
    color: #8b6a37;
}

.event-accordion-header.active {
    background-color: rgba(194, 154, 91, 0.15);
    box-shadow: inset 0 0 0 1px rgba(194, 154, 91, 0.35);
}

.event-accordion-header:hover {
    background-color: rgba(194, 154, 91, 0.08);
}

/* Panels */
.event-panel {
    display: none;
    position: relative; /* allows natural height */
    width: 100%;
}
.event-panel.active {
    display: block;
}

/* Dress code palettes */

.palette-group {
    margin-bottom: 24px;
}

.palette-group-title {
    font-style: italic;
    color: #c29a5b;
    margin-bottom: 6px;
}

.palette-row {
    display: flex;
    gap: 8px;
}

.palette-swatch {
    width: 40px;
    height: 40px;
    border-radius: 2px;
    background-color: #ccc;
}

.palette-caption {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    margin-top: 4px;
}
/* Dress Code Layout */
#panel-dresscode .dresscode-row {
    display: flex;
    gap: 40px;
    margin-top: 16px;

	margin-left: 40px; /* move the dress code and palette to the right */
}

/* Center palette groups over images */
#panel-dresscode .dresscode-column {
    display: flex;
    flex-direction: column;
    align-items: center;   /* ← centers palette + image */
    text-align: center;    /* ← centers text labels */
}

/* Dress Code Images */
#panel-dresscode .dresscode-img {
    max-width: 240px; /* adjust size here */
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}
/* Dress Code Layout */
#panel-dresscode .dresscode-row {
    display: flex;
    gap: 40px;
    margin-top: 16px;
    margin-left: 40px; /* Desktop spacing only */
}

/* Center palette groups over images */
#panel-dresscode .dresscode-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Palette Row Centering */
.palette-row {
    display: flex;
    gap: 8px;
    justify-content: center; /* ← center color swatches */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #panel-dresscode .dresscode-row {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-left: 0; /* ← remove left offset on mobile */
    }

    #panel-dresscode .dresscode-img {
        max-width: 220px; /* optional: slightly smaller on mobile */
    }
}

/* Optional: better mobile stacking */
@media (max-width: 768px) {
    #panel-dresscode .dresscode-row {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
}
/* SCROLLABLE Dress Code */
#panel-dresscode {
    max-height: 520px;        /* keep accordion height */
    overflow-y: auto;
    padding-right: 10px;
}

/* Smooth scroll */
#panel-dresscode::-webkit-scrollbar {
    width: 6px;
}
#panel-dresscode::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.25);
    border-radius: 4px;
}

/* Dresscode scroll wrapper */
.dresscode-scroll {
    display: flex;
    flex-direction: column;
    gap: 60px; /* spacing between each pair */
    padding-right: 10px;
}

/* Same row layout as existing */
.dresscode-row {
    display: flex;
    gap: 50px;
    justify-content: center;
}

/* Images centered */
.dresscode-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Mobile stack */
@media (max-width: 768px) {
    .dresscode-row {
        flex-direction: column;
        gap: 40px;
    }

    #panel-dresscode {
        max-height: 580px; /* taller scroll area for mobile */
    }
}
/* Gold Scrollbar for Dress Code Panel */
#panel-dresscode::-webkit-scrollbar {
    width: 8px;
}

#panel-dresscode::-webkit-scrollbar-track {
    background: rgba(194, 154, 91, 0.15);  /* soft gold background */
    border-radius: 10px;
}

#panel-dresscode::-webkit-scrollbar-thumb {
    background: #c29a5b; /* solid gold */
    border-radius: 10px;
}

#panel-dresscode::-webkit-scrollbar-thumb:hover {
    background: #a8844c; /* darker gold when dragging */
}
#panel-dresscode::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d9b77a, #c29a5b);
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(194,154,91,0.7);
}

/* ------------------------------------------
   📌 MOBILE — VERTICAL MODE (DEFAULT)
------------------------------------------- */
@media (max-width: 768px) {

    /* Remove desktop padding and row offsets */
    #panel-dresscode.vertical-mode .dresscode-row {
        flex-direction: column !important;
        align-items: center;
        gap: 34px;
        margin-left: 0 !important;
    }

    #panel-dresscode.vertical-mode .dresscode-scroll {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        gap: 50px;
        padding-right: 10px;
    }

    #panel-dresscode.vertical-mode .dresscode-column {
        width: 100%;
    }
}

    /* Gold horizontal scrollbar */
    #panel-dresscode.horizontal-mode .dresscode-scroll::-webkit-scrollbar {
        height: 10px;
    }
    #panel-dresscode.horizontal-mode .dresscode-scroll::-webkit-scrollbar-track {
        background: rgba(194,154,91,0.18);
        border-radius: 10px;
    }
    #panel-dresscode.horizontal-mode .dresscode-scroll::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #d9b77a, #c29a5b);
        border-radius: 10px;
        box-shadow: 0 0 6px rgba(194,154,91,0.7);
    }
}
/* Entire dresscode panel */
#panel-dresscode {
    position: relative;
    padding: 20px 0;
}

/* Scroll wrapper (default = vertical stacking) */
.dresscode-scroll {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Each row (Ninong + Ninang) */
.dresscode-row {
    display: flex;
    gap: 40px;
    justify-content: center;
}

/* Outfit card */
.dresscode-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Outfit images */
.dresscode-img {
    max-width: 240px;
    width: 100%;
    border-radius: 8px;
    display: block;
}


/* EVENT INFO MAP EMBEDS */
.event-info-block {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #4b4b4b;
}

.event-info-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 14px 0 4px;
    color: #3b3126;
}

.event-info-time {
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
    color: #7a6956;
}

/* MAP WRAPPER */
.event-map-wrapper {
    position: relative;
    margin: 12px 0 32px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #e6e6e6;  /* fallback while map loads */
    box-shadow: 0px 2px 8px rgba(0,0,0,0.06);
}

.event-map-wrapper iframe {
    width: 100%;
    height: 360px;
    border: 0;
    filter: grayscale(100%) brightness(92%);
    transition: filter .3s ease;
}

/* Optional hover to show full color when interacting */
.event-map-wrapper:hover iframe {
    filter: grayscale(0%) brightness(100%);
}

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

/* Accordion improvements, optional but recommended */
.event-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px 14px 28px; /* increase left & right padding */
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background-color .35s ease, color .35s ease;
}

.event-panel {
    display: none;
}

.event-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
	max-height: none;
}

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

.event-info-block {
    margin-bottom: 22px;
}

.event-location-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.event-time {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.event-map-link {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    text-decoration: none;
    color: #8b5e2f; /* your warm gold-brown accent */
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(139, 94, 47, 0.33);
    transition: color .25s ease, border-color .25s ease;
}

.event-map-link:hover {
    color: #61401e;
    border-color: rgba(97, 64, 30, 0.6);
}
/* Maps inside accordion scroll panel */
#panel-ceremony .event-map-wrapper iframe {
    height: 210px; /* reduced to prevent overflow */
}

/* Scrollbar styling (optional, looks cleaner) */
#panel-ceremony::-webkit-scrollbar {
    width: 6px;
}
#panel-ceremony::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.25);
    border-radius: 4px;
}

/* Gift Note */
#panel-gifts .gift-note-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px; /* controls spacing between images and text */
    padding: 10px 20px;
}

/* Gift Images */
#panel-gifts .gift-note-img {
    max-width: 240px;   /* adjust size to your preference */
    width: 100%;
    height: auto;
    display: block;
}

/* Gift Note Styling */
#panel-gifts .gift-note-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px; /* Slightly bigger */
	font-style: italic;
    line-height: 1.6;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    color: #A47C4F; /* matches the elegant gold text tone */
    font-weight: 500; /* slightly semi-bold for refinement */
    letter-spacing: 0.3px;
}

@media (max-width: 640px) {
    #panel-gifts .gift-note-text {
        font-size: 17px;
        padding: 0 16px;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    #panel-gifts .gift-note-img {
        max-width: 180px;
    }
    #panel-gifts .gift-note-text {
        font-size: 13px;
        padding: 0 10px;
    }
}

/* Gift Note Elegant Centered Style */
#panel-gifts .gift-note-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 26px;
    padding: 40px 20px;
    max-width: 640px;
    margin: 0 auto;
}

#panel-gifts .gift-note-text {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    line-height: 1.7;
    font-style: italic;
    color: #8A6A3F;
    letter-spacing: 0.4px;
    font-weight: 400;
}

#panel-gifts .gift-highlight {
    color: #A47C4F;
    font-weight: 500;
    padding: 0 4px;
    text-shadow: 0px 0px 6px rgba(164,124,79,0.25);
}

#panel-gifts .gift-floral img {
    max-width: 240px;
    opacity: .95;
}

@media (max-width: 640px) {
    #panel-gifts .gift-note-text {
        font-size: 25px;
    }
    #panel-gifts .gift-floral img {
        max-width: 180px;
    }
}

/* Gift Note Wrapper (already centered on desktop) */
#panel-gifts .gift-note-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 10px 20px;
}

/* Gift Note Mobile Improvements */
@media (max-width: 768px) {
    #panel-gifts .gift-note-wrapper {
        padding: 20px 16px; /* more breathing room */
        align-items: center;
        text-align: center;
    }

    #panel-gifts .gift-note-img {
        max-width: 300px; /* adjust if you'd like slightly smaller florals */
        margin-left: auto;
        margin-right: auto; /* ensures full centering */
    }

    #panel-gifts .gift-note-text {
        font-size: 25px; /* ideal mobile size */
        line-height: 1.55;
        padding: 0 8px;
        margin: 0 auto;
        max-width: 90%; /* keeps text in a nice readable width */
    }
}

/* MOBILE FIX — EVENT INFORMATION */
@media (max-width: 768px) {

    /* Make the grid stack vertically */
    .event-info-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* Reduce padding for mobile */
    .event-info-section {
        padding: 40px 20px;
    }

    /* Make headings readable */
    .event-info-section h2 {
        font-size: 26px;
        text-align: center;
        line-height: 1.3;
    }

    .event-info-section .section-label {
        text-align: center;
    }

    .event-info-section p.lead {
        text-align: center;
        max-width: 420px;
        margin: 0 auto 24px;
    }

    /* Accordion full width */
    .event-accordion {
        width: 100%;
    }

    .event-accordion-header {
        padding: 14px 16px;
        font-size: 13px;
    }

    /* Fix map overflowing */
    .event-map-wrapper iframe {
        height: 260px !important;
    }

    /* Gift note images scale better on mobile */
    #panel-gifts .gift-note-img {
        max-width: 180px;
        margin: 0 auto;
    }

    /* Center content panel */
    .event-info-content-panel {
        width: 100%;
    }
}

/* FOOTER SECTION */

.site-footer {
    background: #f7f4ef;
    padding: 60px 40px;
    font-family: "Montserrat", sans-serif;
    border-top: 1px solid #eae6df;
    text-align: center;
}

/* Horizontal Menu */
.footer-menu {
    display: flex;
    gap: 26px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-menu a {
    font-size: 14px;
    color: #5a574f;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: 0.3s;
}

.footer-menu a:hover {
    color: #b58a54;
}

/* Wedding Title */
.footer-wedding-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #3c3a37;
}

/* Copyright */
.footer-bottom {
    font-size: 13px;
    color: #6f6c66;
    margin-bottom: 25px;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .footer-menu {
        gap: 18px;
    }

    .footer-wedding-title {
        font-size: 16px;
    }
}

/* MUSIC SECTION */
.music-toggle {
    position: fixed;
    left: 20px;            /* Adjust this to move horizontally */
    bottom: 30px;          /* Adjust this to move vertically */
    background: #d4b16a;
    color: white;
    font-size: 22px;
    padding: 14px 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: 0.3s ease;
    font-family: "Cormorant Garamond", serif;
    opacity: 0.85;
}

.music-toggle:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Change icon appearance when music is playing */
.music-toggle.playing {
    background: #b99354;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .music-toggle {
        left: 14px;
        bottom: 20px;
        font-size: 20px;
        padding: 12px 14px;
    }
}

/* Elegant Music Toggle */
.music-toggle {
    position: fixed;
    left: 22px;
    bottom: 32px;
    width: 52px;
    height: 52px;
    background: #f4e8d7;
    border: 2px solid #d4b16a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Gold SVG icon */
.music-icon {
    width: 28px;
    height: 28px;
}

/* Pulse animation when music is playing */
.music-toggle.playing {
    animation: pulse 2.4s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(212,177,106,0.4); }
    50% { transform: scale(1.06); box-shadow: 0 0 16px rgba(212,177,106,0.6); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(212,177,106,0.4); }
}

/* Tooltip */
.music-toggle::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #d4b16a;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-family: "Montserrat", sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    white-space: nowrap;
}

.music-toggle:hover::after {
    opacity: 1;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .music-toggle {
        bottom: 20px;
        left: 14px;
        width: 48px;
        height: 48px;
    }
}

.music-toggle.hide {
    display: none !important;
}

/* SCROLL ANIMATIONS SECTION */

.js-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

html, body {
    overflow-x: hidden;
}

