.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.92);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.gallery-lightbox[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox-image {
    display: block;

    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;
}

.gallery-lightbox button {
    position: absolute;

    border: 0;
    padding: 0;

    background: transparent;
    color: white;

    cursor: pointer;

    font-family: inherit;
    font-size: 3rem;
    line-height: 1;
}

.gallery-lightbox-close {
    top: 20px;
    right: 30px;
}

.gallery-lightbox-prev {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-next {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox button:hover {
    opacity: 0.65;
}

.gallery-lightbox-open {
    overflow: hidden;
}

@media (max-width: 600px) {

    .gallery-lightbox-image {
        max-width: 94vw;
        max-height: 82vh;
    }

    .gallery-lightbox-close {
        top: 12px;
        right: 18px;
    }

    .gallery-lightbox-prev {
        left: 12px;
    }

    .gallery-lightbox-next {
        right: 12px;
    }

}