#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 1, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    color: white;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    max-width: 80%;
}

#lightbox .close,
#lightbox .prev,
#lightbox .next {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 4px;
    transition: background 0.2s;
}

#lightbox .close:hover,
#lightbox .prev:hover,
#lightbox .next:hover {
    background: rgba(0, 0, 0, 0.9);
}

#lightbox .close {
    top: -40px;
    right: 0;
}

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

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