/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Lightbox Image */
.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.lightbox-close:hover {
    color: #ff5722;
}

/* Navigation Buttons */
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s, background 0.3s;
    user-select: none;
    z-index: 2001;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: #ff5722;
    background: rgba(0,0,0,0.5);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Caption */
.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 16px;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
