/* VelaKiss v1.1.23 — swipeable and zoomable product gallery */
.vk-gallery-main {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.vk-gallery-main img {
  -webkit-user-drag: none;
  user-select: none;
}

.vk-lightbox {
  overflow: hidden;
}

.vk-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.vk-lightbox-stage img {
  flex: 0 0 auto;
  transition: transform .25s ease;
  transform-origin: center center;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.vk-lightbox-stage img.is-zoomed {
  width: 150%;
  height: auto;
  max-width: none;
  max-height: none;
  transform: none;
  cursor: zoom-out;
}

.vk-lightbox-prev,
.vk-lightbox-next {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(10,22,28,.42);
  color: #fff;
  font: 300 34px/1 Arial, sans-serif;
  transform: translateY(-50%);
}

.vk-lightbox-prev { left: 24px; }
.vk-lightbox-next { right: 24px; }

.vk-lightbox-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  padding: 7px 12px;
  border-radius: 20px;
  background: rgba(10,22,28,.58);
  color: rgba(255,255,255,.82);
  font-size: 9px;
  letter-spacing: .06em;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.vk-thumb.active {
  outline: 2px solid var(--vk-ink);
  outline-offset: -2px;
}

@media (max-width: 800px) {
  .vk-lightbox {
    padding: 8px;
  }

  .vk-lightbox-stage {
    width: 100vw;
    height: 100svh;
  }

  .vk-lightbox-stage img {
    max-width: 96vw;
    max-height: 90svh;
  }

  .vk-lightbox-stage img.is-zoomed {
    width: 190vw;
    height: auto;
    transform: none;
  }

  .vk-lightbox-prev,
  .vk-lightbox-next {
    top: auto;
    bottom: 58px;
    width: 42px;
    height: 42px;
    font-size: 28px;
    transform: none;
  }

  .vk-lightbox-prev { left: 18px; }
  .vk-lightbox-next { right: 18px; }

  .vk-lightbox-close {
    z-index: 4;
    top: max(12px, env(safe-area-inset-top));
    right: 16px;
  }

  .vk-lightbox-hint {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .vk-lightbox-stage img { transition: none; }
}
