/* Static mirror overrides — content must be visible without WordPress JS chain */
#site.out {
  opacity: 1 !important;
  top: 0 !important;
}

#preloader {
  display: none !important;
}

/* Hero visible on load; fade on scroll (see body .hero-header.active .media in inline CSS) */
.hero-header:not(.active) .media.image {
  opacity: 1 !important;
  background-size: cover;
  background-position: center;
}

body .hero-header.active .media,
body .hero-header.active .media.image {
  opacity: 0.1 !important;
}

.hero-header .media.image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Page color scheme revealed when hero fades (body.alt-scheme from scroll.hero) */
body.hero-1.alt-scheme:not(.before),
body.hero-1.alt-scheme:not(.before) #site,
body.hero-1.alt-scheme:not(.before) #content {
  background-color: #f1f1f1 !important;
}

html:not(.js) .jetpack-lazy-image,
.jetpack-lazy-image {
  opacity: 1 !important;
}

/* Hero pages: content must sit below fixed hero and stay readable without JS */
body.hero-1 #content {
  padding-top: 90vh;
  position: relative;
  z-index: 89;
}

body.hero-1 #content .entry-content {
  background-color: #ffffff;
}

body.hero-1.before #content .entry-content,
body.hero-1.very-first-init #content .entry-content {
  background-color: #ffffff;
}
