/*=======================================
            Project Filters
========================================*/

.filters {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 50px 0 35px;

    @media (max-width: 600px) {
        padding: 30px 0 15px;
    }

    .main-filters {
        justify-content: flex-start;
        align-items: center;

        @media (max-width: 600px) {
            margin: 0 -8px;
            justify-content: space-between;
        }

        .cat {
            background-color: #000;
            display: inline-block;
            padding: 13px 20px 11px;
            color: #fff;
            text-align: center;
            font-family: "Bebas Neue";
            font-size: 18px;
            min-width: 140px;
            line-height: 1;
            margin-right: 15px;
            margin-bottom: 15px;
            cursor: pointer;
            transition: all 0.1s ease-in-out;

            @media (max-width: 600px) {
                width: calc(50% - 16px);
                margin: 0 8px 16px;
            }

            &:hover,
            &.active {
                background-color: #fff;
                color: #000;
            }

        }

    }

    .child-filters {

        .child-term-group {
            justify-content: flex-start;
            align-items: center;
            border-top: 1px solid #000;
            padding-top: 20px;
            display: none;

            @media (max-width: 600px) {
                padding-bottom: 15px;
            }

            &.active {
                display: flex;
            }

            .child-cat {
                margin-right: 25px;
                font-family: "Bebas Neue";
                font-size: 18px;
                line-height: 0.8;
                cursor: pointer;
                border-bottom: 2px solid transparent;

                &:hover,
                &.active {
                    border-color: #000;
                }

            }

        }

    }

}





/*=======================================
            Project Grid
========================================*/

.post-grid {
    background-color: #fff;
    padding: 50px 0 100px;

    .contents {
        justify-content: flex-start;
        align-items: unset;
        margin: 0 -8px;

        article {
            width: calc(100% / 3 - 16px);
            margin: 0 8px 50px;
            position: relative;
            top: 0;
            transition: all 0.2s ease-in-out;

            @media (max-width: 1000px) {
                width: calc(50% - 16px);
            }

            @media (max-width: 700px) {
                width: calc(100% - 16px);
            }

            &.featured {
                width: calc(50% - 16px);
                margin-bottom: 80px;

                @media (max-width: 1000px) {
                    margin-bottom: 50px;
                }

                @media (max-width: 700px) {
                    width: calc(100% - 16px);
                }

            }

            &.hidden {
                display: none;
            }

            &:hover {
                top: -10px;
            }

            .meta {
                padding-top: 15px;


                h2 {
                    font-size: 28px;
                    line-height: 1.2;
                    margin-bottom: 8px;
                    letter-spacing: normal;

                    @media (max-width: 450px) {
                        font-size: 24px;
                    }

                }

                .date {
                    font-size: 16px;
                    color: #868686;
                    margin-bottom: 10px;

                    @media (max-width: 450px) {
                        font-size: 14px;
                    }

                }

                a {
                    font-size: 14px;
                    text-transform: uppercase;
                    line-height: 1.2;
                    color: #000;
                    text-decoration: none;
                    font-weight: 600;

                    svg {
                        display: inline-block;
                        width: 10px;
                        height: auto;
                        margin-left: 2px;
                        position: relative;
                        top: -1px;

                        path {
                            stroke: #000;
                        }

                    }

                }

            }

        }

        .loadmore {
            width: 100%;
            text-align: center;
            margin-top: 50px;
        }

        .no-results {
            text-align: center;
            width: 100%;
            font-size: 24px;
            line-height: 1;
            display: none;
        }

    }

}






/*=======================================
            Back Link
========================================*/

.back-link {
    padding-top: 20px;

    a {
        color: #fff;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: fit-content;
        font-size: 18px;
        text-decoration: none;

        svg {
            width: 12px;
            transform: rotate(180deg);
            margin-right: 7px;
            position: relative;
            top: -1px;
        }

    }

}