/* Galerie plein écran (prévisualisation des photos produit côté client).
   Voir /js/lightbox-produits.js. */
[data-photos-produit] { cursor: pointer; }

.lightbox-produit-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}
.lightbox-produit-overlay.ouvert { display: flex; }

.lightbox-produit-image {
    max-width: 92vw;
    max-height: 85vh;
    border-radius: 6px;
    object-fit: contain;
}

.lightbox-produit-fermer {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.6rem;
}

.lightbox-produit-precedent,
.lightbox-produit-suivant {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    font-size: 2.4rem;
    line-height: 1;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
}
.lightbox-produit-precedent:hover,
.lightbox-produit-suivant:hover,
.lightbox-produit-fermer:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-produit-precedent { left: 1rem; }
.lightbox-produit-suivant { right: 1rem; }

.lightbox-produit-compteur {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    opacity: 0.85;
}

@media (max-width: 640px) {
    .lightbox-produit-precedent, .lightbox-produit-suivant { width: 2.4rem; height: 2.4rem; font-size: 2rem; }
}

