.paragraph--type--me-image-text .image-text {
  padding: 24px;

  @media (min-width: 992px) {
    padding: 60px;
  }
}

.image-text--bg-black {
  background-color: #262A2D;
  color: #fff;
}

.image-text--bg-white {
  background-color: #fff;
  color: #000;
}

.image-text--bg-black .image-text__text a {
  color: #fff;
}

.image-text {
  display: flex;
  flex-direction: column;
  gap: 40px;

  @media (min-width: 992px) {
    align-items: center;
    gap: 80px;

    &.image-text--image-right {
      flex-direction: row;
    }

    &.image-text--image-left {
      flex-direction: row-reverse;
    }
  }
}

.image-text__content {
  @media (min-width: 992px) {
    flex: 1 1 0;
    min-width: 0;
  }
}

.image-text__label {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.image-text .image-text__title.h2 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

.image-text__text {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 28px;
  margin-top: 20px;
}

.image-text__cta {
  margin-top: 30px;
}

/* Dimensions come from the me_image_text_media image style (600x500), not from
   CSS. flex-shrink stays 0 so the sibling text column can never squeeze the
   image below the derivative's own size on desktop. */
.image-text__media {
  overflow: hidden;

  @media (min-width: 992px) {
    flex: 0 0 auto;
  }
}

/* max-width lets the 600px derivative scale down proportionally on mobile,
   where height: auto keeps its 6/5 ratio. object-fit is a safety net for any
   derivative that does not match its container exactly (e.g. an image still
   cached under an older style) so it crops instead of distorting. */
.image-text__media img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}
