/* ==========================================================================
   WH Text with Image Background
   ========================================================================== */

.wh-text-image-background {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: var(--wh-tib-sec-hgt, 680px);
  overflow: hidden;
  background-color: #1a1a1a;
  color: #ffffff;
}

.wh-text-image-background--height-auto {
  min-height: 0;
}

.wh-text-image-background__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wh-text-image-background__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wh-text-image-background__image img,
.wh-text-image-background__image picture,
.wh-text-image-background__image .field,
.wh-text-image-background__image .field__item {
  width: 100%;
  height: 100%;
}

.wh-text-image-background__image img {
  display: block;
  object-fit: cover;
  object-position: center;
}

.wh-text-image-background__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, calc(var(--wh-tib-overlay, 0.5) * 0.3)) 0%,
    rgba(0, 0, 0, calc(var(--wh-tib-overlay, 0.5) * 0.7)) 45%,
    rgba(0, 0, 0, var(--wh-tib-overlay, 0.5)) 100%
  );
  pointer-events: none;
}

.wh-text-image-background--overlay-off .wh-text-image-background__image::after {
  display: none;
}

/* Text vertical position */
.wh-text-image-background__overlay {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--wh-tib-sec-hgt, 680px);
  padding: 128px 0;
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
}

.wh-text-image-background--height-auto .wh-text-image-background__overlay {
  min-height: 0;
}

.wh-text-image-background--valign-top .wh-text-image-background__overlay {
  align-items: flex-start;
}

.wh-text-image-background--valign-center .wh-text-image-background__overlay {
  align-items: center;
}

.wh-text-image-background--valign-bottom .wh-text-image-background__overlay {
  align-items: flex-end;
}

.wh-text-image-background__content {
  width: 100%;
  max-width: 1400px;
  margin: 0 129px;
  box-sizing: border-box;
  text-align: left;
}

.wh-text-image-background__heading {
  margin: 0 0 var(--wh-tib-h-mb, 24px);
  font-family: 'Degular Display', sans-serif;
  font-size: var(--wh-tib-h-size, 90px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--wh-tib-h-color, #2b24ed);
  text-align: left;
}

.wh-text-image-background__subheading {
  margin: 0 0 var(--wh-tib-sh-mb, 144px);
  font-family: 'Degular Display', sans-serif;
  font-size: var(--wh-tib-sh-size, 80px);
  font-weight: 500;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: 4px;
}

.wh-text-image-background__body {
  max-width: none;
  font-family: 'Degular Text', Georgia, 'Times New Roman', serif;
  font-size: var(--wh-tib-body-size, 40px);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
}

.wh-text-image-background__body p {
  margin: 0 0 16px;
}

.wh-text-image-background__body p:last-child {
  margin-bottom: 0;
}

.wh-text-image-background__body a {
  color: inherit;
  text-decoration: underline;
}

.wh-text-image-background__body a:hover,
.wh-text-image-background__body a:focus {
  color: #f32958;
}

@media (max-width: 1400px) {
  .wh-text-image-background__overlay {
    max-width: 1142px;
  }
}


@media (max-width: 767px) {
  .wh-text-image-background {
    min-height: 0;
  }

  .wh-text-image-background__overlay {
    padding: 80px 20px;
    margin: 0;
    min-height: 0;
  }  

  .wh-text-image-background__content {
    margin: 0;
  }

  /*
   * Beat themes/custom/primary_bootstrap/sass/global/_landing.scss:
   * [class*="page-node-type-"] h1 { text-align: center; font-size: 32px; overflow: hidden; }
   */
  [class*='page-node-type-'] .wh-text-image-background h1.wh-text-image-background__heading {
    overflow: visible !important;
    text-align: left !important;
    font-size: var(--wh-tib-h-size-mob, var(--wh-tib-h-size, 60px)) !important;
    font-family: 'Degular Display', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
  }

  [class*='page-node-type-'] .wh-text-image-background .wh-text-image-background__content,
  [class*='page-node-type-'] .wh-text-image-background .wh-text-image-background__subheading,
  [class*='page-node-type-'] .wh-text-image-background .wh-text-image-background__body {
    text-align: left !important;
  }
}
