
/* =========================================
   GALERIE PHOTOS - MACON TENNIS DE TABLE
   ========================================= */

.mtt-galeries {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 30px 0;
    width: 100%;
}

/* Carte */
.mtt-galeries > a {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: 14px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

/* Survol */
.mtt-galeries > a:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.20);
}

/* Photo */
.mtt-galeries > a > img {
    display: block !important;
    width: 100% !important;
    height: 180px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center;
    margin: 0 !important;
    border: 0;
}

/* Titre sous la photo */
.mtt-galeries .titre {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 76px;
    padding: 14px 12px;
    background: #ffffff;
    color: #075b91 !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;
}

/* Couleur au survol */
.mtt-galeries > a:hover .titre {
    color: #0094d4 !important;
}

/* Tablettes : 2 colonnes */
@media (max-width: 991px) {
    .mtt-galeries {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Smartphones : 1 colonne */
@media (max-width: 575px) {
    .mtt-galeries {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mtt-galeries > a > img {
        height: 220px !important;
    }
}
