.ris-related-posts-container {
    margin-top: 20px;
}

/* Horizontal Layout: Left to Right */
.ris-related-posts-horizontal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align posts from left to right */
}

.ris-post.ris-related-posts-horizontal {
    display: block;
    text-align: center;
    width: 200px; /* Adjust as needed */
}

.ris-post.ris-related-posts-horizontal img {
    width: 100%; /* Full width of the container */
    height: auto;
    border-radius: 8px;
}

.ris-post.ris-related-posts-horizontal .ris-post-title {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

/* Vertical Layout: Top to Bottom */
.ris-related-posts.ris-related-posts-vertical {
    display: block;
}

.ris-post.ris-related-posts-vertical {
    display: flex;
    align-items: center; /* Vertically center the text next to the image */
    margin-bottom: 15px;
}

.ris-post.ris-related-posts-vertical img {
    width: 100px; /* Smaller thumbnail size */
    height: 100px; /* Maintain aspect ratio */
    margin-right: 15px;
    border-radius: 8px;
}

.ris-post.ris-related-posts-vertical .ris-post-title {
  font-size: 14px;
  color: #333;
  text-align: left;
  flex: 1;
  bottom: 50px;
  position: relative;
}
