.product-gallery { position: relative; }
.product-gallery:focus-visible { outline: 2px solid #2997ff; outline-offset: 8px; }
.product-gallery #pdpGalleryMain { position: relative; }
.product-gallery #mainImage { width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.gallery-zoom { position: absolute; right: 12px; bottom: 12px; }
.gallery-zoom, .gallery-controls button, .product-image-viewer button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid #ffffff30; border-radius: 50%; background: #242426; color: #fff;
  font: inherit; font-size: 22px; cursor: pointer;
}
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 18px 0; width: 100%; }
.gallery-caption { display: flex; flex-direction: column; gap: 5px; text-align: center; margin: 0; min-width: 0; max-width: 300px; }
.gallery-counter { font-size: 12px; color: #a1a1a6; font-variant-numeric: tabular-nums; }
.gallery-label { font-size: 14px; color: #f5f5f7; }
.product-gallery .pdp-thumbs { gap: 10px; }
.product-gallery .pdp-thumb { flex: 0 0 72px; background: transparent !important; box-shadow: none !important; padding: 4px; }
.product-gallery .pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery .pdp-thumb[aria-pressed="true"] { border-color: #2997ff !important; }
.product-gallery button:focus-visible, .product-photo button:focus-visible, .product-image-viewer button:focus-visible { outline: 2px solid #2997ff; outline-offset: 4px; }
.product-photo-section { width: min(1100px, 100%); margin: 88px auto 56px; padding: 0 24px; box-sizing: border-box; }
.product-photo-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.photo-eyebrow { color: #a1a1a6; letter-spacing: .12em; font-size: 11px; font-weight: 600; margin: 0 0 12px; }
.product-photo-heading h2 { color: #f5f5f7; font-size: clamp(32px, 4vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; margin: 0 0 14px; }
.product-photo-heading p:not(.photo-eyebrow) { font-size: 16px; color: #a1a1a6; margin: 0; line-height: 1.5; }
.photo-count { color: #a1a1a6; white-space: nowrap; font-size: 13px; padding-bottom: 5px; }
.product-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.product-photo { margin: 0; min-width: 0; }
.product-photo:first-child { grid-column: 1 / -1; }
.product-photo button { border: 0; border-radius: 0; background: transparent; display: block; width: 100%; padding: 0; position: relative; cursor: zoom-in; }
.product-photo img { display: block; width: 100%; height: auto; aspect-ratio: 2400 / 1538; object-fit: contain; }
.product-photo:first-child img { max-height: 580px; }
.photo-expand { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #202023; color: #fff; font-size: 20px; }
.product-photo figcaption { color: #f5f5f7; display: flex; gap: 14px; align-items: baseline; padding-top: 14px; font-size: 14px; line-height: 1.5; }
.photo-number { font-size: 11px; color: #86868b; font-variant-numeric: tabular-nums; }
.photo-accessories-note { font-size: 12px; line-height: 1.5; color: #86868b; margin: 24px 0 0; }
.product-image-viewer { border: 1px solid #333; border-radius: 16px; padding: 20px; background: #101012; color: #f5f5f7; width: min(1280px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); box-sizing: border-box; }
.product-image-viewer::backdrop { background: #000d; backdrop-filter: blur(10px); }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.viewer-toolbar p { font-size: 16px; margin: 0; }
.viewer-stage { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 16px; }
.viewer-image { display: block; width: 100%; max-height: calc(100dvh - 190px); object-fit: contain; }
.viewer-count { margin: 16px 0 0; text-align: center; font-size: 13px; color: #a1a1a6; }
@media (max-width: 600px) {
  .gallery-controls { gap: 12px; }
  .product-gallery .pdp-thumbs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 5px; box-sizing: border-box; }
  .product-gallery .pdp-thumb { flex-basis: 58px; height: 58px; }
  .product-photo-section { margin-top: 56px; padding: 0 16px; }
  .product-photo-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .product-photo-heading { align-items: start; }
  .photo-count { display: none; }
  .product-image-viewer { padding: 12px; }
  .viewer-stage { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 6px; }
  .viewer-stage button { width: 36px; height: 36px; }
}
