/*! elementor-pro - v3.24.0 - 01-10-2024 */
body.woocommerce #content div.product .elementor-widget-o2vape-image-gallery div.images,body.woocommerce div.product .elementor-widget-o2vape-image-gallery div.images,body.woocommerce-page #content div.product .elementor-widget-o2vape-image-gallery div.images,body.woocommerce-page div.product .elementor-widget-o2vape-image-gallery div.images {
    float: none;
    padding: 0;
    width: 100%
}

body.rtl.woocommerce #content div.product .elementor-widget-o2vape-image-gallery div.images,body.rtl.woocommerce div.product .elementor-widget-o2vape-image-gallery div.images,body.rtl.woocommerce-page #content div.product .elementor-widget-o2vape-image-gallery div.images,body.rtl.woocommerce-page div.product .elementor-widget-o2vape-image-gallery div.images {
    float: none;
    padding: 0
}

.woocommerce div.product div.images .flex-control-thumbs li {
    width: 15% !important;
}

.woocommerce .elementor-widget-o2vape-image-gallery span.onsale {
    padding: 0
}

.flex-control-nav {
    display: flex;
    overflow-x: auto; /* Enables horizontal scrolling */
    gap: 5px; /* Adds spacing between items */
    padding: 10px 0; /* Optional padding */
    scroll-snap-type: x mandatory; /* Optional: enables snapping */
    scroll-behavior: smooth;
     /* Hide scrollbar in WebKit browsers */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hides scrollbar in Firefox */
}

/* WebKit browsers */
.flex-control-nav::-webkit-scrollbar {
    display: none;
}

.flex-control-nav li {
    flex: 0 0 auto; /* Ensures items do not shrink */
    scroll-snap-align: start; /* Optional: snapping alignment */
}

a.carousel-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #FFF;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 2px;
    padding: 3px 8px;
    width: 40px;
    height: 40px;
    text-decoration: none;
    z-index: 1;
    cursor: pointer;
    text-align: center;
}

a.carousel-nav i {
    font-size: 24px;
}

.carousel-nav.prev {
    left: 0;
}
.carousel-nav.next {
    right: 0;
}
.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}

.woocommerce-product-gallery__trigger {
    background: rgba(0, 0, 0, 0.7) !important;
    
}

.woocommerce-product-gallery__trigger::before {
    border-color: #FFF !important;
}

.woocommerce-product-gallery__trigger::after {
    background: #FFF !important; 
}

.woocommerce-product-gallery__trigger:hover {
    background: rgba(0, 0, 0, 0.9) !important;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    height: 100%;
    object-fit: cover;
    max-height: 35px;
}



.woocommerce div.product div.images img.vertical {
    object-fit: contain;
    max-height: 18rem;
}

@media screen and (min-width: 1024px) {
    .woocommerce div.product div.images img.vertical {
        max-height: 20em;
    }

    .woocommerce div.product div.images .flex-control-thumbs li img  {
        max-height: 65px;
    }
}

@media screen and (min-width: 1250px) {
    .woocommerce div.product div.images img.vertical {
        max-height: 25em;
    }
}
@media screen and (min-width: 1500px) {
    .woocommerce div.product div.images img.vertical {
        max-height: 30em;
    }
}
/* Styling for the play button overlay */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: none;
}

/* Control SVG size directly */
.play-button-overlay svg {
    width: 32px; /* Adjust to desired size */
    height: 32px; /* Adjust to desired size */
    color: white;
}

.woocommerce div.product div.images a.woocommerce-product-gallery__trigger {
    z-index: 1;
}