.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;
}
.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 .subheading {
  font-size: var(--body3-font-size);
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

/* ZonliRefer's How it Works artwork is one desktop composite image. On mobile,
   show its text half first and its photo half second as two vertical panels. */
.zonli-refer-mobile-image {
  display: none;
}

@media (max-width: 959px) {
  .zonli-refer-how-it-works .block-image {
    display: grid;
    width: 100%;
    overflow: hidden;
  }

  .zonli-refer-how-it-works .block-image > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.07725;
    object-fit: cover;
  }

  .zonli-refer-how-it-works .block-image > img:not(.zonli-refer-mobile-image) {
    object-position: left center;
  }

  .zonli-refer-how-it-works .block-image > .zonli-refer-mobile-image {
    display: block;
    object-position: right center;
  }
}
