.wps-product-gallery {
    max-width: 100%;
    margin: 0 auto;
}

.main-swiper {
    margin-bottom: 10px;
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.main-swiper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.main-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumb-swiper .swiper-wrapper {
    display: flex;
}

.thumb-swiper .swiper-slide {
    width: 100px;
    height: 100px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.thumb-swiper .swiper-slide-active {
    opacity: 1;
    border: 2px solid #000;
}

.swiper-button-next,
.swiper-button-prev {
    color: #000;
}

.video-thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    width: 100%;
    height: 100%;
}

.video-thumb .dashicons {
    font-size: 30px;
    color: #333;
}

.swiper-lazy-preloader {
    display: none;
    width: 42px;
    height: 42px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -21px;
    margin-top: -21px;
    z-index: 10;
    transform-origin: 50%;
    animation: swiper-preloader-spin 1s infinite linear;
}

.swiper-lazy-preloader.swiper-lazy-preloader-visible {
    display: block;
}

@keyframes swiper-preloader-spin {
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .thumb-swiper .swiper-slide {
        width: 60px;
        height: 60px;
    }
}

/* Elementor specific styles */
.elementor .thumb-swiper .swiper-lazy-preloader {
    width: 32px;
    height: 32px;
    margin-left: -16px;
    margin-top: -16px;
}

.elementor .thumb-swiper .swiper-slide {
    position: relative;
}

.elementor .thumb-swiper .swiper-lazy-preloader.swiper-lazy-preloader-visible {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.elementor .thumb-swiper .swiper-lazy-loaded + .swiper-lazy-preloader {
    display: none;
    opacity: 0;
}