.paragraph--type--mosaic {
  .field--name-field-mosaic-items {
    display: block;
    height: 100%;
    overflow: hidden;
    padding-top: 1rem;

    /* Tablet/Desktop */
    @media screen and (min-width: 30rem) {
      display: grid;
      grid-template-columns: minmax(min-content, 75%) auto;
      grid-template-rows: auto;
      grid-gap: 0.5rem;
      grid-template-areas:
        "main sub1"
        "main sub2";
      width: calc(100% + 4rem); /* Span full width */
      margin: 0 -2rem; /* Span full width */
      padding: 0.875rem;
    }

    .field__item {
      height: 100%;
    }

    .field__item:first-child {
      grid-area: main;
    }

    .field__item:nth-child(2) {
      grid-area: sub1;
    }

    .field__item:last-child {
      grid-area: sub2;
    }

    .field__item:nth-child(2),
    .field__item:last-child {
      .field--name-field-mosaic-item-heading :is(p, h2, h3, h4, h5, h6) {
        font-size: 1.25rem;
        line-height: 1.5rem;
      }
    }
  }
}

.paragraph--type--mosaic-item {
  position: relative;
  height: 100%;

  a {
    text-decoration: none;
  }

  &:is(:hover, :focus, :active)  { /* 1982: Apply same rules once mosaic item receives the focus. */
    cursor: pointer;

    .field--name-field-mosaic-item-image::before {
      background-color: rgba(4, 82, 137, 75%);
      transition: background-color 0.3s ease-in-out;
    }

    .mosaic-text-wrapper {
      bottom: 3.125rem;
      transition: bottom 0.5s ease;
    }
  }

  .field--name-field-mosaic-item-image {
    position: relative;
    height: 100%;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      display: block;
      height: 100%;
      width: 100%;
      background: linear-gradient(rgba(0, 0, 0, 0.0) 50%, rgba(0, 0, 0, 0.7) 100%);
      transition: background-color 0.3s ease-in-out;
    }

    .media--type-image,
    .field--name-field-media-image {
      height: 100%;
    }

    img {
      display: block;
      height: 100%;
      width: 100%;
      object-fit: cover;
    }
  }

  .field--name-field-mosaic-item-subtitle {
    color: var(--fdic-light-blue);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  .field--name-field-mosaic-item-heading,
  .field--name-field-mosaic-item-heading :is(p, h2, h3, h4, h5, h6) {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.5rem;

    /* Tablet/Desktop */
    @media screen and (min-width: 30rem) {
      color: var(--fdic-white);
      font-size: var(--h3-size);
      line-height: var(--h3-line-height);
    }
  }

  .mosaic-text-wrapper {
    padding: 1rem 0;

    /* Tablet/Desktop */
    @media screen and (min-width: 30rem) {
      position: absolute;
      left: 0;
      bottom: 0;
      z-index: 1;
      padding: 1.5rem;
      transition: bottom 0.5s ease;
    }
  }
}
