/* Motion for every expandable image on the string-waterfall page. */
body.string-edition .gw-page :is(.gw-hero-visual,.gw-gallery-frame,.gw-eng-photo) .cat-media img{
  transition:transform .8s cubic-bezier(.2,.7,.2,1),filter .6s ease;
  will-change:transform;
}
body.string-edition .gw-page #engineering .gw-eng-photo .cat-media img{
  transition:transform .8s cubic-bezier(.2,.7,.2,1),filter .6s ease;
}
body.string-edition .gw-page :is(.gw-hero-visual,.gw-gallery-frame,.gw-eng-photo) .cat-expand{
  z-index:3;
  border-color:rgba(255,255,255,.8);
  background:rgba(255,255,255,.94);
  box-shadow:0 5px 18px rgba(21,15,52,.24);
  backdrop-filter:blur(8px);
  animation:stringExpandBreathe 4s ease-in-out infinite;
  transition:transform .3s ease,background .3s ease,box-shadow .3s ease;
}
body.string-edition .gw-page :is(.gw-hero-visual,.gw-gallery-frame,.gw-eng-photo) .cat-expand:hover,
body.string-edition .gw-page :is(.gw-hero-visual,.gw-gallery-frame,.gw-eng-photo) .cat-expand:focus-visible{
  transform:scale(1.12) rotate(-8deg);
  background:#fff;
  box-shadow:0 9px 25px rgba(21,15,52,.3);
  animation-play-state:paused;
}
body.string-edition .gw-page .gw-gallery-frame figcaption{
  transition:transform .5s cubic-bezier(.2,.7,.2,1);
}
@media(hover:hover) and (pointer:fine){
  body.string-edition .gw-page .gw-hero-visual .cat-media:hover img,
  body.string-edition .gw-page .gw-gallery-frame:hover .gw-gallery-photo img,
  body.string-edition .gw-page #engineering .gw-eng-photo:hover .cat-media img{
    transform:scale(1.075);
    filter:saturate(1.1) brightness(1.05);
  }
  body.string-edition .gw-page .gw-gallery-frame:hover figcaption{transform:translateY(-5px)}
}
body.string-edition .gw-page .gw-hero-visual:focus-within .cat-media img,
body.string-edition .gw-page .gw-gallery-frame:focus-within .gw-gallery-photo img,
body.string-edition .gw-page #engineering .gw-eng-photo:focus-within .cat-media img{
  transform:scale(1.055);
  filter:saturate(1.07) brightness(1.04);
}
body.string-edition .cat-dialog[open]{
  animation:stringViewerEnter .36s cubic-bezier(.2,.75,.25,1) both;
}
body.string-edition .cat-dialog[open]::backdrop{
  animation:stringBackdropEnter .36s ease-out both;
}
body.string-edition .cat-dialog[open] img{
  animation:stringViewerImageEnter .48s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes stringExpandBreathe{
  0%,100%{box-shadow:0 5px 18px rgba(21,15,52,.24)}
  50%{box-shadow:0 5px 18px rgba(21,15,52,.24),0 0 0 7px rgba(255,255,255,.16)}
}
@keyframes stringViewerEnter{
  from{opacity:0;transform:translateY(16px) scale(.97)}
  to{opacity:1;transform:none}
}
@keyframes stringBackdropEnter{
  from{opacity:0}
  to{opacity:1}
}
@keyframes stringViewerImageEnter{
  from{opacity:0;transform:scale(1.035)}
  to{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){
  body.string-edition .gw-page :is(.gw-hero-visual,.gw-gallery-frame,.gw-eng-photo) .cat-media img,
  body.string-edition .gw-page :is(.gw-hero-visual,.gw-gallery-frame,.gw-eng-photo) .cat-expand,
  body.string-edition .gw-page .gw-gallery-frame figcaption{
    animation:none;
    transition:none;
    will-change:auto;
  }
  body.string-edition .gw-page :is(.gw-hero-visual,.gw-gallery-frame,.gw-eng-photo):is(:hover,:focus-within) .cat-media img{
    transform:none;
    filter:none;
  }
  body.string-edition .gw-page #engineering .gw-eng-photo:is(:hover,:focus-within) .cat-media img{
    transform:none;
    filter:none;
  }
  body.string-edition .gw-page :is(.gw-hero-visual,.gw-gallery-frame,.gw-eng-photo) .cat-expand:is(:hover,:focus-visible),
  body.string-edition .gw-page .gw-gallery-frame:hover figcaption{transform:none}
  body.string-edition .cat-dialog[open],
  body.string-edition .cat-dialog[open]::backdrop,
  body.string-edition .cat-dialog[open] img{animation:none}
}
