.mec-related-posts {
  clear: both;
  margin: 20px 0;
}

.mec-related-posts__heading {
  margin: 0 0 12px;
  font-size: 1.2em;
}

.mec-related-posts__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 200px));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mec-related-posts__item {
  min-width: 0;
  margin: 0;
  border: 1px solid #dce4e8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.mec-related-posts__link {
  display: block;
  height: 100%;
  color: #174b5a;
  text-decoration: none;
}

.mec-related-posts__link:hover .mec-related-posts__title,
.mec-related-posts__link:focus-visible .mec-related-posts__title {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mec-related-posts__link:focus-visible {
  outline: 2px solid #14596a;
  outline-offset: -2px;
}

.mec-related-posts__figure {
  display: block;
  width: 100%;
  height: 150px;
  margin: 0;
  overflow: hidden;
  background: #eef3f5;
}

.mec-related-posts__image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.mec-related-posts__title {
  display: block;
  padding: 8px 10px 10px;
  color: inherit;
  font-size: 0.9em;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 600px) {
  .mec-related-posts__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mec-related-posts__figure {
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 360px) {
  .mec-related-posts__list {
    grid-template-columns: 1fr;
  }
}
