/* ==========================================
   Uniform post list thumbnails
========================================== */

.posts-list .post-thumb img,
.widget-posts-list .post-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
}

/* ==========================================
   Author avatar
========================================== */

.tie-author-box img.avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* ==========================================
   Related posts
   3 posts per row
========================================== */

.single-post .related-posts-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 15px !important;
    width: 100% !important;
}

.single-post .related-posts-list .related-item {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}

.single-post .related-posts-list .related-item a.post-thumb {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    text-decoration: none !important;
}

.single-post .related-posts-list .related-item img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
}

/* Hide original title (broken in Jannah) */
.single-post .related-posts-list .related-item .post-title {
    display: none !important;
}

/* Show title from aria-label */
.single-post .related-posts-list .related-item a.post-thumb::after {
    content: attr(aria-label) !important;
    display: block !important;
    color: #111 !important;
    background: #fff !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-top: 8px !important;
    padding: 0 4px !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 48px !important;
}

/* Hide date */
.single-post .related-posts-list .related-item .post-meta {
    display: none !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .single-post .related-posts-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .single-post .related-posts-list {
        grid-template-columns: 1fr !important;
    }
}