/* Cross-document view transitions. Every page opts in, so navigating between
   them crossfades; the site name keeps its place, and a research plate clicked
   on the homepage travels to its entry on the publications page (the pages set
   the "plate" name on the two images at navigation time). */
@view-transition { navigation: auto; }

.cinematic-brand,
header .bar .name { view-transition-name: site-name; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .28s; }

::view-transition-group(site-name) { animation-duration: .3s; }

::view-transition-group(plate) {
  animation-duration: .55s;
  animation-timing-function: cubic-bezier(.2, .7, .2, 1);
}
::view-transition-old(plate),
::view-transition-new(plate) {
  animation-duration: .55s;
  height: 100%;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}
