/* Hide image form fields in edit mode */
.articles-overview-page .image_details {
  display: none;
}

.articles-overview-page .article-card figure:has(img[src=""]) {
  display: none;
}

.articles-overview-page .article-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.articles-overview-page .article-card .card-body .card-title {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  color: #1E1E1E;
}

.articles-overview-page .article-card .card-body .card-link {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  color: #3366CC;
  text-decoration: none;
}

.articles-overview-page .article-card .card-body .card-text {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  color: #1E1E1E;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  margin: 1.5rem 0;
}

/* md */
@media (min-width: 768px) {
  .articles-overview-page .article-card .card-body .card-text {
    -webkit-line-clamp: 6;
    line-clamp: 6;
  }
}

/* lg */
@media (min-width: 992px) {
  .articles-overview-page .article-card .card-body .card-text {
    -webkit-line-clamp: 9;
    line-clamp: 9;
  }
}

/* xl */
@media (min-width: 1200px) {
  .articles-overview-page .article-card .card-body .card-text {
    -webkit-line-clamp: 12;
    line-clamp: 12;
  }
}

.articles-overview-page .article-card img {
  width: 100%;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* md */
@media (min-width: 768px) {
  .articles-overview-page .article-card img {
    height: calc(7rem * var(--bs-body-line-height));
  }
}

/* lg */
@media (min-width: 992px) {
  .articles-overview-page .article-card img {
    height: calc(10rem * var(--bs-body-line-height));
  }
}

/* xl */
@media (min-width: 1200px) {
  .articles-overview-page .article-card img {
    height: calc(13rem * var(--bs-body-line-height));
  }
}

.articles-overview-page .pagination {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  color: #757575;
}

.articles-overview-page .pagination .current {
  border-radius: 25%;
  background-color: #2C2C2C;
  color: #F5F5F5;
}

.articles-overview-page .pagination a {
  text-decoration: none;
}
