/* Companion of three-stage.js. The harness adds .mw-three to the container
   and .mw-three--ready after the first frame; until then (and for good when
   WebGL is missing) the .mw-three__fallback child stays visible. The harness
   makes a static container position: relative by itself. */

.mw-three__canvas {
  opacity: 0;
  transition: opacity .9s var(--mw-ease, cubic-bezier(.16, 1, .3, 1));
}

.mw-three--ready > .mw-three__canvas { opacity: 1; }

.mw-three__fallback {
  transition: opacity .9s var(--mw-ease, cubic-bezier(.16, 1, .3, 1)), visibility 0s .9s;
}

.mw-three--ready > .mw-three__fallback {
  opacity: 0;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .mw-three__canvas,
  .mw-three__fallback { transition-duration: .2s, 0s; transition-delay: 0s, .2s; }
}
