/* WORK shichi-go-san: one layout and motion contract for every genre. */
[data-coco-genre-gallery]{--coco-gallery-column:310px;--coco-gallery-gap:10px;position:relative;overflow:hidden!important;max-width:100%;contain:inline-size}
[data-coco-genre-gallery] .gallery-belt{display:flex;width:max-content;animation:coco-genre-flow var(--coco-gallery-duration,45s) linear infinite!important;will-change:transform}
[data-coco-genre-gallery] .gallery-set{display:flex;flex:none;gap:var(--coco-gallery-gap);padding-right:var(--coco-gallery-gap);height:400px}
[data-coco-genre-gallery] .gallery-stack,[data-coco-genre-gallery] .gallery-tall{width:var(--coco-gallery-column);flex:none;overflow:hidden}
[data-coco-genre-gallery] .gallery-stack{display:grid;grid-template-rows:1fr 1fr;gap:var(--coco-gallery-gap)}
[data-coco-genre-gallery] img{display:block;width:100%;height:100%;min-height:0;object-fit:cover}
[data-coco-genre-gallery]:focus-visible .gallery-belt,[data-coco-genre-gallery].coco-is-touching .gallery-belt{animation-play-state:paused!important}
@media(hover:hover){[data-coco-genre-gallery]:hover .gallery-belt{animation-play-state:paused!important}}
@keyframes coco-genre-flow{from{transform:translate3d(0,0,0)}to{transform:translate3d(calc(-1 * var(--coco-gallery-distance,50%)),0,0)}}
.coco-genre-photo{position:relative;height:clamp(195px,25.5vw,382.5px);overflow:hidden}
.coco-genre-photo .coco-shared-photo-image.is-fixed{inset:auto;left:0;right:0;top:0;width:100%;height:100vh;height:100svh;transform:translate3d(0,var(--coco-photo-y,0px),0);will-change:transform}
@media(max-width:800px){[data-coco-genre-gallery]{--coco-gallery-column:205px;--coco-gallery-gap:6px}[data-coco-genre-gallery] .gallery-set{height:270px}.coco-genre-photo{height:195px}}
@media(prefers-reduced-motion:reduce){[data-coco-genre-gallery]{overflow-x:auto!important}[data-coco-genre-gallery] .gallery-belt{animation:none!important;transform:none;will-change:auto}[data-coco-genre-gallery] [data-coco-gallery-copy]{display:none}.coco-genre-photo .coco-shared-photo-image.is-fixed{inset:0;height:auto;transform:none;will-change:auto}}

/* RC225 縦の写真は縦、横の写真は横で: each column is as wide as its photos' shape needs (--coco-r = width / height). */
[data-coco-genre-gallery] .gallery-set{--coco-gallery-height:400px}
[data-coco-genre-gallery] .gallery-tall[style*="--coco-r"]{width:calc(var(--coco-gallery-height) * var(--coco-r))}
[data-coco-genre-gallery] .gallery-stack[style*="--coco-r"]{width:calc((var(--coco-gallery-height) - var(--coco-gallery-gap)) / 2 * var(--coco-r))}
@media(max-width:800px){[data-coco-genre-gallery] .gallery-set{--coco-gallery-height:270px}}
