.wik-image-lightbox {
    align-items: center;
    background: rgba(0, 0, 0, 0.86);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 4rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 20000;
}

.wik-image-lightbox.is-open {
    display: flex;
}

.wik-image-lightbox__stage {
    max-height: 90vh;
    max-width: 96vw;
    text-align: center;
}

.wik-image-lightbox__image {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    display: block;
    height: auto;
    max-height: 86vh;
    max-width: 96vw;
    object-fit: contain;
    width: auto;
}

.wik-image-lightbox__caption {
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.4;
    margin-top: 1rem;
    max-width: 96vw;
}

.wik-image-lightbox__close {
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 3rem;
    height: 4.4rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: fixed;
    right: 1.5rem;
    top: 1.5rem;
    width: 4.4rem;
    z-index: 20001;
}

.wik-image-lightbox__close:hover,
.wik-image-lightbox__close:focus {
    background: rgba(255, 255, 255, 0.16);
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

body.wik-image-lightbox-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .wik-image-lightbox {
        padding: 1.5rem;
    }

    .wik-image-lightbox__close {
        height: 4rem;
        right: 1rem;
        top: 1rem;
        width: 4rem;
    }
}
