﻿
#subheader .container.text-center {
    padding-top: 100px; /* desktop */
}

/* Mobile */
@media (max-width: 768px) {
    #subheader .container.text-center {
        padding-top: 30px;
    }
}

.zoom-gallery {
    padding-bottom: 40px;
}

.gallery-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

    /* FIXED ASPECT RATIO (NO GAPS) */
    .gallery-card::before {
        content: "";
        display: block;
        padding-top: 75%; /* 4:3 ratio */
    }

    .gallery-card img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s ease;
    }

/* Hover zoom (desktop only) */
@media (hover: hover) {
    .gallery-card:hover img {
        transform: scale(1.08);
    }
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .3s ease;
    z-index: 2;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 26px;
    color: #fff;
}

/* ================= MOBILE FIX ================= */

@media (max-width: 768px) {

    /* smaller gap */
    #gallery {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    /* overlay always visible on mobile */
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient( to top, rgba(0,0,0,.6), rgba(0,0,0,.05) );
    }

        .gallery-overlay i {
            font-size: 22px;
        }
}
