/* Pop-up image (Rali_Popup) : largeur = min(500 px, écran − 50 px), hauteur ≤ écran − 50 px, proportions gardées. */
.rali-popup {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 1001;
}
.rali-popup[hidden] {
    display: none;
}
.rali-popup__overlay {
    background: rgba(0, 0, 0, .6);
    cursor: pointer;
    inset: 0;
    position: absolute;
}
.rali-popup__box {
    box-shadow: 0 5px 25px rgba(0, 0, 0, .35);
    line-height: 0;
    position: relative;
}
.rali-popup__link {
    display: block;
}
.rali-popup .rali-popup__image {
    display: block;
    height: auto;
    max-height: none;
    max-width: none;
    width: min(500px, calc(100vw - 50px), calc((100vh - 50px) * var(--rali-popup-ratio, 1)));
    width: min(500px, calc(100vw - 50px), calc((100dvh - 50px) * var(--rali-popup-ratio, 1)));
}
.rali-popup .rali-popup__close,
.rali-popup .rali-popup__close:hover,
.rali-popup .rali-popup__close:focus {
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
    color: #333;
    cursor: pointer;
    font-size: 24px;
    font-weight: 400;
    height: 32px;
    line-height: 32px;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 8px;
    text-align: center;
    top: 8px;
    width: 32px;
    z-index: 1;
}
.rali-popup .rali-popup__close:focus-visible {
    outline: 2px solid #1979c3;
    outline-offset: 2px;
}
body.rali-popup-open {
    overflow: hidden;
}
