/**
 * Product Videos Shortcode Styles - Lightbox Version
 * File: /css/product-videos.css
 */

 .product-videos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
    margin-top: -25px;
}

.product-video-item {
    width: 100%;
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.video-thumbnail-link {
    display: block;
    text-decoration: none;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 1; /* Makes it perfectly square */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0; /* Fallback background */
    border-radius: 0px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail-link:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button {
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2;
}

.video-thumbnail:hover .play-button {
    transform: scale(1.1);
}

.play-button svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    width: 15%; /* Scale play button relative to container */
    height: 15%;
    min-width: 40px; /* Minimum size for usability */
    min-height: 40px;
    max-width: 80px; /* Maximum size */
    max-height: 80px;
}

/* Overlay effect on hover */
.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.video-thumbnail:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive: Keep side-by-side but scale down */
@media (max-width: 768px) {
    .product-videos-container {
        gap: 15px;
        margin: 0;
    }
    
    .play-button svg {
        min-width: 35px;
        min-height: 35px;
    }
}

@media (max-width: 480px) {
    .product-videos-container {
        gap: 10px;
        margin: 0;
    }
    
    .video-thumbnail {
        border-radius: 4px;
    }
    
    .play-button svg {
        min-width: 30px;
        min-height: 30px;
    }
}

/* Very small screens - still keep side by side */
@media (max-width: 320px) {
    .product-videos-container {
        gap: 8px;
    }
    
    .play-button svg {
        min-width: 25px;
        min-height: 25px;
    }
}
@media only screen and (min-width: 769px) {
    .fancybox-slide--iframe .fancybox-content {
        max-width: 90%;
        width: 1600px;
        background: transparent !important;
    }  
}
@media only screen and (max-width: 768px) {
    .fancybox-slide--iframe .fancybox-content {
        max-width: 100%;
        width: 100%;
        background: transparent !important;
    }  
}
