.showcase { position: relative; min-height: 0; }
.showcase-stage { --shot-height: min(61svh, 600px); position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100svh; min-height: 560px; padding: 44px 0; overflow: clip; }
.showcase-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.showcase-heading h2 { margin: 0; font-size: clamp(36px, 4vw, 58px); font-weight: 400; line-height: 1.1; letter-spacing: -.04em; }
.showcase-heading .text-link { flex: none; }
.showcase-deck { position: relative; min-height: 0; margin-block: 26px; outline-offset: -5px; }
.showcase-track { height: 100%; display: flex; align-items: center; gap: 28px; overflow-x: auto; padding-inline: max(24px, calc((100vw - 1224px) / 2)); scroll-snap-type: x mandatory; }
.showcase-item { position: relative; display: block; flex: none; height: var(--shot-height); width: calc(var(--shot-height) * var(--image-ratio)); color: var(--ink); background: #e3e3df; scroll-snap-align: center; -webkit-user-drag: none; user-select: none; }
.showcase-item img { width: 100%; height: 100%; display: block; object-fit: contain; pointer-events: none; }
.showcase-load { position: absolute; inset: 0; display: grid; align-items: center; padding: 24px; text-align: center; background: #e3e3df; font-size: 14px; line-height: 1.6; }
.showcase-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.showcase-caption p { margin: 0; font-size: 16px; }
.showcase-hint { display: block; margin-top: 6px; color: #62635e; font-size: 12px; }
.showcase.is-enhanced[data-motion="on"] { height: 270svh; }
.showcase.is-enhanced[data-motion="on"] .showcase-stage { position: sticky; top: 0; }
.showcase.is-enhanced .showcase-deck { perspective: 1400px; touch-action: pan-y; cursor: grab; }
.showcase.is-enhanced .showcase-deck.is-dragging { cursor: grabbing; }
.showcase.is-enhanced .showcase-track { display: block; position: absolute; inset: 0; overflow: visible; padding: 0; transform-style: preserve-3d; pointer-events: none; }
.showcase.is-enhanced .showcase-item { position: absolute; top: 50%; left: 50%; backface-visibility: hidden; pointer-events: auto; }
.showcase[data-motion="on"] .showcase-item { box-shadow: 0 18px 42px rgba(10, 12, 14, .15); } /* taste-skill-ignore: These image planes float in a 3D scene; the shadow expresses their depth and is removed in static mode. */
.showcase.is-enhanced .showcase-item.is-near { will-change: transform; }
.showcase-viewer { width: min(800px, calc(100vw - 32px)); height: calc(100svh - 32px); max-height: calc(100svh - 32px); max-width: none; margin: auto; border-radius: 16px; overflow: hidden; }
.showcase-viewer[open] { display: flex; flex-direction: column; animation: none; }
.showcase-viewer::backdrop { background: rgba(8, 9, 11, .6); }
.viewer-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 16px 24px; flex: none; background: var(--paper); }
.viewer-header h2 { margin: 0; font-size: 15px; font-weight: 400; }
.viewer-scroll { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; padding: 0 24px 24px; }
#viewer-image { display: block; width: 100%; max-width: 720px; height: auto; margin-inline: auto; transform-origin: top left; }
.viewer-status { margin: 40px 0 20px; text-align: center; font-size: 15px; }
.viewer-retry { min-height: 44px; display: block; margin: auto; padding: 10px 24px; color: var(--paper); background: var(--ink); border: 0; border-radius: 999px; }
html.showcase-viewing { overflow: hidden; }
html:has(.showcase-viewer) { scrollbar-gutter: stable; }

@media (max-width: 1000px) {
  .showcase-stage { --shot-height: min(58svh, 570px); }
}
@media (max-width: 700px) {
  .showcase-stage { --shot-height: min(60svh, calc(100svh - 280px)); min-height: 0; padding: 32px 0 104px; }
  .showcase-heading { align-items: flex-start; gap: 12px; }
  .showcase-heading h2 { font-size: 35px; }
  .showcase-heading .text-link { min-height: 38px; font-size: 11px; gap: 5px; }
  .showcase-heading .icon { width: 17px; height: 17px; }
  .showcase-deck { margin-block: 22px; }
  .showcase-track { gap: 20px; }
  .showcase-footer { gap: 12px; }
  .showcase-caption p { font-size: 13px; }
  .showcase-hint { font-size: 11px; margin-top: 5px; }
  .showcase-viewer { height: calc(100svh - 24px); max-height: calc(100svh - 24px); width: calc(100vw - 24px); border-radius: 12px; }
  .viewer-header { min-height: 66px; padding: 11px 16px; }
  .viewer-header h2 { font-size: 13px; }
  .viewer-scroll { padding: 0 12px 16px; }
}
@media (max-width: 359px) {
  .showcase-heading h2 { font-size: 31px; }
  .showcase-caption p { max-width: 120px; }
}
@media (max-height: 480px) {
  .showcase-stage { height: 560px; --shot-height: 300px; padding-bottom: 82px; }
}
