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

.vanilla-lightbox[hidden] {
    display: none;
}

.vanilla-lightbox {
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 10000;
}

.vanilla-lightbox__panel {
    max-height: 100%;
    max-width: min(1100px, 100%);
    position: relative;
}

.vanilla-lightbox__image {
    background: #111;
    border: 3px solid #fff;
    border-radius: 4px;
    display: block;
    max-height: calc(100vh - 120px);
    max-width: 100%;
    object-fit: contain;
}

.vanilla-lightbox__close,
.vanilla-lightbox__previous,
.vanilla-lightbox__next {
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font: inherit;
    justify-content: center;
    position: absolute;
    z-index: 2;
}

.vanilla-lightbox__close {
    font-size: 30px;
    height: 42px;
    right: 10px;
    top: 10px;
    width: 42px;
}

.vanilla-lightbox__previous,
.vanilla-lightbox__next {
    font-size: 42px;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
}

.vanilla-lightbox__previous {
    left: 10px;
}

.vanilla-lightbox__next {
    right: 10px;
}

.vanilla-lightbox__details {
    color: #fff;
    display: flex;
    font-size: 14px;
    gap: 20px;
    justify-content: space-between;
    line-height: 1.4;
    padding-top: 10px;
}

.vanilla-lightbox__counter {
    color: #bbb;
    flex: 0 0 auto;
}

@media (max-width: 600px) {
    .vanilla-lightbox {
        padding: 12px;
    }

    .vanilla-lightbox__previous,
    .vanilla-lightbox__next {
        height: 44px;
        width: 44px;
    }
}
