/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.box a {
	display: block !important;
}

.box .box-image img {
	image-rendering: pixelated;
}

.related-posts {
    margin: 40px 0;
}

.related-posts h2 {
	text-align: left;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: bold;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-post-item img {
    width: 100%;
    height: 150px;
    border-radius: 8px;
}

.related-post-item h3 {
    font-size: 16px;
    margin-top: 10px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px; /* để các box đều nhau */
}

.fan iframe {
	max-width: 340px !important;
}

/* Mobile */
@media (max-width: 600px) {
    .related-posts-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

