/* STEP 19-4: Anonymous homepage video hero */

#wryHomeVideo {
  display: none;
}

body.wry-home-video-active {
  background: #09070a !important;
}

body.wry-home-video-active #app .hero {
  position: relative !important;
  height: 420px !important;
  min-height: 420px !important;
  padding: 180px 24px 28px !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  text-align: left !important;
  background: #160c13 !important;
  isolation: isolate;
}

body.wry-home-video-active #app .hero #wryHomeVideo {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  pointer-events: none;
  z-index: -2;
  opacity: 1;
  visibility: visible;
}

body.wry-home-video-active #app .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(12, 6, 10, 0.04) 0%,
    rgba(12, 6, 10, 0.18) 36%,
    rgba(12, 6, 10, 0.75) 78%,
    #10090e 100%
  );
}

body.wry-home-video-active #app .hero .moon,
body.wry-home-video-active #app .hero .ornament {
  display: none !important;
}

body.wry-home-video-active #app .hero h1,
body.wry-home-video-active #app .hero p {
  position: relative;
  z-index: 1;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.wry-home-video-active #app .hero h1 {
  font-size: 30px !important;
  line-height: 1.5 !important;
  margin-bottom: 10px !important;
}

body.wry-home-video-active #app .hero p {
  font-size: 14px !important;
  line-height: 1.8 !important;
}

@media (max-width: 520px) {
  body.wry-home-video-active #app .hero {
    height: 400px !important;
    min-height: 400px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wry-home-video-active #app .hero #wryHomeVideo {
    display: none;
  }
}
