/* Fill each frame uniformly, preserving the photograph's ratio and centered subject. */
.original-detail .detail-real-photo { object-fit: cover; object-position: center; }
.original-detail #stageBg.is-inspecting { background: #0b0b10 !important; }
.original-detail #stageBg.is-inspecting::after,
.original-detail #stageBg.is-inspecting > .absolute:not(#stageFigureWrap) { display: none; }
.product-cover-inspector { position: absolute; inset: 0; direction: ltr; }
.cover-viewport {
  position: absolute;
  inset: 0 0 88px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  outline-offset: -3px;
  user-select: none;
  -webkit-user-select: none;
}
.cover-viewport:focus-visible { outline: 2px solid #c8ff2e; }
.cover-viewport.is-dragging { cursor: grabbing; }
.cover-viewer-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  pointer-events: none;
  will-change: transform;
}
.cover-viewer-controls {
  position: absolute;
  bottom: 33px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: calc(100% - 16px);
  padding: 3px;
  border: 1px solid #ffffff26;
  border-radius: 16px;
  background: #17131f;
  box-shadow: 0 6px 24px #0005;
}
.cover-viewer-controls button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 44px;
  height: 44px;
  border-radius: 11px;
  color: #c8ff2e;
  font-size: 25px;
  line-height: 1;
  font-weight: 600;
}
.cover-viewer-controls button:hover:enabled { background: #c8ff2e18; }
.cover-viewer-controls button:disabled { opacity: .3; cursor: default; }
.cover-viewer-controls button[data-cover-zoom="reset"] {
  padding: 0 12px;
  border-inline-start: 1px solid #ffffff1f;
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
}
.cover-viewer-controls output { min-width: 44px; font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; color: #ffffffb3; }
#cover-viewer-help {
  position: absolute;
  inset: auto 12px 8px;
  margin: 0;
  color: #ffffff80;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  direction: inherit;
  pointer-events: none;
}

/* Alternate wide and narrow frames, with a gentle stagger like the homepage collection. */
.original-detail .product-detail-gallery {
  width: 100%;
  max-width: 1120px;
  margin: 72px auto 0;
}
.product-gallery-heading { margin-bottom: 30px; }
.product-gallery-heading p { margin: 0 0 10px; color: #ff2e88; font-size: 11px; font-weight: 700; letter-spacing: .3em; }
.product-gallery-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 900; line-height: 1.25; letter-spacing: -.025em; }
.product-detail-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; align-items: start; }
.product-detail-shot {
  position: relative;
  grid-column: span 7;
  aspect-ratio: 16 / 10;
  max-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #ffffff1a;
  border-radius: 26px;
  background: #17131f;
  isolation: isolate;
}
.product-detail-shot:nth-child(4n+2), .product-detail-shot:nth-child(4n+3) { grid-column: span 5; aspect-ratio: 5 / 4; }
.product-detail-shot:nth-child(even) { margin-top: 48px; }
.product-detail-image { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product-detail-shot:hover .product-detail-image { transform: scale(1.025); }
}

/* Recommendation covers fill the frame with a uniform scale and centered crop. */
.original-detail #relatedGrid .catalog-real-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none; }
.original-detail #relatedGrid .original-product-card:hover .catalog-real-photo { transform: none; }
@media (min-width: 768px) and (max-width: 1023px) {
  .product-detail-grid { gap: 20px; }
  .product-detail-shot:nth-child(even) { margin-top: 32px; }
}
@media (max-width: 767px) {
  .original-detail .product-detail-gallery { margin-top: 44px; }
  .product-gallery-heading { margin-bottom: 22px; }
  .product-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product-detail-shot, .product-detail-shot:nth-child(n) { grid-column: auto; aspect-ratio: 4 / 3; max-height: 360px; margin-top: 0; border-radius: 22px; }
  #cover-viewer-help { font-size: 9px; }
}
