/*-----------------------
    projects
------------------------*/
.project-item {
    position: relative;
    margin-bottom: 30px;
    box-shadow: 0px 5px 83px 0px rgba(40, 40, 40, 0.08);


    .project__img {
        position: relative;
        overflow: hidden;

        &:after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.5;
            display: block;
            background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), #1b1a1a 100%);
            background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0), #1b1a1a 100%);
            background-image: -ms-linear-gradient(top, rgba(0, 0, 0, 0), #1b1a1a 100%);
            background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0), #1b1a1a 100%);
            background-image: linear-gradient(top, rgba(0, 0, 0, 0), #1b1a1a 100%);
            @include prefix(transition, all 0.4s linear, webkit moz ms o);
        }

        img {
            width: 100%;
            max-width: 100%;
            @include prefix(transition, all 0.6s linear, webkit moz ms o);
        }
    }

    &:hover .project__img img {
        @include prefix(transform, scale(1.1), webkit moz ms o);
    }

    .project__content {
        padding: 30px;
        background-color: $color-white;
    }

    .project__cat {
        line-height: 1;
        margin-bottom: 11px;

        a {
            position: relative;
            font-family: $font-body;
            font-size: 13px;
            color: $color-theme;
            padding-right: 7px;

            &:hover {
                color: $color-heading;
            }

            &::after {
                content: ",";
                position: absolute;
                top: 2px;
                right: 2px;
            }

            &:last-child:after {
                display: none;
            }
        }
    }

    .project__title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 9px;
    }

    .project__title a {
        color: $color-heading;

        &:hover {
            color: $color-theme;
        }
    }

    .project__desc {
        margin-top: 19px;
        margin-bottom: 12px;
    }

    .btn__link {
        line-height: 1;
        width: auto;
        height: auto;
        border: none;

        i {
            display: inline-block;
            opacity: 0;
            color: $color-theme;
            @include prefix(transition, all 0.6s ease, webkit moz ms o);
            @include prefix(transform, translateX(-2px), webkit moz ms o);
        }
    }

    &:hover .btn__link {
        color: $color-theme;

        i {
            opacity: 1;
            @include prefix(transform, translateX(5px), webkit moz ms o);
        }
    }

    .zoom__icon {
        position: absolute;
        top: 50%;
        left: 50%;
        display: block;
        width: 20px;
        height: 20px;
        opacity: 0;
        z-index: 2;
        @include prefix(transform, scale(0), webkit moz ms o);
        @include prefix(transition, all 0.4s linear, webkit moz ms o);

        &:before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 1px;
            height: 20px;
            @include prefix(transform, translate(-50%, -50%), webkit moz ms o);
            background-color: #ffffff;
        }

        &:after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 1px;
            @include prefix(transform, translate(-50%, -50%), webkit moz ms o);
            background-color: #ffffff;
        }
    }

    &:hover .zoom__icon {
        opacity: 1;
        @include prefix(transform, scale(1), webkit moz ms o);
    }
}

.projects-filter {
    display: flex;
    flex-wrap: wrap;

    li {
        margin-bottom: 20px;
        margin-right: 30px;

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

        a {
            position: relative;
            color: $color-heading;
            font-size: 14px;
            font-weight: 700;
            line-height: 1;
            text-transform: capitalize;
            display: block;
            padding-bottom: 4px;

            &:after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 0;
                width: 0;
                height: 2px;
                background-color: $color-theme;
                @include prefix(transition, all 0.7s linear, webkit moz ms o);
            }
        }

        a:hover,
        a.active {
            color: $color-theme;

            &:after {
                width: 100%;
            }
        }
    }
}

