/* Each distinct product view has its own tile and a direct full-size link. */
.product-mosaic {
  --columns: 3;
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  align-self: start;
  min-width: 0;
  gap: clamp(4px, .7vw, 10px);
}
.product-mosaic > a {
  position: relative;
  display: grid;
  align-items: center;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  background: #f5f2ee;
  cursor: zoom-in;
}
.product-mosaic > a:focus-visible { outline: 2px solid #754d36; outline-offset: 2px; }
.product-mosaic > a > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-mosaic .zoom-label { pointer-events: none; }
.mosaic-pair, .mosaic-four { --columns: 2; }
.mosaic-trio > :first-child, .mosaic-medium > :first-child,
.mosaic-many > :first-child, .mosaic-dense > :first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.mosaic-many { --columns: 4; }
.mosaic-dense { --columns: 6; }
@media (max-width: 720px) {
  .product-mosaic { gap: 5px; }
  .product-mosaic .zoom-label { padding: .25rem .4rem; right: 5px; bottom: 5px; }
  .mosaic-dense { --columns: 5; }
}
