.related-posts {
    margin-top: 10px;
}

.related-posts-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr); /* Default: 4 columns for desktop */
}

.related-post {
    border: 0px solid #ddd;
    padding: 10px;
    text-align: center;
}

.related-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9; /* Aspect ratio for images */
}

.related-post-title {
    margin-top: 10px;
    font-weight: bold;
}

.related-post-title a {
    text-decoration: none;
    color: #333;
}

.related-post-title a:hover {
    color: #0073aa;
}

/* Media Query for mobile devices */
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr !important; /* Force 1 column for mobile */
    }
}
