/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(45, 59, 68, 0.94);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.is-open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--color-white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color var(--transition);
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Video Modal */

.video-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(45, 59, 68, 0.96);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.is-open {
    display: flex;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16/9;
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--color-white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color var(--transition);
}

.video-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

body.has-overlay-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .lightbox,
    .video-modal {
        padding: 20px;
    }

    .lightbox-close,
    .video-modal-close {
        top: -45px;
    }
}
