/**
 * Pulsar Video Lightbox Widget Styles
 */

.pulsar-video-lightbox {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    max-width: 100%;
}

.pulsar-video-lightbox-thumbnail {
    position: relative;
    width: 100%;
    height: 260px; /* Default desktop height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    overflow: hidden;
}

.pulsar-video-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Black with 20% opacity */
    transition: background-color 0.3s ease;
    z-index: 1; /* Ensure overlay is below the play icon */
}

.pulsar-video-lightbox-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    background: none;
    border-radius: 0;
}

.pulsar-video-lightbox-play-icon svg {
    width: 26px; /* Desktop width */
    height: 33px; /* Desktop height */
    fill: #ffffff;
    padding: 0;
    margin: 0;
    display: block;
}

/* Hover effects */
.pulsar-video-lightbox:hover .pulsar-video-lightbox-play-icon {
    transform: translate(-50%, -50%); /* No scaling */
}

.pulsar-video-lightbox:hover .pulsar-video-lightbox-overlay {
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darker on hover */
}

/* Zoom hover effect - only scale the background image */
.pulsar-video-lightbox-thumbnail {
    position: relative;
    overflow: hidden;
    background-image: none !important; /* Remove background image from the container */
}

.pulsar-video-lightbox-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    z-index: 0;
}

/* Apply the background image to the pseudo-element instead */
.pulsar-video-hover-zoom:hover .pulsar-video-lightbox-thumbnail::before {
    transform: scale(1.00);
}

/* Pulse animation for play button */
.pulsar-video-hover-pulse .pulsar-video-lightbox-play-icon {
    animation: pulsar-video-pulse 2s infinite;
}

@keyframes pulsar-video-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Responsive styles */
@media (max-width: 767px) {
    .pulsar-video-lightbox-thumbnail {
        height: 200px; /* Mobile height */
    }
    
    .pulsar-video-lightbox-play-icon svg {
        width: 20px; /* Mobile width */
        height: 28px; /* Mobile height */
    }
    
    /* Mobile play icon dimensions already set above */
}