/* projects-carousel */
.projects-carousel {
    .projects-bg {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
        width: 100%;
        height: 624px;
    }

    .project-item {
        box-shadow: none;
        overflow: hidden;

        .project__content {
            position: absolute;
            bottom: 40px;
            left: 50px;
            width: 390px;
            padding: 40px 40px 37px;
            background-color: #fff;
            opacity: 0;
            @include prefix(transition, all 0.6s ease, webkit moz ms o);
        }

        .project__title {
            margin-bottom: 9px;
        }

        .project__desc {
            margin-bottom: 17px;
        }

        .btn__link {
            color: #007100;

            i {
                opacity: 1;
                @include prefix(transform, translateX(0), webkit moz ms o);
            }

        }
    }

    .project-item:hover {
        .project__img img {
            transform: scale(1);
        }

        .project__content {
            opacity: 1;
            @include prefix(transform, translateY(-10px), webkit moz ms o);
        }

        .btn__link i {
            @include prefix(transform, translateX(5px), webkit moz ms o);
        }
    }

    .owl-nav .owl-prev,
    .owl-nav .owl-next {
        top: auto;
        bottom: 25%;
        width: auto;
        left: -70px;
        right: auto;
        color: #fff;

        &:hover {
            color: $color-theme;
        }
    }

    .owl-nav .owl-next {
        bottom: 2.5%;
        color: #333333;
    }
}

.projects-carousel-2 {
    .project-item {
        box-shadow: none;
        margin-bottom: 0;

        .project__content {
            padding: 30px 0 0 0;
        }
    }

    &.carousel-arrows .owl-nav .owl-prev {
        left: -60px;
    }

    &.carousel-arrows .owl-nav .owl-next {
        right: -60px;
    }
}

.projects-carousel-3 {
    .owl-stage-outer {
        margin: -15px;
        padding: 15px;
    }

    .project-item {
        box-shadow: 0 0 12px 0 rgba(40, 40, 40, 0.08);

        .project__content {
            padding: 30px 15px 30px 30px;
        }
    }
}

.project-hidden>.project-item {
    display: none;
}

@media (min-width: 992px) {
    .projects-carousel .owl-carousel {
        width: 130%;
    }

    .projects-carousel-2.owl-carousel {
        width: 100%;
    }
}

/* project single */
.projects-single .project__single-title {
    font-size: 30px;
    font-weight: 600;
}

.projects-single .divider__line {
    margin-bottom: 21px;
}

.projects-single .project__single-desc {
    margin-bottom: 40px;

    p {
        margin-bottom: 27px;

        &:last-of-type {
            margin-bottom: 0;
        }
    }
}

/* project gallery */
.projects-slider {
    .bg-overlay:before {
        z-index: 1;
    }

    .owl-thumbs {
        display: flex;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 3;
        height: 100%;
        width: 100%;
        overflow: hidden;

        .owl-thumb-item {
            flex: 1;
            text-align: left;
            cursor: pointer;
            border-right: 2px solid rgba(255, 255, 255, .2);
            display: flex;
            flex-wrap: wrap;
            position: relative;
            overflow: hidden;

            .thumb-item-wrap {
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                display: block;

                span,
                i {
                    display: block;
                    color: $color-white;
                }

                .thumb__num {
                    font-size: 68px;
                    line-height: 1;
                    font-family: $font-heading;
                    margin-bottom: 14px;
                }

                .thumb__title {
                    font-size: 20px;
                    font-weight: 500;
                    color: $color-white;
                    margin-bottom: 13px;
                }

                .thumb__desc {
                    font-size: 15px;
                    line-height: 25px;
                    margin-bottom: 13px;
                }

                .thumb-item-wrap-hover {
                    background-color: $color-theme;
                    position: absolute;
                    bottom: 0;
                    opacity: 0;
                    width: 100%;
                    padding: 37px 15px 37px 37px;
                    @include prefix(transform, translateY(100%), webkit moz ms o);
                    @include prefix(transition, transform 0.4s ease, webkit moz ms o);
                }

                .thumb-item-wrap-content {
                    background-color: rgba(15, 15, 15, 0.5);
                    padding: 37px 15px 37px 37px;
                }
            }

            &.active .thumb-item-wrap {


                .thumb-item-wrap-hover {
                    opacity: 1;
                    @include prefix(transform, translateY(0), webkit moz ms o);
                }

                .thumb-item-wrap-content {
                    opacity: 0;
                    @include prefix(transform, translateY(100%), webkit moz ms o);
                }
            }
        }
    }
}

/* Large Size Screens */
@include lg-screens {

    .projects-carousel .owl-nav .owl-prev,
    .projects-carousel .owl-nav .owl-next {
        left: -30px;
    }

    .projects-carousel .owl-nav .owl-prev:before,
    .projects-carousel .owl-nav .owl-next:before {
        font-size: 40px;
    }
}

