/* =========================================
   1. IMPORTS & VARIABLES
   ========================================= */
/* Consolidated Import. 
   Note: Range syntax (e.g. 300..700) ensures all necessary weights are loaded.
*/
@import url('https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Ms+Madi&family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Imperial+Script&family=League+Script&family=Meddon&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Petit+Formal+Script&family=Pinyon+Script&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap" rel="stylesheet');

:root {
    /* --- COLOR PALETTE --- */
    --color-bg: #f9f7f1;
    --color-text: #4a4a4a;
    --current-sky-color: #5d7a53; /* Default Sage Green */
    
/* --- FONT STACK VARIABLES --- */
    /* Main Body Text */
    --font-body: 'Montserrat', sans-serif;
    
    /* Headings & Formal Text */
    --font-serif: 'Cormorant Garamond', serif;
    
    /* Display Headings (Schedule titles, etc) */
    --font-display: 'Playfair Display', serif;
    
    /* Elegant Script (Accents, Dates, Vine) */
    --font-script: 'Allura', cursive;
    
    /* Organic/Messy Handwriting (Notes, Stars) */
    --font-hand: 'Ms Madi', cursive;
    
    /* Typewriter (Storybook backing) */
    --font-mono: 'Courier New', Courier, monospace;

    /* --- MAP & LAYOUT VARIABLES --- */
    --map-pin-size: 8rem;
    --sky-saturation: 0.6;
    --book-height: 85vmin;
    --book-width: calc(var(--book-height) * 1.4);
    --anim-duration: 1.0s;
    --paper-color: #f8f1e0;
}

/* =========================================
   2. GLOBAL RESET & BASICS
   ========================================= */
* {
    box-sizing: border-box;
}

html {
    background-color: var(--color-bg);
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: clip;
    /* iOS Text Size Adjustment Fix */
    -webkit-text-size-adjust: 100%; 
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: clip;
    min-height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    /* iOS Font Smoothing for sharper text */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    position: relative;
}

.main {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
/* We explicitly override h1-h3 to use the Serif font variables.
   This overrides Tailwind's default sans-serif reset.
*/
h1, h2, h3, .font-serif {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Text with the watercolor gradient fill */
.watercolor-text {
    background: var(--current-sky-color, #5d7a53);
    -webkit-background-clip: text; /* Required for iOS/Safari */
    background-clip: text;
    -webkit-text-fill-color: transparent; /* Required for iOS/Safari */
    display: inline-block;
    transition: color 0.1s linear;
}

.watercolor-text-rsvp {
    color: #afc2c9 !important;
    display: inline-block;
    transition: color 0.1s linear;
}

/* Specific Section Headers (e.g., "When", "Where") */
section h2.text-5xl {
    font-family: var(--font-serif); /* Explicitly set to fix iOS bug */
    font-size: 3.25rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2.2rem;
}

section p, section div>p {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.01em;
    font-size: 1.125rem;
    line-height: 1.75;
}

section p.text-lg, section p.text-xl {
    font-size: 1.125rem;
}

.script-accent {
    font-family: var(--font-script);
    font-size: 2.75rem;
    letter-spacing: 0.02em;
}

.wedding-date-script {
    position: absolute;
    bottom: 6vh;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: rgb(199, 199, 213);
    letter-spacing: 0.0em;
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
    z-index: 5;
    text-align: center;
    width: 100%;
}

/* =========================================
   4. BACKGROUND TEXTURES
   ========================================= */
.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/paper-1.png'); 
    background-repeat: repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

/* =========================================
   5. SECTIONS & CONTAINERS
   ========================================= */
section {
    min-height: 80vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-right: 300px;
    padding-left: 2rem;
}

.content-section {
    width: 75vw;
    min-width: 60vw;
    max-width: 100%;
    min-height: auto;
    margin-bottom: 70vh;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
    padding-top: 10vh;
    padding-bottom: 10vh;
}

.content-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.content-box {
    background-color: #fffaeade;
    /* Webkit prefix masks for Safari/iOS support */
    -webkit-mask-box-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.1' numOctaves='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='5'/%3E%3C/filter%3E%3Crect x='5' y='5' width='390' height='190' fill='black' filter='url(%23noise)'/%3E%3C/svg%3E") 50 fill stretch;
    mask-border: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.1' numOctaves='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='5'/%3E%3C/filter%3E%3Crect x='5' y='5' width='390' height='190' fill='black' filter='url(%23noise)'/%3E%3C/svg%3E") 50 fill stretch;
    padding: 4rem;
    margin: 10px;
    position: relative;
    box-shadow: none;
    z-index: 99;
}

.content-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/cream-paper.png');
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    mix-blend-mode: multiply;
}

.content-box>* {
    position: relative;
    z-index: 1;
}

.content-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(ellipse at center, rgba(135, 168, 120, 0.2) 0%, rgba(249, 247, 241, 0) 70%);
    z-index: -1;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 1s ease;
}

.content-section.is-visible::before {
    opacity: 1;
}

/* =========================================
   6. SPECIFIC SECTION STYLES
   ========================================= */
#welcome {
    opacity: 1;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
    margin-bottom: 70vh;
}

