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

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 200;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Container */
.main-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    flex: 1;
    background: #fafafa;
    flex: 1;
}


/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 30px;
}

/* ==================== SCROLL NAVIGATION ==================== */
.scroll-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Higher z-index to ensure it stays on top */
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.nav-link:hover {
    color: #2c2c2c;
    background: rgba(139, 123, 107, 0.1);
}

.nav-link.active {
    color: #2c2c2c;
    background: rgba(139, 123, 107, 0.15);
    font-weight: 500;
}

/* Enhanced shadow when scrolled */
.scroll-nav.scrolled {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
    background: rgba(250, 250, 250, 0.98);
}

/* ==================== SECTION LAYOUT ==================== */
.section {
    min-height: auto;
    padding: 120px 20px 80px; /* Extra top padding to account for fixed nav */
    scroll-margin-top: 90px; /* Adjust scroll margin for fixed nav */
    position: relative;
}

.section > * {
    max-width: 900px;
    margin: 0 auto;
}

/* Section backgrounds */
.home-section {
    background: #fafafa;
    padding: 0;
    padding-top: 80px; /* Add padding for fixed nav */
    display: block;
    min-height: 100vh;
    position: relative;
}


/* Hero Container - Full viewport height with relative positioning */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* Main Photo - Full background */
.hero-container .main-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-container .main-photo img {
    width: 80%;
    height: 80%;
    object-fit: cover; /* Fill the space */
    object-position: center 85%; /* Focus on lower portion to ensure ring is visible */
    margin: 10% auto;
    display: block;
    border-radius: 20px;
}

/* Hero Overlay - Contains all the text content, constrained to image boundaries */
.hero-overlay {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 20px 20px;
    box-sizing: border-box;
}

/* Hero Content - Translucent box */
.hero-content {
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 10px 40px 5px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20);
    text-align: center;
    width: calc(100% - 30px); /* Almost full width of container minus padding */
    max-width: 650px; /* Larger max for wider screens */
    position: relative;
}


/* Text shadows for better legibility on translucent background */
.hero-content .couple-names,
.hero-content .countdown-text,
.hero-content .date-text,
.hero-content .time-text,
.hero-content .location-text {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.story-section {
    background: #fafafa;
}

.details-section {
    background: #fafafa;
}

.media-section {
    background: #fafafa;
}

/* Section headings */
.section h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 50px;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 0, "WONK" 0;
}

/* Main Photo - Old styles kept for other sections if needed */
/* .main-photo {
    text-align: center;
    margin-bottom: 30px;
}

.main-photo img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
} */

/* RSVP Section */
.rsvp-section {
    text-align: center;
    margin: 0;
}

.couple-names {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: #2c2c2c;
    font-weight: 900;
    font-optical-sizing: auto;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}

/* Countdown Timer Styles */
.countdown-container {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
}

.countdown-container::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: rgba(139, 123, 107, 0.4);
}

.countdown-text {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    color: #444;
    font-weight: 200;
    line-height: 1.4;
}

.countdown-text span {
    font-weight: 200;
    color: #444;
}

.wedding-now {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #2c2c2c;
    font-weight: 400;
    letter-spacing: 1px;
}

.wedding-date {
    margin: 8px 0 0 0;
}

.wedding-date .hero-rsvp {
    margin-top: 8px;
    margin-bottom: 6px;
}

.date-text {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1px;
    font-weight: 200;
    line-height: 1.4;
}

.time-text {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    color: #444;
    font-weight: 200;
    margin-bottom: 12px;
    line-height: 1.4;
    position: relative;
}

.time-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: rgba(139, 123, 107, 0.4);
}

.location-link {
    text-decoration: none;
    display: block;
    transition: opacity 0.3s ease;
}

.location-link:hover {
    opacity: 0.8;
}

.location-text {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    color: #444;
    font-weight: 200;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.4;
    text-decoration: none;
}

.location-address {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    color: #444;
    font-weight: 200;
    margin: 0;
    line-height: 1.4;
}

.hero-rsvp {
    display: inline-block;
    padding: 10px 28px;
    background: rgba(212, 165, 116, 0.9);
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 200;
    letter-spacing: 1.5px;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 0;
}

