.document-gallery > li a {
    cursor: zoom-in;
}

.document-gallery > li a img {
    transition: transform .25s ease, box-shadow .25s ease;
}

.document-gallery > li a:hover img {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.doc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    background: rgba(9, 12, 16, .94);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.doc-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.doc-lightbox figure {
    margin: 0;
    max-width: min(1000px, 90vw);
    max-height: 90vh;
    text-align: center;
}

.doc-lightbox figure img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .5);
}

.doc-lightbox figcaption {
    padding-top: 14px;
    color: #fff;
    font-size: 14px;
    letter-spacing: .08em;
}

.doc-lightbox button {
    position: absolute;
    z-index: 1;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.doc-lightbox button:hover {
    background: #f7931e;
    border-color: #f7931e;
    transform: scale(1.06);
}

.doc-lightbox-close {
    top: 24px;
    right: 28px;
    font-size: 34px !important;
}

.doc-lightbox-prev {
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
}

.doc-lightbox-next {
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
}

.doc-lightbox-prev:hover,
.doc-lightbox-next:hover {
    transform: translateY(-50%) scale(1.06);
}

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

@media (max-width: 768px) {
    .doc-lightbox {
        padding: 60px 48px 35px;
    }

    .doc-lightbox figure img {
        max-height: 76vh;
    }

    .doc-lightbox button {
        width: 42px;
        height: 42px;
        font-size: 23px;
    }

    .doc-lightbox-close {
        top: 14px;
        right: 14px;
    }

    .doc-lightbox-prev {
        left: 8px;
    }

    .doc-lightbox-next {
        right: 8px;
    }
}
