/* ========== MODERN GALLERY SECTION ========== */
.modern-gallery-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    height: 350px;
    transition: all var(--transition-normal);
}

.gallery-item-tall {
    grid-row: span 2;
    height: 720px;
}

.gallery-item-wide {
    grid-column: span 2;
}

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

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.7) 50%, transparent 100%);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    z-index: 2;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h3 {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gallery-item-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

/* Responsive adjustments for gallery */
@media (max-width: 1024px) {
    .modern-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item-tall {
        height: 350px;
        grid-row: span 1;
    }

    .gallery-item-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .modern-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 300px;
    }

    .gallery-item-tall {
        height: 300px;
    }
}