/* What the Interface theme's JavaScript did on page load, done in CSS for the static site.
   Installed as /css/static.css by wordpress_to_static_html's add_static_css.py. */

/* Easing Slider: hidden until its script runs, which then showed a new photo every 4 s
   with a 400 ms cross-fade (autoPlay 4000, slideSpeed 400, transitionStyle "fade").
   Done in CSS: the four slides (bin/static_fixes.py put their photos in src) are stacked
   and each fades in for its 4 s turn of a 16 s cycle. The first slide stays in the flow
   to give the slider its height (1600 x 500 photos: 450px at 1440 wide). */
.easingslider-container { display: block !important; position: relative; overflow: hidden; }
.easingslider-container .easingslider-slide { position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; animation: dfn-slide-fade 16s linear infinite both; }
.easingslider-container .easingslider-slide:first-child { position: relative; animation-delay: -0.4s; }
.easingslider-container .easingslider-slide:nth-child(2) { animation-delay: 3.6s; }
.easingslider-container .easingslider-slide:nth-child(3) { animation-delay: 7.6s; }
.easingslider-container .easingslider-slide:nth-child(4) { animation-delay: 11.6s; }
.easingslider-container .easingslider-slide img { display: block; width: 100%; height: auto; }
@keyframes dfn-slide-fade {
  0% { opacity: 0; } 2.5% { opacity: 1; } 25% { opacity: 1; } 27.5% { opacity: 0; } 100% { opacity: 0; }
}
/* Visitors who ask for less motion get the first photo, still. */
@media (prefers-reduced-motion: reduce) {
  .easingslider-container .easingslider-slide { animation: none; }
  .easingslider-container .easingslider-slide:first-child { opacity: 1; }
}

/* backtotop.js faded the button in only after scrolling; without it, keep it hidden. */
.back-to-top { display: none !important; }
