/* Motion for the panel flow. Loaded only when the visitor has not asked for reduced motion (media attribute on the link),
   and stopped by the header Motion control set to Zero. Without this file a change of screen is instant. */
@media screen and (prefers-reduced-motion: no-preference) {
  html:not([data-motion="zero"]).deck .deck-panel { transition: transform .5s cubic-bezier(.22, .8, .24, 1), visibility 0s linear .5s; }
  html:not([data-motion="zero"]).deck .deck-panel.is-active { transition: transform .5s cubic-bezier(.22, .8, .24, 1), visibility 0s; }
  html:not([data-motion="zero"]).deck [data-deck-in="next"] { animation: deck-in-next .4s cubic-bezier(.22, .8, .24, 1) both; }
  html:not([data-motion="zero"]).deck [data-deck-in="prev"] { animation: deck-in-prev .4s cubic-bezier(.22, .8, .24, 1) both; }
  html:not([data-motion="zero"]).deck .deck-track i { transition: transform .4s ease; }
  @keyframes deck-in-next { from { opacity: 0; transform: translateX(3rem); } to { opacity: 1; transform: none; } }
  @keyframes deck-in-prev { from { opacity: 0; transform: translateX(-3rem); } to { opacity: 1; transform: none; } }
}
