/* Motion for every enlargeable image on the mesh-waterfall page. */
body.mesh-edition .gw-page .cat-media.mesh-photo-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.25,1);
}
body.mesh-edition .gw-page .cat-media.mesh-photo-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
body.mesh-edition .gw-page .cat-media img {
  transition: transform .75s cubic-bezier(.2,.75,.25,1), filter .75s ease;
}
body.mesh-edition .gw-page .cat-media,
body.mesh-edition .gw-page .gw-gallery-frame { cursor: zoom-in; }
body.mesh-edition .gw-page .cat-media:hover img,
body.mesh-edition .gw-page .cat-media:focus-within img,
body.mesh-edition .gw-page .gw-gallery-frame:hover .cat-media img,
body.mesh-edition .gw-page #engineering .cat-media:hover img {
  transform: scale(1.055);
  filter: saturate(1.08) brightness(1.04);
}
body.mesh-edition .gw-page .cat-expand {
  transition: transform .3s cubic-bezier(.2,.75,.25,1), box-shadow .3s ease, background-color .3s ease;
}
body.mesh-edition .gw-page .cat-media:hover .cat-expand,
body.mesh-edition .gw-page .cat-expand:focus-visible,
body.mesh-edition .gw-page .gw-gallery-frame:hover .cat-expand {
  transform: scale(1.1) rotate(7deg);
  box-shadow: 0 10px 25px #211a4d33;
  background-color: #fff;
}
body.mesh-edition .cat-dialog[open] {
  animation: mesh-dialog-enter .38s cubic-bezier(.2,.75,.25,1) both;
}
body.mesh-edition .cat-dialog[open]::backdrop {
  animation: mesh-backdrop-enter .38s ease both;
}
body.mesh-edition .cat-dialog[open] img {
  animation: mesh-image-enter .48s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes mesh-dialog-enter {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mesh-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mesh-image-enter {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body.mesh-edition .gw-page .cat-media,
  body.mesh-edition .gw-page .cat-media img,
  body.mesh-edition .gw-page .cat-expand,
  body.mesh-edition .cat-dialog,
  body.mesh-edition .cat-dialog::backdrop,
  body.mesh-edition .cat-dialog img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}
