:root {
    --swiper-slidesPerView: 1.55;
    --swiper-spaceBetween: 3px;
    --swiper-SwiperSlide-width: calc(
      (100%
      - ( var(--swiper-slidesPerView) - 1 )
      * var(--swiper-spaceBetween))
      / var(--swiper-slidesPerView)
    );  }

@media (min-width: 901px){
  :root {
    --swiper-slidesPerView: 2;
    --swiper-spaceBetween: 3px;
    --swiper-SwiperSlide-width: calc(
      (100%
      - ( var(--swiper-slidesPerView) - 1 )
      * var(--swiper-spaceBetween))
      / var(--swiper-slidesPerView)
    );
  }
}
@media (min-width: 1201px){
  :root {
    --swiper-slidesPerView: 2;
    --swiper-spaceBetween: 3px;
    --swiper-SwiperSlide-width: calc(
      (100%
      - ( var(--swiper-slidesPerView) - 1 )
      * var(--swiper-spaceBetween))
      / var(--swiper-slidesPerView)
    );
  }
}
#purefun-product-gallery-container {
  position: relative;
  padding: 0;
  margin: 0;
  gap: 40px;
}
.swiper-slide {
  width: var(--swiper-SwiperSlide-width) !important;
  /* Only horizontal swipers need this because vertical ones have fixed width and height */
  margin-right: var(--swiper-spaceBetween) !important;
}
.video-slide {
  height: unset !important;
  display: flex;
  justify-content: center;
  align-items: center;
} 
.purefun-product-gallery-swiper .swiper-pagination {
  position: relative;
  min-height: 24px
}

#purefun-product-gallery-container .swiper-slide img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

#purefun-product-gallery-container .swiper-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f3f3f3;
  mix-blend-mode: multiply;
  border-radius: 24px;
  pointer-events: none;
}

.swiper-lazy-preloader {
  opacity: 0 !important;
}
.swiper-button-next, .swiper-button-prev {
  top: calc(50% - 10px);
  height: 40px;
  width: 40px;
  border-radius: 50%;
  transition: .3s background-color ease-in-out;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  background-color: rgba(255, 255, 255, 1);
}
.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 18px;
  font-weight: 800;
  color: #000;
  left: calc(50% - 9px);
}
.purefun-placeholder {
  background-color: #f0f0f0; /* Placeholder background color */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* Let the width adjust according to Swiper */
  aspect-ratio: 1 / 1; /* Adjust aspect ratio of the placeholder, modify as needed based on your image ratio */
  position: relative;
  overflow: hidden;
}

.swiper-lazy-preloader {
  width: 30px;
  height: 30px;
  border: 4px solid #ccc;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.purefun-image-container img {
  display: block;
  width: 100%;
  height: auto;
}

.swiper-slide {
  position: relative;
}

/* Ensure the placeholder is hidden once the image is loaded */
.swiper-slide .swiper-lazy-loaded + .purefun-placeholder {
  display: none;
}
