/* Character copy follows the card's arrival. One set of inherited values per
   shell also drives its decorative strips, so all slices reveal as one block. */
.gallery-type-ready [data-gallery-type]{
  --gallery-copy:var(--gallery-title,1);
  --gallery-copy-lift:20px;
  opacity:clamp(0,calc(var(--gallery-copy) * 1.7),1);
  transform:translateY(calc((1 - var(--gallery-copy)) * var(--gallery-copy-lift)));
  clip-path:inset(-.12em -.08em calc((1 - var(--gallery-copy)) * 112% - .12em) -.08em);
}
.gallery-type-ready [data-gallery-type="label"]{
  --gallery-copy:var(--gallery-label,1);
  --gallery-copy-lift:9px;
  display:inline-block;
}
.gallery-type-ready [data-gallery-type="detail"]{
  --gallery-copy:var(--gallery-detail,1);
  --gallery-copy-lift:12px;
}
/* Keyboard readers see complete copy immediately, even during an entry pose. */
.world-track:focus-within [data-gallery-type]{
  opacity:1;
  transform:none;
  clip-path:none;
}
@media(max-width:767px){
  .gallery-type-ready [data-gallery-type="title"]{--gallery-copy-lift:15px}
}
@media(prefers-reduced-motion:reduce){
  .gallery-type-ready [data-gallery-type]{
    opacity:1;
    transform:none;
    clip-path:none;
  }
}
