/* Conteneur d'images dans la carte */
.club-fb-media-container {
    width: 100%;
    height: 220px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

/* 1 seule image : prend tout l'espace */
.club-fb-media-container.count-1 {
    display: block;
}
.club-fb-media-container.count-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2 images ou plus : disposition en grille dynamique */
.club-fb-media-container.count-2,
.club-fb-media-container.count-3,
.club-fb-media-container.count-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.club-fb-media-container.count-3 img,
.club-fb-media-container.count-4 img {
    height: 110px;
}

.club-fb-img-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.club-fb-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.club-fb-img-wrapper:hover img {
    transform: scale(1.05);
}

/* Pastille s'il y a plus de 4 photos */
.club-fb-more-photos {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}