/* One FFAS-style row, constrained to Dream Heretic's left column. */
.dream-divider{margin:28px 0 34px;border-top:1px solid var(--line)}
.dream-gallery,.dream-art-row{min-width:0;width:100%;max-width:100%}
.dream-art-viewport{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-y;cursor:grab;scroll-behavior:auto;padding:4px 0;outline-offset:4px}
.dream-art-viewport::-webkit-scrollbar{display:none}
.dream-art-viewport.is-dragging{cursor:grabbing}
.dream-art-track{display:flex;width:max-content}
.dream-art-sequence{display:flex;gap:14px;padding-right:14px;flex-shrink:0}
.dream-art-card{height:230px;width:auto;flex-shrink:0;display:block;position:relative;background:#f5f5f5;padding:0;border:0;cursor:inherit}
.dream-art-card img{height:100%;width:auto;max-width:none;object-fit:contain;display:block;pointer-events:none;user-select:none;-webkit-user-drag:none}
.dream-art-card .scene-still{height:100%;width:auto;max-height:none}
.dream-art-card>span:not(.scene-still){position:absolute;bottom:8px;right:9px;background:rgba(255,255,255,.9);color:#111;width:25px;height:25px;display:grid;place-items:center;font-size:14px;opacity:0;transition:opacity .18s}
.dream-art-card:hover>span:not(.scene-still),.dream-art-card:focus-visible>span:not(.scene-still){opacity:1}
.dream-art-card:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.dream-gallery-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px}
.dream-art-toggle{font-size:11px;gap:9px;min-height:44px;margin:0!important}
.dream-art-toggle [data-dream-play-symbol]{width:16px;text-align:center}
.dream-gallery-controls{display:flex;gap:8px}
.dream-gallery-controls .round{width:34px;height:34px}
.dream-gallery-hint{font-size:10px;line-height:1.6;color:var(--muted);margin-top:9px}
@media(max-width:1050px){.dream-art-card{height:210px}}
@media(max-width:700px){.dream-divider{margin:24px 0 28px}.dream-overview{gap:32px}.dream-art-card{height:185px}.dream-art-sequence{gap:10px;padding-right:10px}.dream-gallery-controls .round{width:38px;height:38px}.dream-art-toggle{font-size:10px;white-space:nowrap}.dream-gallery-hint{font-size:9px}}
@media(prefers-reduced-motion:reduce){.dream-art-card>span{transition:none}}

/* Keep the scene title visible when the original image is enlarged. */
.image-dialog-body.scene-image-body{width:min(1200px,calc(100vw - 78px))}
.scene-image-body .scene-still{width:min(100%,calc((100svh - 170px) * var(--still-ratio)));height:auto;max-height:none}
.scene-image-body .scene-still img{display:block;width:100%;height:100%;object-fit:contain}
