.stage-gallery{width:calc(100% - 88px);max-width:1800px;margin:10px auto 0;min-height:calc(100svh - 200px)}
.stage-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:8px 0 19px}
.stage-heading :is(h1,h2){font-size:32px;line-height:1.3;letter-spacing:-.9px}
.stage-heading :is(h1,h2) span{font-size:14px;letter-spacing:0;color:var(--secondary);margin-left:18px}
.stage-heading p{font-size:14px;color:var(--secondary);margin-top:6px}
.stage-viewport{position:relative;height:clamp(420px,calc(100svh - 290px),780px);overflow:hidden;background:#fafafa;touch-action:none;cursor:grab;isolation:isolate;outline-offset:4px}
.stage-viewport.is-dragging{cursor:grabbing}
.stage-world{position:absolute;left:50%;top:50%;width:0;height:0;will-change:transform}
.stage-world.is-settling{transition:transform .45s cubic-bezier(.22,.68,.23,1)}
.stage-photo{position:absolute;left:var(--x,0px);top:var(--y,0px);width:var(--photo-width);padding:0;border:0;background:transparent;transform:translate(-50%,-50%);transition:left .95s cubic-bezier(.2,.7,.2,1),top .95s cubic-bezier(.2,.7,.2,1),transform .35s;cursor:pointer;z-index:1;user-select:none;-webkit-user-select:none}
.stage-photo img{width:100%;height:auto;max-width:none;filter:grayscale(1);transition:filter .35s,box-shadow .35s;pointer-events:none}
.stage-photo>span{display:block;position:absolute;right:0;bottom:-24px;font-size:12px;line-height:1.5;color:#666;opacity:0;transition:opacity .2s}
.stage-photo:hover,.stage-photo:focus-visible{z-index:40;transform:translate(-50%,-50%) scale(1.1)}
.stage-photo:hover img,.stage-photo:focus-visible img{filter:grayscale(0);box-shadow:0 8px 30px #00000016}
.stage-photo:hover>span,.stage-photo:focus-visible>span{opacity:1}
.stage-viewport.is-stacked .stage-photo{left:0;top:0;transform:translate(-50%,-50%) rotate(calc((var(--index) - 14)*.8deg)) scale(.84)}
.stage-viewport.is-restarting .stage-photo{transition:none}
.stage-viewport.is-ring .stage-photo{left:var(--ring-x);top:var(--ring-y);transform:translate(-50%,-50%) scale(.72)}
.stage-viewport.is-ready .stage-photo{transition:transform .3s}
.stage-viewport.is-dragging .stage-photo{pointer-events:none}
.stage-opening{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:-1;color:#9b9b9b;font-size:11px;letter-spacing:.2em;opacity:1;transition:opacity .6s}
.stage-viewport.is-open .stage-opening{opacity:0}
.stage-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:15px;font-size:13px;line-height:1.8;color:var(--secondary)}
.stage-toolbar>p{display:flex;gap:24px;flex-wrap:wrap}
.stage-count{color:#333}
.stage-help-touch{display:none}
.stage-view-controls{display:flex;align-items:center;gap:15px;white-space:nowrap}
.stage-view-controls button{background:none;border:0;font-size:14px;min-width:30px;min-height:32px;padding:0 3px;color:#555}
.stage-view-controls [data-stage-action=reset]{border-bottom:1px solid #999;margin-left:8px;min-height:26px}
.stage-zoom{min-width:38px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}
.stage-credit{font-size:12px;line-height:1.8;color:#888;margin-top:9px}
@media(hover:none){.stage-help-desktop{display:none}.stage-help-touch{display:inline}.stage-photo:hover{transform:translate(-50%,-50%)}.stage-photo:hover img{filter:grayscale(1);box-shadow:none}}
@media(max-width:700px){
 .stage-gallery{width:calc(100% - 36px);margin-top:0}
 .stage-heading{display:block;padding:3px 4px 14px}
 .stage-heading :is(h1,h2){font-size:28px;letter-spacing:-.6px}.stage-heading :is(h1,h2) span{font-size:13px;margin-left:13px}
 .stage-heading p{font-size:13px;margin-top:5px}
 .stage-viewport{height:clamp(400px,calc(100svh - 295px),650px)}
 .stage-toolbar{align-items:start;gap:13px;margin-top:12px;flex-direction:column}
 .stage-toolbar>p{gap:5px 15px;font-size:12px}
 .stage-help-desktop{display:none}.stage-help-touch{display:inline}
 .stage-view-controls{align-self:flex-end;gap:12px}
 .stage-view-controls button{min-width:32px;min-height:32px}
 .stage-credit{font-size:12px;margin-top:5px}
}
@media(prefers-reduced-motion:reduce){.stage-photo,.stage-photo img,.stage-world.is-settling{transition:none}}

