.lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: zoom-in;
}

.lightbox.zoomed img {
    max-width: none;
    max-height: none;
    cursor: grab;
}

.lightbox.zoomed img:active {
    cursor: grabbing;
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000000;
    width: 2rem;
    height: 2rem;
    text-align: center;
    line-height: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}