/* Import elegant fonts for headings */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Dancing+Script:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Italiana&family=Cinzel:wght@400;500;600&family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Lato:wght@300;400;700&display=swap');

/* Fiona Wedding Website Styles - Warm Elegant Color Palette */
:root {
    --primary-text: #5a5a5a;
    --secondary-text: #7a7a7a;
    --light-text: #9a9a9a;
    --accent-mauve: #a67c8a;
    --accent-sage: #8b9a7e;
    --accent-cream: #f4f0e8;
    --neutral-cream: #fefefe;
    --neutral-light: #faf7f3;
    --neutral-warm: #f7f2ea;
    --border-light: #e8e2d8;
    --shadow-soft: rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Lato', 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--primary-text);
    background: var(--neutral-cream);
    padding-top: 60px; /* Account for fixed banner */
    font-weight: 400;
    letter-spacing: 0.3px;
}

p {
    font-family: 'Lato', 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--primary-text);
    margin-bottom: 20px;
}

/* Hide main content during preloader */
body.preloader-active .names-banner,
body.preloader-active .navigation-menu,
body.preloader-active main {
    opacity: 0;
    visibility: hidden;
}

/* Smooth transition for main content */
.names-banner,
.navigation-menu,
main {
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

/* ULTRA-PREMIUM PRELOADER */
.luxury-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #faf8f5 0%, #f7f4f0 50%, #fefefe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

.luxury-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.preloader-names {
    margin-bottom: 40px;
}

.preloader-name {
    display: block;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 8px;
    color: #8b7355;
    margin: 10px 0;
    opacity: 0;
    transform: translateY(50px);
    animation: luxuryFadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.preloader-name:first-child {
    animation-delay: 0.5s;
}

.preloader-name:last-child {
    animation-delay: 1s;
}

.preloader-ampersand {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #9aa68b;
    margin: 20px 0;
    opacity: 0;
    animation: luxuryFadeIn 1s ease-out forwards;
    animation-delay: 1.5s;
}

.preloader-progress {
    width: 300px;
    height: 2px;
    background: rgba(139, 115, 85, 0.2);
    margin: 40px auto;
    border-radius: 1px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d4b896 0%, #f0e6d6 100%);
    width: 0%;
    animation: progressFill 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 2s;
}

.preloader-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: rgba(139, 115, 85, 0.8);
    opacity: 0;
    animation: luxuryFadeIn 1s ease-out forwards;
    animation-delay: 2.5s;
}

.preloader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #DAC8A4 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite ease-in-out;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 80%; left: 20%; animation-delay: 2s; }
.particle:nth-child(4) { top: 30%; left: 70%; animation-delay: 3s; }
.particle:nth-child(5) { top: 70%; left: 50%; animation-delay: 4s; }

@keyframes luxuryFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-20px) scale(1);
    }
}

/* Names Banner */
.names-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    text-align: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(213, 158, 168, 0.2);
    display: flex !important;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    height: 60px;
    box-sizing: border-box;
}

.names-banner.hero-mode {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

.names-banner.hero-mode .banner-names {
    opacity: 0;
    visibility: hidden;
}

.names-banner.hero-mode .menu-toggle {
    display: flex;
}

.names-banner.hero-mode .menu-toggle span {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.banner-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    flex: 1;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    padding-right: 60px;
}

@media (max-width: 768px) {
    .banner-names {
        font-size: 11px;
        letter-spacing: 1px;
        padding-right: 50px;
        line-height: 1.4;
    }
}

.menu-toggle {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex !important;
    flex-direction: column;
    gap: 3px;
    z-index: 1001;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: #666;
    transition: all 0.3s ease;
}

.menu-toggle:hover span {
    background-color: #d59ea8;
}

/* Navigation Menu */
.navigation-menu {
    position: fixed;
    top: 60px;
    right: -320px;
    width: 300px;
    height: calc(100vh - 60px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 247, 246, 0.98) 100%);
    backdrop-filter: blur(15px);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    padding: 40px 0;
    border-left: 1px solid rgba(213, 158, 168, 0.2);
}

