/* Start Horizontal Index */

.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;
}

.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);
    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;
            }
        }

        .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-light);
                }
            }
        }
    }

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

    .card-body {
        padding: 0;

        h3.card-title {
            font-size: clamp(15px, 1.67vw, 24px);
        }

        .card-text {
            font-size: 13px;
            padding-top: 10px;
            max-height: 50px;
            overflow: hidden;
        }
    }

    .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);
        border-right: 1px solid var(--wp--preset--color--primary);
        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;
    }
}