/* Preserve the whole cover, including on hover. */
.home .f7-home-news .post-img-wrapp img,
.category-news .blog-post-loop .post-img-wrapp img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #f5f5f5;
    transform: none !important;
}

.home .f7-home-news .post-image-mask,
.category-news .blog-post-loop .post-image-mask {
    display: none;
}

/* A regular grid stretches every card without masonry's absolute positions. */
.home .f7-home-news .wd-blog-holder {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    height: auto !important;
}

.home .f7-home-news .blog-post-loop {
    position: static !important;
    width: 100%;
    max-width: none;
}

.home .f7-home-news .article-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home .f7-home-news .entry-header {
    flex-shrink: 0;
}

.home .f7-home-news .article-body-container {
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .home .f7-home-news .wd-blog-holder {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home .f7-home-news .wd-blog-holder {
        grid-template-columns: minmax(0, 1fr);
    }
}
