/* Book images stay on the product page, with native touch scrolling. */
.detail-art.book-gallery { min-width: 0; width: 100%; scroll-margin-top: 110px; }
.book-gallery .gallery-track {
  display: flex;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 10px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.book-gallery .gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding: 0 4px;
  scroll-snap-align: start;
}
.book-gallery .gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  box-shadow: none;
}
.gallery-slide figcaption { margin: 12px 0 0; color: #e3d9ff; font-size: 12px; }
.book-gallery .gallery-hint { margin: 12px 0 0; color: #e3d9ff; font-size: 12px; }
.gallery-navigation { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.gallery-navigation[hidden] { display: none; }
.gallery-arrow, .gallery-dot {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: #ffe7a4;
  cursor: pointer;
}
.gallery-arrow { border: 1px solid #968bbb; border-radius: 50%; background: #172858; font: 600 27px/1 var(--sans); }
.gallery-arrow[aria-disabled="true"] { opacity: .4; cursor: default; }
.gallery-pagination { display: grid; justify-items: center; }
.gallery-dots { display: flex; }
.gallery-dot { border: 0; background: transparent; }
.gallery-dot::before { content: ''; width: 9px; height: 9px; border: 1px solid #ffe7a4; border-radius: 50%; }
.gallery-dot[aria-current="true"]::before { background: #ffe7a4; }
.gallery-count { color: #e3d9ff; font-size: 11px; }
.book-gallery :focus-visible { outline: 3px solid #ffe7a4; outline-offset: 2px; }
@media (max-width: 600px) {
  .detail-art.book-gallery { max-width: 400px; }
}