.navigation-menu.open {
    right: 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 20px 30px;
    color: #666;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(213, 158, 168, 0.1);
    position: relative;
}

.nav-link:hover {
    color: #8b5a6b;
    background: rgba(213, 158, 168, 0.08);
    padding-left: 40px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #8b5a6b 0%, #d59ea8 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleY(1);
}

/* Menu overlay for mobile */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Menu toggle animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
}

h1 {
    font-size: 45px;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.3;
    font-weight: 400;
}

h2 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(45px, 7vw, 65px);
    font-weight: 500;
    text-transform: lowercase;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    text-align: center;
    color: #a67c8a;
    position: relative;
    display: inline-block;
}

/* Script Image Headings */
.script-heading {
    display: block;
    margin: 0 auto 50px auto;
    text-align: center;
    position: relative;
    background: transparent;
}

.script-heading img {
    max-width: 100%;
    height: auto;
    max-height: 300px; /* Increased 2.5x from 120px */
    min-height: 150px;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    opacity: 0.9;
    /* Handle any remaining background issues */
    mix-blend-mode: multiply;
    filter: contrast(1.1);
}

.script-heading img:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* Responsive script images - larger sizes */
@media (max-width: 768px) {
    .script-heading img {
        max-height: 250px; /* Increased 2.5x from 100px */
        min-height: 125px;
    }
}

@media (max-width: 480px) {
    .script-heading img {
        max-height: 200px; /* Increased 2.5x from 80px */
        min-height: 100px;
    }
}

h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: radial-gradient(ellipse at center, var(--shadow-soft) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
}

@keyframes subtle-float {
    0%, 100% { transform: perspective(500px) rotateY(-2deg) translateY(0px); }
    50% { transform: perspective(500px) rotateY(-2deg) translateY(-3px); }
}

@keyframes subtle-float-reverse {
    0%, 100% { transform: perspective(500px) rotateY(2deg) translateY(0px); }
    50% { transform: perspective(500px) rotateY(2deg) translateY(-3px); }
}

h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    color: var(--accent-sage);
    text-shadow: none;
}

h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-sage) 50%, transparent 100%);
}

h4 {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #666;
}

/* Hero/Cover Section */
.hero-cover {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -60px; /* Compensate for body padding */
    padding-top: 60px; /* Add back the space */
    perspective: 1000px;
}

.hero-bg {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background-image: url('images/ChatGPT Image Sep 8, 2025, 05_14_18 PM.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: brightness(75%);
    z-index: 1;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Parallax layers for depth */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(168, 179, 154, 0.3) 0%, rgba(140, 154, 126, 0.4) 70%);
    z-index: 2;
    will-change: transform;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(218, 200, 164, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floating-orb 8s ease-in-out infinite;
    z-index: 3;
}

@keyframes floating-orb {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -60%) scale(1.2); opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #DAC8A4;
}

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    color: #c4b896;
    margin: 0;
    line-height: 1.3;
    font-weight: 400;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.couple-names::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: radial-gradient(ellipse at center, var(--shadow-soft) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
}

@keyframes subtle-hero-glow {
    0%, 100% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 20px rgba(218, 200, 164, 0.1); }
    50% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 30px rgba(218, 200, 164, 0.15); }
}

@keyframes gentle-pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.5; transform: scale(1.02); }
}

.name-line {
    display: block;
    margin-bottom: 10px;
}

.and-line {
    display: block;
    font-style: italic;
    font-size: 0.8em;
    margin: 20px 0;
}

/* Info Sections */
.info-section {
    padding: 120px 40px;
    text-align: center;
    position: relative;
    margin: 0;
}

.celebrate-section {
    background: var(--accent-cream);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.reception-section {
    background: var(--neutral-warm);
}

/* Rehearsal Dinner Section */
.rehearsal-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--neutral-cream);
}

.rehearsal-content {
    display: flex;
    width: 100%;
    min-height: 70vh;
}

