.n0bs-lightbox-open {
    overflow: hidden;
}

.n0bs-lightbox {
    align-items: center;
    background: rgba(0, 0, 0, 0.88);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99999;
}

.n0bs-lightbox.is-open {
    display: flex;
}

.n0bs-lightbox__image {
    max-height: calc(100vh - 96px);
    max-width: min(1120px, calc(100vw - 112px));
    object-fit: contain;
}

.n0bs-lightbox__button {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font: 400 32px/1 Arial, sans-serif;
    height: 48px;
    justify-content: center;
    padding: 0;
    position: absolute;
    transition: background 0.2s ease, border-color 0.2s ease;
    width: 48px;
}

.n0bs-lightbox__button:hover,
.n0bs-lightbox__button:focus {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

.n0bs-lightbox__close {
    right: 24px;
    top: 24px;
}

.n0bs-lightbox__prev,
.n0bs-lightbox__next {
    top: 50%;
    transform: translateY(-50%);
}

.n0bs-lightbox__prev {
    left: 24px;
}

.n0bs-lightbox__next {
    right: 24px;
}

.n0bs-lightbox__counter {
    bottom: 24px;
    color: #fff;
    font: 400 14px/1.4 Arial, sans-serif;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .n0bs-lightbox {
        padding: 16px;
    }

    .n0bs-lightbox__image {
        max-height: calc(100vh - 112px);
        max-width: calc(100vw - 32px);
    }

    .n0bs-lightbox__button {
        font-size: 26px;
        height: 42px;
        width: 42px;
    }

    .n0bs-lightbox__close {
        right: 16px;
        top: 16px;
    }

    .n0bs-lightbox__prev {
        left: 16px;
    }

    .n0bs-lightbox__next {
        right: 16px;
    }
}
