/**
 * Hero Block Styles
 *
 * @package YaloFSE
 */

.kb-hero {
  position: relative;
  margin: 0 auto;
  width: 100%;
  min-height: 700px;
  max-height: 700px;
  overflow: hidden;
}

/* Break ACF hero wrapper out of constrained layouts */
.wp-block-acf-hero {
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.kb-hero .kb-hero__media-wrap {
  width: 100%;
}

.kb-hero .kb-hero__media {
  width: 100%;
  min-height: 700px;
  height: min(700px, 55vw);
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

.kb-hero .kb-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-hero .kb-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.25) 100%);
}

.kb-hero .kb-hero__content-wrap {
  width: 100%;
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  padding-top: 150px;
}

.kb-hero .kb-hero__content {
  width: 100%;
  box-sizing: border-box;
  padding: 0 15px;
}

.kb-hero .kb-hero__breadcrumb {
  margin: 0 0 16px;
  font-family: var(--font-secondary);
  font-size: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kb-hero .kb-hero__breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.kb-hero .kb-hero__breadcrumb a:hover,
.kb-hero .kb-hero__breadcrumb a:focus {
  text-decoration: underline;
}

.kb-hero .kb-hero__breadcrumb-sep {
  opacity: 0.8;
}

.kb-hero .kb-hero__title {
  margin: 0 0 14px;
  font-family: var(--font-primary);
  font-size: 48px;
  line-height: 56px;
  color: #fff;
}

@media (min-width: 992px) {
  .kb-hero .kb-hero__title {
    font-size: 60px;
    line-height: 62px;
  }
}

.kb-hero .kb-hero__desc {
  margin: 0;
  color: #fff;
}

.kb-hero .kb-hero__desc > * {
  color: inherit;
}

/* Keep CTA button text blue inside white hero copy context */
.kb-hero .kb-hero__desc > a.button {
  color: #002e64;
}

@media (max-width: 990px) {
  .kb-hero .kb-hero__media {
    min-height: 700px;
    height: 700px;
    max-height: none;
  }

  .kb-hero .kb-hero__content {
    width: 100%;
    padding: 0 15px;
  }

  .kb-hero .kb-hero__breadcrumb {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .kb-hero .kb-hero__title {
    margin-bottom: 10px;
  }

  .kb-hero .kb-hero__desc {
    font-size: clamp(20px, 4.6vw, 42px);
  }

  .kb-hero .kb-hero__content-wrap {
    align-items: flex-start;
    padding-top: 120px;
  }
}
