/* Keep the existing image frame and thumbnails; only the image surface scrolls. */
.pdp-l,
.pdp-l .gallery {
  min-width: 0;
}

.pdp-gallery-track {
  position: relative;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pdp-gallery-track::-webkit-scrollbar {
  display: none;
}

.pdp-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.pdp-gallery-slide .main-img {
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.pdp-gallery-track.is-draggable { cursor: grab; }
.pdp-gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.pdp-gallery-track:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
#pdpThumbs .thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.pdp-l .g-zoom { z-index: 2; }

/* Match the existing mobile thumbnail/layout breakpoint. Desktop keeps its
   original single image and instant thumbnail switching. */
@media (max-width: 720px) {
  .pdp-gallery-static { display: none; }
  .pdp-gallery-track { display: flex; }
}
