/* ===================================
   Gallery Section Styles
   Exact replica of masonry grid layout
   =================================== */

.gallery-section {
    position: relative;
    padding: 4rem 0 1rem;
    overflow: hidden;
    background: #fff;
}

/* Decorative Elements */
.gallery-decoration-top {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    z-index: 5;
    width: 180px;
    height: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.gallery-birds {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.3);
    z-index: 4;
    letter-spacing: 1.5rem;
}

.gallery-balloon {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: auto;
    z-index: 1;
    opacity: 0.9;
}

/* Section Heading */
.gallery-heading {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 10;
    margin-top: 3rem;
}

.gallery-heading h2 {
    font-family: 'Brush Script MT', cursive;
    color: #f59e0b;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.gallery-heading h3 {
    font-family: 'Georgia', serif;
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0;
}

/* Gallery Grid Container */
.gallery-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 80px;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

/* Individual Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

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

/* EXACT Grid Positioning */
/* Child 1 (Hero): Top Left Large Square */
.gallery-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Child 2 (Wide): Top Right Horizontal */
.gallery-item:nth-child(2) {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

/* Child 3 (Small): Center Right */
.gallery-item:nth-child(3) {
    grid-column: 3;
    grid-row: 1 / 3;
}

/* Child 4 (Small): Top Right Corner Lower */
.gallery-item:nth-child(4) {
    grid-column: 4;
    grid-row: 2 / 3;
}

/* Child 5 (Tall): Bottom Left Vertical */
.gallery-item:nth-child(5) {
    grid-column: 1;
    grid-row: 3 / 5;
}

/* Child 6 (Small): Bottom Center Input */
.gallery-item:nth-child(6) {
    grid-column: 2;
    grid-row: 3 / 4;
}

/* Child 7 (Hero 2): Bottom Right Large Square */
.gallery-item:nth-child(7) {
    grid-column: 3 / 5;
    grid-row: 3 / 5;
}

/* Child 8 (Small): Bottom Center Filler to complete the grid */
.gallery-item:nth-child(8) {
    grid-column: 2;
    grid-row: 4 / 5;
}

/* ===================================
   Desktop Adjustments (992px+)
   Same grid, just larger scale
   =================================== */
@media (min-width: 992px) {
    .gallery-section {
        padding: 5rem 0 6rem;
    }

    .gallery-decoration-top {
        width: 220px;
        top: -15px;
    }

    .gallery-birds {
        top: 100px;
        font-size: 1.5rem;
    }

    .gallery-balloon {
        display: block;
        width: 150px;
        left: 60px;
    }

    .gallery-heading {
        margin-bottom: 4rem;
        margin-top: 3.5rem;
    }

    .gallery-heading h2 {
        font-size: 3rem;
    }

    .gallery-heading h3 {
        font-size: 2.2rem;
    }

    .gallery-grid {
        grid-auto-rows: 120px;
        gap: 1rem;
    }

    .gallery-item {
        border-radius: 14px;
    }
}

/* Mobile - Hide balloon decoration */
@media (max-width: 991px) {
    .gallery-balloon {
        display: none;
    }

    .gallery-heading h2 {
        font-size: 2rem;
    }

    .gallery-heading h3 {
        font-size: 1.5rem;
    }

    .gallery-decoration-top {
        width: 140px;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .gallery-grid {
        grid-auto-rows: 60px;
        gap: 0.4rem;
    }

    .gallery-item {
        border-radius: 8px;
    }

    .gallery-heading h2 {
        font-size: 1.6rem;
    }

    .gallery-heading h3 {
        font-size: 1.2rem;
    }

    .gallery-decoration-top {
        width: 120px;
        top: -8px;
    }

    .gallery-birds {
        font-size: 1rem;
        top: 60px;
    }
}