.hero:has(.product-hero-figure) { padding-block-end: clamp(22px, 3vw, 44px); }
.pad-figure--photo { background: #eeeae3; }
.pad-figure--photo figcaption { background: var(--white); border-block-start: 1px solid var(--line); }
.product-hero-figure figcaption { color: var(--muted); font-weight: 550; }
.pad-product-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block-end: clamp(28px, 4.8vw, 60px);
}
.pad-product-gallery .pad-figure { display: flex; flex-direction: column; }
.pad-product-gallery figcaption { flex: 1; }
.pad-product-gallery figcaption a { overflow-wrap: anywhere; }
.pad-media-grid--diagrams { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pad-figure--proof img { aspect-ratio: 16 / 9; object-fit: contain; background: #f2e8fd; }
.pad-media-grid--mixed .pad-figure:not(.pad-figure--photo) img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #f5f1fe;
}
@media (max-width: 1000px) {
  .pad-media-grid--diagrams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pad-product-gallery { gap: 6px; }
  .pad-product-gallery .pad-figure { border-radius: 8px; }
  .pad-product-gallery figcaption { padding: 8px 7px; font-size: .72rem; line-height: 1.35; }
}
@media (max-width: 460px) {
  .pad-media-grid--diagrams { grid-template-columns: 1fr; }
}
