/* ==================================================
   Shared widget styles

   Keep repeated presentation here so matching elements stay consistent.
   Widget stylesheets should only contain layout and genuine exceptions.
================================================== */

/* All content widgets use the same primary typeface. */
.ebp-hero-1,
.ebp-image-content-1,
.ebp-featured-story-1,
.ebp-content-cards-1,
.ebp-icons-1,
.ebp-call-to-action-1,
.ebp-image-content-split-1,
.ebp-logos-1 {
  font-family: var(--font-primary);
}

/* Small uppercase labels shown above a main heading. */
.ebp-hero-1__subheading,
.ebp-image-content-1__eyebrow,
.ebp-featured-story-1__subheading {
  display: flex;
  gap: 0.35em;
  margin: 0 0 var(--spacing-28) !important;
  font-size: var(--fs-16);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

/* Large headings which use the primary typeface. */
.ebp-hero-1__heading,
.ebp-image-content-1__heading,
.ebp-content-cards-1__heading {
  margin: 0;
  color: var(--clr-ink);
  font-family: var(--font-primary);
  font-size: var(--fs-48);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

/* Centred section headings share the same typographic scale. */
.ebp-image-content-1__section-heading,
.ebp-icons-1__heading,
.ebp-logos-1__heading {
  color: var(--clr-ink);
  font-family: var(--font-primary);
  font-size: var(--fs-36);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

/* Editorial headings use the secondary serif typeface. */
.ebp-featured-story-1__title,
.ebp-call-to-action-1__heading {
  margin: 0;
  font-family: var(--font-secondary);
}

/* Add the short line used beneath centred section headings. */
.heading-border::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 9.563rem;
  height: 1px;
  background-color: currentColor;
  content: "";
  transform: translateX(-50%);
}

/* Remove stray editor margins from the edges of rich-text content. */
.ebp-hero-1__copy > :first-child,
.ebp-image-content-1__copy > :first-child,
.ebp-featured-story-1__excerpt > :first-child,
.ebp-content-cards-1__intro > :first-child,
.ebp-content-cards-1__excerpt > :first-child,
.ebp-call-to-action-1__copy > :first-child,
.ebp-image-content-split-1__copy > :first-child {
  margin-top: 0;
}

.ebp-hero-1__copy > :last-child,
.ebp-image-content-1__copy > :last-child,
.ebp-featured-story-1__excerpt > :last-child,
.ebp-content-cards-1__intro > :last-child,
.ebp-content-cards-1__excerpt > :last-child,
.ebp-call-to-action-1__copy > :last-child,
.ebp-image-content-split-1__copy > :last-child {
  margin-bottom: 0 !important;
}

/* Images which fill and crop to their widget's media area. */
.ebp-hero-1__image,
.ebp-image-content-1__image,
.ebp-featured-story-1__image,
.ebp-content-cards-1__image,
.ebp-image-content-split-1__image {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

/* These simple sections use the same centred content container. */
.ebp-icons-1__inner,
.ebp-logos-1__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 83.75rem;
  margin-inline: auto;
  padding-inline: var(--spacing-56);
}

/* Empty-state notices shown while configuring content in Elementor. */
.ebp-featured-story-1__notice,
.ebp-image-content-split-1__notice {
  padding: var(--spacing-20);
  border: 1px dashed currentColor;
}

/* breakout */
.breakout {
  width: 100vw !important;
  max-width: none !important;
  margin-inline: calc(50% - 50vw) !important;
}

.image-overlay {
  background: rgba(240, 241, 236, 0.15);
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  z-index: -1;
}

@media (max-width: 1024px) {
  .ebp-icons-1__inner,
  .ebp-logos-1__inner {
    padding-inline: var(--spacing-28);
  }
}

@media (max-width: 767px) {
  .ebp-image-content-1__heading,
  .ebp-content-cards-1__heading {
    font-size: 2rem;
  }

  .ebp-image-content-1__media,
  .ebp-featured-story-1__media,
  .ebp-image-content-split-1__media {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 575px) {
  .ebp-icons-1__inner,
  .ebp-logos-1__inner {
    padding-inline: var(--spacing-20);
  }
}
