.image-with-text-section {
  word-break: break-word;
  background-color: rgb(var(--color-background));
}
.image-with-text__image {
  position: relative;
  display: flex;
}
.image-with-text__image > img {
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--aspect-ratio);
  object-fit: cover;
  border-radius: 24px !important; /* Soft UI */
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.image-with-text__image .hover-scale__image {
  width: 100%;
}
.image-with-text__group {
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.image-with-text-section.overlap .image-with-text__group {
  width: unset;
  height: unset;
  background-color: rgb(var(--color-background));
}
@media (min-width: 960px) {
  .image-with-text-section.overlap .image-with-text__group {
    transform: translateX(-36px);
  }
}
@media (max-width: 959px) {
  .image-with-text-section.overlap .image-with-text__group {
    width: auto;
    margin-inline: 10.5px;
    transform: translateY(-36px);
  }
}

.image-with-text-section .block-image .empty-image-class {
  display: block;
  width: 473px;
  max-width: 100%;
  background-color: rgb(var(--color-image-background));
}

.image-with-text-section .image-with-text__heading {
  font-size: var(--image-with-text-heading-font-size, inherit);
  line-height: var(--image-with-text-heading-line-height, inherit);
}

.image-with-text-section .image-with-text__subheading {
  font-size: var(--image-with-text-subheading-font-size, var(--body3-font-size));
  line-height: var(--image-with-text-subheading-line-height, 1.4);
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.image-with-text-section .image-with-text__rich-text {
  font-size: var(--image-with-text-rich-text-font-size, var(--body3-font-size));
  line-height: var(--image-with-text-rich-text-line-height, 1.6);
}

.image-with-text-section .image-with-text__rich-text * {
  font-size: inherit !important;
  line-height: inherit;
}

.image-with-text-section .image-with-text__button .image-with-text__button-link {
  font-size: var(--image-with-text-button-font-size, inherit);
  line-height: var(--image-with-text-button-line-height, inherit);
}

@media (max-width: 959px) {
  .image-with-text-section .image-with-text__heading {
    font-size: var(
      --image-with-text-heading-mobile-font-size,
      var(--image-with-text-heading-font-size, inherit)
    );
  }

  .image-with-text-section .image-with-text__subheading {
    font-size: var(
      --image-with-text-subheading-mobile-font-size,
      var(--image-with-text-subheading-font-size, var(--body3-font-size))
    );
  }

  .image-with-text-section .image-with-text__rich-text {
    font-size: var(
      --image-with-text-rich-text-mobile-font-size,
      var(--image-with-text-rich-text-font-size, var(--body3-font-size))
    );
  }

  .image-with-text-section .image-with-text__button .image-with-text__button-link {
    font-size: var(
      --image-with-text-button-mobile-font-size,
      var(--image-with-text-button-font-size, inherit)
    );
  }
}
