.block-related-articles {
  margin: calc(var(--wp--custom--layout--block-gap-large) / 2) 0;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
  gap: .5rem 3.8%;
}

@media (max-width:781px) {
  .related-articles__grid {
    grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
  }
}

@media (max-width:580px) {
  .related-articles__grid {
    grid-template-columns: 1fr;
  }
}

.block-related-articles .post-summary__title a {
  color: var(--wp--preset--color--foreground) !important;
}

.block-related-articles .post-summary__title a:hover {
  color: var(--wp--preset--color--primary) !important;
}

.block-related-articles.--remove-background .post-summary {
  background: none;
  border-radius: 0;
}

.block-related-articles.--remove-background .post-summary img {
  border-radius: var(--wp--custom--border-radius--small);
}

.block-related-articles.--remove-background .post-summary__content {
  padding: 1.5rem 0;
}

.block-related-articles.--remove-background .post-summary__title {
  font-weight: 400;
}

.block-related-articles.--remove-background .post-summary__title a {
  color: var(--wp--preset--color--primary) !important;
}

.block-related-articles.--remove-background .post-summary__title a:hover {
  color: var(--wp--preset--color--foreground) !important;
}