/* Lightbox for linked content images (js/lightbox.js) */
.wm-lightbox-open { overflow: hidden; }

.wm-lightbox {
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 3.5rem 4.5rem;
    color: #fff;
    background: transparent;
    border: 0;
}
.wm-lightbox::backdrop { background: rgb(18 16 20 / 94%); }

.wm-lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
}
.wm-lightbox__image {
    display: block;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--wm-radius-sm);
    user-select: none;
}
.wm-lightbox__caption {
    flex-shrink: 0;
    padding-top: .75rem;
    font-size: var(--wm-step--1);
    line-height: 1.45;
    text-align: center;
}
.wm-lightbox__counter {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    font-family: var(--wm-font-display);
    font-weight: 800;
    letter-spacing: .04em;
    opacity: .85;
}

.wm-lightbox__button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    font-size: 2.25rem;
    line-height: 1;
    color: #fff;
    background: rgb(255 255 255 / 10%);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s;
}
.wm-lightbox__button:hover { background: var(--wm-red); }
.wm-lightbox__button:focus-visible { outline: 3px solid var(--wm-focus); outline-offset: 2px; }
.wm-lightbox__button[hidden] { display: none; }
.wm-lightbox__close { top: .5rem; right: .75rem; }
.wm-lightbox__prev, .wm-lightbox__next { top: 50%; translate: 0 -50%; }
.wm-lightbox__prev { left: .75rem; }
.wm-lightbox__next { right: .75rem; }

@media (max-width: 47.99em) {
    .wm-lightbox { padding: 3.5rem .5rem 4.5rem; }
    .wm-lightbox__prev, .wm-lightbox__next { top: auto; bottom: .75rem; translate: none; }
}
