/* Shared related posts styles */
/* Created automatically by post-optimizer. */

.related-posts-section,
[data-post-optimizer="related-posts"] {
  box-sizing: border-box;
}

.related-posts-section .row.g-4 > [class*="col-"] {
  display: flex;
}

.related-posts-list {
  display: grid;
  gap: 1.5rem;
}

.related-posts-card,
.related-post-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.related-posts-card-media {
  display: block;
}

.related-posts-card-image,
.related-post-image {
  display: block;
  width: 100%;
  height: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  background: #f4f1ea;
}

.related-posts-card-content,
.related-post-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-posts-card-title,
.related-post-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.related-posts-card-excerpt,
.related-post-excerpt {
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.related-posts-card-link,
.related-post-title a {
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .related-posts-card-image,
  .related-post-image {
    height: 200px;
  }
}
