/* Lightbox partagée (front ressources + back-office EasyAdmin). Voir rsc-lightbox.js. */

/* Images agrandissables */
.rsc-zoomable {
    cursor: zoom-in;
}
.rsc-zoomable:focus-visible {
    outline: 3px solid #ff5630;
    outline-offset: 2px;
}

/* Overlay plein écran */
.rsc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 15, 30, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.rsc-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.rsc-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
    transform: scale(0.98);
    transition: transform 0.2s ease;
}
.rsc-lightbox.is-open img {
    transform: scale(1);
}
.rsc-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.rsc-lightbox-close:hover,
.rsc-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    outline: none;
}
@media (prefers-reduced-motion: reduce) {
    .rsc-lightbox,
    .rsc-lightbox img {
        transition: none;
    }
    .rsc-lightbox img {
        transform: none;
    }
}