.rehearsal-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 80px;
    background: var(--neutral-cream);
    text-align: center;
}

.rehearsal-image {
    flex: 1;
    background: linear-gradient(135deg, rgba(232, 213, 192, 0.8) 0%, rgba(201, 169, 110, 0.8) 50%, rgba(140, 154, 126, 0.8) 100%), 
                url('images/ChatGPT Image Sep 8, 2025, 06_15_15 PM.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

.rehearsal-text h2 {
    font-family: 'Dancing Script', 'Italiana', cursive;
    font-size: clamp(50px, 7vw, 65px);
    font-weight: 500;
    text-transform: none;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    color: #8b5a6b;
    background: linear-gradient(135deg, #8b5a6b 0%, #a86e7b 50%, #c68e99 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(139, 90, 107, 0.3);
    position: relative;
    display: inline-block;
    transform: perspective(500px) rotateY(2deg);
    filter: drop-shadow(2px 4px 8px rgba(139, 90, 107, 0.25));
    animation: subtle-float-reverse 6s ease-in-out infinite;
}

.rehearsal-text .date-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #8b5a6b;
}

.rehearsal-text .date-info h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #666;
    font-style: italic;
}

.info-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: #333;
    padding: 0 30px;
}

.info-content h2 {
    color: #333;
    margin-bottom: 50px;
}

.date-info h3 {
    color: var(--accent-sage);
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.date-info h4 {
    color: #666;
    font-size: 18px;
    line-height: 1.8;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: normal;
    text-transform: lowercase;
    margin-bottom: 15px;
}

/* Image Section */
.image-section {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.image-section img.venue-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Story Section */
.story-section {
    position: relative;
    padding: 120px 20px;
    text-align: center;
    background-color: var(--neutral-warm);
}

.story-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/33730e6ca256ec919d99f0b431df6b79.jpeg');
    background-size: cover;
    background-position: center center;
    opacity: 0.3;
    z-index: 1;
}

.story-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.story-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery Section */
.gallery-section {
    padding: 120px 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23d59ea8" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, #f8f8f8 0%, #eeeeee 100%);
    box-shadow: 0 8px 32px rgba(139, 90, 107, 0.1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(218, 200, 164, 0.0) 0%, rgba(213, 158, 168, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(139, 90, 107, 0.25);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8) saturate(1.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Add staggered animation on scroll */
.gallery-item {
    opacity: 0;
    transform: translateY(60px) scale(0.8);
    animation: galleryReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes galleryReveal {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(5px);
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 80vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.open .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1000;
}

.lightbox-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    bottom: auto !important;
    left: auto !important;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2001;
    pointer-events: auto;
    transform: none !important;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed !important;
    top: 50% !important;
    margin-top: -25px !important;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2001 !important;
    pointer-events: auto !important;
    transform: none !important;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1) !important;
}

.lightbox-prev {
    left: 20px !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
}

.lightbox-next {
    right: 20px !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
}

.lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    z-index: 2001;
}

/* Registry Section */
.registry-section {
    padding: 100px 20px;
    background: url('images/red-background.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.registry-item {
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.registry-item .script-heading {
    margin: 0;
}

.registry-item:hover .script-heading img {
    opacity: 1;
    transform: scale(1.05);
}

.registry-item:hover .registry-script,
.registry-item:hover .registry-title {
    color: #ffffff;
}

.registry-script {
    font-family: 'Dancing Script', 'Italiana', cursive;
    font-size: 38px;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), 0 6px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: registry-glow 4s ease-in-out infinite alternate;
}

.registry-script::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -15px;
    right: -15px;
    bottom: -8px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.8;
}

@keyframes registry-glow {
    0% { text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), 0 6px 12px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.1); }
    100% { text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), 0 6px 12px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 255, 255, 0.2); }
}

.registry-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.registry-text p {
    font-size: 16px;
    color: #888;
    margin-bottom: 30px;
    line-height: 1.6;
}

