/* Wedding Website Styles */
:root {
    --primary-color: #7A8471; /* Deep sage from palette */
    --secondary-color: #D4A574; /* Warm peach from palette */
    --accent-color: #F2EDE4; /* Soft cream from palette */
    --sage-light: #A4B39A; /* Light sage from palette */
    --peach-light: #E8C4A0; /* Light peach from palette */
    --sage-deep: #6B7562; /* Even deeper sage for accents */
    --text-dark: #2C2C2C;
    --text-light: #FFFFFF;
    --text-muted: #666666;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

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

/* Page Transitions */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}


/* Landing Page Styles */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(122, 132, 113, 0.75), 
        rgba(212, 165, 116, 0.65));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-text {
    margin-bottom: 40px;
}

.couple-names {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.save-date {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-style: italic;
}

.wedding-date {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-intro {
    margin-bottom: 30px;
}

.form-intro h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Lato', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(122, 132, 113, 0.1);
}

.submit-btn {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.submit-btn:hover {
    background: var(--sage-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-arrow {
    transition: var(--transition);
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Skip Option Styles */
.skip-option {
    margin-top: 20px;
    text-align: center;
}

.skip-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 8px 0;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.skip-btn:hover {
    color: var(--text-dark);
    transform: none;
}

/* Main Website Styles */
.navbar {
    background: var(--text-light);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.main-content {
    margin-top: 80px;
}

/* Hero Banner */
.hero-banner {
    height: 60vh;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-content h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.wedding-date-main {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Story Section */
.story-section {
    background: var(--text-light);
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-intro, .story-conclusion {
    text-align: center;
    margin-bottom: 40px;
}

.story-intro p, .story-conclusion p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.story-row.reverse {
    direction: rtl;
}

.story-row.reverse * {
    direction: ltr;
}

.story-text-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.story-photo-block {
    display: flex;
    justify-content: center;
}

.story-photo {
    width: 100%;
    max-width: 350px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.story-cats-section {
    margin: 50px 0;
    text-align: center;
}

.story-cats-photos {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.story-cats-photos .story-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

/* Engagement Photo Mosaic */
.engagement-photos-section {
    margin: 50px 0;
    text-align: center;
}

.photo-mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-width: 700px;
    margin: 0 auto;
    grid-auto-rows: 80px;
}

.mosaic-photo {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.mosaic-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.mosaic-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
    z-index: 10;
}

.mosaic-photo:hover img {
    transform: scale(1.1);
}

/* Default engagement photo layout - dynamic asymmetrical grid for 12 photos */
.photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
}

.photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(3) {
    grid-column: 5 / 6;
    grid-row: 1 / 2;
}

.photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(4) {
    grid-column: 6 / 7;
    grid-row: 1 / 2;
}

.photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(5) {
    grid-column: 5 / 7;
    grid-row: 2 / 3;
}

.photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(6) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(7) {
    grid-column: 2 / 4;
    grid-row: 3 / 5;
}

.photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(8) {
    grid-column: 4 / 6;
    grid-row: 3 / 4;
}

.photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(9) {
    grid-column: 6 / 7;
    grid-row: 3 / 5;
}

.photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(10) {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
}

.photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(11) {
    grid-column: 4 / 5;
    grid-row: 4 / 5;
}

.photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(12) {
    grid-column: 5 / 6;
    grid-row: 4 / 5;
}

/* Cats Mosaic - dynamic layout for 18 photos */
.cats-mosaic {
    grid-template-columns: repeat(6, 1fr);
    max-width: 700px;
    gap: 6px;
    grid-auto-rows: 80px;
}

.cats-mosaic .mosaic-photo:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.cats-mosaic .mosaic-photo:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
}

.cats-mosaic .mosaic-photo:nth-child(3) {
    grid-column: 5 / 7;
    grid-row: 1 / 2;
}

.cats-mosaic .mosaic-photo:nth-child(4) {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
}

.cats-mosaic .mosaic-photo:nth-child(5) {
    grid-column: 6 / 7;
    grid-row: 2 / 3;
}

.cats-mosaic .mosaic-photo:nth-child(6) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.cats-mosaic .mosaic-photo:nth-child(7) {
    grid-column: 2 / 4;
    grid-row: 3 / 5;
}

.cats-mosaic .mosaic-photo:nth-child(8) {
    grid-column: 4 / 6;
    grid-row: 3 / 4;
}

.cats-mosaic .mosaic-photo:nth-child(9) {
    grid-column: 6 / 7;
    grid-row: 3 / 5;
}

.cats-mosaic .mosaic-photo:nth-child(10) {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
}

.cats-mosaic .mosaic-photo:nth-child(11) {
    grid-column: 4 / 5;
    grid-row: 4 / 5;
}

.cats-mosaic .mosaic-photo:nth-child(12) {
    grid-column: 5 / 6;
    grid-row: 4 / 5;
}

.cats-mosaic .mosaic-photo:nth-child(13) {
    grid-column: 1 / 3;
    grid-row: 5 / 7;
}

.cats-mosaic .mosaic-photo:nth-child(14) {
    grid-column: 3 / 4;
    grid-row: 5 / 6;
}

.cats-mosaic .mosaic-photo:nth-child(15) {
    grid-column: 4 / 6;
    grid-row: 5 / 6;
}

.cats-mosaic .mosaic-photo:nth-child(16) {
    grid-column: 6 / 7;
    grid-row: 5 / 6;
}

.cats-mosaic .mosaic-photo:nth-child(17) {
    grid-column: 3 / 5;
    grid-row: 6 / 7;
}

.cats-mosaic .mosaic-photo:nth-child(18) {
    grid-column: 5 / 7;
    grid-row: 6 / 7;
}

/* Creative Works Section */
.creative-works-section {
    margin: 50px 0;
    text-align: center;
}

.creative-intro {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

.creative-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.creative-mosaic {
    grid-template-columns: repeat(6, 1fr);
    max-width: 700px;
    gap: 6px;
    grid-auto-rows: 80px;
}

.creative-mosaic .mosaic-photo:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.creative-mosaic .mosaic-photo:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.creative-mosaic .mosaic-photo:nth-child(3) {
    grid-column: 4 / 6;
    grid-row: 1 / 2;
}

.creative-mosaic .mosaic-photo:nth-child(4) {
    grid-column: 6 / 7;
    grid-row: 1 / 3;
}

.creative-mosaic .mosaic-photo:nth-child(5) {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
}

.creative-mosaic .mosaic-photo:nth-child(6) {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
}

.creative-mosaic .mosaic-photo:nth-child(7) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.creative-mosaic .mosaic-photo:nth-child(8) {
    grid-column: 2 / 4;
    grid-row: 3 / 5;
}

.creative-mosaic .mosaic-photo:nth-child(9) {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
}

.creative-mosaic .mosaic-photo:nth-child(10) {
    grid-column: 5 / 7;
    grid-row: 3 / 5;
}

.creative-mosaic .mosaic-photo:nth-child(11) {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
}

.creative-mosaic .mosaic-photo:nth-child(12) {
    grid-column: 4 / 5;
    grid-row: 4 / 5;
}

.creative-mosaic .mosaic-photo:nth-child(13) {
    grid-column: 1 / 3;
    grid-row: 5 / 6;
}

.creative-mosaic .mosaic-photo:nth-child(14) {
    grid-column: 3 / 5;
    grid-row: 5 / 6;
}

.creative-mosaic .mosaic-photo:nth-child(15) {
    grid-column: 5 / 7;
    grid-row: 5 / 6;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .photo-mosaic {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
        padding: 0 20px;
        gap: 6px;
        grid-auto-rows: 60px;
    }
    
    .cats-mosaic {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
        grid-auto-rows: 60px;
    }
    
    .creative-mosaic {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
        grid-auto-rows: 60px;
    }
    
    /* Maintain some magazine-style layouts on tablet */
    .photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(7) {
        grid-column: 2 / 4;
        grid-row: 3 / 5;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(8) {
        grid-column: 2 / 4;
        grid-row: 3 / 5;
    }
    
    .engagement-photos-section, .story-cats-section, .creative-works-section {
        margin: 40px 0;
    }
}

@media (max-width: 480px) {
    /* Mobile magazine-style layouts - much more dynamic! */
    .photo-mosaic,
    .cats-mosaic,
    .creative-mosaic {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 50px;
        max-width: 100%;
        padding: 0 15px;
        gap: 4px;
    }
    
    /* Engagement Photos - Dynamic Mobile Layout for 12 photos */
    .photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    
    .photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(2) {
        grid-column: 3 / 5;
        grid-row: 1 / 3;
    }
    
    .photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(3) {
        grid-column: 5 / 6;
        grid-row: 1 / 2;
    }
    
    .photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(4) {
        grid-column: 6 / 7;
        grid-row: 1 / 2;
    }
    
    .photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(5) {
        grid-column: 5 / 7;
        grid-row: 2 / 3;
    }
    
    .photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(6) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(7) {
        grid-column: 2 / 4;
        grid-row: 3 / 5;
    }
    
    .photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(8) {
        grid-column: 4 / 6;
        grid-row: 3 / 4;
    }
    
    .photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(9) {
        grid-column: 6 / 7;
        grid-row: 3 / 5;
    }
    
    .photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(10) {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }
    
    .photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(11) {
        grid-column: 4 / 5;
        grid-row: 4 / 5;
    }
    
    .photo-mosaic:not(.cats-mosaic):not(.creative-mosaic) .mosaic-photo:nth-child(12) {
        grid-column: 5 / 6;
        grid-row: 4 / 5;
    }
    
    /* Cats Mosaic - Dynamic Mobile Layout */
    .cats-mosaic .mosaic-photo:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(2) {
        grid-column: 3 / 5;
        grid-row: 1 / 3;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(3) {
        grid-column: 5 / 7;
        grid-row: 1 / 2;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(4) {
        grid-column: 5 / 6;
        grid-row: 2 / 3;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(5) {
        grid-column: 6 / 7;
        grid-row: 2 / 3;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(6) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(7) {
        grid-column: 2 / 4;
        grid-row: 3 / 5;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(8) {
        grid-column: 4 / 6;
        grid-row: 3 / 4;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(9) {
        grid-column: 6 / 7;
        grid-row: 3 / 5;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(10) {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(11) {
        grid-column: 4 / 5;
        grid-row: 4 / 5;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(12) {
        grid-column: 5 / 6;
        grid-row: 4 / 5;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(13) {
        grid-column: 1 / 3;
        grid-row: 5 / 7;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(14) {
        grid-column: 3 / 4;
        grid-row: 5 / 6;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(15) {
        grid-column: 4 / 6;
        grid-row: 5 / 6;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(16) {
        grid-column: 6 / 7;
        grid-row: 5 / 6;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(17) {
        grid-column: 3 / 5;
        grid-row: 6 / 7;
    }
    
    .cats-mosaic .mosaic-photo:nth-child(18) {
        grid-column: 5 / 7;
        grid-row: 6 / 7;
    }
    
    /* Creative Works - Dynamic Mobile Layout */
    .creative-mosaic .mosaic-photo:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(2) {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(3) {
        grid-column: 4 / 6;
        grid-row: 1 / 2;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(4) {
        grid-column: 6 / 7;
        grid-row: 1 / 3;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(5) {
        grid-column: 3 / 5;
        grid-row: 2 / 3;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(6) {
        grid-column: 5 / 6;
        grid-row: 2 / 3;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(7) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(8) {
        grid-column: 2 / 4;
        grid-row: 3 / 5;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(9) {
        grid-column: 4 / 5;
        grid-row: 3 / 4;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(10) {
        grid-column: 5 / 7;
        grid-row: 3 / 5;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(11) {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(12) {
        grid-column: 4 / 5;
        grid-row: 4 / 5;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(13) {
        grid-column: 1 / 3;
        grid-row: 5 / 6;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(14) {
        grid-column: 3 / 5;
        grid-row: 5 / 6;
    }
    
    .creative-mosaic .mosaic-photo:nth-child(15) {
        grid-column: 5 / 7;
        grid-row: 5 / 6;
    }
    
    .mosaic-photo {
        border-radius: 4px;
    }
    
    .engagement-photos-section, .story-cats-section, .creative-works-section {
        margin: 30px 0;
    }
}
    
    .creative-works-section {
        margin: 30px 0;
    }
    
    .creative-intro p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    /* Add a "view all" indicator */
    .engagement-photos-section::after {
        content: "Click/tap any photo to view";
        display: block;
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-top: 15px;
        font-style: italic;
    }
    
    .story-cats-section::after {
        content: "Click/tap any photo to view";
        display: block;
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-top: 15px;
        font-style: italic;
    }
    
    .creative-works-section::after {
        content: "Click/tap any photo to view";
        display: block;
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-top: 15px;
        font-style: italic;
    }
}

/* Photos Section */
.photos-section {
    background: var(--accent-color);
    padding-top: 40px; /* Reduced gap from story section */
}

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

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    aspect-ratio: 1;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Details Section */
.details-section {
    background: var(--text-light);
}

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

.detail-card {
    background: var(--accent-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.detail-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.detail-card p {
    color: var(--text-muted);
    margin-bottom: 5px;
}

.rsvp-reminder {
    text-align: center;
    padding: 30px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: var(--secondary-color);
    text-align: center;
}

.contact-section h2 {
    color: var(--text-light);
}

.contact-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent-color);
}

/* Community Contribution Section */
.contribute-section {
    background: var(--accent-color);
    padding: 80px 0;
}

.contribute-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contribute-text {
    margin-bottom: 40px;
}

.contribute-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contribution-form {
    background: var(--text-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: left;
}

.contribution-form .form-group {
    margin-bottom: 25px;
}

.contribution-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.contribution-form input,
.contribution-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Lato', sans-serif;
    resize: vertical;
}

.contribution-form input:focus,
.contribution-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(122, 132, 113, 0.1);
}

.contribution-form textarea {
    min-height: 120px;
}

.contribution-form .submit-btn {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .couple-names {
        font-size: 2.5rem;
    }
    
    .hero-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .main-content {
        margin-top: 70px;
    }
    
    .nav-container {
        padding: 12px 20px;
    }
    
    .story-row {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .story-row.reverse {
        direction: ltr;
    }
    
    .story-cats-photos {
        gap: 20px;
    }
    
    .story-cats-photos .story-photo {
        width: 250px;
        height: 250px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .contribute-content {
        padding: 0 20px;
    }
    
    .contribution-form {
        padding: 30px 20px;
    }
    
    .contribute-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 2rem;
    }
    
    .form-intro h2 {
        font-size: 1.5rem;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .nav-container {
        padding: 10px 15px;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .hero-banner {
        height: 50vh;
        min-height: 400px;
    }
}
