/* Skipped (covered by shared chunk CSS): ../../sub-components/Icon/styles.css */
/* Skipped (covered by shared chunk CSS): ../../sub-components/Button/styles.css */
/* Skipped (covered by shared chunk CSS): ../../sub-components/Media/styles.css */
/* Skipped (covered by shared chunk CSS): ../../sub-components/ContentBlock/styles.css */

/*
 * H11 ImageWithText. The section root only carries the outer scheme + paddings
 * (no transform/filter/contain here). The card starts its own scheme (white by default)
 * and splits into two equal halves from 720px.
 *
 * The image is inset by --iwt-inset and rounded on all four corners with --radius-image; the
 * card's radius is derived from it (inner + inset) so the corner gap stays even. That way the
 * image reads as a whole rounded tile even when the card's scheme matches the section's
 * (an invisible card used to leave the image with only its two outer corners rounded).
 */

.cc_ha5dwmyj_3sc3xAt2fN .image-with-text__card {
  --iwt-inset: var(--sp-100);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: var(--iwt-inset);
  border-radius: calc(var(--radius-image) + var(--iwt-inset));
  background-color: var(--c-bg);
}

/* Image half: at least square, grows with the row when the text is taller. */
.cc_ha5dwmyj_3sc3xAt2fN .image-with-text__media {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-image);
  overflow: hidden;
  /* keeps the radius clip intact while the image's scale reveal runs (Safari) */
  isolation: isolate;
}

.cc_ha5dwmyj_3sc3xAt2fN .image-with-text__media::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.cc_ha5dwmyj_3sc3xAt2fN .image-with-text__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: var(--banner-pad-y) var(--banner-pad-x);
}

.cc_ha5dwmyj_3sc3xAt2fN .image-with-text__content--left {
  align-items: flex-start;
}

.cc_ha5dwmyj_3sc3xAt2fN .image-with-text__block {
  width: 100%;
  max-width: 560px;
}

.cc_ha5dwmyj_3sc3xAt2fN .image-with-text__content--left .image-with-text__block {
  max-width: none;
}

.cc_ha5dwmyj_3sc3xAt2fN .image-with-text__block .content-block__text {
  max-width: 480px;
}

.cc_ha5dwmyj_3sc3xAt2fN .image-with-text__content--center .image-with-text__block .content-block__text {
  margin-inline: auto;
}

/* No image: one centred content card, full radius, no empty media area at any width. */
.cc_ha5dwmyj_3sc3xAt2fN .image-with-text__card--content-only {
  max-width: var(--max-width-narrow, 800px);
  margin-inline: auto;
  padding: 0;
  border-radius: var(--radius-image);
}

@media (min-width: 720px) {
  .cc_ha5dwmyj_3sc3xAt2fN .image-with-text__card {
    --iwt-inset: var(--sp-150);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .cc_ha5dwmyj_3sc3xAt2fN .image-with-text__card--media-right .image-with-text__media {
    order: 2;
  }

  .cc_ha5dwmyj_3sc3xAt2fN .image-with-text__content {
    padding: var(--banner-pad-y) var(--sp-400);
  }

  /* Image-only card: one wide 2:1 tile instead of an empty half. */
  .cc_ha5dwmyj_3sc3xAt2fN .image-with-text__card--media-only {
    grid-template-columns: minmax(0, 1fr);
  }

  .cc_ha5dwmyj_3sc3xAt2fN .image-with-text__card--media-only .image-with-text__media::before {
    padding-top: 50%;
  }

  .cc_ha5dwmyj_3sc3xAt2fN .image-with-text__card--content-only {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .cc_ha5dwmyj_3sc3xAt2fN .image-with-text__content {
    padding: var(--sp-800);
  }
}
