.ezuri-video-gallery-container {
    position: relative;
    width: 100%;
}

.ezuri-video-gallery-main .ezuri-video-gallery-container {
    margin-bottom: 0;
}

.ezuri-video-gallery-video {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 4px;
}

.ezuri-video-gallery-main {
    position: relative;
}

.ezuri-video-gallery-main a {
    display: block;
    position: relative;
}

.ezuri-video-gallery-thumb {
    position: relative;
    display: inline-block;
}

.ezuri-video-gallery-thumb a {
    position: relative;
    display: block;
}

.ezuri-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.ezuri-video-gallery-thumb:hover .ezuri-video-play-icon {
    background-color: rgba(0, 0, 0, 0.9);
}

.woocommerce-product-gallery .ezuri-video-gallery-thumb img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .ezuri-video-play-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Fix na wideo w produktach */
.wpgs-lightbox-icon:has(video) {
	pointer-events: none!important;
}

.wpgs-lightbox-icon video {
	pointer-events: auto!important;
}

.wpgs-lightbox-icon.ezuri-video-loaded {
	display: block!important;
}

.wpgs-nav .slick-slide {
	height: 100px!important;
	width: 100px!important;
}

body.ezuri-product-has-video .wpgs-nav .slick-slide:nth-child(2) {
    position: relative;
}

body.ezuri-product-has-video .wpgs-nav .slick-slide:nth-child(2):after {
    align-items: center;
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23000'/%3E%3C/svg%3E");
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: 55% center;
    border-radius: 50%;
    box-shadow: 0 0 2px 3px rgba(0, 0, 0, .125);
    content: "";
    display: flex;
    height: 24px; 
    justify-content: center;
    left: 50%;
    padding-top: 2px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 24px;
    z-index: 1;
}

.ezuri-video-gallery-container {
    max-height: calc(100vh - 160px);
    position: relative;
}
.ezuri-video-gallery-container video {
    max-height: calc(100vh - 160px);
}

.ezuri-video-gallery-video-overlay {
    background-color: #fff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.ezuri-video-gallery-video-overlay:after {
    align-items: center;
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23000'/%3E%3C/svg%3E");
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: 55% center;
    border-radius: 50%;
    box-shadow: 0 0 2px 3px rgba(0, 0, 0, .125);
	content: "";
    display: flex;
    font-size: 36px;
    height: 64px; 
    justify-content: center;
    left: 50%;
    padding-top: 4px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 64px;
    z-index: 1;
}

.ezuri-video-gallery-video.is-playing + .ezuri-video-gallery-video-overlay {
    display: none;
}