/* ---------------------------------------------------------------------
   Hero Block Styles
   --------------------------------------------------------------------- */

.block-hero {
  width: 100%;
  overflow: hidden;
  max-width: 100%;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-height: 95vh;
  padding: 180px 0 80px;
  margin: 0;
  background-color: #000021;
  color: #ffffff;
  transition: opacity 0.4s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 203px 0 128px;
    min-height: 100vh;
  }
}

.hero--short {
  min-height: 50vh;
}

@media (min-width: 768px) {
  .hero--short {
    padding: 240px 0 120px;
    min-height: 50vh;
  }

  .hero--short .hero__content p {
    max-width: 606px !important;
  }
}


.hero--auto {
  min-height: 0 !important;
}

@media (min-width: 768px) {
  .hhero--auto {
    padding: 203px 0 80px;
    min-height: 0;
  }
}

/* .hero:after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.67) 100%);
}
*/

.hero .swiper,
.hero .swiper:active {
  cursor: default !important;
}

.hero__inner {
  max-width: var(--wp--style--global--wide-size);
  max-width: var(--wp--style--global--content-size);
  width: 92%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__bg_logo {
  width: 300px;
  height: 300px;
  position: absolute;
  display: block;
  top: calc(50% - 150px);
  left: calc(50% - 150px);
  z-index: -3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg_logo img {
  /* filter: brightness(50%) grayscale(100%);
  mix-blend-mode: darken; */
}

.hero__bg_logo:after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  display: block;
  top: 0;
  right: 0;
  z-index: 2;
  background: #000021;
}

/* .hero__media,
.hero__content {
  display: none;
} */

.hero:before {
  z-index: -4;
  /* background: url('https://wuw9uv10l5i2pv8.static4.studio/wp-content/themes/defense-unicorns/blocks/hero/build/img/shield-logo-dark.svg') center / 300px auto no-repeat; */
  /* filter: brightness(70%); */
}

@media (max-width: 768px) {
  .hero:before {
    /* background: url('https://wuw9uv10l5i2pv8.static4.studio/wp-content/themes/defense-unicorns/blocks/hero/build/img/shield-logo-dark.svg') center / 200px auto no-repeat; */
  }
}



.hero .hero__inner {
  position: relative;
  z-index: 4;
}




.hero__logo {
  position: absolute;
  bottom: 24px;
  width: 300px;
  left: calc(50% - 150px);
  z-index: 4;

  display: none;
}

.hero__logo img {
  max-width: 190px;
  margin: 0 auto;
  display: block;
}

@media (min-width: 769px) {
  .hero__logo {
    bottom: 44px;
  }
}

@media (min-width: 1800px) {
  .hero__logo {
    bottom: 80px;
  }
}

.hero__logo-lg .hero__logo img {
  max-width: 280px;
  margin: 0 auto;
}




/* ----------------------------------------
   Content
   ---------------------------------------- */

.wp-site-blocks .hero__content,
.hero__content {
  position: relative;
  z-index: 4;
  width: 100%;
  /* padding: 24px 0; */
  margin: 0 auto;
}

@media (max-width: 1024px) {

  .hero__media img {
    object-position: 81% 50%;
    opacity: 0.35;
  }

  .wp-site-blocks .hero__content *,
  .hero__content * {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__content .wp-block-buttons {
    justify-content: center !important;
  }

  .hero__content .wp-block-button__link {
    width: 100% !important;
  }
}

.hero--left-center .hero__content {
  max-width: 656px;
  margin: 0;
}

/* 
.hero__content .wp-block-heading {
  max-width: 656px;
}

.hero__content p {
  max-width: 656px;
} */

.hero__screen {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: #000000;
  opacity: 0.5;
  pointer-events: none;
}


.hero--center-center {
  justify-content: center;
  align-items: center;
  text-align: center;

  .wp-block-button__link p {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero--center-center .hero__content {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.hero--center-center .hero__content p {
  max-width: 606px;
  margin-left: auto;
  margin-right: auto;
}

.hero--left-center {
  justify-content: flex-start;
  align-items: center;
  text-align: left;

  p {
    margin-right: auto;
    max-width: 620px;
  }
}

.hero--right-center {
  justify-content: flex-end;
  align-items: center;
  text-align: right;

  p {
    margin-left: auto;
    max-width: 620px;
  }
}

.hero--center-bottom {
  justify-content: center;
  align-items: flex-end;
  text-align: center;

  p {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero--left-bottom {
  justify-content: flex-start;
  align-items: flex-end;
  text-align: left;

  p {
    margin-right: auto;
    max-width: 620px;
  }
}

.hero--right-bottom {
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;

  p {
    margin-left: auto;
    max-width: 620px;
  }
}






.hero--center-bottom .hero__content {
  text-align: center;
}

.hero--right-bottom .hero__content {
  text-align: right;
}

/* ----------------------------------------
   Img / Video
   ---------------------------------------- */

.hero__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero__media figure {
  margin: 0;
  padding: 0;
}

.hero__media img {
  object-fit: cover;
  width: 100%;
  height: 100% !important;
  position: absolute;
  z-index: 1;
}

.hero__media video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */

@keyframes logoHandler {

  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) rotateY(-90deg) scale(0.9);
  }

  33%,
  66% {
    opacity: 1;
    transform: rotateY(0);
  }
}

.block-hero .hero__bg_logo:after {
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease-in-out;
  /* transform-origin: right;
  transform: scaleX(0); */
  opacity: 0;
}

.block-hero .hero__bg_logo {
  transition: all 0.8s ease;
  transform-origin: center;
  opacity: 0;
  transform: translate3d(0, 8px, 0) rotateY(-90deg) scale(0.9);
}

.block-hero .hero .hero__media {
  opacity: 0;
  transform: scale(1.15);
  transform-origin: center;
  transition: opacity 1s ease-in-out, transform 0.8s ease;
}

.block-hero .hero .hero__content,
.block-hero .hero .hero__logo {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transform-origin: center;
  transition: transform 0.7s ease-in-out, opacity 0.9s ease-in-out;
}

.block-hero.in-view .hero__bg_logo {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateY(0) scale(1);
}

.block-hero.in-view .hero__bg_logo:after {
  transition-delay: 1.2s;
  /* transform: scaleX(1); */
  opacity: 1;
}

.block-hero.in-view .hero .hero__media {
  transition-delay: 1.9s;
  opacity: 1;
  transform: scale(1);
}

.block-hero.in-view .hero .hero__content,
.block-hero.in-view .hero .hero__logo {
  transition-delay: 2.2s;
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

/* When logo animation is disabled, cut delays in half */
.block-hero.no-logo-animation.in-view .hero .hero__media {
  transition-delay: 0.95s;
}

.block-hero.no-logo-animation.in-view .hero .hero__content,
.block-hero.no-logo-animation.in-view .hero .hero__logo {
  transition-delay: 1.1s;
}

.editor-styles-wrapper .block-hero * {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
}

.editor-styles-wrapper .block-hero .swiper-slide__inner figure {
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
}

.editor-styles-wrapper .block-hero .swiper-slide__inner img {
  top: 0;
  left: 0;
}

.is-root-container .hero {
  min-height: 560px;
  height: auto;
}

.is-root-container .hero {
  min-height: 560px;
  height: auto;
  padding: 100px 0;
}

.is-root-container .hero.hero--short {
  min-height: 260px;
  height: auto;
  padding: 80px 0;
}