/**
 * Lightbox du slider showroom.
 * Styles auparavant imprimes en ligne dans le pied de page.
 */

body.moex-lightbox-open {
    overflow: hidden;
}

.moex-lightbox {
    display: flex;
    position: fixed !important;
    z-index: 2147483647 !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* L'attribut hidden pilote l'affichage, il doit primer sur display: flex. */
.moex-lightbox[hidden] {
    display: none !important;
}

.moex-lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Remise a zero des styles natifs des boutons. */
.moex-lightbox-close,
.moex-lightbox-nav {
    background: none;
    border: 0;
    margin: 0;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
}

.moex-lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    z-index: 10001;
}

.moex-lightbox-close:hover,
.moex-lightbox-close:focus {
    color: #bbb;
}

.moex-lightbox-nav {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: #fff;
    padding: 10px;
    z-index: 10000;
    user-select: none;
    transform: translateY(-50%);
}

.moex-lightbox-prev {
    left: 15px;
}

.moex-lightbox-next {
    right: 15px;
}
