.merch-photo-grid[hidden] { display: none; }
.merch-object-gallery { max-width: 1240px; margin-inline: auto; }
.merch-object-stage {
  height: clamp(330px, 52vw, 680px);
  overflow: hidden;
  isolation: isolate;
  position: relative;
  touch-action: pan-y;
  perspective: 1300px;
  border: 1px solid #ffc0df35;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 35%, #47264c 0%, #21192d 48%, #100c17 100%);
}
.merch-object-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 45px #0e0a17bb;
}
.merch-object-plane {
  display: grid;
  place-items: center;
  height: 100%;
  transform: rotateX(8deg) rotateY(-8deg) rotateZ(-3deg) scale(1.02);
}
.merch-object-column {
  grid-area: 1 / 1;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 1.4vw, 19px);
  width: 36%;
  height: 90%;
}
.merch-object-column.single { grid-template-rows: 1fr; }
.merch-object-card {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e8c1f358;
  border-radius: 6px;
  background: #100d18;
  cursor: zoom-in;
}
.merch-object-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 230ms ease; }
.merch-object-card:hover img { transform: scale(1.025); }
.merch-object-card:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.merch-object-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 21px;
}
.merch-object-controls button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0 0 3px;
  border-radius: 50%;
  border: 1px solid #ebc4fb63;
  background: #1d1429;
  color: #fff3fa;
  font-size: 30px;
  cursor: pointer;
}
.merch-object-controls button:hover, .merch-object-controls button:focus-visible { color: #1d1429; background: var(--accent); }
.merch-object-controls output { min-width: 6ch; text-align: center; color: #f3def6; font-variant-numeric: tabular-nums; }
.merch-object-detail { width: min(950px, calc(100vw - 28px)); max-height: 94dvh; padding: 0; border: 0; background: transparent; }
.merch-object-detail::backdrop { background: #0c0819dd; backdrop-filter: blur(7px); }
.merch-object-detail-frame {
  position: relative;
  padding: 47px 12px 12px;
  border: 1px solid #dfb4ec70;
  border-radius: 12px;
  background: #171121;
}
.merch-object-detail-frame img { display: block; margin-inline: auto; max-width: 100%; max-height: 78dvh; object-fit: contain; }
.merch-object-detail-frame .dialog-close { top: 4px; right: 8px; }
@media (max-width: 640px) {
  .merch-object-column { width: 65%; }
  .merch-object-stage::after { box-shadow: inset 0 0 24px #0e0a1766; }
}
@media (prefers-reduced-motion: reduce) {
  .merch-object-plane { transform: none; }
  .merch-object-card img { transition: none; }
}