#schedule-target .border-l-2 {
    border-color: #d1c9b8;
}

#schedule-target .absolute.w-6.h-6 {
    width: 1.25rem;
    height: 1.25rem;
    left: -2.6rem;
    top: 0.25rem;
    border-width: 3px;
}

/* Registry Buttons */
#registry-target a {
    border-radius: 28px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.25rem;
    padding: 0.55rem 0.75rem;
    border-width: 1px;
    background-color: var(--current-sky-color, #5d7a53);
    background: rgba(249, 247, 241, 0.1);
    transition: all 0.3s ease;
}

#registry-target a:hover {
    transform: translateY(-2px);
    background-color: var(--current-sky-color, #5d7a53);
    color: var(--color-bg);
}

#rsvp-target {
    margin-top: 35vh; /* Pushes the section down so the previous one clears */
}

/* RSVP Buttons */
#rsvp-target button {
    border-radius: 30px;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.75rem 2rem;
    background-color: #afc2c9;
}

#rsvp-target button:hover {
    background-color: #90b1bc;
}

.wedding-party-pics {
    display: flex;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    justify-content: center;
}

/* Paper Card for Schedule Details */
.paper-card {
    background-color: #f0e6d2;
    background-image: url("https://www.transparenttextures.com/patterns/rough-cloth.png");
    box-shadow: inset 0 0 40px rgba(92, 69, 42, 0.15), 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #bda88e;
    border-radius: 6px;
    margin-left: 1rem;
    margin-right: 1rem;
}

/* =========================================
   7. ANIMATIONS & CLOUDS
   ========================================= */
.watercolor-bg {
    position: absolute;
    top: -35vh;
    left: -20vw;
    width: 150vw;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(10px, 15px); }
    100% { transform: translate(0, 0); }
}

.floating-cloud {
    animation: float 8s ease-in-out infinite;
    z-index: 0;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
}

/* =========================================
   8. MAP PINS & TRAVEL
   ========================================= */
.map-pin .pin-circle {
    width: var(--map-pin-size);
    height: var(--map-pin-size);
    border-radius: 9999px;
    border: 2px solid white;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease;
}

.map-pin .pin-info {
    opacity: 1 !important;
    transform: translateX(-50%);
    left: 50%;
    pointer-events: none;
    z-index: 2;
}

.map-pin {
    transform: translate(-50%, -100%);
}

.map-pin:hover .pin-circle {
    transform: scale(1.15);
}

.pin-info {
    transform: translate(calc(-50% + var(--label-shift-x, 0px)), var(--label-shift-y, 0px));
}

.skyline-photo {
    margin-top: -10rem;
    margin-left: -4rem;
    margin-right: -4rem;
    margin-bottom: 0rem;
}

/* Accordion Logic */
.accordion-drawer {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    text-align: left;
    outline: none;
    z-index: 1000 !important;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--current-sky-color, #5d7a53);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    opacity: 0;
}

.accordion-panel.is-open {
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.6s ease-in, opacity 0.4s ease-in;
}

.accordion-trigger.is-active .accordion-icon {
    transform: rotate(45deg);
}

.links {
    color: var(--current-sky-color, #5d7a53);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 400;
}

/* =========================================
   9. STORYBOOK PREVIEW CARD
   ========================================= */
.story {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.story.is-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#storybook-preview {
    width: 320px;
    height: 450px;
    margin: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    text-align: center;
    background-color: #f0e6d2;
    background-image: url("https://www.transparenttextures.com/patterns/rough-cloth.png");
    box-shadow: inset 0 0 30px rgba(92, 69, 42, 0.2), 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid #bda88e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#storybook-preview:hover {
    transform: translateY(-8px);
    box-shadow: inset 0 0 30px rgba(92, 69, 42, 0.2), 0 35px 75px rgba(0, 0, 0, 0.6);
}

#storybook-preview span {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #4a3b2a;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: var(--font-mono);
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

#storybook-preview p {
    color: #7a6652;
    margin-top: 8px;
    margin-bottom: 0;
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.5rem;
}

