/* Saintngelic Product Gallery */

.elementor-widget-sng_product_gallery {
  width: 100%;
}

.elementor-widget-sng_product_gallery .elementor-widget-container {
  width: 100%;
  overflow: hidden;
}

.sng-product-gallery {
  position: relative;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.sng-product-gallery__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.sng-product-gallery__viewport.is-grabbing {
  cursor: grabbing;
  touch-action: none;
}

.sng-product-gallery__track {
  display: flex;
  width: 100%;
  gap: var(--sng-pg-gap, 14px);
  transform: translate3d(0, 0, 0);
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.sng-product-gallery__track.is-dragging {
  transition: none !important;
}

.sng-product-gallery__slide {
  flex: 0 0 calc(
    (100% - var(--sng-pg-gap, 14px) * (var(--sng-pg-slides, 2) - 1)) / var(--sng-pg-slides, 2)
  );
  width: calc(
    (100% - var(--sng-pg-gap, 14px) * (var(--sng-pg-slides, 2) - 1)) / var(--sng-pg-slides, 2)
  );
  min-width: 0;
  box-sizing: border-box;
}

.sng-product-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center center;
  background: #f5f5f0;
  pointer-events: none;
}

.sng-product-gallery .sng-product-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #250903 !important;
  box-shadow: none !important;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.sng-product-gallery .sng-product-gallery__arrow:hover,
.sng-product-gallery .sng-product-gallery__arrow:focus {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #250903 !important;
}

.sng-product-gallery .sng-product-gallery__arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.sng-product-gallery__arrow--prev {
  left: 8px;
}

.sng-product-gallery__arrow--next {
  right: 8px;
}

.sng-product-gallery__arrow-icon {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

@media screen and (max-width: 1024px) {
  .sng-product-gallery--swipe .sng-product-gallery__viewport {
    cursor: default;
  }

  .sng-product-gallery--swipe .sng-product-gallery__viewport.is-grabbing {
    cursor: grabbing;
  }
}

@media screen and (max-width: 767px) {
  .sng-product-gallery__slide {
    flex: 0 0 100%;
    width: 100%;
  }

  .sng-product-gallery__track {
    --sng-pg-slides: 1;
  }

  .sng-product-gallery__image {
    min-height: 360px;
  }

  .sng-product-gallery .sng-product-gallery__arrow {
    width: 36px;
    height: 36px;
  }

  .sng-product-gallery__arrow--prev {
    left: 4px;
  }

  .sng-product-gallery__arrow--next {
    right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sng-product-gallery__track {
    transition: none;
  }
}
