.panel.gallery-page {inset:0; overflow:hidden;}
.work-gallery {height:100%; display:grid; align-content:center; position:relative;}
.work-composition {position:relative; width:min(100vw,158.76svh); aspect-ratio:2048/1290; margin:auto;}
.work-composition .tile {display:block; position:absolute; margin:0; z-index:var(--depth); transform:translateX(var(--shift,0%)) scale(var(--scale,1));}
.work-composition .tile:focus-visible {z-index:7; --scale:1.075;}
@media (hover:hover) and (pointer:fine) {
  .work-composition .tile:hover {z-index:8; --scale:1.075;}
}
@media (prefers-reduced-motion:reduce) {
  .work-composition .tile:is(:hover,:focus-visible) {--scale:1;}
}
.work-composition .tile img,.work-composition picture {display:block; width:100%; height:100%;}
.work-caption {position:absolute; top:82%; inset-inline:0; text-align:center; margin:0; font:600 clamp(12px,.9vw,16px)/1.4 var(--mono);}
.work-caption a {display:inline-flex; align-items:center; min-height:44px;}
@media(max-width:650px) and (orientation:portrait){
  .work-rail {overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none;}
  .work-composition {width:min(195vw,136svh);}
  .work-caption {top:calc(50% + min(53vw,35svh));}
}

.work-caption {padding-block:12px; pointer-events:none;}
@media (hover:none) {
  .work-caption {display:none;}
}

.work-composition .work-motion {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  pointer-events:none;
}
@media (min-width:651px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .work-composition .tile:hover .work-motion.is-playing,
  .work-composition .work-motion.is-video-still {opacity:1;}
}

.work-composition .tile-thredd :is(img, video) {
  object-fit: cover;
  object-position: 34% center;
}

.work-composition .tile-wright :is(img, video) {
  object-position: 78% center;
}
