/**
* Posts by Taxonomy styles
*/

.posts-by-taxonomy__block {
        background-color: var(--wp--preset--color--white);
        width: 100%;
        margin-block-end: 0.5rem !important;
}

@media (hover: hover) and (pointer: fine) {
            .posts-by-taxonomy__block a:hover {
                text-decoration: underline;
            }
        }

.posts-by-taxonomy__block:last-child {
            margin-block-end: 1.5rem !important;
        }

.posts-by-taxonomy__heading {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        margin-bottom: 0px;
        border-top: 2px solid var(--wp--preset--color--primary);
}

@media screen and (min-width: 768px) {

.posts-by-taxonomy__heading {
                padding-top: 0px;
            border-top: unset;
            border-bottom: 2px solid var(--wp--preset--color--primary);
        }
        }

.posts-by-taxonomy__heading h3 {
        padding-top: 0px;
        padding-bottom: 0px;
        margin-bottom: 0px;
}

.posts-by-taxonomy__view-all {
        font-family: PT Serif, sans-serif;
}

.posts-by-taxonomy__wrapper .posts-output {
        padding-bottom: 1.5rem;
}

@media (min-width: 768px) {

        .posts-by-taxonomy__wrapper .posts-output {
                padding-bottom: 1rem;
        }
}

.posts-by-taxonomy__wrapper .posts-output__row {
        display: flex;
        flex-wrap: nowrap;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
}

@media (min-width: 768px) {

        .posts-by-taxonomy__wrapper .posts-output__row {
                padding-top: 0.5rem;
                padding-bottom: 0.5rem;
        }

        .posts-by-taxonomy__wrapper .posts-output__row:not(:last-child) {
                border-bottom-width: 1px;
                border-style: solid;
                border-color: var(--wp--preset--color--bright-gray);
        }
}

.posts-by-taxonomy__wrapper .posts-output__cell {
        display: flex;
        flex-direction: column;
        justify-content: center;
}

.posts-by-taxonomy__wrapper .posts-output__cell.--featured-image {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
}

.posts-by-taxonomy__wrapper .posts-output__cell.--featured-image figure {
        display: flex;
        height: auto;
        width: 100%;
        flex-wrap: nowrap;
        overflow: hidden;
        align-items: center;
        justify-content: center;
}

.posts-by-taxonomy__wrapper .posts-output__cell.--featured-image figure img {
        aspect-ratio: 16 / 9;
        -o-object-fit: cover;
           object-fit: cover;
}

@media (min-width: 768px) {

        .posts-by-taxonomy__wrapper .posts-output__cell.--featured-image figure img {
                aspect-ratio: 1 / 1;
        }
}

.posts-by-taxonomy__wrapper .posts-output__cell.--featured-image figure img {
        height: 80px;
        width: 100%;
        max-width: 123px;
}

@media (min-width: 768px) {

        .posts-by-taxonomy__wrapper .posts-output__cell.--featured-image figure img {
                height: 60px;
                max-width: 60px;
        }
}

.posts-by-taxonomy__wrapper .posts-output__cell.--title {
        display: flex;
        flex-grow: 1;
        flex-direction: column;
        justify-content: center;
        padding-left: 18px;
        padding-right: 18px;
}

@media (min-width: 768px) {

        .posts-by-taxonomy__wrapper .posts-output__cell.--title {
                padding-left: 0.75rem;
                padding-right: 0.75rem;
                border-right-width: 1px;
                border-style: solid;
                border-color: var(--wp--preset--color--bright-gray);
        }
}

.posts-by-taxonomy__wrapper .posts-output__cell.--arrow-link {
        display: none;
}

@media (min-width: 640px) {

        .posts-by-taxonomy__wrapper .posts-output__cell.--arrow-link {
                display: flex;
                flex-direction: column;
                justify-content: center;
                flex-shrink: 0;
                width: 4rem;
        }
}

.posts-by-taxonomy__wrapper .posts-output__cell.--arrow-link figure {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 4rem;
        height: 4rem;
}
