.dw-gallery-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 3px 5px;
  color: #a50034;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  text-underline-offset: 3px;
}
.dw-gallery-link:focus-visible { outline: 2px solid #a50034; outline-offset: 2px; }
.product-detail-page [data-topload-gallery] .product-image-col {
  min-width: 0;
  justify-content: flex-start;
}
.product-detail-page [data-topload-gallery] .dw-gallery-stage {
  width: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1;
  flex: none;
  padding: 0;
  border-radius: 12px;
  background: #fff;
}
.product-detail-page [data-topload-gallery] .dw-gallery-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
  transform: none;
}
.dw-gallery-controls { min-width: 0; width: 100%; }
.dw-gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 5px 0 8px;
  color: #565656;
  font-size: 11px;
}
.dw-gallery-heading strong { font-weight: 700; }
.dw-gallery-heading [data-gallery-counter] { font-variant-numeric: tabular-nums; }
.dw-gallery-thumbs {
  display: flex;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  padding: 3px 2px 9px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #cfc7c9 transparent;
}
.dw-gallery-thumb {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 3px;
  border: 1px solid #dedbda;
  border-radius: 9px;
  background: #fff;
  color: #777;
  cursor: pointer;
  scroll-snap-align: start;
  font: inherit;
}
.dw-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.dw-gallery-thumb[aria-pressed="true"] { border: 2px solid #a50034; padding: 2px; }
.dw-gallery-thumb:focus-visible { outline: 2px solid #a50034; outline-offset: 2px; }
.dw-gallery-thumb-number {
  position: absolute;
  bottom: 2px;
  inset-inline-end: 3px;
  border-radius: 3px;
  padding: 0 3px;
  background: #fffffff0;
  font-size: 9px;
  line-height: 1.5;
}
.dw-gallery-thumb.is-unavailable img { opacity: .35; }
.dw-gallery-status { margin: 4px 0 2px; min-height: 2.8em; color: #767676; font-size: 10px; line-height: 1.5; }
@media (max-width: 700px) {
  .product-detail-page [data-topload-gallery] .product-main { grid-template-columns: minmax(0, 1fr); }
  .product-detail-page [data-topload-gallery] .product-image-col {
    order: -1;
    border-inline-start: 0;
    border-bottom: 1px solid #e9e7e5;
    padding: 14px;
  }
  .dw-gallery-thumb { flex-basis: 60px; width: 60px; height: 60px; }
  .dw-gallery-heading { font-size: 12px; }
  .dw-gallery-status { font-size: 11px; }
}
@media print { .dw-gallery-controls { display: none; } }

/* Keep original product photography intact in category cards. */
.product-image-wrap img[data-topload-photo] { object-fit: contain; mix-blend-mode: normal; transform: none; }
