/* Home v11 flight layer (.fl) under the three home screens. Load after bohpts-v6.css. */

@media (min-width: 1200px) {
  .bohpts-home [data-section-bg] { display: none !important; }

  .bohpts-home .fp .swiper-wrapper { position: relative; height: 100vh; }
  .bohpts-home .fp__swiper-slide { position: absolute !important; inset: 0; transition: none !important; }
  .bohpts-home .fp__box > * { will-change: transform, opacity; }
}

.bohpts-home { background: transparent !important; }

.fl { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0d0f16; pointer-events: none; }
/* Pictures and videos are cropped the same way: change both or neither. */
.fl__still, .fl__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

.fl__still { opacity: 0; transition: opacity .13s linear; z-index: 1; }
.fl__still.on { opacity: 1; }
.fl__still.top { z-index: 3; }
.fl__video { z-index: 2; visibility: hidden; }
.fl__video.on { visibility: visible; }

.fl__shade { position: absolute; inset: 0; z-index: 4; opacity: 0; }
.fl__shade.on { opacity: 1; }
.fl__snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; }

.fl__shade_home, .fl__shade_news, .fl__shade_resources {
  background:
    linear-gradient(90deg, rgba(7, 10, 20, .88) 0%, rgba(7, 10, 20, .86) 18%, rgba(7, 10, 20, .81) 29%, rgba(7, 10, 20, .72) 37%,
      rgba(7, 10, 20, .58) 43%, rgba(7, 10, 20, .38) 48.5%, rgba(7, 10, 20, .18) 54%, rgba(7, 10, 20, .05) 59%, rgba(7, 10, 20, 0) 63%),
    linear-gradient(270deg, rgba(7, 10, 20, .86) 0%, rgba(7, 10, 20, .80) 10%, rgba(7, 10, 20, .65) 19%,
      rgba(7, 10, 20, .38) 27%, rgba(7, 10, 20, .12) 33%, rgba(7, 10, 20, 0) 38%),
    linear-gradient(180deg, rgba(7, 10, 20, .82) 0%, rgba(7, 10, 20, 0) 22%),
    linear-gradient(0deg, rgba(7, 10, 20, .88) 0%, rgba(7, 10, 20, 0) 30%);
}

.fl__shade_fly {
  background:
    linear-gradient(180deg, rgba(7, 10, 20, .70) 0%, rgba(7, 10, 20, 0) 18%),
    linear-gradient(0deg, rgba(7, 10, 20, .70) 0%, rgba(7, 10, 20, 0) 22%);
}

/* Phones: no flight, the pictures become section backgrounds (!important beats the CMS inline backgrounds). */
@media (max-width: 1199px) {
  .fl { background: transparent; bottom: auto; height: 100vh; height: 100lvh; }
  .fl__still, .fl__video, .fl__shade { display: none !important; }

  .bohpts-home [data-section-bg] { background-size: cover; background-repeat: no-repeat; background-position: 50% 30%; }
  .bohpts-home [data-section-bg]::after { content: ""; position: absolute; inset: 0; pointer-events: none; }

  .bohpts-home [data-section-bg="hero"] { height: auto; bottom: 0; background-image: url("../images/flight/screen1.webp") !important; background-position: 65% 30%;
    -webkit-mask: linear-gradient(180deg, #000 calc(100% - 6rem), transparent); mask: linear-gradient(180deg, #000 calc(100% - 6rem), transparent); }

  .bohpts-home [data-section-bg="hero"]::after {
    background: linear-gradient(180deg, rgba(7, 10, 20, .80) 0, rgba(7, 10, 20, .30) 7.5rem, rgba(7, 10, 20, .30) 9rem,
      rgba(7, 10, 20, .70) 12.5rem, rgba(7, 10, 20, .84) 17rem, rgba(7, 10, 20, .86) 100%);
  }

  .bohpts-home [data-section-bg="news"] { background-image: url("../images/flight/screen2.webp") !important; background-position: 52% 30%; }
  .bohpts-home [data-section-bg="resources"] { background-image: url("../images/flight/screen3.webp") !important; background-position: 70% 30%; }

  .bohpts-home [data-section-bg="news"]::after, .bohpts-home [data-section-bg="resources"]::after {
    background: linear-gradient(180deg, rgba(7, 10, 20, .55) 0, rgba(7, 10, 20, .72) 9rem, rgba(7, 10, 20, .80) 100%);
  }
}
