/* Product Gallery i003: scoped. GLightbox owns its own overlay/control CSS. */
.ps-product-gallery-v3 { margin: 0 0 1.7rem; }
.ps-product-gallery-v3 .ps-gallery-v3-title {
  margin: 0 0 .85rem; font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.25;
}
.ps-product-gallery-v3 .ps-gallery-v3-title::before,
.ps-product-gallery-v3 .ps-gallery-v3-title::after { content: none !important; display: none !important; }
.ps-product-gallery-v3 a { text-decoration: none; }
.ps-gallery-v3-hero { margin: 0; }
.ps-gallery-v3-hero-link {
  display: block; padding: 0; background: transparent;
  border: 0; border-radius: 0;
  cursor: zoom-in;
}
.ps-gallery-v3-hero-link img {
  display: block; width: 100%; max-width: 100%; height: auto; max-height: none;
  margin: 0; object-fit: initial;
  border-radius: var(--ps-radius-sm, 6px);
}
.ps-gallery-v3-hero figcaption {
  color: var(--ps-muted, #666); font-size: .85rem; line-height: 1.45;
  margin: .45rem 0 .15rem;
}
.ps-gallery-v3-hero figcaption strong { display: inline; font-weight: 600; }
.ps-gallery-v3-hero figcaption span:not(:first-child)::before { content: ' — '; }
.ps-gallery-v3-thumbnails {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem; margin-top: .75rem;
}
.ps-gallery-v3-thumb {
  display: flex; flex-direction: column; min-width: 0; padding: .35rem;
  border: 1px solid var(--ps-border, #dedede);
  border-radius: var(--ps-radius-sm, 6px); background: var(--ps-surface, #fff);
  color: var(--ps-ink, #222) !important; cursor: zoom-in;
  transition: border-color .15s ease;
}
.ps-gallery-v3-thumb img {
  display: block; width: 100%; height: clamp(4.25rem, 8vw, 6.5rem);
  object-fit: contain; margin: 0 auto;
}
.ps-gallery-v3-thumb span {
  display: block; padding: .32rem .15rem .1rem; font-size: .76rem;
  line-height: 1.25; overflow-wrap: anywhere;
}
.ps-gallery-v3-hero-link:hover, .ps-gallery-v3-thumb:hover { border-color: var(--ps-gold, #d79a00); }
.ps-product-gallery-v3 a:focus-visible { outline: 3px solid var(--ps-gold, #d79a00); outline-offset: 3px; }
@media (max-width: 560px) {
  .ps-gallery-v3-thumbnails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-gallery-v3-thumb img { height: 5rem; }
}
