// BLOG
.site-content-archive {
    padding-top: 140px;
    padding-bottom: 140px;
}

.post-type-archive-service {
    .main-content-archive {
        padding-bottom: 90px;

        .pagination {
            margin-bottom: 55px;
        }
    }
}

.post-type-archive-member {
    .main-content-archive {
        padding-bottom: 90px;

        .pagination {
            margin-bottom: 55px;
        }
    }
}


.woocommerce-page {
    .main-content-archive {
        padding-bottom: 75px;

        .woocommerce-pagination {
            margin-bottom: 65px;
        }
    }
}


.main-content-archive {
    padding-top: 140px;
    padding-bottom: 140px;

    .pagination {
        margin-bottom: 0;
    }
}

.yolo-site-content-page {
    @media (max-width: 1300px) {
        overflow: hidden;
    }
}

.woocommerce-page .yolo-site-content-page {
    padding-bottom: 140px;
}

.single-content-main {
    padding-top: 130px;
    padding-bottom: 140px;

    &.single-product-wrap {
        padding-bottom: 97px;
    }

    &.site-content-single-member {
        padding-top: 130px;
        padding-bottom: 110px;
    }

    &.site-content-single-service {
        padding-top: 130px;
        padding-bottom: 110px;
    }

    &.site-content-single-portfolio {
        padding-top: 140px;
        padding-bottom: 140px;
    }

}

.single-yolo_footer {
    .single-content-main {
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0;

    }
}

.blog-grid {

    article {
        width: 50%;
        padding: 0px 20px;
        float: left;
    }
}


article {
    .post-thumbnail-wrap {
        overflow: hidden;
        position: relative;
    }

    .post-title {
        word-break: break-word;
        display: block;
        overflow: hidden;
        margin-top: 10px;
        margin-bottom: 10px;

    }
}

.blog-col-2 {
    article {
        width: 50%;
    }
}

.blog-col-3 {
    article {
        width: 33.3333%;

        @media (max-width: 1024px) {
            width: 50%;
        }

        @media (max-width: 768px) {
            width: 100%;
        }
    }
}

.blog-col-4 {
    article {
        width: 25%;

        @media (max-width: 991px) {
            width: 50%;
        }

        @media (max-width: 768px) {
            width: 100%;
        }
    }
}


.blog-style-grid {
    article {
        @media (max-width: 600px) {
            width: 100%;
        }
    }
}

.blog-style-grid,
.blog-style-horizontal {
    .post-meta-date {
        display: none;
    }
}

.thumbnail-bg {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    .transition(all 1s ease);
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;

    @media (min-width: 992px) and (max-width: 1024px) {
        height: 300px;
    }

    @media (max-width: 580px) {
        height: 300px;
    }
}


.hentry.sticky {
    position: relative;

    &:before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 0;
        border-top: 75px solid var(--primary_color);
        border-left: 75px solid transparent;
        z-index: 3;
    }

    &:after {
        width: 40px;
        height: 40px;
        font-family: "Font Awesome 5 Pro";
        content: "\f08d";
        font-weight: 300;
        position: absolute;
        right: 0;
        top: 0;
        color: @white;
        .rotate(45deg);
        text-align: center;
        line-height: 45px;
        font-size: 18px;
        z-index: 3;
    }
}

