.image-with-text-section {
  word-break: break-word;
}

.image-with-text-section__inner {
  width: 100%;
  background-color: rgb(var(--color-background));
}
.image-with-text__image {
  position: relative;
  display: flex;
  min-height: 340px;
  height: auto;
  max-width: 100%;
  border-radius: var(--image-with-text-image-radius, 0);
}
.image-with-text__image--drop-shadow {
  filter: drop-shadow(0 2px 8px rgba(var(--color-text), 0.1));
}
.image-with-text__image > img {
  flex: 1 1 auto;
  max-width: 100%;
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: var(--aspect-ratio);
  object-fit: cover;
}
.image-with-text__image .hover-scale__image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  max-width: 520px;
}
.image-with-text__image img {
  border-radius: var(--image-with-text-image-radius, 0);
}
.image-with-text__image .empty-image-class {
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgb(var(--color-image-background));
  border-radius: var(--image-with-text-image-radius, 0);
}
.image-with-text__subheading {
  font-size: var(--body3-font-size);
  text-transform: uppercase;
  letter-spacing: 0.3em;
}
.image-with-text__heading {
  max-width: 400px;
}
.image-with-text__rich-text {
  padding-top: 20px;
  padding-bottom: 20px;
}
.image-with-text__button {
  max-width: 100%;
  padding-block-start: 0;
}
.image-with-text__button .button {
  word-break: break-all;
  white-space: normal;
}

.image-with-text-section--page-width-split .page-width {
  margin-inline: auto;
}

.image-with-text-section--page-width-split .image-with-text__image {
  flex: 0 0 calc((100% - var(--s-column-gap, 80px)) * 0.55);
  max-width: calc((100% - var(--s-column-gap, 80px)) * 0.55);
}

.image-with-text-section--page-width-split .image-with-text__group {
  flex: 0 0 calc((100% - var(--s-column-gap, 80px)) * 0.45);
  max-width: calc((100% - var(--s-column-gap, 80px)) * 0.45);
}

@media (min-width: 960px) {
  .image-with-text-section:not(.image-with-text-section--page-width-split) .image-with-text-section__inner > .image-with-text__image {
    flex: 1.22 1 0%;
    min-width: 0;
  }

  .image-with-text-section:not(.image-with-text-section--page-width-split) .image-with-text-section__inner > .image-with-text__group {
    flex: 1 1 0%;
    min-width: 0;
  }

  .image-with-text-section--image-right .image-with-text__image {
    order: 2;
  }

  .image-with-text-section--image-right .image-with-text__group {
    order: 1;
  }
}

@media screen and (min-width: 750px) {
  .image-with-text__image {
    min-height: 480px;
  }
}

@media (max-width: 959px) {
  .image-with-text-section--page-width-split .image-with-text__image,
  .image-with-text-section--page-width-split .image-with-text__group {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .image-with-text-section--mobile-center-content .image-with-text-section__inner {
    align-items: center !important;
  }

  .image-with-text-section--mobile-center-content .image-with-text__group {
    align-items: center !important;
    text-align: center;
  }

  .image-with-text-section--mobile-center-content .image-with-text__heading,
  .image-with-text-section--mobile-center-content .image-with-text__subheading,
  .image-with-text-section--mobile-center-content .image-with-text__rich-text {
    text-align: center;
  }

  .image-with-text-section--mobile-center-content .image-with-text__button {
    display: flex;
    justify-content: center;
  }

  .image-with-text-section--mobile-center-content .image-with-text__image {
    align-self: center;
  }
}
