/* CSS for YouTube Lightbox */
.wpe-ytlightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.wpe-ytlightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.wpe-ytlightbox-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: auto;
}

/* Custom dimensions support */
.wpe-ytlightbox-content.custom-size {
    width: auto;
    max-width: none;
}

.wpe-ytlightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 2;
}

.wpe-ytlightbox-video-container {
    position: relative;
    padding-bottom: 56.25%; /* Default 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

/* Override for custom dimensions */
.wpe-ytlightbox-video-container.custom-size {
    padding-bottom: 0;
    height: auto;
}

.wpe-ytlightbox-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Custom cursor for trigger elements */
[data-ytclass="wpe-lightbox"] {
    cursor: pointer;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .wpe-ytlightbox-overlay {
        padding: 10px;
    }
    
    .wpe-ytlightbox-content:not(.custom-size) {
        width: 95%;
    }
    
    .wpe-ytlightbox-close {
        top: -35px;
        right: 0;
    }
}