/* Scattered variation adapted from Savoy's native .products.grid-scattered rules. */
@media (min-width: 992px) {
    body.savoy-blog-scattered .nm-blog-grid #nm-blog-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        width: auto;
        margin: 0 -1.6%;
    }

    body.savoy-blog-scattered .nm-blog-grid #nm-blog-list::before,
    body.savoy-blog-scattered .nm-blog-grid #nm-blog-list::after {
        display: none;
    }

    body.savoy-blog-scattered .nm-blog-grid #nm-blog-list > li {
        float: none;
        clear: none;
        position: relative;
        width: 33.33333333%;
        box-sizing: border-box;
    }

    body.savoy-blog-scattered .nm-blog-grid #nm-blog-list > li:nth-child(4n+1) {
        transform: translateX(calc(25% - 25px));
    }

    body.savoy-blog-scattered .nm-blog-grid #nm-blog-list > li:nth-child(4n) {
        transform: translateX(calc(-25% + 10px));
    }

    body.savoy-blog-scattered .nm-blog-grid #nm-blog-list > li:nth-child(4n+2),
    body.savoy-blog-scattered .nm-blog-grid #nm-blog-list > li:nth-child(4n+3) {
        width: calc(50% - 50px);
    }

    body.savoy-blog-scattered .nm-blog-grid #nm-blog-list > li:nth-child(4n+2) {
        margin-left: 50px;
    }

    body.savoy-blog-scattered .nm-blog-grid #nm-blog-list > li:nth-child(4n+3) {
        margin-right: 50px;
    }
}

/* Card presentation: image-led grid with a subtle lightening hover. */
body.savoy-blog-scattered .nm-blog-grid .nm-post-thumbnail img {
    display: block;
    transition: filter 0.22s ease-in-out;
}

body.savoy-blog-scattered .nm-blog-grid .nm-post-thumbnail a:hover img,
body.savoy-blog-scattered .nm-blog-grid .nm-post-thumbnail a:focus img {
    filter: brightness(1.07);
}

/* Override Savoy's default dark overlay and its plus-sign decoration. */
body.savoy-blog-scattered .nm-blog-grid .nm-post-thumbnail a:hover .nm-image-overlay,
body.savoy-blog-scattered .nm-blog-grid .nm-post-thumbnail a:focus .nm-image-overlay {
    opacity: 0 !important;
    background: transparent;
}

body.savoy-blog-scattered .nm-blog-grid .nm-image-overlay::before,
body.savoy-blog-scattered .nm-blog-grid .nm-image-overlay::after {
    display: none;
}

/* Keep only a compact, centered title under each thumbnail. */
body.savoy-blog-scattered .nm-blog-grid .nm-post-meta,
body.savoy-blog-scattered .nm-blog-grid .nm-post-content {
    display: none !important;
}

body.savoy-blog-scattered .nm-blog-grid .nm-post-thumbnail {
    margin-bottom: 16px;
}

body.savoy-blog-scattered .nm-blog-grid .nm-post-title {
    margin: 0;
    padding: 0;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

body.savoy-blog-scattered .nm-blog-grid .nm-post-title a {
    color: inherit;
    text-decoration: none;
}

body.savoy-blog-scattered .nm-blog-grid .nm-post-title a:hover,
body.savoy-blog-scattered .nm-blog-grid .nm-post-title a:focus {
    opacity: 0.78;
}

@media (max-width: 991px) {
    body.savoy-blog-scattered .nm-blog-grid .nm-post-title {
        font-size: 18px;
    }
}

/* On smaller screens keep Savoy's responsive blog grid, without Masonry. */
@media (max-width: 991px) {
    body.savoy-blog-scattered .nm-blog-grid #nm-blog-list > li {
        transform: none;
        margin-left: 0;
        margin-right: 0;
    }
}


/* Related posts on single article pages: subtle image brightening, no dark overlay/plus, no date. */
body.single-post .nm-related-posts .nm-related-posts-image img {
    display: block;
    transition: filter 0.22s ease-in-out;
}

body.single-post .nm-related-posts .nm-related-posts-image:hover img,
body.single-post .nm-related-posts .nm-related-posts-image:focus img {
    filter: brightness(1.07);
}

body.single-post .nm-related-posts .nm-related-posts-image:hover .nm-image-overlay,
body.single-post .nm-related-posts .nm-related-posts-image:focus .nm-image-overlay {
    opacity: 0 !important;
    background: transparent !important;
}

body.single-post .nm-related-posts .nm-image-overlay::before,
body.single-post .nm-related-posts .nm-image-overlay::after {
    display: none !important;
}

body.single-post .nm-related-posts .nm-related-posts-content .nm-post-meta {
    display: none !important;
}
