/* TDIs can have paragraphs embedded in them. We use child selectors (>) where
 * appropriate to ensure TDI styles do not bleed into paragraphs embedded
 * within. */
.paragraph__container {
  background: var(--base-white);
}

.paragraph__container > .field--name-field-description > blockquote {
  strong,
  em {
    color: var(--base-white);
  }
}

.paragraph__container > .field--name-field-hero-title {
  margin: 0 0 11px;
  font-size: 26px;
  line-height: 34px;
}

@media (min-width: 1440px) {
  .paragraph__container > .field--name-field-hero-title {
    margin: 0 0 22px;
    font-size: 36px;
    line-height: 44px;
  }
}

.paragraph__container > .field--name-field-image img {
  width: 100%;
  height: auto;
}

/* Float the image right and let the title/description wrap around it
 * (matching the D7 landing pages), instead of stacking a full-width image
 * above/below the text and eating vertical space. A CSS grid split (each
 * in its own column, full row height) was tried first, but it leaves a
 * dead gap wherever the shorter side ends before the taller one --
 * usually empty space below the image once the text runs on past it.
 * Floating lets the text actually reflow around the image and fill that
 * space instead. display: flow-root on the container keeps its background
 * from collapsing around the float. */
@media (min-width: 62.5rem) {
  .paragraph__container {
    display: flow-root;
  }

  .paragraph__container > .field--name-field-image {
    float: right; /* LTR */
    width: calc(50% - (var(--sp3) / 2));
    margin-inline-start: var(--sp3);
    margin-block-end: var(--sp2);
  }

  .paragraph__container > .field--name-field-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}
