.media-with-text .media-with-text__body {
  /* Next line can be removed if this PR is merged - https://github.com/localgovdrupal/localgov_base/pull/889 */
  padding-inline: var(--spacing);
  padding-block: var(--spacing);
}

.media-with-text .media-with-text__body > h2 {
  font-size: var(--font-size-h3);
}

.media-with-text__link {
  display: inline-block;
  padding: var(--spacing-smaller) var(--spacing-small);
  text-decoration: none;
  border: var(--border-accent);
  font-weight: bold;
}
.media-with-text__link.media-with-text__link:hover {
  text-decoration: none;
  background-color: var(--color-grey-lightest);
}
.media-with-text__link:focus {
  border-color: var(--color-white);
}

@media screen and (min-width: 48rem) {
  .media-with-text--media-left .media-with-text__media {
    padding: var(--spacing-largest) 0 var(--spacing-largest) var(--spacing-largest);
    background-image: linear-gradient(to right, var(--color-macaron-hover) 50%, transparent 50%);
  }

  .media-with-text--media-right .media-with-text__media {
    padding: var(--spacing-largest) var(--spacing-largest) var(--spacing-largest) 0;
    background-image: linear-gradient(to left, var(--color-macaron-hover) 50%, transparent 50%);
  }

  .media-with-text .media-with-text__body {
    align-content: center;
    padding: var(--spacing-large);
  }

  .media-with-text--media-left .media-with-text__body {
    padding-inline-start: var(--spacing-xxxxlarge);
  }

  .media-with-text--media-right .media-with-text__body {
    padding-inline-end: var(--spacing-xxxxlarge);
  }
}