.registry-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.registry-link {
    display: inline-block;
    background-color: #DAC8A4;
    color: #333;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.registry-link:hover {
    background-color: #c5b491;
}

/* RSVP Section */
.rsvp-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #faf7f8 0%, #f2eaec 50%, #f8f3f4 100%);
    text-align: center;
}

.rsvp-content {
    max-width: 600px;
    margin: 0 auto;
}

.rsvp-deadline {
    font-style: italic;
    color: #666;
    margin-bottom: 40px;
    font-size: 14px;
}

.rsvp-form {
    text-align: left;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d59ea8;
    box-shadow: 0 0 0 2px rgba(213, 158, 168, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.submit-btn {
    background: linear-gradient(135deg, #d59ea8 0%, #c68e99 50%, #b77e8a 100%);
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(213, 158, 168, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #c68e99 0%, #b77e8a 50%, #a86e7b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 158, 168, 0.4);
}

.submit-btn:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .couple-names {
        font-size: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .rsvp-form {
        padding: 30px 20px;
    }
    
    .info-section {
        padding: 40px 20px;
    }
    
    .story-section,
    .gallery-section,
    .registry-section,
    .rsvp-section {
        padding: 60px 20px;
    }
    
    .rehearsal-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .rehearsal-text {
        padding: 40px 20px;
    }
    
    .rehearsal-image {
        min-height: 250px;
        background-attachment: scroll;
        order: -1;
    }
    
    .rehearsal-text {
        padding: 60px 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .registry-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .rsvp-form {
        padding: 20px 15px;
    }
    
    .info-section {
        padding: 30px 15px;
    }
}

/* FAQ Section */
.faq-section {
    background: #f8f8f8;
    padding: 80px 20px;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 2px;
    padding: 30px 40px;
    border-left: 3px solid #8b5a6b;
}

.faq-question {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #8b5a6b;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.faq-answer {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Clickable RSVP Section */
.clickable-rsvp-section {
    text-align: center;
    padding: 80px 20px;
    background: rgba(139, 90, 107, 0.05);
}

.clickable-rsvp-content {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 40px;
    border-radius: 5px;
    max-width: 400px;
    margin: 0 auto;
}

.clickable-rsvp-content:hover {
    background: rgba(139, 90, 107, 0.1);
    transform: translateY(-2px);
}

.clickable-rsvp-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #8b5a6b;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    border: 2px solid #8b5a6b;
    padding: 15px 40px;
    display: inline-block;
    transition: all 0.3s ease;
}

.clickable-rsvp-content:hover .clickable-rsvp-title {
    background: #8b5a6b;
    color: white;
}

.clickable-rsvp-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin: 15px 0 0 0;
}

/* Hide RSVP form by default */
.rsvp-section {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.rsvp-section.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* RSVP Confirmation Modal */
.rsvp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}

.rsvp-modal.show {
    opacity: 1;
}

.rsvp-modal-content {
    background: linear-gradient(135deg, #faf8f5 0%, #ffffff 100%);
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(213, 158, 168, 0.3);
}

.rsvp-modal.show .rsvp-modal-content {
    transform: scale(1);
}

.rsvp-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #d59ea8 0%, #c68e99 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(213, 158, 168, 0.4);
}

.rsvp-modal-icon.error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.rsvp-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #8b5a6b;
    margin-bottom: 20px;
    font-weight: 600;
}

.rsvp-modal-message {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.rsvp-modal-submessage {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin-bottom: 30px;
}

.rsvp-modal-btn {
    background: linear-gradient(135deg, #d59ea8 0%, #c68e99 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(213, 158, 168, 0.3);
}

.rsvp-modal-btn:hover {
    background: linear-gradient(135deg, #c68e99 0%, #b77e8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 158, 168, 0.4);
}

/* Mobile responsiveness for modal */
@media (max-width: 480px) {
    .rsvp-modal-content {
        padding: 40px 25px;
    }
    
    .rsvp-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    
    .rsvp-modal-title {
        font-size: 24px;
    }
    
    .rsvp-modal-message {
        font-size: 15px;
    }
}
