/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Post Author. Author Outlinking URL*/
:root {
    --gutter: 20px;
}

ul.related-post-lists, div.related-post-lists {
    list-style-type: none;
}

@media screen and (min-width: 768px) {
    li.related-post-4, li.related-post-5, li.related-post-6 {
        display: none;
    }

    ul.related-post-lists, div.related-post-lists {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-column-gap: 15px;
        margin-top: 20px;
    }
}


.horizontal-grid h4 {
    font-size: 16px;
    text-align: center;
    margin-bottom: 0;
}

span.related-post-title {
    font-size: 14px;
}

li.related-post-1 a, li.related-post-2 a, li.related-post-3 a, li.related-post-4 a, li.related-post-5 a, li.related-post-6 a {
    color: #212121;
}

span.related-post-title {
    display: block;
    text-align: center;
    font-weight: 800;
}

span.related-post-thumbnail {
    display: block;
    text-align: center;
}

@media screen and (max-width: 768px) {
    span.related-post-thumbnail img.attachment-bimber-grid-s-2x.size-bimber-grid-s-2x {
        width: 300px !important;
        height: auto !important;
    }

    span.related-post-title {
        font-size: 14px;
        line-height: 1.5;
    }

    .horizontal-grid {
        display: grid;
        grid-gap: var(--gutter) 0;
        grid-template-columns: var(--gutter) 1fr var(--gutter);
        align-content: start;
    }

    .horizontal-grid > * {
        grid-column: 2 / -2;
    }

    .horizontal-grid > .full {
        grid-column: 1 / -1;
    }

    .related-post-lists {
        display: grid;
        grid-gap: calc(var(--gutter) / 2);
        grid-template-columns: 10px;
        grid-template-rows: minmax(50px, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: calc(50% - var(--gutter) * 2);

        overflow-x: scroll;
        scroll-snap-type: x proximity;
        padding-bottom: calc(.75 * var(--gutter));
        margin-bottom: calc(-.25 * var(--gutter));
    }

    .related-post-lists::before,
    .related-post-lists::after {
        content: '';
    }

    .full.hide-scroll {
        margin-left: -40px;
    }

    span.related-post-thumbnail img {
        max-height: 88px;
    }
}