#product-product .product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
#product-product .product-gallery > li {
  float: none;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0;
}
#product-product .product-gallery .thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #ece5eb;
  border-radius: 5px;
  background: #faf7f9;
  cursor: zoom-in;
  transition: border-color .2s ease, box-shadow .2s ease;
}
#product-product .product-gallery .product-gallery__main {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}
#product-product .product-gallery__main .thumbnail {
  min-height: 280px;
  padding: 20px;
  border-radius: 5px;
  background: #fff;
}
#product-product .product-gallery__main img {
  display: block;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}
#product-product .product-gallery .image-additional .thumbnail {
  aspect-ratio: 1 / 1;
}
#product-product .product-gallery .image-additional img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
#product-product .product-gallery .thumbnail:focus-visible {
  outline: 3px solid #0037eb;
  outline-offset: 3px;
}
@media (hover: hover) {
  #product-product .product-gallery .thumbnail:hover {
    border-color: #0037eb;
    box-shadow: 0 4px 14px rgba(0, 55, 235, .1);
  }
}
@media (max-width: 575px) {
  #product-product .product-gallery {
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 8px;
    margin-bottom: 22px;
  }
  #product-product .product-gallery__main .thumbnail {
    min-height: 220px;
    padding: 12px;
    border-radius: 5px;
  }
  #product-product .product-gallery__main img { max-height: 380px; }
  #product-product .product-gallery .image-additional .thumbnail { padding: 6px; border-radius: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  #product-product .product-gallery .thumbnail { transition: none; }
}
