/* Shortcode-generated video section styles */
.wpcpv-videos-section {
    clear: both;
    margin-top: 30px;
}

.wpcpv-videos-section h2 {
    font-size: 14px;
    margin-bottom: 15px;
}

.wpcpv-videos-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpcpv-video-item {
    position: relative;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.wpcpv-video-item a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.wpcpv-video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpcpv-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 10;
    line-height: 1;
}

.wpcpv-video-item:hover .wpcpv-play-icon {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Lightbox styles for the video player */
.wpcpv-lightbox-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.3s, visibility 0.3s !important;
}

.wpcpv-lightbox-overlay.active {
    visibility: visible !important;
    opacity: 1 !important;
}

.wpcpv-lightbox-content {
    position: relative !important;
    max-width: 90% !important;
    max-height: 90% !important;
    overflow: hidden !important;
}

.wpcpv-lightbox-content iframe,
.wpcpv-lightbox-content video {
    display: block !important;
    width: 100% !important; /* Ahora el video llenará el contenedor */
    height: auto !important; /* La altura se ajustará automáticamente */
    border: none !important;
    max-height: 80vh !important;
}

.wpcpv-lightbox-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    color: #fff !important;
    font-size: 30px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 10000 !important;
}