/* The public site's page-to-page motion (UX review, next batch rank 9).
   Cross-document view transitions: moving between public pages cross-fades,
   and a bouquet card's photo glides into the bouquet page's photo (and back);
   js/transitions.js names the two photos for that one navigation. Linked only
   from base.html, so the console never animates. Browsers without view
   transitions, and anyone who asks for reduced motion, load pages as before. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
  ::view-transition-group(bouquet-photo) {
    animation-duration: .38s; animation-timing-function: cubic-bezier(.2, .7, .2, 1);
  }
  /* Both photos are 4:5: each fills the gliding box as it grows or shrinks, never stretched. */
  ::view-transition-old(bouquet-photo), ::view-transition-new(bouquet-photo) {
    height: 100%; object-fit: cover;
  }
}
