/* source_agent=codex / machine=mac-mini */
.gallery-viewport{position:relative}
.motion-gallery .gallery-controls{position:absolute;inset:0;display:block;padding:0;pointer-events:none;z-index:3}
.motion-gallery .gallery-controls button{position:absolute;top:50%;display:grid;place-items:center;transform:translateY(-50%);width:52px;height:52px;min-width:52px;min-height:52px;padding:0;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(7,24,37,.28);color:rgba(255,255,255,.9);font-size:0;line-height:1;pointer-events:auto;opacity:.65;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:opacity .2s,background .2s,border-color .2s;cursor:pointer;touch-action:manipulation}
.motion-gallery .gallery-controls [data-step="-1"]{left:clamp(18px,3vw,48px)}
.motion-gallery .gallery-controls [data-step="1"]{right:clamp(18px,3vw,48px)}
.motion-gallery .gallery-controls [data-step]::before{content:"";position:absolute;left:50%;top:50%;display:block;width:11px;height:11px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:translate(-50%,-50%) rotate(45deg);margin-left:-4px}
.motion-gallery .gallery-controls [data-step="-1"]::before{transform:translate(-50%,-50%) rotate(-135deg);margin-left:4px}
.gallery-viewport:hover .gallery-controls button,.gallery-viewport:focus-within .gallery-controls button{opacity:.9}
.motion-gallery .gallery-controls button:hover,.motion-gallery .gallery-controls button:focus-visible{opacity:1;background:rgba(7,24,37,.65);border-color:rgba(255,255,255,.6);color:#fff}
.motion-gallery .gallery-controls button:focus-visible{outline:2px solid #fff;outline-offset:4px}
.motion-gallery .gallery-controls button:disabled{opacity:.25;cursor:default}
@media(max-width:700px){.motion-gallery .gallery-controls button{width:44px;height:44px;min-width:44px;min-height:44px;opacity:.8}.motion-gallery .gallery-controls [data-step="-1"]{left:12px}.motion-gallery .gallery-controls [data-step="1"]{right:12px}}
@media(prefers-reduced-motion:reduce){.motion-gallery .gallery-controls button{transition:none}}
