/**
 * CPT Lightbox — Styles v1.2
 */

/* ── Curseur zoom sur les images du contenu ── */
.wp-block-image img,
.wp-block-gallery img,
.blocks-gallery-item img,
article figure img,
main figure img {
    cursor: zoom-in;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wp-block-image img:hover,
.wp-block-gallery img:hover,
article figure img:hover {
    opacity: 0.88;
    transform: scale(1.01);
}

/* ── Overlay sombre ── */
.glightbox-clean .goverlay {
    background: rgba(10, 10, 10, 0.95);
}

/* ── Conteneur image dans la lightbox ── */
.glightbox-clean .gslide-image img {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
}

/* ── Boutons nav ── */
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    transition: background-color 0.2s ease;
}
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background-color: rgba(255, 255, 255, 0.28);
}

/* ── Bouton fermer ── */
.glightbox-clean .gclose {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background-color 0.2s ease;
}
.glightbox-clean .gclose:hover {
    background-color: rgba(255, 255, 255, 0.28);
}

/* ── Légende ── */
.glightbox-clean .gslide-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}
.glightbox-clean .gslide-desc {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .glightbox-clean .gnext,
    .glightbox-clean .gprev {
        width: 36px;
        height: 36px;
    }
}
