/* Each opted-in document retains its own opening; only the photographs travel. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition { background: #e9e2e9; }
  :root[data-cinematic="f40"]::view-transition { background: #ead6cd; }
  :root[data-cinematic="giulia"]::view-transition { background: #f0ece7; }
  :root[data-cinematic="jaguar"]::view-transition { background: #e8e1e8; }
  ::view-transition-old(root) { animation: journal-page-out 120ms ease-out both; }
  ::view-transition-new(root) { animation: journal-page-in 280ms ease-out 35ms both; }
  ::view-transition-group(journal-photo) {
    animation-duration: 440ms;
    animation-timing-function: cubic-bezier(.22, 1, .36, 1);
  }
  :root[data-cinematic="giulia"]::view-transition-group(journal-photo) { animation-duration: 520ms; animation-timing-function: cubic-bezier(.25, .8, .25, 1); }
  :root[data-cinematic="jaguar"]::view-transition-group(journal-photo) { animation-duration: 480ms; animation-timing-function: cubic-bezier(.2, .75, .25, 1); }
  ::view-transition-old(journal-photo), ::view-transition-new(journal-photo) { height: 100%; object-fit: contain; }
  ::view-transition-new(journal-title) { animation: journal-title-in 300ms cubic-bezier(.22, 1, .36, 1) 100ms both; }
  @keyframes journal-page-out { to { opacity: 0; filter: blur(3px); } }
  @keyframes journal-page-in { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: blur(0); } }
  @keyframes journal-title-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
}