/* Medium Size Screens */
@include md-screens {
    .projects-slider .owl-thumbs .owl-thumb-item .thumb-item-wrap .thumb-item-wrap-hover {
        display: none;
    }

    .projects-slider .owl-thumbs .owl-thumb-item .thumb-item-wrap .thumb-item-wrap-content {
        padding: 15px 10px;
        opacity: 1;
        @include prefix(transform, translateY(0), webkit moz ms o);
    }

    .projects-slider .owl-thumbs .owl-thumb-item.active .thumb-item-wrap .thumb-item-wrap-content {
        background-color: $color-theme;
        opacity: 1;
        @include prefix(transform, translateY(0), webkit moz ms o);
    }

    .projects-slider .owl-thumbs .owl-thumb-item .thumb-item-wrap .thumb__num {
        font-size: 40px;
        margin-bottom: 5px;
    }

    .projects-slider .owl-thumbs .owl-thumb-item .thumb-item-wrap .thumb__title {
        font-size: 13px;
        margin-bottom: 0;
    }

    .project-item .project__content,
    .projects-carousel-2 .project-item .project__content,
    .projects-carousel-3 .project-item .project__content {
        padding: 20px;
    }

    .projects-carousel .owl-nav .owl-prev,
    .projects-carousel .owl-nav .owl-next {
        left: -40px;
    }

    .projects-filter li {
        margin-right: 23px;
    }
}

/*  Small Screens and tablets  */
@include sm-screens {
    .projects-filter li {
        margin-right: 20px;
    }

    .projects-grid .container {
        max-width: none;
    }

    .projects-carousel .owl-nav .owl-prev,
    .projects-carousel .owl-nav .owl-next {
        left: -40px;
    }
}

/* Mobile Phones and tablets */
@include xs-sm-screens {
    .projects-slider .owl-thumbs .owl-thumb-item {
        border-right: none;
    }

    .projects-slider .slide-item img {
        min-height: 250px;
    }

    .projects-slider .owl-thumbs .owl-thumb-item .thumb-item-wrap .thumb-item-wrap-hover {
        display: none;
    }

    .projects-slider .owl-thumbs .owl-thumb-item .thumb-item-wrap .thumb-item-wrap-content {
        padding: 10px;
        opacity: 1;
        @include prefix(transform, translateY(0), webkit moz ms o);
    }

    .projects-slider .owl-thumbs .owl-thumb-item.active .thumb-item-wrap .thumb-item-wrap-content {
        background-color: $color-theme;
        opacity: 1;
        @include prefix(transform, translateY(0), webkit moz ms o);
    }

    .projects-slider .owl-thumbs .owl-thumb-item .thumb-item-wrap .thumb__num {
        font-size: 30px;
        margin-bottom: 5px;
    }

    .projects-slider .owl-thumbs .owl-thumb-item .thumb-item-wrap .thumb__title {
        display: none;
    }

    .projects-carousel .projects-bg {
        height: 580px;
    }

    .projects-carousel-3 .project-item .project__content,
    .project-item .project__content {
        padding: 20px;
    }

    .project-item .project__desc {
        margin-top: 5px;
    }

    .projects-single .project__title {
        font-size: 24px;
    }

    .projects-gallery .container {
        max-width: none;
    }

    .projects__nav {
        display: block;

        .projects__nav-content h6 {
            font-size: 14px;
            line-height: 24px;
        }
    }

    .projects-carousel .project-item .project__content {
        position: absolute;
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
        padding: 15px;
        opacity: 1;
    }

    .projects-carousel .owl-nav .owl-prev,
    .projects-carousel .owl-nav .owl-next {
        position: static;
        color: #333333;
        margin: 15px 15px 0;
    }
}

/* Extra Small Devices */
@include xs-screens {
    .projects-filter li {
        margin-right: 15px;
        margin-bottom: 15px;
    }

    .projects-filter li a {
        font-size: 13px;
    }

    .project-item .project__title {
        font-size: 18px;
        line-height: 25px;
    }

    .projects-carousel-2.carousel-arrows .owl-nav .owl-next {
        right: 20px;
        color: $color-gray;
    }

    .projects-carousel-2.carousel-arrows .owl-nav .owl-prev {
        left: 20px;
        color: $color-gray;
    }
}