/* Start Horizontal List */
.horizontal_list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: clamp(10px, 1.67vw, 18px);
    padding-bottom: clamp(10px, 1.67vw, 18px);
}



.rbt-query-results-wrap .index {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.horizontal_list article.post.type-post,
.index article.post.type-post {
    margin: 0;
}

.horizontal_list .entry-content-card,
.rbt-query-results-wrap .index .entry-content-card {
    position: relative;
    background-color: white;
    height: 100%;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 3px 3px 0 var(--wp--preset--color--primary-light);
    width: 275px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    .card-image {
        display: flex;
        flex-direction: column;
        height: 200px;
        min-height: 200px;
        position: relative;

        &>a {
            width: 100%;
            height: 200px;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: top;
            }
        }

        .card-title {
            position: absolute;
            max-width: 90%;
            align-self: flex-start;
            bottom: 38px;
            left: 5%;
            z-index: 1;
            background-color: rgba(0, 0, 0, .5);
            padding: 5px 3px;

            a {
                text-decoration: none;
                color: white;
                font-weight: 500;
                text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
            }
        }

        .posted-by {
            align-self: flex-start;
            bottom: -28px;
            display: flex;
            max-width: 90%;
            padding-left: 5%;
            position: absolute;
            z-index: 1;
            height: 56px;

            img.avatar {
                border: 4px solid var(--wp--preset--color--primary);
                border-radius: 50%;
                margin-right: 5px;
            }

            .pb-col-one {
                /* unhide for avatar images */
                display: none;
            }

            .po-col-two {
                font-size: 12px;
                color: white;

                .author {
                    color: var(--wp--preset--color--primary);
                }
            }
        }

        .card-image-gradient {
            bottom: 0;
            display: block;
            position: absolute;
            width: 100%;
            height: 60%;
            background-image: linear-gradient(to top,
                    rgba(0, 0, 0, 0.6),
                    rgba(0, 0, 0, 0));
        }
    }

    .card-body-wrap {
        padding: 10px 10px 20px;
        border-left: 1px solid var(--wp--preset--color--primary-light);
        border-bottom: 1px solid var(--wp--preset--color--primary-light);
        display: flex;
        flex-direction: column;
        flex: 1;
        justify-content: space-between;
    }

    .card-body {
        padding: 0;

        .card-text {
            font-size: 15px;
            padding-top: 10px;
            margin-top: 0;
        }
    }

    .entry-footer {
        padding: 0;

        .post-taxonomies {
            .category-wrap {
                font-size: 13px;
                color: var(--wp--preset--color--black);
            }
        }

        .expanding-tabs {
            padding-top: 10px;

            .show-tags {
                font-size: 13px;
                color: var(--wp--preset--color--black);
            }
        }
    }
}

.rbt-query-results-wrap .index .entry-content-card {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;

    .card-body-wrap {
        padding: 10px 10px 10px 20px;
        border-top: 1px solid var(--wp--preset--color--primary-light);
        border-right: 1px solid var(--wp--preset--color--primary-light);
        border-bottom: unset;
        border-left: unset;
        justify-content: flex-start;
    }

    .card-image {
        width: 200px;
        min-width: 200px;
    }

    .card-title a {
        color: var(--wp--preset--color--black);
        font-size: inherit;
        text-decoration: none;
    }
}

@media screen and (max-width:556px) {
    .rbt-query-results-wrap .index .entry-content-card {
        width: 300px;
        margin: 0 auto;
        flex-direction: column;

        .card-image {
            width: 100%;
        }
    }
}

@media (min-width:1400px) {
    .horizontal_list .entry-content-card {
        width: 300px;
    }
}