.related {
    background-color: var(--white-background-color);
    margin-bottom: 24px;
    margin-top: 24px;
}
.related-title {
    font-size: inherit;
    display: block;
    margin-bottom: 12px;
}
.related-title:before {
    content: "";
    display: block;
    width: 100%;
    min-width: 30px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 1em;
}
.related-posts {
    padding-top: 8px;
    display: grid;
    grid-gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}
.related-posts .related-post {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
    opacity: 1;
}
.related-post:hover {
    opacity: 0.8;
}
.related-post-image {
    vertical-align: top;
    margin-bottom: 10px;
    width: 100%;
    height: 150px;
    object-fit: fill;
    display: block;
}
.related-posts .related-post-square {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}
.related-post-square > a {
    flex: 0 0 35%;
    max-width: 100px;
    min-width: 0;
}
.related-post-square .related-post-image {
    height: auto;
    margin-bottom: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.related-post-square .related-post-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
a.related-post-title {
    line-height: 1.4;
    font-size: inherit;
    display: block;
}
@media only screen and (max-width: 840px) {
    .related-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media only screen and (max-width: 480px) {
    .related-posts {
        grid-template-columns: 1fr;
        grid-gap: 24px;
    }
    .related-post {
        height: auto;
    }
    .related-post-image {
        height: auto;
    }
}