/* ===== SERP Galeries ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
}

.gallery-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    text-decoration: none;
    color: var(--text);
}

.gallery-card-img {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #0f172a;
}

.gallery-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card h2 {
    font-size: 0.95rem;
    padding: 0.7rem 0.8rem;
    margin: 0;
}

.no-thumb {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== Fiche galerie (réutilise .gallery-item déjà existant) ===== */
.page-fiche .gallery-grid {
    margin-top: 1.5rem;
}


/* Vignettes dans la fiche galerie */
.page-fiche .gallery-item {
    border-radius: 6px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.06);   /* séparateur très discret */
    transition: transform 0.2s, border-color 0.2s;
    display: flex;                  /* pour centrer l’image */
    align-items: center;
    justify-content: center;
}

.page-fiche .gallery-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.page-fiche .gallery-item img {
    /*width: 100%;*/
    height: 100%;
    object-fit: contain;            /* important : garde les proportions et centre */
    transition: transform 0.3s;
}

.page-fiche .gallery-item:hover img {
    transform: scale(1.03);
}

