.side-by-side {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.side-by-side__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.side-by-side__heading {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-h2);
  color: rgb(var(--color-h2-text));
  margin: 0;
}

.side-by-side__text {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  color: rgb(var(--color-black));
  margin: 0;
  line-height: 150%;
}

.side-by-side__image {
  flex: 0 0 450px;
}

.side-by-side__image img {
  display: block;
  width: 100%;
  height: 594px;
  object-fit: cover;
}

.side-by-side--image-left {
  flex-direction: row-reverse;
}

@media (max-width: 767px) {
  .side-by-side,
  .side-by-side--image-left {
    flex-direction: column;
    gap: var(--space-5);
  }

  .side-by-side__image {
    flex-basis: auto;
    width: 100%;
  }

  .side-by-side__image img {
    height: auto;
    aspect-ratio: 375 / 400;
  }

  .side-by-side__heading {
    font-size: 28px;
  }
}
