/* ==========================================
LIGHTBOX
========================================== */

.lightbox {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.92);

    z-index: 999999;

    overflow: hidden;

    padding: 40px;

    box-sizing: border-box;
    touch-action: none;
}

.lightbox-image {

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    user-select: none;

    transform-origin: center center;

    will-change: transform;

    transition: transform 0.05s linear;

    cursor: zoom-in;
    touch-action: none;
}

.lightbox-image--zoomed {
    cursor: grab;
}

.lightbox-image--dragging {
    cursor: grabbing;
}

/* ==========================================
CLOSE BUTTON
========================================== */

.lightbox-close {

    position: absolute;

    top: 20px;
    right: 20px;

    width: 48px;
    height: 48px;

    border: none;

    border-radius: 999px;

    background: rgba(255,255,255,0.1);

    color: white;

    font-size: 28px;

    cursor: pointer;

    transition: 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}