.wp-block-latest-posts {
  li {
    margin: 0;
    // Title
    > a {
      color: var(--wp--custom--latest-posts--title--color);
      font-size: var(--wp--custom--latest-posts--title--typography--font-size);
      border-color: transparent;
      &:hover {
        border-color: currentColor;
      }
      &:after {
        content: "";
        width: 100%;
        display: block;
      }
    }
  }

  &.is-grid {
    display: grid;
    gap: var(--wp--style--block-gap);

    @media (min-width: 600px) {
      @for $i from 1 through 6 {
        &.columns-#{$i} {
          grid-template-columns: repeat(#{$i}, 1fr);
        }
      }
    }
    li {
      margin-right: 0;
      width: 100%;
    }
  }

  &__featured-image {
    margin-bottom: calc(var(--wp--style--block-gap) / 2);
    a {
      border: none;
    }
  }

  &__post-author {
    display: inline-block;
    margin-right: calc(var(--wp--style--block-gap) / 2);
  }
  &__post-date {
    display: inline-block;
  }
}
