.news-card~div {
  margin: -20px;
}

.news-card-link {
  text-decoration: none;
  color: inherit;
}

.news-card {
  margin-bottom: 20px;

  .news-image-wrp {
    img, .optimized-image {
      aspect-ratio: 216/120;
      width: 100%;
      object-fit: cover;
    }
  }

  .news-title {
    font-size: 16px;
    font-weight: 700;
  }

  .news-summary {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 0;
  }

  /* News card version one */
  &.v1 {
    display: flex;
    flex-direction: column;

    .news-title {
      margin-top: 20px;
    }

    .news-summary {
      display: none;
    }
  }

  /* News card version two */
  &.v2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;

    >* {
      padding-left: 10px;
      padding-right: 10px;
    }

    .news-title {
      margin-bottom: 20px;
      width: 100%;
      order: 1;
    }

    .news-image-wrp {
      flex: 0 0 auto;
      width: 50%;
      order: 2;

      @media(max-width: 992px) {
        width: 100%;
      }
    }

    .news-summary {
      flex: 0 0 auto;
      width: 50%;
      order: 3;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 5;
      overflow: hidden;
      text-overflow: ellipsis;

      @media(max-width: 992px) {
        width: 100%;
        margin-top: 20px;
      }
    }
  }

  /* Featured News card */
  &.featured-news-card {
    display: flex;
    flex-direction: column;

    .news-image-wrp {
      order: 2;
      width: 100%;
    }

    .news-title {
      order: 1;
      width: 100%;
      font-size: 32px;
    }

    .news-summary {
      order: 3;
      width: 100%;
      font-size: 16px;
      margin-top: 20px;
    }
  }
}