.product-photo-stack {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.product-extra-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-extra-photos a {
  display: grid;
  align-items: center;
  justify-items: center;
  aspect-ratio: 1;
  width: 76px;
  box-sizing: border-box;
  min-width: 0;
  padding: 4px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eadfec;
  border-radius: 10px;
}

.product-extra-photos a:hover {
  border-color: #5b1674;
}

.product-extra-photos a:focus-visible {
  outline: 2px solid #5b1674;
  outline-offset: 2px;
}

.product-extra-photos img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain;
}

@media (min-width: 821px) {
  .product-detail > .product-photo-stack {
    position: sticky;
    top: 120px;
  }

  .product-photo-stack > .product-detail-media {
    position: static;
  }
}