/* =========================================
   10. STORYBOOK MODAL & LAYOUT
   ========================================= */

/* A. The Overlay & Scene */
#storybook-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 20, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#storybook-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.book-scene {
    width: 100vmin; /* from 85vmin */
    height: 75vmin;  /* from 60vmin */
    perspective: 2500px; 
    position: relative;
}

.book {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    position: relative;
}

.sheet {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1.000); 
    cursor: pointer;
}

.sheet.flipped {
    transform: rotateY(-180deg);
}

/* B. Layout & 3D Faces */
.front, .back {
    /* 3D Properties */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: #f0e6d2;
    background-image: url("https://www.transparenttextures.com/patterns/rough-cloth.png");    
    /* Layout Properties */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2vmin;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate; 
    
    /* Jagged Edges */
    -webkit-mask-box-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.1' numOctaves='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='5'/%3E%3C/filter%3E%3Crect x='5' y='5' width='390' height='190' fill='black' filter='url(%23noise)'/%3E%3C/svg%3E") 30 fill stretch;
    mask-border: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.1' numOctaves='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='5'/%3E%3C/filter%3E%3Crect x='5' y='5' width='390' height='190' fill='black' filter='url(%23noise)'/%3E%3C/svg%3E") 30 fill stretch;
}

.front {
    z-index: 2;
    border-right: none;
    box-shadow: inset 2px 0 5px rgba(0,0,0,0.05);
}

.back {
    transform: rotateY(180deg);
    z-index: 1;
    border-left: none;
    box-shadow: inset -2px 0 5px rgba(0,0,0,0.05);
}

/* C. Internal Text Styles */
.sheet .book-title,
.sheet .handwritten-note,
.sheet .typewriter-text {
    flex: 0 0 auto;
    position: relative;
    z-index: 50; 
    text-align: center;
    max-width: 100%;
}

.sheet .book-title {
    font-family: var(--font-script);
    font-size: 7vmin;
    margin-bottom: 2vmin;
    color: #4a3b2a;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.6);
}

.sheet .handwritten-note {
    font-family: var(--font-hand);
    font-size: 3vmin;
    margin: 1vmin 0;
    color: #5d4d3a;
    transform: rotate(-1deg);
}

.sheet .typewriter-text {
    font-family: var(--font-mono);
    font-size: 1.8vmin;
    color: #444;
    background: #fff;
    padding: 1vmin 2vmin;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2vmin;
    margin-top: 5%;
}

.sheet .body-serif {
    font-family: var(--font-serif);
}

.page-number { 
    position: absolute; 
    bottom: 20px; 
    width: 100%; 
    text-align: center; 
    color: #bbb; 
    font-size: 1.5vmin;
    pointer-events: none;
}

/* D. Polaroid Styles */
.polaroid {
    background-color: #fffdf5;
    padding: 1vmin 1vmin 4vmin 1vmin;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    width: auto;
    height: auto;
    flex-shrink: 0;
    z-index: 10;
}

/* Aspect Ratios */
.polaroid.landscape { aspect-ratio: 4/3; width: 75%; }
.polaroid.portrait  { aspect-ratio: 3/4; width: 55%; }
.polaroid.square    { aspect-ratio: 1/1; width: 65%; }
.polaroid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #eee;
}

/* E. Layout Zones */
/* 1. Fill */
.zone-fill {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 2vmin;
}

/* 2. Side by Side */
.zone-row {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3vmin;
    width: 100%;
    min-height: 0;
    padding: 1vmin;
}
.zone-row .polaroid.landscape { width: 60%; }
.zone-row .polaroid.portrait  { width: 44%; }
.zone-row .polaroid.square    { width: 48%; }

/* 3. Pile */
.zone-pile {
    flex: 1;
    width: 100%;
    position: relative;
    min-height: 40%;
    margin: 2vmin 0;
}
.zone-pile .polaroid {
    position: absolute;
    max-height: 80%;
}

/* F. Utility Classes */
.tilt-left { transform: rotate(-3deg); }
.tilt-right { transform: rotate(3deg); }
.tilt-messy-1 { transform: rotate(-6deg); }
.tilt-messy-2 { transform: rotate(5deg); }

.tape-center::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 25%;
    height: 15px;
    background: rgba(235, 228, 190, 0.6);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    z-index: 100;
}

/* G. Book Controls */
.book-controls {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1001;
}

.book-controls button {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.book-controls button:hover {
    background: white;
    color: #333;
}

/* =========================================
   11. FOOTER
   ========================================= */
#site-footer {
    position: relative;
    z-index: 20; 
    text-align: center;
    width: 100%;
    color: grey;
    font-family: var(--font-body);
}

