/* R13 adds navigation only to DKU-01 image galleries. Technical notes elsewhere
   on the card, diagrams, source labels and all accessible image text stay intact. */
.dku-r13-gallery { min-width: 0; max-width: 100%; }
.dku-r13-gallery .sru-gallery-stage { position: relative; min-width: 0; }
.dku-r13-gallery .sru-gallery-hero { display: block; width: 100%; touch-action: pan-y pinch-zoom; }
.dku-r13-gallery .sru-gallery-hero img { display: block; max-width: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.dku-r13-gallery .sru-gallery-thumbs {
  display: flex !important; flex-wrap: nowrap !important; gap: 10px !important;
  width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
  overflow-x: auto !important; overflow-y: hidden !important;
  padding: 4px 3px 10px !important; margin: 12px 0 0 !important;
  scroll-snap-type: x proximity; scroll-padding-inline: 8px;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #9da5ad #edf0f2;
}
.dku-r13-gallery .sru-gallery-thumbs::-webkit-scrollbar { height: 7px; }
.dku-r13-gallery .sru-gallery-thumbs::-webkit-scrollbar-track { background: #edf0f2; border-radius: 8px; }
.dku-r13-gallery .sru-gallery-thumbs::-webkit-scrollbar-thumb { background: #9da5ad; border-radius: 8px; }
.dku-r13-gallery .sru-gallery-thumbs > .sru-thumb {
  flex: 0 0 24% !important; width: 24% !important; min-width: 112px !important;
  max-width: none !important; padding: 4px !important; margin: 0 !important;
  aspect-ratio: 4 / 3; scroll-snap-align: start; box-sizing: border-box;
}
.dku-r13-gallery .sru-thumb img { display: block; width: 100% !important; height: 100% !important; max-height: none !important; object-fit: contain; }
.dku-r13-gallery .sru-thumb[aria-pressed="true"] { border-color: #ed6d30 !important; box-shadow: 0 0 0 1px #ed6d30; }
.dku-r13-gallery .sru-thumb:focus-visible, .dku-r13-gallery-arrow:focus-visible { outline: 3px solid #195ead; outline-offset: 3px; }
.dku-r13-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  margin: 0; padding: 10px; box-sizing: border-box; border: 1px solid #d5dbe0;
  border-radius: 50%; color: #263746; background: rgba(255,255,255,.96);
  box-shadow: 0 2px 10px rgba(24,39,52,.12); cursor: pointer; touch-action: manipulation;
}
.dku-r13-gallery-previous { left: 10px; }
.dku-r13-gallery-next { right: 10px; }
.dku-r13-gallery-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dku-r13-gallery-arrow:hover { color: #b54616; border-color: #ed6d30; background: #fff; }
.dku-r13-gallery .sru-gallery-thumbs > .sru-thumb > span,
.dku-r13-gallery .sru-gallery-count,
.dku-r13-gallery .gallery-scope-v6,
.dku-r13-gallery .sru-visual-caption,
.dku-r13-gallery .sru-gallery-caption,
.dku-r13-gallery figcaption,
.dku-r13-gallery .sru-gallery-hero > span:not(.sru-gallery-zoom),
main[data-sirius-dku01="true"] .product-gallery-v6 .gallery-scope-v6,
main[data-sirius-dku01="true"] .product-gallery-v6 a[data-gallery] > span:not(.sru-gallery-zoom),
main[data-sirius-dku01="true"] [data-dku-reference-r12="rear-only"] figcaption,
main[data-sirius-dku01="true"] [data-dku-gallery-rear] figcaption,
#media-lightbox.dku-r13-captionless .media-caption {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; border: 0 !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important; white-space: nowrap !important;
}
#media-lightbox.dku-r13-captionless .media-footer:has(.media-status:empty):not(:has(.media-retry:not([hidden]))) { padding: 0; min-height: 0; }
.dku-r13-gallery[data-dku-r13-rear-ready="1"] .sirius-component-detail-r3__views { display: block; min-width: 0; }
.dku-r13-gallery[data-dku-r13-rear-ready="1"] .sru-gallery-stage { border: 1px solid #e2e6e9; border-radius: 12px; overflow: hidden; background: #fff; }
.dku-r13-gallery[data-dku-r13-rear-ready="1"] .sru-gallery-hero img { width: 100%; max-height: 100%; aspect-ratio: 4 / 3; }
@media (max-width: 600px) {
  .dku-r13-gallery .sru-gallery-thumbs { gap: 8px !important; }
  .dku-r13-gallery .sru-gallery-thumbs > .sru-thumb { flex-basis: 100px !important; width: 100px !important; min-width: 100px !important; max-width: 100px !important; }
  .dku-r13-gallery-previous { left: 7px; } .dku-r13-gallery-next { right: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .dku-r13-gallery .sru-gallery-thumbs { scroll-behavior: auto !important; }
}
