/* Catalogue photo controls. Existing image dimensions and product pages stay intact. */

body .n365-card-photos {
  position: absolute;
  z-index: 3;
  display: flex;
  width: max-content;
  max-width: calc(100% - 16px);
  height: 22px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  transform: translateX(-50%);
  scrollbar-width: none;
  pointer-events: none;
}
body .n365-card-photos[hidden] { display: none; }
body .n365-card-photos::-webkit-scrollbar { display: none; }
body .n365-card-photos__button {
  position: relative;
  display: block;
  flex: 0 0 22px;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
body .n365-card-photos__button::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: #c8c5c0;
  transform: translateX(-50%);
  transition: width .18s ease, background-color .18s ease;
}
body .n365-card-photos__button.is-active::before {
  width: 16px;
  background: #292724;
}
body .n365-card-photos__button:focus-visible {
  outline: 1px solid #292724;
  outline-offset: -2px;
  border-radius: 4px;
}
body .n365-card-photos__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  body .n365-card-photos__button::before { transition: none; }
}

/* Give only the photo area to horizontal swipes; vertical page scrolling stays native. */
body .n365-card-has-photos .n365-vertuo__product-media,
body .n365-card-has-photos .n365-commerce__product-media {
  touch-action: pan-y pinch-zoom;
}
body .n365-card-has-photos .n365-vertuo__product-link::after,
body .n365-card-has-photos .n365-commerce__product-link::after {
  pointer-events: none;
}