#site-footer p {
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

#site-footer .credits {
    font-size: 0.85rem;
    font-style: italic;
    font-family: var(--font-serif);
}

/* =========================================
   12. MEDIA QUERIES
   ========================================= */

/* Large Screens */
@media (max-width: 1650px) {
    #names { transform: translate(-50%, -50%) scale(0.8) !important; width: 0; height: 0; }
}
@media (max-width: 1300px) {
    #names { transform: translate(-50%, -50%) scale(0.6) !important; }
}

/* Tablet & Mobile Layout */
@media (max-width: 1280px) {
    /* Section Padding Fixes */
    section {
        padding: 4rem 1rem; 
        padding-right: 1rem;
        padding-left: 1rem;
        min-height: auto;
    }

    .content-section {
        width: 95vw; 
        min-width: 0;
        margin-bottom: 15vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .content-box {
        padding: 2rem 1.5rem;
    }
    
    #vine-canvas {
        display: none !important;
    }
    
    :root {
        --map-pin-size: 6rem;
    }
    
    .floating-cloud {
        transform: scale(2);
    }
}

/* Mobile Book View & Final Tweaks */
@media (max-width: 768px) {
    /* Book Logic for Mobile */
    .book-scene {
        width: 100vw;
        height: 70vh;
        overflow: hidden;
        position: relative;
    }
    .book {
        width: 200%; 
        left: 0;
        transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    }
    .book.view-right { transform: translateX(-50%); }
    .book.view-left { transform: translateX(0%); }

    /* Scrapbook Photo Stack */
    .zone-row {
        flex-direction: column;
        gap: 2vmin;
    }
    /* Mobile Photo Sizing */
    .zone-row .polaroid.landscape, .polaroid.landscape { width: 90%; }
    .zone-row .polaroid.portrait, .polaroid.portrait { width: 75%; }
    .zone-row .polaroid.square, .polaroid.square { width: 80%; }
    
    .polaroid {
        padding: 2px 2px 15px 2px;
    }

    .sheet .handwritten-note {
        font-size: 4vmin !important;
    }

    .sheet .typewriter-text {
        font-size: 4vmin !important;
    }

    /* General Site Mobile Fixes */
    .skyline-photo {
        margin-top: 0 !important;
        margin-left: -1.5rem !important;
        margin-right: -1.5rem !important;
        margin-bottom: 1.5rem !important;
        width: calc(100% + 3rem) !important;
        max-width: none !important;
    }

    section h2.text-5xl, .text-5xl {
        font-size: 2rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.5rem !important;
    }

    h3.text-2xl, .text-2xl {
        font-size: 1.15rem !important;
        line-height: 1.3 !important;
    }

    .content-box {
        padding: 1.5rem 1rem !important;
    }

    #rsvp-target {
        margin-bottom: 48vh !important;
        margin-top: 35vh !important;
    }

    /* Map Pin Size adjustments */
    :root {
        --map-pin-size: 4.5rem;
    }
    .map-pin .pin-info h4 {
        font-size: 0.8rem !important;
    }
    .map-pin .pin-info p {
        font-size: 0.7rem !important;
    }
    .map-pin .anitadee-pin {
        --label-shift-y:100px !important;
    }

    #welcome {
    margin: -25%;
}
}

@media (max-width: 600px) {
    #names {
        transform: translate(-50%, -50%) scale(0.32) !important;
    }
    .wedding-date-script {
        font-size: 1.75rem;
        bottom: 22vh;
    }
}

.scrapbook-label {
    margin-top: 10%;
}

/* =========================================
   13. SCROLL INDICATOR
   ========================================= */
.scroll-hint {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90; /* Below password gate (9999), above background */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    mix-blend-mode: difference; /* Ensures visibility on both dark sky and light paper */
}

.scroll-text {
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.scroll-arrow {
    animation: scroll-bounce 2s infinite;
}

.scroll-hint.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
.scroll-hint {
        right: auto;        /* Remove right positioning */
        left: 50%;          /* Move to middle */
        bottom: 1rem;       /* Adjust height (above nav bars usually) */
        transform: translateX(-50%); /* Perfect center alignment */
    }

    .scroll-text {
        display: none;      /* Hide the word "Scroll" */
    }

    /* We need to update the fade-out transform so it doesn't break the centering */
    .scroll-hint.fade-out {
        opacity: 0;
        transform: translate(-50%, 10px); 
    }
}

/* Hide on very short screens/mobile landscape where it might block content */
@media (max-height: 500px) {
    .scroll-hint { display: none; }
}