.product-photos {
  min-width: 0;
  container-type: inline-size;
}
.product-photos figure { margin: 0; }
.product-photo-stage {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: 100%;
  aspect-ratio: 1.12;
  max-height: 500px;
  padding: clamp(12px, 3.5%, 24px);
  border-radius: 16px;
  background: #f5f5f5;
}
.product-photo-stage img,
.product-photo-choices img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-photos figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-size: 13px;
}
.product-photos figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-photo-choices {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}
.product-photo-choices a {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  height: clamp(48px, 11cqw, 64px);
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f5f5f5;
}
.product-photo-choices a:hover { border-color: #999; }
.product-photo-choices a[aria-current="true"] { border-color: var(--accent-strong); }
.product-photo-choices a:focus-visible { outline-offset: 1px; }
@container (max-width: 415px) {
  .product-photo-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 561px) and (min-height: 760px) {
  .product-photos { position: sticky; top: 111px; }
}
