@media (min-width: 901px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  @supports (view-timeline-name: --photo) and (animation-timeline: --photo) and (animation-range: exit 0% exit 100%) {
    .story-image, .about-photo, .dir-clinical-photo {
      view-timeline-name: --editorial-photo;
    }

    :is(.story-image, .about-photo, .dir-clinical-photo) > img {
      animation: editorial-photo-drift auto linear both;
      animation-timeline: --editorial-photo;
      animation-range: cover 0% cover 100%;
    }

    @keyframes editorial-photo-drift {
      from { transform: translateY(-1.2%) scale(1.034); }
      to { transform: translateY(1.2%) scale(1.034); }
    }

    .hero {
      view-timeline-name: --hospital-hero;
    }

    .hero-art {
      animation: hero-photo-exit auto linear both;
      animation-timeline: --hospital-hero;
      animation-range: exit 0% exit 100%;
    }

    @keyframes hero-photo-exit {
      from { transform: none; }
      to { transform: translateY(1%) scale(1.028); }
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  :root { --action-arrow-travel: 3px; }
  :root[dir="rtl"] { --action-arrow-travel: -3px; }

  :is(.btn, .text-link, .dir-dept-row, .dir-person) .icon.directional {
    transition: translate 180ms var(--ease);
  }

  :is(.btn, .text-link, .dir-dept-row, .dir-person):focus-visible .icon.directional {
    translate: var(--action-arrow-travel) 0;
  }

  @media (hover: hover) and (pointer: fine) {
    :is(.btn, .text-link, .dir-dept-row, .dir-person):hover .icon.directional {
      translate: var(--action-arrow-travel) 0;
    }
  }

  .photo-viewer[open] {
    animation: gallery-viewer-open 180ms var(--ease);
  }

  @keyframes gallery-viewer-open {
    from { opacity: .8; translate: 0 4px; }
    to { opacity: 1; translate: 0 0; }
  }
}
