/* ================================
   Gallery Section
   ================================ */

.gallery-section {
    padding: 80px 0;
    background: #f8f8fa;
    position: relative;
}

.gallery-header {
    text-align: center;
    margin-bottom: 48px;
}

.gallery-header .section-tag {
    color: #d32f2f;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.gallery-header .section-title-v2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #1e1e1e;
    line-height: 1.2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Make some items span differently for a masonry feel if there are 5 */
.gallery-grid .gallery-item:nth-child(1),
.gallery-grid .gallery-item:nth-child(2) {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .gallery-grid .gallery-item {
        grid-column: span 1 !important;
    }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    aspect-ratio: 4/5;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* The posters have text, contain avoids slicing text, or cover if they are designed for it. The user said: "let these image cover that who9le section ands make saiute look nice". Let's use cover but carefully, or contain with black/white bg. Actually, 'cover' is often better for a gallery. */
    object-position: center;
    transition: transform 0.5s ease;
}

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