/* --- 0. PRELOADER STYLES --- */
#preloader-percentage {
    font-family: 'Oranienbaum', serif;
    font-size: 1.2rem;
    color: #222222;
    letter-spacing: 2px;
    margin-top: -10px; /* Brings the text slightly closer to the SVG */
    transition: color 0.3s ease;
}

/* Dark Mode Support */
body.dark-theme #preloader-percentage {
    color: #eeeeee;
}
#interactive-preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
    background-color: #ffffff; z-index: 10000; display: flex;
    flex-direction: column; justify-content: center; align-items: center; gap: 24px;
    transition: opacity 0.5s ease, visibility 0.5s;
    will-change: opacity, visibility; cursor: pointer;
    overflow: hidden; touch-action: none;
}

#preloader-svg {
    width: 150px;
    height: 150px;
}

.st0 {
    fill: #222222;
    transition: fill 0.3s ease;
}

/* Mask effect: Starts from 8:30 position (255 degrees) and reveals based on --p variable */
#loading-ring {
    transform: translateZ(0);
    -webkit-mask-image: conic-gradient(from 255deg, black var(--p, 0%), transparent 0);
    mask-image: conic-gradient(from 255deg, black var(--p, 0%), transparent 0);
}

#pl-skip-btn {
    font-family: 'Inter', sans-serif; font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase;
    color: #999; background: transparent; border: 1px solid #ddd; padding: 10px 18px;
    min-height: 44px; cursor: pointer; opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, color 0.3s, border-color 0.3s;
    position: relative; z-index: 10002;
}
#pl-skip-btn.visible { opacity: 1; visibility: visible; }
#pl-skip-btn:hover { color: #333; border-color: #999; }

