/* Imported from Leyla; colour and font variables mapped to CMA. */
.video-hero-block .video-heading {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 2;
  color: white;
  opacity: 0.9;
}

.video-hero-block button {
  top: 3.125rem;
}

.video-hero-block .video-heading .video-title,
.video-hero-block .video-heading .video-sub-title {
  display: block;
  margin: 0;
  padding: 0;
}

.video-hero-block .video-heading .video-title {
  line-height: 0.9;
  font-size: 7.5rem;
}

.video-hero-block .video-heading .video-sub-title {
  line-height: 3.5rem;
  font-family: var(--title-font);
  font-size: 2.5rem;
  text-transform: none;
}

.block.video-hero-block {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.block.video-hero-block .video-hero-block__content {
  position: relative;
  width: 100%;
}

.block.video-hero-block .video-hero-block__media-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  container-type: inline-size;
  background-color: #000000;
}

@supports (height: 100dvh) {
  .block.video-hero-block .video-hero-block__media-wrap {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.block.video-hero-block .video-hero-block__background-layer,
.block.video-hero-block .video-hero-block__overlay-layer,
.block.video-hero-block .video-hero-block__foreground-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.block.video-hero-block .video-hero-block__background-layer {
  z-index: 1;
}

.block.video-hero-block .video-hero-block__background-layer .field,
.block.video-hero-block .video-hero-block__background-layer .field__item,
.block.video-hero-block .video-hero-block__background-layer img {
  width: 100%;
  height: 100%;
}

.block.video-hero-block .video-hero-block__background-layer img {
  display: block;
  object-fit: cover;
}

.block.video-hero-block .video-hero-block__video-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 100cqw;
  height: 56.25cqw;
  min-width: 177.78vh;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@supports (height: 100dvh) {
  .block.video-hero-block .video-hero-block__video-layer {
    min-width: 177.78dvh;
    min-height: 100dvh;
  }
}

.block.video-hero-block .video-hero-block__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.block.video-hero-block .video-hero-block__overlay-layer {
  z-index: 3;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
}

@keyframes vhFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.block.video-hero-block .video-hero-block__foreground-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
  animation: vhFadeIn 0.8s ease-in 0.3s both;
}

.block.video-hero-block .video-hero-block__foreground-layer img {
  max-width: 7rem;
  margin-bottom: 2rem;
}


.block.video-hero-block .video-hero-block__foreground-layer>.field,
.block.video-hero-block .video-hero-block__foreground-layer .paragraph {
  position: relative;
  z-index: 4;
}

.block.video-hero-block .video-hero-block__cta {
  position: relative;
  z-index: 5;
  margin-top: 1rem;
}

.block.video-hero-block .video-hero-block__cta .paragraph-cta__link {
  background-color: rgba(var(--cma-hot-pink-rgb), 0.7);
}








@media (max-width: 991.98px) {
  .block.video-hero-block .video-hero-block__foreground-layer {
    padding: 7rem 1.5rem 1.5rem;
  }

  .video-hero-block .video-heading .video-title {
    font-size: 5.5rem;
  }

  .video-hero-block .video-heading .video-sub-title {
    font-size: 2.15rem;
    line-height: 3rem;
  }

  .block.video-hero-block .video-hero-block__foreground-layer img {
    max-width: 7rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .video-hero-block .video-heading .video-title {
    font-size: 4.5rem;
  }

  .video-hero-block .video-heading .video-sub-title {
    font-size: 1.85rem;
    line-height: 2.5rem;
  }

  .block.video-hero-block .video-hero-block__foreground-layer img {
    max-width: 6.25rem;
    margin-bottom: 2rem;
  }
}


@media (max-width: 575.98px) {
  .block.video-hero-block .video-hero-block__foreground-layer {
    padding: 6rem 1rem 1rem;
  }

  .video-hero-block .video-heading .video-title {
    font-size: 3.5rem;
  }

  .video-hero-block .video-heading .video-sub-title {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

/* Centre the existing CMA content paragraph as well as Leyla's rich-text markup. */
.video-hero-block .video-hero-content__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #fff;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .block.video-hero-block .video-hero-block__foreground-layer {
    animation: none;
  }
}

/* Cover the same hero with the phone video's native 9:16 proportions. */
.block.video-hero-block .video-hero-block__video-layer.is-portrait {
  width: 100cqw;
  height: 177.7778cqw;
  min-width: 56.25vh;
  min-height: 100vh;
}

@supports (height: 100dvh) {
  .block.video-hero-block .video-hero-block__video-layer.is-portrait {
    min-width: 56.25dvh;
    min-height: 100dvh;
  }
}

.block.video-hero-block .video-hero-block__foreground-layer .video-hero-block__home-logo {
  width: clamp(9rem, 24vw, 20rem);
  max-width: 60%;
  max-height: 45dvh;
  height: auto;
  object-fit: contain;
  margin: 0;
}