.hero-rsvp:hover {
    background: rgba(184, 147, 95, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Event Details Section */
.event-details {
    padding: 80px 0;
    background: white;
}

.event-details h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c2c2c;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.detail-item {
    text-align: center;
    padding: 30px;
    background: #fafafa;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
}

.detail-item .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: #d4a574;
}

.detail-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.detail-item p {
    font-size: 1.1rem;
    color: #666;
}

/* RSVP Section */
.rsvp-section {
    text-align: center;
    padding: 40px 0;
}

.rsvp-button {
    display: inline-block;
    padding: 18px 50px;
    background: #d4a574;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.rsvp-button:hover {
    background: #b8935f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 165, 116, 0.3);
}

.rsvp-note {
    margin-top: 20px;
    color: #888;
    font-style: italic;
}

/* ==================== STORY SECTION ==================== */
.story-content {
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

.story-content h2 {
    margin-bottom: 15px !important;
}

.story-content .story-attribution {
    font-family: 'Fraunces', serif !important;
    font-size: 0.875rem !important;
    color: #666 !important;
    text-align: center !important;
    margin: 3px 0 !important;
    font-style: italic !important;
    font-weight: 400 !important;
}

.story-content .story-attribution:last-of-type {
    margin-bottom: 25px !important;
}

.story-photo {
    margin: 30px auto 40px;
    text-align: center;
    max-width: 500px;
}

.story-photo img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.story-photo-caption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    text-align: center;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.story-text {
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    text-align: center;
}

.story-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* Story expand/collapse functionality - matches RSVP button style */
.story-expand-btn {
    display: inline-block;
    padding: 10px 28px;
    background: rgba(212, 165, 116, 0.9);
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 200;
    letter-spacing: 1.5px;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: none !important;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    margin: 20px auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.story-expand-btn:hover {
    background: rgba(184, 147, 95, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.story-expand-btn:active {
    transform: translateY(0);
}

.expand-icon {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.story-expand-btn.expanded .expand-icon {
    transform: rotate(180deg);
}

.story-full-content {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.story-full-content.show {
    max-height: 3000px;
    opacity: 1;
    display: block !important;
}

.story-full-content p {
    margin-top: 20px;
}

.story-image {
    text-align: center;
    margin-top: 50px;
}

.story-image img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ==================== EVENT DETAILS SECTION ==================== */
.details-content {
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

.agenda, .venue-info, .venue {
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 700px;
}

.agenda h3, .venue-info h3, .venue h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #2c2c2c;
    text-align: center;
}

.venue-description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    font-weight: 200;
    text-align: center;
}

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

.timeline li {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.timeline li:last-child {
    border-bottom: none;
}

.timeline-time {
    font-weight: 600;
    color: #8B7B6B;
    min-width: 100px;
    font-size: 1.05rem;
}

.timeline-event {
    color: #444;
    font-size: 1.05rem;
    margin-left: 20px;
}

.venue-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 20px 0 10px;
    text-align: center;
}

.venue-address {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    line-height: 1.6;
}

.venue-image {
    margin: 30px 0;
    text-align: center;
}

.venue-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.venue-logo {
    margin: 20px auto 30px;
    text-align: center;
    max-width: 150px;
}

.venue-logo img {
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.map-button {
    display: inline-block;
    margin: 30px auto 0;
    padding: 12px 30px;
    background: rgba(139, 123, 107, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    max-width: 200px;
}

.map-button:hover {
    background: rgba(139, 123, 107, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 123, 107, 0.3);
}

.venue-description {
    margin: 30px 0;
    text-align: center;
}

.venue-description > p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
    font-style: italic;
}

.chef-info, .cuisine-info {
    margin: 30px 0;
    padding: 25px;
    background: rgba(139, 123, 107, 0.05);
    border-radius: 8px;
}

.chef-info h4, .cuisine-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 15px;
    font-family: 'Fraunces', serif;
}

.chef-info p, .cuisine-info p {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.chef-info p:last-child, .cuisine-info p:last-child {
    margin-bottom: 0;
}

.additional-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.additional-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 20px;
    text-align: center;
}

.additional-info ul {
    list-style: none;
    padding: 0;
}

.additional-info li {
    padding: 10px 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.additional-info strong {
    color: #444;
}

.wedding-description {
    text-align: center;
    margin: 20px 0;
}

.wedding-description p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-weight: 200;
}


/* ==================== MEDIA SECTION ==================== */
.media-content {
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

.media-content h2 {
    margin-bottom: 15px !important;
}

.media-content .photos-instruction {
    font-family: 'Fraunces', serif !important;
    font-size: 0.875rem !important;
    color: #666 !important;
    text-align: center !important;
    margin: 0 0 30px 0 !important;
    font-style: italic !important;
    font-weight: 400 !important;
}

.photo-gallery {
    margin-bottom: 80px;
}

.photo-gallery h3,
.video-container h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 40px;
}

/* Photos Content */
.photos-content {
    text-align: center;
}

.photos-content h2 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #2c2c2c;
    font-weight: 600;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: white;
}

.photo-item:hover {
    transform: scale(1.03);
}

.photo-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: opacity 0.3s ease;
    display: block;
}

.photo-item:hover img {
    opacity: 0.95;
}

.photo-caption {
    padding: 15px 20px;
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

/* Video Section */
.videos {
    padding: 80px 0;
    background: white;
}

.videos h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c2c2c;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.video-item {
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-note {
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* Vertical Video Styles */
.video-grid-vertical {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.video-item-vertical {
    max-width: 400px;
    width: 100%;
}

.video-wrapper-vertical {
    position: relative;
    padding-bottom: 177.78%; /* 9:16 aspect ratio for vertical video */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper-vertical iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 177.78%; /* Scale up to crop horizontal parts */
    height: 100%;
}

/* Responsive for vertical videos */
@media (max-width: 480px) {
    .video-item-vertical {
        max-width: 90%;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed !important;
    z-index: 1000;
    padding: 0 !important;
    margin: 0 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    box-sizing: border-box !important;
}

.close-lightbox {
    position: fixed;
    top: 30px;
    right: 45px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1003;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
}


@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: fixed;
    top: 30px;
    right: 45px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1003;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
}

/* Lightbox Video Styles */
.lightbox-media-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px 120px 60px; /* top, right, bottom, left - extra bottom for caption */
    box-sizing: border-box;
    z-index: 1001;
}

.lightbox-video-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-video-horizontal {
    display: block;
    width: auto;
    height: 85vh;
    max-width: 90vw;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
}

.lightbox-video-vertical {
    display: block;
    width: auto;
    height: 85vh;
    max-width: 90vw;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
}

/* Lightbox Navigation Buttons */
.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 1005 !important;
    border-radius: 50%;
    pointer-events: auto !important;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Lightbox Caption */
.lightbox-caption {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #f1f1f1;
    font-size: 1rem;
    padding: 20px 40px;
    max-width: 800px;
    line-height: 1.5;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    z-index: 1001;
}

/* Lightbox Counter */
.lightbox-counter {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #f1f1f1;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 3px;
}

/* Video Gallery Styles */
.video-gallery {
    padding: 40px 0;
}

.video-gallery h3 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #2c2c2c;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.video-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.video-item:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.play-icon {
    width: 64px;
    height: 64px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-item:hover .play-icon {
    opacity: 1;
    transform: scale(1.1);
}

.media-caption {
    padding: 15px 20px;
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

/* Lightbox Media Container - No longer used after HTML simplification */

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: zoom 0.3s;
    display: block;
    margin: 0;
    flex-shrink: 0;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* Fade-in Animation Classes */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-content {
        width: calc(100% - 60px); /* Slightly narrower than image */
    }
}

/* Desktop adjustments - keep box wide enough for text */
@media (min-width: 992px) {
    .hero-content {
        width: calc(100% - 40px); /* Keep it wide */
        padding: 8px 40px 3px; /* Increase horizontal padding */
    }
}

@media (min-width: 1200px) {
    .hero-content {
        width: calc(100% - 50px); /* Still very wide */
        padding: 6px 45px 2px; /* More horizontal padding */
    }
}

/* Extra wide screens - compact vertically to show faces */
@media (min-width: 1600px) {
    .hero-content {
        width: calc(100% - 60px); /* Keep wide for text */
        padding: 5px 50px 2px; /* More horizontal padding */
    }
}

@media (min-width: 1920px) {
    .hero-content {
        width: calc(100% - 80px); /* Still very wide */
        padding: 5px 55px 2px; /* Extra horizontal padding */
    }
}

/* Faster animations on mobile for better scrolling experience */
@media (max-width: 768px) {
    .fade-in-element {
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
}

/* Footer */
.footer {
    padding: 15px 0;
    background: #2c2c2c;
    color: white;
    text-align: center;
    width: 100vw;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
}

.footer p {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.footer-names {
    font-family: 'Fraunces', serif;
    font-size: 2.8rem !important;
    margin: 0;
    color: #d4a574;
    font-weight: 900;
    font-optical-sizing: auto;
    font-variation-settings: 'opsz' 144;
    letter-spacing: 2px;
}

.footer .footer-attribution {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.75rem;
    color: #aaa;
    text-align: center;
    margin: 10px 20px 0;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
}


/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .scroll-nav {
        gap: 15px;
        padding: 15px 10px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    /* Sections */
    .section {
        min-height: auto;
        padding: 80px 20px 60px;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    /* Home Section */
    .home-section {
        padding-top: 0;
    }


    /* Hero Container responsive - Switch to flex layout for mobile */
    .hero-container {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    /* Main photo - No longer absolute, part of flex flow */
    .hero-container .main-photo {
        position: relative;
        height: 65vh; /* Increased to show more of the image */
        min-height: 450px; /* Increased minimum to ensure ring is visible */
        width: 100%;
    }

    .hero-container .main-photo img {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        object-fit: cover;
        object-position: center bottom; /* Focus on bottom of image where hands/ring are */
    }

    /* Hero overlay - No longer absolute, part of flex flow */
    .hero-overlay {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-content {
        padding: 18px 30px 10px;
        width: 92%;
        background: rgba(255, 255, 255, 0.95); /* More opaque on mobile for better readability */
    }

    .couple-names {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    /* Countdown adjustments for tablet */
    .countdown-text {
        font-size: 1rem;
    }

    .date-text {
        font-size: 1.1rem;
    }

    .time-text {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }
    
    .time-text::after {
        width: 50px;
        bottom: -6px;
    }

    .location-text {
        font-size: 1.1rem;
        margin-top: 10px;
        margin-bottom: 0;
    }

    .hero-rsvp {
        padding: 12px 28px;
        font-size: 0.95rem;
        min-height: 44px; /* Touch-friendly size */
    }

    /* Story */
    .story-text {
        padding: 30px;
    }
    
    .story-text p {
        font-size: 1.05rem;
    }

    /* Story expand button tablet styles - matches RSVP */
    .story-expand-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
        min-height: 44px; /* Touch-friendly size */
    }

    /* Event Details */
    .agenda, .venue-info, .venue {
        padding: 30px;
    }

    .timeline-time {
        min-width: 80px;
        font-size: 0.95rem;
    }

    .timeline-event {
        font-size: 0.95rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .rsvp-button {
        padding: 15px 40px;
        font-size: 1rem;
    }

    .event-details h2,
    .gallery h2,
    .videos h2 {
        font-size: 2rem;
    }

    .event-details,
    .gallery,
    .videos {
        padding: 60px 0;
    }

    /* Mobile lightbox caption - full width for consistent experience */
    .lightbox-caption {
        font-size: 0.9rem !important;
        padding: 15px 20px !important;
        bottom: 0px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        transform: none !important;
        text-align: left !important;
        background: rgba(0, 0, 0, 0.8) !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 480px) {
    /* Navigation */
    .scroll-nav {
        gap: 8px;
        padding: 12px 5px;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    /* Sections */
    .section {
        min-height: auto;
        padding: 60px 15px 40px;
    }

    .section h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    /* Home */
    .home-section {
        padding-top: 0;
        min-height: auto;
    }


    /* Hero Container mobile - Ensure flex layout continues */
    .hero-container {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    /* Main photo mobile */
    .hero-container .main-photo {
        height: 55vh; /* Increased to show more of the image */
        min-height: 400px; /* Increased minimum to ensure ring is visible */
    }

    .hero-container .main-photo img {
        object-position: center bottom; /* Focus on bottom of image where hands/ring are */
    }

    /* Hero overlay mobile */
    .hero-overlay {
        padding: 15px 10px;
    }

    .hero-content {
        padding: 15px 18px 8px;
        width: 94%;
        max-width: 400px;
        background: rgba(255, 255, 255, 0.98); /* Nearly opaque for small screens */
    }


    /* Countdown adjustments for mobile */
    .countdown-container {
        margin-bottom: 14px;
    }
    
    .countdown-container::after {
        width: 50px;
        bottom: -6px;
    }
    
    .wedding-date {
        margin-top: 10px;
    }

    .countdown-text {
        font-size: 0.9rem;
    }

    .couple-names {
        font-size: 1.9rem;
        margin-bottom: 5px;
        letter-spacing: 1px;
    }

    .date-text {
        font-size: 1.15rem;
        margin-bottom: 2px;
        font-weight: 200;
    }

    .time-text {
        font-size: 1.05rem;
        margin-bottom: 14px;
        font-weight: 200;
    }
    
    .time-text::after {
        width: 50px;
        bottom: -6px;
    }

    .location-text {
        font-size: 1.1rem;
        margin-top: 10px;
        margin-bottom: 0;
        line-height: 1.4;
        font-weight: 200;
    }

    .hero-rsvp {
        padding: 10px 26px;
        font-size: 1rem;
        letter-spacing: 1px;
        font-weight: 200;
    }

    /* Story */
    .story-text {
        padding: 20px;
    }
    
    .story-text p {
        font-size: 1rem;
        text-align: left;
    }

    /* Story expand button mobile styles - matches RSVP */
    .story-expand-btn {
        padding: 10px 26px;
        font-size: 1rem;
        letter-spacing: 1px;
        font-weight: 200;
        margin: 15px auto;
    }

    /* Event Details */
    .agenda, .venue-info, .venue {
        padding: 20px;
    }

    .agenda h3, .venue-info h3, .venue h3 {
        font-size: 1.4rem;
    }

    /* Lightbox mobile styles */
    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 8px 12px;
    }

    .lightbox-prev {
        left: 15px !important;
        position: fixed !important;
        z-index: 1005 !important;
        pointer-events: auto !important;
    }

    .lightbox-next {
        right: 15px !important;
        position: fixed !important;
        z-index: 1005 !important;
        pointer-events: auto !important;
    }

    .close-lightbox {
        position: fixed !important;
        right: 20px !important;
        top: 20px !important;
        z-index: 1003 !important;
        font-size: 36px !important;
    }

    .lightbox-media-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important; /* Dynamic viewport height for mobile */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 60px 20px 100px 20px !important; /* top, right, bottom, left */
        box-sizing: border-box !important;
        max-width: none !important;
        min-width: 100vw !important;
    }

    /* Force full viewport coverage on mobile */
    .lightbox {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important; /* Dynamic viewport height for modern mobile browsers */
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        max-width: none !important;
        min-width: 100vw !important;
        min-height: 100vh !important;
        min-height: 100dvh !important; /* Dynamic viewport height fallback */
        position: fixed !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .lightbox-caption {
        font-size: 0.9rem !important;
        padding: 15px 20px !important;
        bottom: 0px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        transform: none !important;
        text-align: left !important;
        background: rgba(0, 0, 0, 0.8) !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
    }

    .lightbox-content {
        max-width: 95% !important;
        max-height: 85% !important;
    }

    .lightbox-counter {
        font-size: 0.85rem;
        top: 20px;
        left: 20px;
    }

    .timeline li {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }

    .timeline-event {
        margin-left: 0;
        margin-top: 5px;
    }

    /* Video gallery mobile styles */
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .video-gallery h3 {
        font-size: 1.6rem;
    }

    .lightbox-video-vertical {
        max-height: 70vh;
    }

    .additional-info li {
        font-size: 0.95rem;
    }

    /* Media */
    .photo-gallery h3,
    .video-container h3 {
        font-size: 1.3rem;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .detail-item {
        padding: 20px;
    }

    .detail-item .icon {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }

    .event-details h2,
    .gallery h2,
    .videos h2 {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }

    .footer {
        padding: 12px 0;
    }

    .footer p {
        font-size: 1rem;
    }

    .footer-names {
        font-size: 1.9rem !important;
    }

    .footer .footer-attribution {
        font-size: 0.7rem;
        margin: 8px 15px 0;
        line-height: 1.3;
    }
}