/* Simple Lightbox Style */
.sl-lightbox {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.sl-lightbox.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.sl-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 900px;
    max-height: 90vh;
    transition: transform 0.3s ease;
    object-fit: contain;
}

@media (max-width: 900px) {
    .sl-lightbox-content {
        max-width: 80%;
    }
}

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

/* Video Wrapper */
.sl-video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 900px;
    max-width: 100%;
    max-height: 90vh;
    aspect-ratio: 16 / 9;
    background: #000;
    transition: transform 0.3s ease;
}

@media (max-width: 900px) {
    .sl-video-wrapper {
        width: 80%;
    }
}

.sl-lightbox.active .sl-video-wrapper {
    transform: translate(-50%, -50%) scale(1);
}

.sl-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* YouTube Shorts Wrapper (Vertical Format) */
.sl-shorts-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: auto;
    height: 95vh;
    max-height: none;
    aspect-ratio: 9 / 16;
    background: #000;
    transition: transform 0.3s ease;
}

.sl-lightbox.active .sl-shorts-wrapper {
    transform: translate(-50%, -50%) scale(1);
}

.sl-shorts-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.sl-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    border-radius: 50%;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.sl-close:hover {
    background-color: #ff3b30;
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    border-color: #ff3b30;
}