.blog-wrap {
    &.grid {
        margin-left: -20px;
        margin-right: -20px;

        .hentry.sticky:before {
            right: 15px;
        }

        .hentry.sticky:after {
            right: -42px;
        }

        article {
            margin-bottom: 40px;
            padding: 0px 20px;

            .post-item-wrap {
                overflow: hidden;
                background-color: #fff;
                transition: all 200ms ease;
                box-shadow: 0 20px 35px rgba(0, 0, 0, 0.05);

                &.yolo-flex {
                    flex-direction: column;
                }

                &:hover {
                    box-shadow: 3px 9px 10px rgba(53, 52, 52, 0.11);

                    .thumbnail-bg {
                        .transform (scale3d(1.1, 1.1, 1.1));
                    }


                    .btn-text {
                        color: var(--primary_color) !important;
                    }

                    .btn-icon {
                        transform: translateX(5px);
                    }
                }
            }

            .post-thumbnail-wrap {
                height: 280px;
                flex-basis: inherit;
            }

            .post-info {
                position: relative;
                padding: 47px 30px 45px;

                .post-meta-date {
                    font-size: calc(var(--primary_font_size) - 2px);
                }

                .post-title {
                    margin-top: 2px;
                    margin-bottom: 15px;
                }

                .post-excerpt {
                    margin-top: 10px;
                }

                .post-read-more {
                    margin-top: 22px;
                }
            }

            .btn-text {
                font-size: var(--button_font_size);
                font-family: var(--button_font);
                font-weight: var(--button_font_weight);
                text-transform: uppercase;
                color: var(--heading_color);
                margin-right: 3px;
                letter-spacing: 0.1em;
            }

            .btn-icon {
                color: var(--primary_color);
                transition: all 300ms;
            }
        }
    }

    &.listing {
        article {
            padding: 0;
            width: 100%;
            display: flex;

            padding-bottom: 60px;
            margin-bottom: 60px;
            border-bottom: 1px solid fade(@black, 10%);

            &:not(.has-post-thumbnail) {
                margin-top: 95px;

                &.hentry.sticky:after {
                    top: -35px;
                }

                &.hentry.sticky:before {
                    top: -35px;
                }
            }

            &:first-child {
                &:not(.has-post-thumbnail) {
                    margin-top: 35px;
                }
            }

            &:last-child {
                .post-item-wrap {
                    border-bottom: none;
                    padding-bottom: 0;
                }
            }

            .yolo-flex {
                flex-direction: column;
            }

            .post-item-wrap {
                position: relative;

                &:hover {

                    .post-thumbnail img {
                        .transform (scale3d(1.1, 1.1, 1.1));
                    }
                }
            }

            .post-thumbnail {
                overflow: hidden;

                img {
                    .transition (all 1s ease);
                }

                &:before {
                    position: absolute;
                    content: "";
                    width: 100%;
                    height: 100%;
                    top: 0;
                    left: 0;
                    z-index: 1;
                    background: linear-gradient(rgba(0, 0, 0, 0) 75%, #00000054 100%);
                }

            }

            .post-meta-date {
                position: absolute;
                bottom: 0;
                left: 0;
                z-index: 1;
                color: @white;
                font-size: calc(var(--primary_font_size) - 2px);
                letter-spacing: .15em;
                font-weight: 500;
                background-color: var(--primary_color);
                padding: 7px 25px;
                min-width: 195px;
                text-align: center;
            }

            .post-item-top {
                margin-bottom: 50px;
                position: relative;

            }

            .post-info {
                padding: 0px 0px 0;

                .post-read-more {
                    margin-top: 30px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                }

                .post-meta-top {
                    span {
                        position: relative;
                        display: inline-block;
                        vertical-align: top;
                        padding: 0 14px 0 0;
                        font-size: calc(var(--primary_font_size) - 2px);
                        letter-spacing: .1em;
                        font-weight: 500;
                        text-transform: uppercase;
                    }
                }

                .meta-category {

                    &:after {
                        content: '|';
                        position: absolute;
                        top: 0;
                        right: 2px;
                    }

                    a {
                        position: relative;
                        display: inline-block;
                        margin-right: 10px;
                        margin-bottom: 5px;
                        color: var(--primary_color);
                        .transition (all 300ms ease);

                        &:last-child {
                            margin-right: 0;
                        }
                    }
                }

                .post-title {
                    margin: 15px 0;
                    margin-top: 0;
                    font-size: 30px;
                }

                .post-excerpt {
                    margin-bottom: 25px;
                }

            }
        }
    }

    &.horizontal {
        article {
            padding: 0;
            width: 100%;
            margin-bottom: 60px;

            .post-item-wrap {
                overflow: hidden;
                background-color: #fff;
                transition: all 200ms ease;
                box-shadow: 0 20px 35px rgba(0, 0, 0, 0.05);

                @media (min-width: 992px) and (max-width: 1024px) {
                    flex-direction: column;
                }

                @media (max-width: 580px) {
                    flex-direction: column;
                }

                &:hover {
                    box-shadow: 3px 9px 10px rgba(53, 52, 52, 0.11);

                    .thumbnail-bg {
                        .transform (scale3d(1.1, 1.1, 1.1));
                    }


                    .btn-text {
                        color: var(--primary_color) !important;
                        margin-right: 3px;
                    }

                    .btn-icon {
                        transform: translateX(5px);
                    }
                }
            }


            .post-info {
                position: relative;
                padding: 47px 30px 45px;

                .post-meta-date {
                    font-size: calc(var(--primary_font_size) - 2px);
                }

                .post-title {
                    margin-top: 2px;
                    margin-bottom: 15px;
                }

                .post-excerpt {
                    margin-top: 10px;
                }

                .post-read-more {
                    margin-top: 22px;
                }
            }

            .btn-text {
                font-size: var(--button_font_size);
                font-family: var(--button_font);
                font-weight: var(--button_font_weight);
                text-transform: uppercase;
                color: var(--heading_color);
                margin-right: 3px;
            }

            .btn-icon {
                color: var(--primary_color);
                transition: all 300ms;
            }
        }
    }
}

.single {
    article {
        .entry-footer {
            margin-top: 40px;
        }

        &.post {
            position: relative;
            border-bottom: 1px solid #eee;
            padding-bottom: 55px;
            margin-bottom: 55px;

            .entry-thumbnail {
                margin-bottom: 50px;
            }
        }

        &.attachment {
            margin-bottom: 90px;
            height: auto;
            position: relative;
            background: #fff;

            .entry-post-content {
                margin-bottom: 15px;
            }
        }
    }
}

.search-results {
    .site-content-archive {
        padding-bottom: 140px;
    }
}