.image-text__wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
}

.image-text__wrapper[data-media-align="left"] {
  flex-direction: row;
}

.image-text__wrapper[data-media-align="right"] {
  flex-direction: row-reverse;
}

.image-text__image {
  flex: 0 0 50%;
  max-width: 50%;
}

.image-text__text {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

.image-text__image img {
  width: 100%;
  /*   height: 420px;
  object-fit: cover; */
  display: block;
}

.image-text__text h2 {
  color: var(--text-titles);
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.image-text__text p {
  color: var(--text-body);
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .image-text__wrapper {
    flex-direction: column !important;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .image-text__image,
  .image-text__text {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .image-text__image {
    order: 1;
  }

  .image-text__text {
    order: 2;
  }

  .image-text__image img {
    height: auto;
    aspect-ratio: 4/3;
  }
}
