.product-page .product-gallery {
  background: #f3f0ed;
  border-color: #e0dad5;
}
.gallery-figure { margin: 0; }
.gallery-reference {
  padding: 10px 16px;
  background: #f3f0ed;
  color: #352d2d;
  font-size: .81rem;
}
.product-page .product-gallery .detail-photo {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: radial-gradient(ellipse at 49% 39%, #fffcfa 12%, #eeebe8 83%);
  cursor: zoom-in;
  touch-action: pan-y pinch-zoom;
}
.product-page .product-gallery .detail-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(10px, 2.1vw, 30px);
  mix-blend-mode: normal;
  user-select: none;
  pointer-events: none;
  transform: scale(1);
  transition: transform .25s ease;
}
.product-page .product-gallery[data-close-up] .detail-photo img { padding: 0; }
.product-page .product-gallery .detail-photo.is-zoomed { cursor: zoom-out; touch-action: none; }
.product-page .product-gallery .detail-photo.is-zoomed img { transform: scale(var(--gallery-zoom-scale, 1)); }
.gallery-zoom {
  position: absolute;
  z-index: 1;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d4cbc5;
  border-radius: 50%;
  color: #271f21;
  background: #fffdfb;
  pointer-events: auto;
}
.is-zoomed .zoom-plus { display: none; }
.gallery-figure .detail-photo:focus-visible { outline-offset: -4px; }
.gallery-thumbnails {
  display: flex;
  gap: 7px;
  padding: 12px;
  overflow-x: auto;
}
.gallery-thumbnails button {
  cursor: pointer;
  flex: 1 0 56px;
  min-width: 0;
  border: 1px solid #ded8d3;
  border-radius: 5px;
  display: grid;
  place-items: center;
  padding: 4px;
  background: #fffcfa;
}
.gallery-thumbnails :is(img,canvas) { display: block; width: 100%; max-width: 85px; height: auto; aspect-ratio: 1; object-fit: contain; }
.gallery-thumbnails button:hover { border-color: #b75257; }
.gallery-thumbnails button[aria-current=true] { border-color: #a92c35; box-shadow: inset 0 -2px #a92c35; }
@media(max-width:720px) {
  .gallery-thumbnails { gap: 5px; padding: 8px; }
  .gallery-thumbnails button { flex-basis: 44px; padding: 2px; }
  .gallery-zoom { width: 38px; height: 38px; right: 9px; top: 9px; }
}
@media(prefers-reduced-motion:reduce) {
  .product-page .product-gallery .detail-photo img { transition: none; }
}
@media print {
  .product-page .product-gallery .detail-photo { height: 300px; }
  .product-page .product-gallery .detail-photo img { transform: none; }
  .gallery-zoom, .gallery-thumbnails { display: none !important; }
}
