/* Lightbox CSS */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
}

.image-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.image-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    max-width: 90%;
    max-height: 90vh;
    z-index: 2001;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-lightbox.active .image-lightbox-content {
    transform: translate(-50%, -50%) scale(1);
}

.image-lightbox-content img,
.image-lightbox-content video,
.image-lightbox-content iframe {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    background-color: #fff;
}

.image-lightbox-close {
    position: absolute;
    top: -40px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    outline: none;
}

.image-lightbox-close:hover {
    opacity: 1;
}

@media (min-width: 769px) {
    .image-lightbox-close {
        top: -40px;
        right: -40px;
        font-size: 2.5rem;
    }
}