body.loading #intro-overlay, body.loading #persistent-header, body.loading #controls-container { opacity: 0 !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* --- 1. Global Styles --- */
html, body {
    width: 100%; height: 100%; margin: 0; padding: 0;
    background: radial-gradient(circle, #ffffff 0%, #f2f2f2 100%) !important;
    overflow: hidden; font-family: 'Inter', sans-serif; color: #222;
    transition: color 0.5s ease, background 0.5s ease;
}

/* Performance: Optimize rendering for heavy off-screen elements */
#final-screen, #gallery-screen, #rsvp-overlay {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

#final-screen, #rsvp-overlay, .gallery-grid-wrap, .rsvp-card { touch-action: pan-y; }
#three-canvas { touch-action: none; will-change: transform, opacity; }

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal;
    text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr;
    -webkit-font-smoothing: antialiased; font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 48;
}
button:focus-visible, a:focus-visible, .nav-item:focus-visible, .faq-question:focus-visible { outline: 2px solid #333; outline-offset: 2px; }
body.dark-theme button:focus-visible, body.dark-theme a:focus-visible, body.dark-theme .nav-item:focus-visible, body.dark-theme .faq-question:focus-visible { outline-color: #eee; }
#star-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 2.0s ease; will-change: opacity; }

/* --- BOTTOM CONTROLS --- */
#controls-container { position: fixed; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 3001; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; padding: 4px 10px; width: auto; max-width: calc(100vw - 24px); background: transparent; transition: opacity 0.3s ease; }
#controls-container .control-separator { display: none; }
.control-btn { background: transparent; border: none; cursor: pointer; color: #999; padding: 10px; min-width: 44px; min-height: 44px; display: flex; justify-content: center; align-items: center; font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 500; transition: all 0.3s ease; box-sizing: border-box; }
.control-btn:hover { transform: scale(1.1); color: #333; }
body.intro-mode .control-btn { color: rgba(255, 255, 255, 0.8); }
body.intro-mode .control-btn:hover { color: #fff; }
.control-separator { width: 1px; height: 14px; background-color: #ccc; }
body.intro-mode .control-separator { background-color: rgba(255, 255, 255, 0.5); }
body.video-mode #controls-container { opacity: 0; pointer-events: none; }

/* --- BACK TO HOME BUTTON --- */
#back-home-btn { position: fixed; bottom: 25px; right: 25px; z-index: 5000; background: rgba(255, 255, 255, 0.8); border: 1px solid #ccc; border-radius: 50%; width: 45px; height: 45px; display: none; justify-content: center; align-items: center; cursor: pointer; color: #333; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; backdrop-filter: blur(5px); }
#back-home-btn:hover { background: #fff; transform: scale(1.1); color: #000; }
body.intro-mode #back-home-btn, body.gallery-mode #back-home-btn { background: rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
body.intro-mode #back-home-btn:hover, body.gallery-mode #back-home-btn:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* --- AWWWARDS BADGE STYLES --- */
#awwwards {
    position: fixed;
    z-index: 9999;
    top: 75%;
    right: 0;
    transform: translate(100%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
#awwwards.visible {
    transform: translate(0, -50%);
    opacity: 1;
    pointer-events: auto;
}
.js-color-bg { fill: black; transition: fill 0.5s ease; }
.js-color-text { fill: white; transition: fill 0.5s ease; }

body.dark-theme .js-color-bg { fill: white; }
body.dark-theme .js-color-text { fill: black; }

/* --- PERSISTENT HEADER --- */
#persistent-header { position: fixed; top: 30px; left: 50%; transform: translateX(-50%); z-index: 3000; opacity: 0; pointer-events: none; padding: 10px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 20px; cursor: pointer; text-align: center; box-sizing: border-box; width: auto; will-change: opacity; }
.header-logo-container { position: relative; font-family: 'Oranienbaum', serif; color: #222; font-size: 2.2rem; line-height: 0.8; display: flex; flex-direction: column; justify-content: center; width: 2.8em; height: 1.4em; }
.hl-part { position: absolute; white-space: nowrap; }
.hl-josie { top: 0.2em; right: 0.6em; font-size: 0.8em; }
.hl-and { top: 50%; right: 0.1em; transform: translate(-30%, -50%); font-size: 0.6em; }
.hl-ashley { bottom: -0.1em; right: 0; font-size: 0.8em; font-style: italic; }
.header-sub { font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 400; letter-spacing: 1px; color: #555; white-space: nowrap; opacity: 0.8; transition: color 0.3s ease; padding-left: 10px; border-left: 1px solid #ccc; height: 20px; display: flex; align-items: center; }
#persistent-header:hover .header-sub { color: #000; opacity: 1; }
body.video-mode #persistent-header { opacity: 0 !important; pointer-events: none !important; }

/* --- BOTTOM NAVIGATION --- */
#bottom-nav { position: fixed; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 5005; display: flex; flex-direction: column; align-items: center; width: 350px; box-sizing: border-box; opacity: 1; will-change: opacity, bottom; transition: bottom 0.5s ease, opacity 0.5s ease; }
.nav-labels-container { position: relative; width: 100%; height: 44px; margin-bottom: 6px; }
.nav-item { font-family: 'Inter', sans-serif; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: #aaa; cursor: pointer; transition: color 0.4s ease; font-weight: 500; user-select: none; position: absolute; bottom: 0; transform: translateX(-50%); white-space: nowrap; background: transparent; border: none; padding: 14px 10px; min-height: 44px; min-width: 44px; box-sizing: border-box; }
#nav-intro { left: 0%; } #nav-journey { left: 50%; } #nav-wedding { left: 100%; }
.nav-item.active { color: #222; }
.nav-progress-container { position: relative; width: 100%; height: 1px; }
.nav-line-bg { position: absolute; top: 0; left: 0; width: 100%; height: 1px; background-color: #ccc; z-index: 1; transition: background-color 0.4s ease; }
.nav-line-fill { position: absolute; top: 0; left: 0; width: 0%; height: 1px; background-color: #222; z-index: 2; transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease; }
.nav-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 4px; height: 4px; border-radius: 50%; background-color: #ccc; z-index: 3; transition: background-color 0.4s ease; }
.nav-dot.active { background-color: #222; }
.dot-1 { left: 0%; } .dot-2 { left: 50%; } .dot-3 { left: 100%; }
body.video-mode #bottom-nav { opacity: 0; pointer-events: none; z-index: 5005; }
/* Shift bottom navigation above the stop button menu in video mode */
body.video-mode.nav-visible #bottom-nav { opacity: 1 !important; pointer-events: auto !important; bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important; transition: opacity 0.5s ease, bottom 0.5s ease !important; z-index: 5005 !important; }
body.intro-mode .nav-item, body.video-mode .nav-item { color: rgba(255, 255, 255, 0.6); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
body.intro-mode .nav-item.active, body.video-mode .nav-item.active { color: #ffffff !important; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); }
body.intro-mode .nav-line-bg, body.video-mode .nav-line-bg { background-color: rgba(255, 255, 255, 0.3); }
body.intro-mode .nav-line-fill, body.video-mode .nav-line-fill { background-color: #ffffff !important; box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
body.intro-mode .nav-dot, body.video-mode .nav-dot { background-color: rgba(255, 255, 255, 0.3); }
body.intro-mode .nav-dot.active, body.video-mode .nav-dot.active { background-color: #ffffff !important; box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }

/* --- JOURNEY INSTRUCTION --- */
#journey-instruction { position: fixed; left: 50%; transform: translate(-50%, 20px); z-index: 3900; font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: #555; opacity: 0; pointer-events: none; text-align: center; width: auto; max-width: calc(100vw - 48px); padding: 0; box-sizing: border-box; mix-blend-mode: normal; white-space: nowrap; will-change: opacity; }
#journey-instruction.blinking { opacity: 0.75; top: var(--journey-text-top, auto); animation: instruction-pulse 2.5s infinite ease-in-out; }
body.dark-theme #journey-instruction.blinking { color: #eee; }
@keyframes instruction-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* --- INTRO SCREEN STYLE --- */
#intro-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0; box-sizing: border-box; transition: opacity 0.5s ease, visibility 0.5s; overflow: hidden; isolation: isolate; background: #1a1a1a; will-change: opacity; }
#intro-poster, #intro-video-bg { position: absolute; top: -5%; left: -5%; width: 110%; height: 110%; object-fit: cover; z-index: 0; filter: brightness(0.6); }
#intro-poster { transition: opacity 0.4s ease; }
#intro-poster.is-hidden { opacity: 0; pointer-events: none; }
#intro-video-bg { opacity: 0; transition: opacity 1s ease, transform 0.1s linear; }
#intro-video-bg.is-playing { opacity: 1; }
.title-layout { display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; font-size: clamp(3.5rem, 13vw, 9rem); line-height: 1; margin-bottom: 20px; opacity: 0; transform: translateY(0); width: auto; z-index: 2; mix-blend-mode: invert; color: #FFFFFF; padding-left: 10px; padding-right: 10px; box-sizing: border-box; }
.title-part { font-family: 'Oranienbaum', serif; color: inherit; letter-spacing: -0.05em; position: relative; margin: 0; padding: 0; text-align: center; white-space: nowrap; }
.t-josie { font-size: 1.5em; transform: translateX(-0.4em); }
.t-and { font-size: 1em; opacity: 0.9; position: absolute; top: 50%; left: 75%; transform: translate(0.15em, -0.6em); }
.t-ashley { font-size: 1.5em; font-style: italic; opacity: 0.9; margin-top: -0.2em; transform: translateX(0.2em); padding-right: 0.2em; }
.intro-subtitle-wrapper { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 800px; z-index: 10; pointer-events: none; text-align: center; }
.sub-line { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; color: #FFFFFF; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4); font-family: 'Inter', sans-serif; font-weight: 300; font-size: clamp(0.7rem, 2.5vw, 1.1rem); line-height: 1.6; opacity: 0; }
#intro-overlay .action-btn { color: #ffffff; border: 1px solid #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); padding: 12px 24px; min-height: 44px; background: transparent; cursor: pointer; letter-spacing: 2px; text-transform: uppercase; position: relative; margin-top: 50px; z-index: 5; transition: background-color 0.4s, color 0.4s, border-color 0.4s; opacity: 0; font-size: 0.7rem; box-sizing: border-box; }
#intro-overlay .action-btn:hover { background: #ffffff; color: #333; text-shadow: none; }

/* --- SCROLL INDICATOR STYLES --- */
.scroll-indicator { 
    position: fixed; 
    bottom: calc(140px + env(safe-area-inset-bottom, 0px)); 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 3500; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    background-color: rgba(34, 34, 34, 0.85); 
    color: #ffffff;
    width: 64px; 
    height: 64px;
    border-radius: 50%; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.5s ease, visibility 0.5s ease; 
    pointer-events: none; 
}

.scroll-indicator.visible { 
    opacity: 1; 
    visibility: visible; 
}

body.dark-theme .scroll-indicator { 
    background-color: rgba(255, 255, 255, 0.2); 
    color: #ffffff;
}

/* Pure CSS Mouse Icon */
.mouse-icon {
    width: 14px;     
    height: 22px;
    border: 1.5px solid #ffffff;
    border-radius: 8px;
    position: relative;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    margin-bottom: 4px; /* Spacing between mouse and text */
}

/* Animated Mouse Wheel */
.mouse-wheel {
    width: 2px;
    height: 5px;
    background-color: #ffffff;
    border-radius: 2px;
    margin-top: 3px;
    will-change: transform, opacity;
}

/* Small SCROLL text */
.scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.5rem; /* approx 8px */
    letter-spacing: 1.5px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
}

.scroll-indicator.visible .mouse-wheel {
    animation: mouseScroll 1.5s infinite ease-out;
}

/* Keyframes for the scrolling wheel effect */
@keyframes mouseScroll {
    0% { 
        transform: translateY(0); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(8px); 
        opacity: 0; 
    }
}

/* --- OTHER SCREENS STYLE --- */
#transition-screen, #final-transition-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: transparent; z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; transition: none; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.12) 26%, rgba(255, 255, 255, 0.08) 58%, rgba(255, 255, 255, 0.92) 80%, rgba(255, 255, 255, 0.98) 100%); z-index: 2010; visibility: hidden; opacity: 0; pointer-events: none; }

#final-screen { position: fixed; top: 108px; left: 0; right: 0; bottom: calc(128px + env(safe-area-inset-bottom, 0px)); width: 100%; background: transparent; visibility: hidden; opacity: 0; z-index: 2001; display: flex; flex-direction: column; overflow: hidden; will-change: opacity; }
#final-screen.show-scroll-hint #wedding-scrollbar-container { opacity: 1; }

.sticky-tab-container { width: 100%; z-index: 50; background: transparent; display: flex; justify-content: center; padding: 16px 20px 0; box-sizing: border-box; flex-shrink: 0; }
body.dark-theme .sticky-tab-container { background: transparent; }

.wedding-tabs { 
    display: flex; justify-content: center; gap: 22px; width: 100%; max-width: 720px; 
    margin-top: 0; margin-bottom: 0; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
body.dark-theme .wedding-tabs { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }

.wedding-tab { 
    background: transparent; border: none; padding: 12px 8px; min-height: 44px; 
    font-family: 'Inter', sans-serif; font-size: 0.75rem; letter-spacing: 2px; color: #aaa; 
    cursor: pointer; text-transform: uppercase; position: relative; transition: color 0.3s; box-sizing: border-box; 
    margin-bottom: -1px;
}
.wedding-tab.active { color: #222; font-weight: 500; }

.wedding-tab::after { 
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; 
    background: #222; transform: scaleX(0); transition: transform 0.3s ease; 
}
.wedding-tab.active::after { transform: scaleX(1); }
.tab-content { display: none; width: 100%; flex-direction: column; align-items: center; animation: fadeInTab 0.5s ease forwards; }
.tab-content.active { display: flex; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.final-content-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; max-width: 800px; margin: 0 auto; padding: 20px; box-sizing: border-box; flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.final-content-wrapper::-webkit-scrollbar { display: none; }

#faq-section { width: 100%; max-width: 680px; margin: 0 auto 40px; box-sizing: border-box; }

/* --- ACCOMMODATION STYLES --- */
.accommodation-wrap { width: 100%; max-width: 680px; margin: 0 auto 48px; color: #333; box-sizing: border-box; }
.venue-stay { padding: 8px 0 32px; }
.stay-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.stay-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 14px; }
.stay-heading h2 { margin: 0; font-family: 'Oranienbaum', serif; font-size: clamp(2rem, 6vw, 3rem); font-weight: 400; line-height: 1; letter-spacing: 1px; color: #222; }
.stay-heading img { display: block; width: 78px; height: auto; flex: 0 0 auto; }
.stay-type { font-family: 'Inter', sans-serif; font-size: 0.72rem; color: #777; }
.venue-stay-image { display: block; width: 100%; aspect-ratio: 12 / 5; overflow: hidden; margin: 0 0 22px; }
.venue-stay-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; transition: filter 0.25s; }
.venue-stay-image:hover img { filter: brightness(0.92); }
.stay-intro { margin: 0 0 8px; font-family: 'Oranienbaum', serif; font-size: 1.25rem; line-height: 1.45; color: #333; }
.stay-booking { max-width: 610px; margin: 0 0 14px; font-family: 'Inter', sans-serif; font-size: 0.78rem; line-height: 1.7; color: #555; }
.venue-stay address { margin: 0; font-family: 'Inter', sans-serif; font-size: 0.68rem; font-style: normal; line-height: 1.5; color: #777; }
.stay-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.stay-book-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; background: #333; color: #fff; font-family: 'Inter', sans-serif; font-size: 0.7rem; letter-spacing: 1px; text-decoration: none; text-transform: uppercase; transition: background-color 0.25s, color 0.25s; }
.stay-book-link:hover { background: #555; }
.stay-phone-link { display: inline-flex; align-items: center; min-height: 44px; color: #444; font-family: 'Inter', sans-serif; font-size: 0.72rem; text-decoration: none; transition: color 0.25s; }
.stay-phone-link:hover { color: #000; }
.alternative-stays { margin-top: 2px; }
.alternative-stays-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.alternative-stays-heading h3 { margin: 0; font-family: 'Oranienbaum', serif; font-size: 1.55rem; font-weight: 400; color: #222; }
.alternative-stays-heading p { margin: 0; font-family: 'Inter', sans-serif; font-size: 0.68rem; color: #888; text-align: right; }
.stay-list { display: grid; gap: 28px; }
.stay-row { display: grid; grid-template-columns: 152px minmax(0, 1fr); align-items: start; gap: 20px; }
.stay-row-image { display: block; width: 152px; height: 100px; overflow: hidden; }
.stay-row-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stay-row-body { display: grid; min-width: 0; gap: 7px; }
.stay-row-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 18px; }
.stay-row h4 { margin: 0; font-family: 'Oranienbaum', serif; font-size: 1.15rem; font-weight: 400; line-height: 1.25; }
.stay-row h4 a { color: #292929; text-decoration: none; transition: color 0.25s; }
.stay-row h4 a:hover { color: #777; }
.stay-budget { font-family: 'Inter', sans-serif; font-size: 0.7rem; letter-spacing: 2px; color: #555; white-space: nowrap; }
.stay-row-body > p { margin: 0; max-width: 590px; font-family: 'Inter', sans-serif; font-size: 0.74rem; line-height: 1.6; color: #555; }
.stay-meta { display: flex; flex-wrap: wrap; gap: 3px 14px; font-family: 'Inter', sans-serif; font-size: 0.62rem; line-height: 1.55; color: #888; }
.stay-note { max-width: 600px; margin: 32px 0 0; font-family: 'Inter', sans-serif; font-size: 0.64rem; line-height: 1.6; color: #888; }
.gallery-grid-wrap { flex: 1; width: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; align-items: center; padding-bottom: 100px; }

#wedding-scrollbar-container { position: fixed; top: 168px; bottom: calc(128px + env(safe-area-inset-bottom, 0px)); right: 12px; width: 3px; background: rgba(0, 0, 0, 0.08); border-radius: 3px; z-index: 3500; opacity: 0; visibility: visible; transition: opacity 0.3s ease; }
#wedding-scrollbar-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: rgba(0, 0, 0, 0.4); border-radius: 3px; transition: height 0.1s ease-out; }
body.final-mode #wedding-scrollbar-container.is-scrolling { opacity: 1; }

.transition-text { position: relative; font-family: 'Oranienbaum', serif; font-size: clamp(2rem, 6vw, 3.2rem); color: #333; text-align: center; line-height: 1.45; max-width: 680px; width: 90%; min-height: 3.5em; padding: 0 30px; box-sizing: border-box; }
.trans-line { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; font-family: 'Oranienbaum', serif; opacity: 0; will-change: opacity; text-align: center; }
.trans-line-emphasis { font-size: 1.08em; letter-spacing: 2px; }
#transition-screen.is-active { justify-content: flex-start; align-items: center; padding-bottom: 0; }
#transition-screen.is-active .transition-text { position: fixed; left: 50%; top: var(--journey-text-top, auto); transform: translate(-50%, -20px); z-index: 2020; width: 90%; max-width: 680px; }
#transition-screen.is-active .trans-line { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; text-align: center; }

body.journey-trans-demo #three-canvas, body.journey-trans-demo #svg-canvas { z-index: 2005; }
body.journey-trans-demo #label-layer { z-index: 2006; }
body.journey-trans-spin #label-layer, body.journey-trans-spin #label-layer .label { pointer-events: none !important; cursor: default; }
body.journey-trans-demo #transition-screen.is-active .transition-text { z-index: 2020; position: fixed; }
body.journey-trans-demo #journey-instruction { opacity: 0 !important; animation: none !important; }

@media (min-width: 769px) { .transition-text { font-size: clamp(1.45rem, 2.2vw, 2rem); min-height: 3em; } }

.trans-spin-demo { position: fixed; top: 38%; left: 50%; width: min(280px, 74vw); height: min(110px, 26vw); transform: translate(-50%, -50%); z-index: 2007; opacity: 0; pointer-events: none; }
.trans-select-cursor { position: fixed; z-index: 2008; opacity: 0; pointer-events: none; transform: translate(-4px, -4px); color: #333; filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.9)); }
.trans-select-cursor .material-symbols-outlined { font-size: 28px; animation: trans-select-tap 1.2s ease-in-out infinite; }
@keyframes trans-select-tap { 0%, 100% { transform: scale(1); } 45% { transform: scale(0.82); } 60% { transform: scale(1.05); } }
.label.label-demo-highlight { border-color: #222 !important; background: #fff !important; box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.12), 0 4px 14px rgba(0, 0, 0, 0.12); transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(1.06) !important; z-index: 10; }
.label.label-demo-highlight.left-side { border-right-width: 3px !important; border-right-color: #222 !important; }
.label.label-demo-highlight.right-side { border-left-width: 3px !important; border-left-color: #222 !important; }
.t-inter-small { font-family: 'Inter', sans-serif; font-size: 0.45em; letter-spacing: 1px; font-weight: 300; vertical-align: baseline; }
.trans-spacer { display: block; height: 0.8em; }
.btn-text { font-family: 'Inter', sans-serif; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; }

     /* --- TIMELINE STYLES --- */
    .timeline-container { 
width: 100%; 
max-width: 320px; 
margin: 10px auto 40px; 
display: flex; 
flex-direction: column; 
box-sizing: border-box; 
    }

    /* Base Item Style */
    .timeline-item { 
display: flex; 
align-items: stretch; 
width: 100%; 
opacity: 1;
transform: none;
    }

    #tab-timeline.active .timeline-item {
opacity: 0;
transform: translateY(20px);
animation: timelineFadeInUp 0.6s ease forwards;
    }

    /* Distribute equal space to both sides to center the timeline node */
    .timeline-icon, 
    .timeline-content {
flex: 1; 
    }

    /* Odd Items (1, 3, 5) - Default: Icon Left, Content Right */
    .timeline-icon { 
display: flex; 
justify-content: flex-end; 
padding-top: 2px; 
color: #555; 
    }
    
    .timeline-icon .material-symbols-outlined { 
font-size: 1.3rem; 
    }

    .timeline-node { 
width: 20px; 
display: flex; 
flex-direction: column; 
align-items: center; 
justify-content: flex-start; 
margin: 0 15px; 
flex-shrink: 0;
    }

    .timeline-dot { 
width: 7px; 
height: 7px; 
background-color: #333; 
border-radius: 50%; 
margin: 8px auto 0 auto; 
align-self: center; 
z-index: 2; 
    }

    .timeline-line { 
width: 1px; 
background-color: #ddd; 
flex-grow: 1; 
margin: 0 auto -8px auto; 
align-self: center; 
z-index: 1; 
    }

    .timeline-item:last-child .timeline-line { 
display: none; 
    }

    .timeline-content { 
padding-bottom: 80px; 
display: flex; 
flex-direction: column; 
justify-content: flex-start; 
text-align: left; 
    }

    .timeline-item:last-child .timeline-content { 
padding-bottom: 0; 
    }

    /* Even Items (2, 4) - Zigzag: Content Left, Icon Right */
    .timeline-item:nth-child(even) {
flex-direction: row-reverse;
    }

    /* Align icon to face the center node for even items */
    .timeline-item:nth-child(even) .timeline-icon {
justify-content: flex-start;
    }

    /* Align text to face the center node for even items */
    .timeline-item:nth-child(even) .timeline-content {
text-align: right;
align-items: flex-end;
    }

    /* Typography */
    .timeline-time { 
font-family: 'Oranienbaum', serif; 
font-size: 1.2rem; 
color: #333; 
margin-bottom: 6px; 
letter-spacing: 1px; 
line-height: 1; 
    }

    .timeline-desc { 
font-family: 'Inter', sans-serif; 
font-size: 0.75rem; 
color: #666; 
letter-spacing: 1.5px; 
text-transform: lowercase; 
    }

    /* --- ANIMATION KEYFRAMES & DELAYS --- */
    @keyframes timelineFadeInUp {
0% { 
    opacity: 0; 
    transform: translateY(20px); 
}
100% { 
    opacity: 1; 
    transform: translateY(0); 
}
    }

    /* Sequential cascading effect delays */
    #tab-timeline.active .timeline-item:nth-child(1) { animation-delay: 0.1s; }
    #tab-timeline.active .timeline-item:nth-child(2) { animation-delay: 0.3s; }
    #tab-timeline.active .timeline-item:nth-child(3) { animation-delay: 0.5s; }
    #tab-timeline.active .timeline-item:nth-child(4) { animation-delay: 0.7s; }
    #tab-timeline.active .timeline-item:nth-child(5) { animation-delay: 0.9s; }
    #tab-timeline.active .timeline-item:nth-child(6) { animation-delay: 1.1s; }

#guest-welcome { font-family: 'Inter', sans-serif; font-weight: 300; font-size: clamp(0.85rem, 2.6vw, 1.1rem); color: #555; letter-spacing: 2px; text-align: center; margin-bottom: 14px; }
#wedding-date { font-family: 'Inter', sans-serif; font-weight: 300; font-size: clamp(1rem, 4vw, 2.2rem); color: #222; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 20px; text-align: center; }
#countdown-container { display: flex; align-items: center; gap: 8px; color: #333; z-index: 2002; margin-bottom: 40px; }
.countdown-block { display: flex; flex-direction: column; align-items: center; min-width: 50px; }
.number { font-family: 'Oranienbaum', serif; font-size: clamp(2.5rem, 10vw, 4.5rem); line-height: 1; }
.separator { font-size: 1.5rem; padding-top: 0; font-weight: 300; }
.label-text { margin-top: 8px; font-size: 0.6rem; letter-spacing: 1px; text-transform: uppercase; color: #666; }
.ceremony-text { font-family: 'Oranienbaum', serif; font-size: 1.4rem; letter-spacing: 2px; color: #333; margin-bottom: 20px; text-align: center; text-transform: uppercase; }
.at-text { font-family: 'Oranienbaum', serif; font-size: 1.2rem; letter-spacing: 2px; color: #666; margin-bottom: 25px; text-align: center; }
.venue-container { display: flex; align-items: center; justify-content: center; gap: 20px; }
.venue-logo-mark { display: flex; width: 105px; min-width: 105px; align-items: center; }
.venue-logo-svg { display: block; width: 100%; height: auto; }
.venue-details { font-family: 'Inter', sans-serif; font-size: 0.8rem; line-height: 2.0; color: #444; text-align: left; letter-spacing: 1px; text-transform: uppercase; }

#svg-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
#three-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; outline: none; cursor: grab; }
#three-canvas:active { cursor: grabbing; }
.label-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; opacity: 0; }

/* Revised Padding & Height for Labels */
.label { position: absolute; padding: 4px 14px; font-size: 11px; letter-spacing: 1px; background: rgba(255, 255, 255, 0.9); border: 1px solid #ccc; pointer-events: auto; cursor: pointer; transition: all 0.4s ease; text-transform: uppercase; width: auto; color: #444; white-space: nowrap; text-align: center; min-width: 60px; box-sizing: border-box; display: block; transform: translate(var(--fx, 0px), var(--fy, 0px)); }
.left-side { text-align: center; border: 1px solid #ccc; border-right: 3px solid #555; }
.right-side { text-align: center; border: 1px solid #ccc; border-left: 3px solid #555; }

#modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; background: #000; z-index: 1000; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.6s ease; }
#modal.preparing { display: flex; opacity: 0; pointer-events: none; z-index: 4500; }
#modal.active { display: flex; opacity: 1; z-index: 4500; }
#modal::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1001; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.7) 100%); }
/* Journey videos keep their own shape and fill the screen in one direction:
   portrait clips use the full height (black bars either side), landscape clips the
   full width (bars above and below). The place name and controls float on top,
   over the gradient from #modal::after. */
#modal-video {
    position: relative; z-index: 1;
    width: min(100vw, calc(100dvh * var(--video-ratio, 1.7778)));
    height: auto; aspect-ratio: var(--video-ratio, 16 / 9);
    max-height: 100dvh;
    object-fit: contain; background: #000;
    transition: opacity 0.3s ease;
}
#modal-video.is-measuring { opacity: 0; }
/* Close (top right) and previous/next (edges) over the journey video. */
#modal .modal-close { position: fixed; top: calc(18px + env(safe-area-inset-top, 0px)); right: 18px; z-index: 5002; }
#modal .modal-nav {
    position: fixed; top: 50%; transform: translateY(-50%); z-index: 5002;
    width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
#modal .modal-nav:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-50%) scale(1.06); }
#modal .modal-nav .material-symbols-outlined { font-size: 32px; }
#modal .modal-nav, #modal .modal-close { opacity: 0.9; border: 1px solid rgba(255, 255, 255, 0.35); }
#modal .modal-close { width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, 0.35); }
#modal .modal-nav .material-symbols-outlined, #modal .modal-close .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}
#modal .modal-nav-prev { left: max(16px, env(safe-area-inset-left, 0px)); }
#modal .modal-nav-next { right: max(16px, env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) {
    #modal .modal-nav { width: 44px; height: 44px; background: rgba(0, 0, 0, 0.3); }
    #modal .modal-close { width: 44px; height: 44px; }
    #modal .modal-nav .material-symbols-outlined { font-size: 28px; }
    #modal .modal-nav-prev { left: 6px; }
    #modal .modal-nav-next { right: 6px; }
    #modal .modal-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 10px; }
}
#modal-header { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 3002; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 15px; text-align: center; pointer-events: none; width: 100%; }
#modal-header .header-main { color: #fff; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); font-family: 'Oranienbaum', serif; font-size: 2rem; }
#modal-header .header-sub { color: rgba(255, 255, 255, 0.9); text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); opacity: 1; border: none; padding: 0; }
.modal-separator { width: 1px; height: 18px; background-color: rgba(255, 255, 255, 0.6); box-shadow: 0 0 3px rgba(0, 0, 0, 0.3); }

/* Modal Top Actions Adjustments */
#modal-top-actions { position: fixed; top: auto; right: auto; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 5001; display: none; pointer-events: auto; flex-direction: row; align-items: center; justify-content: center; gap: 20px; padding: 4px 10px; border-radius: 0; background: transparent; box-shadow: none; width: auto; }
#modal.active #modal-top-actions { display: flex; }
.modal-action-btn { background: transparent; border: none; color: #fff; cursor: pointer; opacity: 0.8; padding: 8px; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; transition: opacity 0.3s ease, transform 0.3s ease; box-sizing: border-box; }
.modal-action-btn:hover { opacity: 1; transform: scale(1.1); }
.modal-action-btn .material-symbols-outlined { font-size: 26px; }

/* Stop Button Circle Style */
.circle-btn { border: 1.5px solid #ffffff !important; border-radius: 50%; width: 48px; height: 48px; background: transparent; margin: 0 5px; }
.circle-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); }

.skip-text { font-family: 'Inter', sans-serif; font-size: 0.8rem; letter-spacing: 2px; font-weight: 300; pointer-events: none; }

#custom-alert { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 9999; display: none; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; }
.alert-box { background: white; padding: 25px; border-radius: 10px; text-align: center; max-width: 340px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.alert-msg { font-family: 'Inter', sans-serif; font-size: 0.95rem; line-height: 1.6; color: #333; margin-bottom: 20px; }
.alert-btn { padding: 10px 25px; background: #333; color: #fff; border: none; cursor: pointer; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; transition: background 0.3s; }
.alert-btn:hover { background: #555; }

@media (max-width: 768px) {
    #persistent-header { top: 20px; gap: 8px; }
    .header-logo-container { font-size: 1.8rem; }
    #modal-header { top: 60px !important; gap: 8px; }
    #modal-top-actions { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); gap: 14px; max-width: calc(100vw - 24px); }
    #modal-top-actions .modal-action-btn { padding: 10px; }
    #modal-top-actions .modal-action-btn .material-symbols-outlined { font-size: 1.4rem; }
    .circle-btn { width: 44px; height: 44px; margin: 0; }
    .header-sub { font-size: 0.65rem; letter-spacing: 1.5px; }
    #bottom-nav { width: 280px; }
    /* Shift bottom navigation above the stop button menu in mobile video mode */
    body.video-mode.nav-visible #bottom-nav { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
    #journey-instruction { font-size: 0.72rem; }
    #final-screen { top: 88px; bottom: calc(128px + env(safe-area-inset-bottom, 0px)); padding: 0; }
    .sticky-tab-container { padding: 12px 20px 0; }
    .final-content-wrapper { padding: 16px 20px 20px; }
    .nav-item { font-size: 0.58rem; padding: 14px 6px; }
    .wedding-tabs { gap: 2px; }
    .wedding-tab { flex: 1 1 25%; padding: 12px 2px; font-size: 0.57rem; letter-spacing: 0.7px; }
    .accommodation-wrap { padding: 0 2px; }
    .venue-stay { padding-top: 2px; }
    .stay-heading { gap: 16px; }
    .stay-heading img { width: 62px; }
    .stay-heading > div { align-items: flex-start; flex-direction: column; gap: 5px; }
    .stay-heading h2 { font-size: 2rem; }
    .venue-stay-image { aspect-ratio: 16 / 7; margin-bottom: 18px; }
    .alternative-stays-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .alternative-stays-heading p { text-align: left; }
    .stay-actions { gap: 12px; }
    .stay-row { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
    .stay-row-image { width: 104px; height: 88px; }
    .stay-row-heading { gap: 8px; }
    .stay-row h4 { font-size: 1.05rem; }
    .stay-meta { flex-direction: column; gap: 1px; }
    .btn-row { flex-wrap: wrap; }
    .title-layout { font-size: clamp(4.2rem, 15.6vw, 7rem) !important; }
    .transition-text { font-size: clamp(1.6rem, 6.5vw, 2.6rem) !important; line-height: 1.45; padding: 0 24px; min-height: 4em; }
    #back-home-btn { bottom: 20px; right: 20px; width: 40px; height: 40px; }
#wedding-scrollbar-container { top: 144px; bottom: calc(128px + env(safe-area-inset-bottom, 0px)); right: 8px; width: 4px; }

/* --- AWWWARDS BADGE MOBILE SCALE --- */
#awwwards svg {
    transform: scale(0.75);
    transform-origin: right center;
}
    }

/* Accommodation-specific phone and tablet refinements. */
@media (max-width: 359px) {
    .stay-row { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
    .stay-row-image { width: 92px; height: 82px; }
    .stay-row h4 { font-size: 1rem; }
    .stay-budget { letter-spacing: 1px; }
}

@media (min-width: 600px) and (max-width: 768px) {
    .wedding-tabs { gap: 14px; }
    .wedding-tab { padding-inline: 6px; font-size: 0.7rem; letter-spacing: 1.4px; }
    .accommodation-wrap { padding: 0; }
    .stay-heading { gap: 28px; }
    .stay-heading > div { align-items: baseline; flex-direction: row; gap: 7px 14px; }
    .stay-heading h2 { font-size: 2.55rem; }
    .stay-heading img { width: 76px; }
    .venue-stay-image { aspect-ratio: 12 / 5; margin-bottom: 22px; }
    .alternative-stays-heading { align-items: baseline; flex-direction: row; gap: 20px; }
    .alternative-stays-heading p { text-align: right; }
    .stay-row { grid-template-columns: 152px minmax(0, 1fr); gap: 20px; }
    .stay-row-image { width: 152px; height: 100px; }
    .stay-row-heading { gap: 18px; }
    .stay-row h4 { font-size: 1.15rem; }
    .stay-meta { flex-direction: row; gap: 3px 14px; }
}

/* --- RSVP STYLES --- */
.btn-row { display: flex; gap: 10px; margin-top: 30px; align-items: center; justify-content: center; }
#gallery-detail-btn, #rsvp-btn { padding: 12px 20px; min-height: 44px; background: transparent; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s; box-sizing: border-box; }
#gallery-detail-btn { border: 1px solid #888; color: #555; }
#gallery-detail-btn:hover { background: #333; color: #fff; border-color: #333; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
#rsvp-btn { background: #333; border: 1px solid #333; color: #fff; }
#rsvp-btn:hover { background: transparent; color: #333; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }

#rsvp-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 5500; display: flex; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s; }
#rsvp-overlay.active { opacity: 1; visibility: visible; }
.rsvp-card { background: #fff; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; padding: 40px 35px; position: relative; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); transform: translateY(20px); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease; }
#rsvp-overlay.active .rsvp-card { transform: translateY(0); opacity: 1; }
.rsvp-card::-webkit-scrollbar { width: 3px; }
.rsvp-card::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
/* Replace the existing .rsvp-close-btn and .rsvp-close-btn:hover with the code below */
.rsvp-close-btn { position: absolute; top: 8px; right: 8px; background: none; border: none; cursor: pointer; color: #bbb; padding: 10px; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; transition: color 0.3s; box-sizing: border-box; }
.rsvp-close-btn:hover { color: #333; }
.rsvp-title { font-family: 'Oranienbaum', serif; font-size: 2rem; letter-spacing: 6px; text-align: center; color: #222; margin-bottom: 8px; }
.rsvp-subtitle { font-family: 'Inter', sans-serif; font-size: 0.6rem; color: #999; text-align: center; letter-spacing: 1px; margin-bottom: 30px; }
.rsvp-field { margin-bottom: 22px; }
.rsvp-field label { display: block; font-family: 'Inter', sans-serif; font-size: 0.6rem; letter-spacing: 1.5px; text-transform: uppercase; color: #999; margin-bottom: 6px; }
.rsvp-field input[type="text"], .rsvp-field input[type="email"], .rsvp-field textarea, .rsvp-field select { width: 100%; padding: 8px 0; border: none; border-bottom: 1px solid #ddd; font-family: 'Inter', sans-serif; font-size: 0.85rem; color: #333; background: transparent; outline: none; transition: border-color 0.3s; box-sizing: border-box; }
.rsvp-field input:focus, .rsvp-field textarea:focus, .rsvp-field select:focus { border-bottom-color: #333; }
.rsvp-field textarea { resize: vertical; min-height: 60px; }
.rsvp-field select { cursor: pointer; }
.rsvp-field-label { font-family: 'Inter', sans-serif; font-size: 0.6rem; letter-spacing: 1.5px; text-transform: uppercase; color: #999; margin-bottom: 12px; }
.rsvp-radio-group { display: flex; gap: 10px; margin-bottom: 22px; }
.rsvp-radio { flex: 1; position: relative; cursor: pointer; }
.rsvp-radio input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.rsvp-radio span { display: block; text-align: center; padding: 10px 4px; border: 1px solid #ddd; font-family: 'Inter', sans-serif; font-size: 0.7rem; letter-spacing: 0.5px; text-transform: uppercase; color: #888; transition: all 0.3s; white-space: nowrap; }
.rsvp-radio:hover span { border-color: #999; }
.rsvp-radio input[type="radio"]:checked+span { background: #333; border-color: #333; color: #fff; }
.rsvp-submit-btn { width: 100%; padding: 12px; background: #333; border: 1px solid #333; color: #fff; cursor: pointer; margin-top: 8px; transition: background 0.3s, transform 0.3s; }
.rsvp-submit-btn:hover { background: #555; border-color: #555; transform: translateY(-1px); }
.rsvp-submit-btn:disabled { background: #aaa; border-color: #aaa; cursor: not-allowed; transform: none; }
#rsvp-success { text-align: center; padding: 20px 0; }
.rsvp-success-icon { margin-bottom: 15px; color: #333; }
.rsvp-success-icon .material-symbols-outlined { font-size: 3rem; }
.rsvp-success-title { font-family: 'Oranienbaum', serif; font-size: 1.8rem; color: #222; margin-bottom: 10px; letter-spacing: 2px; }
.rsvp-success-msg { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: #888; line-height: 1.6; margin-bottom: 25px; }
.rsvp-done-btn { width: 100%; padding: 12px; background: transparent; border: 1px solid #333; color: #333; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; transition: all 0.3s; }
.rsvp-done-btn:hover { background: #333; color: #fff; }
.rsvp-privacy-notice { font-family: 'Inter', sans-serif; font-size: 0.6rem; color: #999; text-align: center; margin-top: 14px; letter-spacing: 0.5px; line-height: 1.4; }
body.dark-theme .rsvp-privacy-notice { color: #888; }

@media (max-width: 768px) {
    .rsvp-card { padding: 30px 25px; max-height: 85vh; }
    .rsvp-radio span { font-size: 0.65rem; padding: 8px 2px; }
}

/* --- FAQ STYLES --- */
.faq-title { font-family: 'Oranienbaum', serif; font-size: 1.4rem; letter-spacing: 2px; color: #333; margin-bottom: 30px; text-align: center; text-transform: uppercase; }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-question { font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500; color: #222; padding: 18px 0; min-height: 44px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; background: transparent; border: none; width: 100%; text-align: left; box-sizing: border-box; }
.faq-question:hover { color: #555; }
.faq-icon { font-size: 1.2rem !important; transition: transform 0.3s ease; color: #666; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: #555; line-height: 1.6; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease; opacity: 0; }
.faq-item.active .faq-answer { max-height: 500px; padding-bottom: 18px; opacity: 1; }

/* --- GALLERY STYLES --- */
#gallery-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: transparent; z-index: 2001; display: flex; flex-direction: column; align-items: center; visibility: hidden; opacity: 0; overflow: hidden; padding: 150px 20px 0; box-sizing: border-box; transition: opacity 1s ease, visibility 1s; }
body.gallery-mode { background: #000 !important; }
body.gallery-mode .nav-item { color: rgba(255, 255, 255, 0.6); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
body.gallery-mode .nav-item.active { color: #ffffff !important; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); }
body.gallery-mode .nav-line-bg { background-color: rgba(255, 255, 255, 0.3); }
body.gallery-mode .nav-line-fill { background-color: #ffffff !important; box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
body.gallery-mode .nav-dot { background-color: rgba(255, 255, 255, 0.3); }
body.gallery-mode .nav-dot.active { background-color: #ffffff !important; box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
body.gallery-mode .control-btn { color: rgba(255, 255, 255, 0.8); }
body.gallery-mode .control-btn:hover { color: #fff; }
body.gallery-mode .control-separator { background-color: rgba(255, 255, 255, 0.5); }
body.gallery-mode #bottom-nav, body.gallery-mode #controls-container, body.gallery-mode #back-home-btn { opacity: 0 !important; pointer-events: none !important; display: none !important; }
body.gallery-mode #persistent-header .header-sub { color: rgba(255, 255, 255, 0.7); }
body.gallery-mode #persistent-header .hl-josie, body.gallery-mode #persistent-header .hl-ashley, body.gallery-mode #persistent-header .hl-and { color: #fff; }
.gallery-title { font-family: 'Oranienbaum', serif; font-size: clamp(1.4rem, 4vw, 2rem); color: #fff; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 6px; }
.gallery-subtitle { font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 300; color: rgba(255, 255, 255, 0.5); letter-spacing: 1px; margin-bottom: 30px; }
.gallery-upload-area { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; justify-content: center; }
#gallery-upload-btn, .gallery-action-btn { display: flex; align-items: center; gap: 6px; padding: 10px 20px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); cursor: pointer; color: rgba(255, 255, 255, 0.8); font-family: 'Inter', sans-serif; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s; }
#gallery-upload-btn:hover, .gallery-action-btn:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; color: #fff; transform: translateY(-1px); }
#gallery-upload-btn:disabled, .gallery-action-btn:disabled { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.4); cursor: not-allowed; transform: none; }
#gallery-upload-btn .material-symbols-outlined, .gallery-action-btn .material-symbols-outlined { font-size: 16px; }
.upload-status { font-family: 'Inter', sans-serif; font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.5px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px; width: 100%; max-width: 960px; }
.gallery-grid-item { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; background: rgba(255, 255, 255, 0.05); border-radius: 2px; opacity: 0; transform: translateY(20px) scale(0.96); transition: opacity 0.6s ease, transform 0.6s ease; }
.gallery-grid-item.visible { opacity: 1; transform: translateY(0) scale(1); }
.gallery-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid-item:hover img { transform: scale(1.05); }
.gallery-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: rgba(255, 255, 255, 0.35); }
.gallery-empty .material-symbols-outlined { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.gallery-empty p { font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 300; letter-spacing: 0.5px; text-align: center; line-height: 1.6; color: rgba(255, 255, 255, 0.4); }
.gallery-spinner { width: 28px; height: 28px; border: 2px solid rgba(255, 255, 255, 0.1); border-top-color: rgba(255, 255, 255, 0.5); border-radius: 50%; animation: gallery-spin 0.8s linear infinite; margin-bottom: 14px; }
@keyframes gallery-spin { to { transform: rotate(360deg); } }

#gallery-lightbox { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.97); z-index: 5000; display: none; flex-direction: column; justify-content: center; align-items: center; }
#gallery-lightbox.active { display: flex; }
.lightbox-close { 
    display: flex; position: fixed; top: 25px; right: 25px; bottom: auto; left: auto; transform: none; 
    width: 45px; height: 45px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; 
    justify-content: center; align-items: center; cursor: pointer; 
    z-index: 5001; border: 1px solid rgba(255, 255, 255, 0.3); 
    opacity: 1; transition: all 0.3s ease; backdrop-filter: blur(5px); 
}
.lightbox-close .material-symbols-outlined { color: #ffffff !important; font-size: 24px; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.1); }
.lightbox-content { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 900px; flex: 1; min-height: 0; padding: 50px 70px 0; margin: 0 auto; box-sizing: border-box; }
.lightbox-content img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s ease, background 0.3s ease, transform 0.3s ease; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 5001; }
#gallery-lightbox.active .lightbox-nav { opacity: 0.7; }
.lightbox-nav:hover { opacity: 1; background: rgba(255, 255, 255, 0.15); transform: translateY(-50%) scale(1.08); }
.lightbox-nav:active { transform: translateY(-50%) scale(0.95); }
.lightbox-nav .material-symbols-outlined { font-size: 24px; font-weight: 300; }
.lightbox-prev { left: 14px; } .lightbox-next { right: 14px; }
.lightbox-bottom { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 12px 0 20px; flex-shrink: 0; }
.lightbox-counter { font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 300; color: rgba(255, 255, 255, 0.3); letter-spacing: 1px; }
.lightbox-download, .lightbox-delete { padding: 8px 20px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.6); cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; transition: background 0.3s, border-color 0.3s, color 0.3s; display: flex; align-items: center; gap: 6px; }
.lightbox-download:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.lightbox-delete:hover { background: rgba(255, 50, 50, 0.2); border-color: rgba(255, 50, 50, 0.8); color: #ff6b6b; }
.lightbox-download .material-symbols-outlined, .lightbox-delete .material-symbols-outlined { font-size: 14px; }

@media (max-width: 768px) {
    .lightbox-close { 
        top: 20px; right: 20px; bottom: auto; left: auto; transform: none; 
        width: 40px; height: 40px; 
    }
    .lightbox-close:hover { transform: scale(1.1); }
    .lightbox-content { padding: 44px 48px 0; }
    .lightbox-nav { width: 36px; height: 36px; }
    .lightbox-nav .material-symbols-outlined { font-size: 20px; }
    .lightbox-prev { left: 6px; } .lightbox-next { right: 6px; }
    .lightbox-bottom { padding: 10px 0 60px; gap: 14px; }
    .lightbox-download, .lightbox-delete { padding: 7px 16px; font-size: 0.55rem; }
    #gallery-screen { padding: 120px 12px 0; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 3px; }
    .gallery-title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
    .gallery-upload-area { gap: 8px; }
    #gallery-upload-btn, .gallery-action-btn { padding: 9px 14px; font-size: 0.65rem; }
}

/* --- DARK MODE STYLES --- */
body.dark-theme { background: radial-gradient(circle, #1a1a1a 0%, #0d0d0d 100%) !important; color: #eee; }
body.dark-theme #interactive-preloader { background-color: #111; }
body.dark-theme #preloader-svg .st0 { fill: #eee; }
body.dark-theme .header-logo-container { color: #eee; }
body.dark-theme .header-sub { color: #aaa; border-left-color: #444; }
body.dark-theme #persistent-header:hover .header-sub { color: #eee; }
body.dark-theme .nav-item { color: #777; }
body.dark-theme .nav-item.active { color: #eee; }
body.dark-theme .nav-line-bg { background-color: #444; }
body.dark-theme .nav-line-fill { background-color: #eee; }
body.dark-theme .nav-dot { background-color: #444; }
body.dark-theme .nav-dot.active { background-color: #eee; }
body.dark-theme #transition-screen, body.dark-theme #final-transition-screen { background: linear-gradient(to bottom, rgba(17, 17, 17, 0.94) 0%, rgba(17, 17, 17, 0.12) 26%, rgba(17, 17, 17, 0.08) 58%, rgba(17, 17, 17, 0.92) 80%, rgba(17, 17, 17, 0.98) 100%); }
body.dark-theme .transition-text { color: #eee; }
body.dark-theme .trans-select-cursor { color: #eee; }
body.dark-theme #guest-welcome { color: #bbb; }
body.dark-theme #wedding-date, body.dark-theme .ceremony-text, body.dark-theme #countdown-container, body.dark-theme .number, body.dark-theme .separator { color: #eee; }
body.dark-theme .label-text { color: #aaa; }
body.dark-theme .venue-logo-svg { filter: invert(1); }
body.dark-theme .venue-details, body.dark-theme .schedule-text, body.dark-theme .at-text { color: #ccc; }
body.dark-theme .sticky-tab-container { background: transparent; }
body.dark-theme .wedding-tab { color: #777; }
body.dark-theme .wedding-tab.active { color: #eee; }
body.dark-theme .wedding-tab::after { background: #eee; }
body.dark-theme .timeline-icon { color: #aaa; }
body.dark-theme .timeline-dot { background-color: #eee; }
body.dark-theme .timeline-line { background-color: #444; }
body.dark-theme .timeline-time { color: #eee; }
body.dark-theme .timeline-desc { color: #aaa; }
body.dark-theme .faq-title { color: #eee; }
body.dark-theme .faq-item { border-bottom-color: #444; }
body.dark-theme .faq-question { color: #eee; }
body.dark-theme .faq-question:hover { color: #ccc; }
body.dark-theme .faq-icon { color: #aaa; }
body.dark-theme .faq-answer { color: #ccc; }
body.dark-theme .accommodation-wrap { color: #ddd; }
body.dark-theme .stay-heading h2, body.dark-theme .alternative-stays-heading h3 { color: #eee; }
body.dark-theme .stay-heading img { filter: invert(1); }
body.dark-theme .stay-type, body.dark-theme .venue-stay address, body.dark-theme .alternative-stays-heading p, body.dark-theme .stay-meta, body.dark-theme .stay-note { color: #999; }
body.dark-theme .stay-intro { color: #ddd; }
body.dark-theme .stay-booking, body.dark-theme .stay-row-body > p { color: #bbb; }
body.dark-theme .stay-book-link { background: #eee; color: #111; }
body.dark-theme .stay-book-link:hover { background: #ccc; }
body.dark-theme .stay-phone-link, body.dark-theme .stay-row h4 a, body.dark-theme .stay-budget { color: #ddd; }
body.dark-theme .stay-phone-link:hover, body.dark-theme .stay-row h4 a:hover { color: #fff; }
body.dark-theme #gallery-detail-btn { color: #ccc; border-color: #666; }
body.dark-theme #gallery-detail-btn:hover { background: #eee; color: #111; border-color: #eee; }
body.dark-theme #rsvp-btn { background: #eee; color: #111; border-color: #eee; }
body.dark-theme #rsvp-btn:hover { background: transparent; color: #eee; }
body.dark-theme #pl-skip-btn { color: #aaa; border-color: #444; }
body.dark-theme #pl-skip-btn:hover { color: #eee; border-color: #777; }
body.dark-theme .rsvp-card { background: #1a1a1a; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
body.dark-theme .rsvp-title, body.dark-theme .rsvp-success-title { color: #eee; }
body.dark-theme .rsvp-subtitle, body.dark-theme .rsvp-success-msg { color: #aaa; }
body.dark-theme .rsvp-field input, body.dark-theme .rsvp-field textarea, body.dark-theme .rsvp-field select { color: #eee; border-bottom-color: #444; }
body.dark-theme .rsvp-field input:focus, body.dark-theme .rsvp-field textarea:focus, body.dark-theme .rsvp-field select:focus { border-bottom-color: #eee; }
body.dark-theme .rsvp-radio span { border-color: #444; color: #aaa; }
body.dark-theme .rsvp-radio:hover span { border-color: #777; }
body.dark-theme .rsvp-radio input[type="radio"]:checked+span { background: #eee; border-color: #eee; color: #111; }
body.dark-theme .rsvp-submit-btn { background: #eee; color: #111; border-color: #eee; }
body.dark-theme .rsvp-submit-btn:hover { background: #ccc; border-color: #ccc; }
body.dark-theme .rsvp-done-btn { color: #eee; border-color: #eee; }
body.dark-theme .rsvp-done-btn:hover { background: #eee; color: #111; }
body.dark-theme .rsvp-success-icon { color: #eee; }
body.dark-theme .label { background: rgba(17, 17, 17, 0.9); color: #ccc; }
body.dark-theme .left-side { border-color: #444; border-right-color: #777; }
body.dark-theme .right-side { border-color: #444; border-left-color: #777; }
body.dark-theme .label.label-demo-highlight { border-color: #eee !important; background: #222 !important; color: #eee; box-shadow: 0 0 0 2px rgba(238, 238, 238, 0.12), 0 4px 14px rgba(255, 255, 255, 0.12); }
body.dark-theme #svg-canvas line { stroke: #aaa; }
body.dark-theme #wedding-scrollbar-container { background: rgba(255, 255, 255, 0.08); }
body.dark-theme #wedding-scrollbar-fill { background: rgba(255, 255, 255, 0.4); }
body.dark-theme .alert-box { background: #1a1a1a; }
body.dark-theme .alert-msg { color: #eee; }
body.dark-theme .alert-btn { background: #eee; color: #111; }
body.dark-theme .alert-btn:hover { background: #ccc; }
body.dark-theme #back-home-btn { background: rgba(17, 17, 17, 0.8); border-color: #444; color: #eee; }
body.dark-theme #back-home-btn:hover { background: #222; color: #fff; }
body.dark-theme:not(.intro-mode):not(.gallery-mode) .control-btn { color: #ccc; }
body.dark-theme:not(.intro-mode):not(.gallery-mode) .control-btn:hover { color: #fff; }
body.dark-theme:not(.intro-mode):not(.gallery-mode) .control-separator { background-color: #444; }

#gallery-close-btn { 
    display: flex; position: fixed; top: 25px; right: 25px; bottom: auto; left: auto; transform: none; 
    width: 45px; height: 45px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; 
    justify-content: center; align-items: center; cursor: pointer; z-index: 4000; 
    border: 1px solid rgba(255, 255, 255, 0.3); transition: all 0.3s ease; 
    opacity: 0; visibility: hidden; backdrop-filter: blur(5px); 
}
body.gallery-mode #gallery-close-btn { opacity: 1; visibility: visible; }
#gallery-close-btn .material-symbols-outlined { color: #ffffff !important; font-size: 24px; }
#gallery-close-btn:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.1); }

@media (max-width: 768px) {
    #gallery-close-btn { top: 20px; right: 20px; width: 40px; height: 40px; }
}
