.related-posts__heading {
    text-align: center;
    margin-bottom: 2em;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
}

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

.related-posts__card {
    display: flex;
}

.related-posts__card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.related-posts__card-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.related-posts__card-img-img {
    width: 100%;
    height: 100%!important;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.related-posts__card-link:hover .related-posts__card-img-img {
    transform: scale(1.05);
}

.related-posts__card-content {
    padding: 1.25em 0;
}

.related-posts__card-title {
    margin: 0 0 0.5em;
    font-size: 2rem !important;
    line-height: 110% !important;
}

.related-posts__card-excerpt {
    margin: 0;
}

.related-posts__cta {
    text-align: center;
    margin-top: 2.5em;
    margin-bottom: 4rem !important;
}
