:root{color-scheme:light;--ink:#30283d;--plum:#634483}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden}
body{font:13px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:#eee5f7}
button{font:inherit;cursor:pointer}
button:focus-visible{outline:3px solid #8a54cb;outline-offset:2px}
.gallery{display:flex;flex-direction:column;width:100%;height:100vh}
.slides{position:relative;flex:1;min-height:0;overflow:hidden;background:#e6d9ee;touch-action:pan-y}
.slide{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 55%;opacity:0;visibility:hidden;transition:opacity .8s ease,visibility .8s ease}
.slide.is-active{opacity:1;visibility:visible}
.gallery-footer{flex:0 0 82px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 14px;background:#fdfbf8}
.caption{margin:0;min-width:0;color:#62576e;font-size:12px}
.controls{display:flex;align-items:center;justify-content:flex-end;gap:2px;white-space:nowrap}
.controls button{display:grid;place-items:center;min-width:40px;min-height:44px;padding:2px;border:0;background:transparent;color:var(--plum);font-size:19px}
.controls button[data-pause]{min-width:50px;font-size:12px;font-weight:700}
.controls span{min-width:38px;text-align:center;color:#62576e;font-size:11px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:500px){.gallery-footer{padding:7px 10px;gap:6px}.caption{font-size:11px}.controls button{min-width:36px}}
@media(max-width:360px){.gallery-footer{flex-direction:column;align-items:stretch;justify-content:center;gap:0}.caption{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.controls{justify-content:space-between}}
@media(prefers-reduced-motion:reduce){.slide{transition:none}}

/* Discourage native image save/drag gestures without disabling page text selection. */
img{-webkit-touch-callout:none;-webkit-user-drag:none;-webkit-user-select:none;user-select:none}
