@mixin transition-all($time) {
    transition: all $time;
    -webkit-transition: all $time;
    -moz-transition: all $time;
    -o-transition: all $time;
    -ms-transition: all $time;
}

@mixin transition($val) {
    transition: $val;
    -webkit-transition: $val;
    -moz-transition: $val;
    -o-transition: $val;
    -ms-transition: $val;
}

@mixin border-radius($val) {
    border-radius: $val;
    -moz-border-radius: $val;
    -o-border-radius: $val;
    -webkit-border-radius: $val;
    -ms-border-radius: $val;
}

@mixin transform($val) {
    -webkit-transform: $val;
    -moz-transform: $val;
    -ms-transform: $val;
    -o-transform: $val;
    transform: $val
}

$sec_color: #acacac;
$border_color: #ebebeb;
$white-text: #fff;
$black-text: #000;
$primary_color: #252525;
$gray_color: #959595;
$project-info: #959595;
$black_transparent_1: rgba(0, 0, 0, 0.1);
$black_transparent_2: rgba(0, 0, 0, 0.2);
$black_transparent_4: rgba(0, 0, 0, 0.4);
$black_transparent_5: rgba(0, 0, 0, 0.5);
$black_transparent_8: rgba(0, 0, 0, 0.8);
$white_transparent_5: rgba(255, 255, 255, 0.5);
$white_transparent_8: rgba(255, 255, 255, 0.8);
@mixin px2rem($val) {
    font-size: $val/16+rem;
}

//Clever Arrow
.cp-main {
    * {
        box-sizing: border-box;
    }
    &.twentyfifteen {
        & > .container {
            padding: 0
        }
        .cp-single {
            padding-left: 15px;
            padding-right: 15px;
        }
        .has-sidebar .cp-wrap-content {
            padding-left: 15px;
        }
    }
    .has-sidebar .cp-info {
        li {
            width: 100%;
            text-align: left;
        }
        .cp-social-icons {
            text-align: left;
            margin:0 5px;
            a {
                text-align: center;
            }
        }
        .info-label {
            margin-bottom: 10px;
        }
    }
}

.cp-slider-arrow {
    position: absolute;
    top: 50%;
    line-height: 60px;
    width: 60px;
    height: 60px;
    color: $white-text;
    font-size: 55px;
    text-align: center;
    z-index: 9;
    @include transform(translateY(-50%));
    opacity: 0.3;
    @include transition-all(300ms);
    &.next-slide {
        right: 55px;
    }
    &.prev-slide {
        left: 55px;
    }
    &:hover {
        cursor: pointer;
        opacity: 1;
    }
}

@media (max-width: 769px) {
    .cp-slider-arrow {
        font-size: 30px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        &.next-slide {
            right: 15px;
        }
        &.prev-slide {
            left: 15px;
        }
        &:hover {
            cursor: pointer;
            opacity: 1;
        }
    }
}

/*Gallery*/
.cp-wrap-imgs {
    margin: 0;
    li {
        list-style: none;
        display: inline-block;
        max-width: 100%;
        text-align: center;
        padding: 0
    }
}

.cp-single.slider {
    .cp-wrap-imgs.cp-slider:not(.no-thumb) {
        margin-bottom: 20px;
    }
    &.cp-wrap-imgs.no-thumb {
        margin-bottom: 50px;
    }
    .cp-slider-arrow.prev-slide {
        left: 15px;
    }
    .cp-slider-arrow.next-slide {
        right: 15px;
    }
    .cp-wrap-thumbs {
        margin-bottom: 45px;
    }
}

.cp-wrap-thumbs {
    display: inline-block;
    margin: 5px 0 0;
    li {
        list-style: none;
        display: inline-block;
        float: left;
        padding: 5px;
        opacity: 0.8;
        @include transition-all(300ms);
        &.slick-current, &:hover {
            opacity: 1;
            cursor: pointer;
        }
    }
    .cp-slider-arrow {
        font-size: 25px;
        color: $black-text;
        visibility: hidden;
    }
    &:hover {
        .cp-slider-arrow {
            visibility: visible;
        }
    }
}

//Portfolio Info
.cp-info {
    display: inline-block;
    margin-bottom: 25px;
    margin-left: 0;
    width: 100%;
    li {
        float: left;
        list-style: none;
        text-align: center;
    }
    &.cp-col-2 > li {
        width: 50%;
    }
    &.cp-col-3 > li {
        width: 33.33%;
    }
    &.cp-col-4 > li {
        width: 25%;
    }
    &.cp-col-5 > li {
        width: 20%;
    }
    &.cp-col-6 > li {
        width: 16.666%;
    }
    .info-content {
        color: $gray_color;
    }
    .cp-social-icons {
        text-align: center;
        width: 100%;
        display: inline-block;
        margin: 0;
        li.cp-social-icon {
            margin: 0 3px;
            width: 30px;
            height: 30px;
            border: none;
            line-height: 30px;
            float: none;
            background: $black-text;
            padding: 0;
            display: inline-block;
            @include border-radius(50%);
            @include transition-all(300ms);
            cursor: pointer;
            &.facebook{
                background: #3b5998;
            }
            &.twitter{
                background: #5ebcee;
            }
            &.pinterest{
                background: #bd081c;
            }
            &:hover{
                transform: translateY(-3px);
                box-shadow: 0 5px 5px #ebebeb;
            }
        }
        a {
            color: $white-text;
            font-size: 14px;
            line-height: 30px;
            display: block;
        }
    }
    .info-label {
        margin-bottom: 20px;
    }
}

.cp-single-pagination {
    border-top: 1px solid $border_color;
    padding: 30px 0;
    i {
        font-size: 36px;
    }
    a {
        color: $black-text;
        display: inline-block;
        text-decoration: none;
        width: 100%;
    }
    a:hover {
        color: $gray_color;
    }
    .prev-post {
        i {
            float: left;
        }
    }
    .next-post {
        i {
            float: right;
        }
    }
    span {
        width: calc(100% - 50px);
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 35px;
        font-size: 18px;
        text-transform: uppercase;
        padding: 0 10px;
        opacity: 0;
        display: inline-block;
        position: relative;
        white-space: nowrap;
        @include transition-all(300ms)
    }
    .prev-post {
        span {
            @include transform(translateX(30px));
        }
        a:hover {
            span {
                @include transform(translateX(0px));
                opacity: 1;
            }
        }
    }
    .next-post {
        text-align: right;
        span {
            @include transform(translateX(-30px));
        }
        a:hover {
            span {
                @include transform(translateX(0px));
                opacity: 1;
            }
        }
    }
}

@media(max-width: 769px) {
    .cp-single-pagination {
        span {
            display: none;
        }
    }
    .cp-info {
        &.cp-col-4 > li, &.cp-col-6 > li, &.cp-col-5 > li, &.cp-col-3 > li {
            width: 50%;
        }
    }
}

.cp-single {
    .container {
        max-width: 100%;
    }
}

/*Portfolio detail*/
.cp-single {
    &.metro {
        .cp-wrap-imgs.row {
            margin: 0 -15px;
        }
        .portfolio-img {
            padding: 0 15px 30px 15px;
            display: inline-block;
            float: left;
        }
        .cp-wrap-content {
            text-align: center;
            width: 100%;
            display: inline-block;
            margin-bottom: 10px;
        }

        .info-content {
            text-transform: uppercase;
        }
    }
    .title-portfolio {
        font-size: 48px;
    }
}

.portfolio-img {
    max-width: 100%;
    list-style: none;
    text-align: center;
    .loading {
        &:before, &:after {
            border-color: #00A69C
        }
    }
}

.cp-single:not(.has-sidebar) {
    .detail-project-info > li {
        width: 25%;
        float: left;
        text-align: center;
    }
    .detail-project-info.cols-3 > li {
        width: 33.333%;
    }
}

@media (max-width: 620px) {
    .portfolio-pagination {
        span {
            display: none;
        }
    }
    .cp-single:not(.has-sidebar) {
        .detail-project-info > li {
            width: 50%;
        }
        .detail-project-info.cols-3 > li {
            width: 33.333%;
        }
    }
}

.back-to-home {
    text-align: center;
}

.portfolio-img {
    padding: 0;
}

.cp-single.full-screen {
    .cp-wrap-imgs {
        max-width: 100%;
        margin: 0;
        overflow: hidden;
    }
    .portfolio-img {
        float: left;
        display: inline-block;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
    .cp-content {
        display: inline-block;
        margin-bottom: 30px;
    }
    .cp-wrap-content {
        position: fixed;
        background: $white-text;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 1170px;
        padding-top: 30px;
        z-index: 9;
        max-height: 100%;
        .row {
            margin: 0
        }
        &.minimal {
            padding: 50px 60px;
            width: 500px;
            max-width: 100%;
            h2.title-portfolio {
                font-size: 30px;
                margin-bottom: 0px;
            }
            .date-post {
                text-transform: uppercase;
                float: left;
                font-size: 13px;
                color: $project-info;
            }
        }
    }
    .portfolio-pagination {
        padding: 15px 60px;
    }
    .toggle-view {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 36px;
        &:hover {
            cursor: pointer;
            color: $primary_color;
        }
    }
    .cp-main-content {
        padding: 0 60px
    }
    .cp-wrap-content:not(.minimal) {
        @include transition-all(600ms);
        .toggle-view, .cp-main-content, .portfolio-pagination {
            @include transition-all(300ms);
            transition-delay: 600ms;
        }
        &.deactive {
            max-width: 0% !important;
            height: 0 !important;
            padding: 0;
            transition-delay: 500ms;
            .toggle-view, .cp-main-content, .portfolio-pagination {
                opacity: 0;
                transition-delay: 0ms;
            }
        }
    }
    .cp-wrap-content.minimal {
        z-index: 8;
        transition-delay: 800ms;
        .title-portfolio, .toggle-view, .date-post {
            opacity: 0;
            @include transition-all(500ms);
        }
        &.active {
            z-index: 10;
            .title-portfolio, .toggle-view, .date-post {
                opacity: 1;
                transition-delay: 750ms;
            }
        }
    }
}

.cp-wrap-embed iframe {
    margin: 0;
}

.cp-wrap-main-embed {
    width: 100%;
    position: relative;
    display: inline-block;
    min-height: 50px;
}

@media (max-width: 769px) {
    .cp-single.full-screen .cp-main-content {
        padding: 0 30px;
    }
    .cp-single.full-screen .portfolio-pagination {
        padding: 15px 30px
    }
    .cp-single.full-screen .cp-wrap-content.minimal {
        padding: 20px 30px
    }
    .back-to-home {
        padding: 0;
    }
    .cp-wrap-content.expand {
        max-height: 100%;
        overflow: scroll;
        z-index: 999;
    }
    .cp-single.full-screen {
        .cp-wrap-content.expand {
            z-index: 999;
        }
    }
    #menu-mobile-trigger, .wrap-mobile-nav.off-block.default {
        display: block;
    }
    .wrap-header {
        z-index: 9;
    }
    .cp-wrap-content {
        z-index: 7;
    }
    #sidebar-trigger.canvas-icon {
        margin: 0;
    }
}

.icon-media {
    position: absolute;
    width: 40px;
    height: 40px;
    line-height: 38px;
    border-radius: 50%;
    border: 1px solid $white-text;
    padding-left: 2px;
    text-align: center;
    color: $white-text;
    font-size: 14px;
    right: 10px;
    bottom: 10px;
    opacity: 0;
    @include transition-all(300ms);
    z-index: 2;
}

.clever-portfolio-item:hover .icon-media {
    opacity: 1;
}

.cp-single.slider, .cp-single.list {
    .cp-wrap-imgs {
        margin: 0 0 50px;
    }
    .info-content {
        text-transform: uppercase;
    }
    .cp-wrap-content {
        text-align: center;
        width: 100%;
        display: inline-block;
        margin-bottom: 30px;
    }
    .cp-slider-arrow.prev-slide {
        left: 5px;
    }
    .cp-slider-arrow.next-slide {
        right: 5px;
    }
    .cp-wrap-embed {
        margin-bottom: 50px;
    }
}

.cp-wrap-imgs {
    margin-left: 0;
}

.cp-single.list, .cp-single.right-sidebar, .cp-single.left-sidebar {
    .portfolio-img {
        margin-bottom: 25px;
        &:last-child {
            margin-bottom: 0;
        }
    }
}

.cp-single.right-sidebar, .cp-single.left-sidebar {
    .title-portfolio {
        margin-bottom: 40px;
    }
    .cp-content {
        width: 100%;
        display: inline-block;
        margin-bottom: 20px;
    }
    .cp-wrap-content {
        padding-left: 45px;
    }
    .cp-wrap-imgs {
        margin-bottom: 50px;
    }
}

.cp-embed-format {
    iframe {
        position: relative;
    }
    &.full-width {
        .cp-wrap-main-embed {
            margin-bottom: 30px;
        }
        .cp-wrap-embed {
            background: $primary_color;
            text-align: center;
            margin-bottom: 30px;
            position: relative;
        }
        .cp-embed-nav {
            font-size: 42px;
            color: $white-text;
            opacity: 0.8;
            @include transition-all(300ms);
            position: absolute;
            top: 50%;
            @include transform(translateY(-50%));
            &.next-item {
                right: 10px;
            }
            &.prev-item {
                left: 10px;
            }
            &:hover {
                opacity: 1;
            }
        }
    }
    &.full-screen {
        .mask-full-screen {
            width: 100%;
            height: 100%;
            top: 0;
            position: absolute;
            left: 0;
            z-index: 1;
        }
        .cp-wrap-content.minimal {
            transition: opacity 300ms;
        }
    }
}

.cp-volume, .cp-play-2 {
    width: 45px;
    height: 45px;
    opacity: 0.8;
    @include transition-all(300ms);
    text-align: center;
    line-height: 45px;
    color: $white-text;
    position: absolute;
    display: block;
    cursor: pointer;
}

.cp-volume {
    bottom: 30px;
    z-index: 3;
    right: 50px;
    font-size: 26px;
    border: 1px solid $white-text;
    @include border-radius(50%);
    &.active i:before {
        content: '\e973';
    }
    &:hover {
        opacity: 1;
    }
}

.cp-play-2 {
    left: 50%;
    top: 50%;
    font-size: 36px;
    @include transform(translate(-50%, -50%));
    i {
        position: absolute;
        left: 0;
        top: 0;
        width: 45px;
        height: 45px;
        line-height: 45px;
        text-align: center;
        @include transition-all(300ms)
    }
    .clever-icon-pause-1{
        opacity: 0
    }
    .clever-icon-play-2-1{
        opacity: 1
    }
    &.active {
        .clever-icon-pause-1{
            opacity: 1;
        }
        .clever-icon-play-2-1{
            opacity: 0;
        }
    }
}

@media (max-width: 768px) {
    .cp-single.right-sidebar, .cp-single.left-sidebar {
        .cp-wrap-content {
            padding-left: 15px;
        }
    }
    .cp-embed-format.full-width .cp-embed-nav {
        display: none;
    }
}

.single-portfolio .cp-main {
    padding: 0;
    .cp-single {
        padding-top: 80px;
        &.full-width, &.full-screen {
            padding-top: 0;
        }
    }
}

/*End portfolio detail*/
/*lazy img*/
.clever_wrap_lazy_img {
    max-width: 100%;
    background: $black_transparent_1;
    display: inline-block;
}

/*Rit lightbox gallery*/
.clever-wrap-lightbox-gallery {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: -1;
    opacity: 0;
    display: block;
    background: $black_transparent_8;
    top: 0;
    left: 0;
    @include transition-all(500ms);
    li {
        list-style: none;
    }
    &.active {
        z-index: 999;
        opacity: 1;
    }
}

.clever-lightbox-gallery-block {
    margin: 0;
    display: inline-block;
    position: relative;
    height: 100%;
    width: 100%
}

.clever-wrap-lightbox-gallery-block {
    z-index: 2;
    position: absolute;
    top: 50%;
    width: calc(100% - 120px);
    height: calc(100% - 80px);
    left: 50%;
    @include transform(translate(-50%, -50%));
    li:not(.active) {
        z-index: -1;
    }
    li {
        padding: 0;
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0;
        @include transition-all(300ms);
        width: 100%;
        height: 100%;
        display: table-cell;
        text-align: center;
        vertical-align: middle;
    }
    li.active {
        opacity: 1;
    }
    .clever-lb-gallery-nav {
        position: absolute;
        height: 100%;
        width: 40%;
        top: 0;
        display: block;
        z-index: 3;
        font-size: 26px;
        &.clever-lb-prev-item {
            left: 0px;
        }
        &.clever-lb-next-item {
            right: 0px;
        }
        i {
            position: absolute;
            opacity: 0;
            top: 50%;
            text-align: center;
            width: 40px;
            height: 40px;
            line-height: 40px;
            color: $white-text;
            @include transition-all(300ms);
            @include transform(translateY(-50%));
            &:hover {
                background: $black_transparent_5;
                cursor: pointer;
            }
        }
        &.clever-lb-prev-item i {
            left: 10px;
        }
        &.clever-lb-next-item i {
            right: 10px;
        }
    }
    &:hover {
        .clever-lb-gallery-nav i {
            opacity: 1;
        }
    }
    img {
        max-height: 100%;
        margin: 0 auto;
    }
}

@media(max-width: 769px) {
    .clever-wrap-lightbox-gallery-block {
        width: 100%;
        height: auto;
    }
}

.cp-mask-close {
    width: 100%;
    height: 100%;
    position: fixed;
    display: block;
    z-index: 1;
    cursor: pointer;
}

.clever-lb-close {
    width: 40px;
    height: 40px;
    color: $white-text;
    position: fixed;
    top: 15px;
    right: 15px;
    font-size: 36px;
    text-align: center;
    line-height: 40px;
}

.clever-lb-gallery-count {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 35px;
    background: $white_transparent_8;
    color: $primary_color;
    padding: 2px 15px;
    @include transition-all(300ms);
    line-height: 30px;
}

@media(min-width: 769px) {
    .clever-lb-gallery-count {
        opacity: 0;
    }
    .clever-wrap-lightbox-gallery-block:hover {
        .clever-lb-gallery-count {
            opacity: 1;
        }
    }
}

/*End Lightbox*/
/*Portfolio page*/
.cp-carousel-row {
    display: inline-block;
    width: 100%;
    position: relative;
}

.flat-btn {
    display: inline-block;
    letter-spacing: 2px;
}

.wrap-portfolio-filter {
    width: 100%;
    display: inline-block;
}

.clever-portfolio-filter {
    li {
        list-style: none;
        display: inline-block;
        position: relative;
        margin-right: 40px;
        text-transform: capitalize;
        color: $sec_color;
        font-size: 16px;
        @include transition-all(300ms);
        font-weight: 500;
        &:last-child {
            margin-right: 0;
        }
        &:hover, &.active {
            color: $primary_color;
            cursor: pointer;
        }
    }
    margin: 0 0 30px 0;
    padding: 0;
    &.text-right {
        margin-right: 0;
        margin-left: 0;
        text-align: right;
    }
    &.text-center {
        text-align: center;
    }
    &.text-left {
        text-align: left;
    }
}

.cp-multi-row {
    .cp-outfilter {
        opacity: 0;
        position: absolute;
        visibility: hidden;
    }
    .clever-portfolio-item {
        @include transition-all(300ms)
    }
}

.cp-carousel-layout {
    .wrap-portfolio-item {
        height: 100%;
    }
    .slick-dots {
        bottom: 25px
    }
}

.mobile-portfolio-filter {
    display: none;
}

.wrap-portfolio-item {
    position: relative;
    width: 100%;
    &:after {
        width: 100%;
        height: 100%;
        background: $black_transparent_5;
        content: '';
        display: block;
        left: 0;
        top: 0;
        position: absolute;
        z-index: 1;
        opacity: 0;
        @include transition-all(300ms)
    }
}

.mask-link {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.default .portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-left: 30px;
    z-index: 2;
    .title {
        opacity: 0;
        @include transition-all(300ms);
        @include transform(translateX(-50px));
    }
    .title a {
        color: $white-text;
        &:hover {
            color: $white_transparent_8;
        }
    }
}

.default .clever-portfolio-item:hover {
    .title {
        opacity: 1;
        @include transform(translateX(0));
    }
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.default .clever-portfolio-item .list-cat {
    font-size: 12px;
    margin-bottom: 20px;
    color: $primary_color;
    a {
        color: inherit;
        background: $white-text;
        padding: 0 5px;
        margin-right: 5px;
        display: inline-block;
        @include transition-all(300ms);
        opacity: 0;
        @include transform(translateY(30px));
        &:hover {
            transition-delay: 0ms;
            background: $primary_color;
            color: $white-text;
        }
    }
}

.clever-portfolio.default {
    .post-date {
        margin-bottom: 5px;
        opacity: 0;
    }
    .btn-around {
        margin-bottom: 10px;
        background: transparent;
        border-color: $white-text;
        color: $white-text;
        opacity: 0;
        &:hover {
            background: $white-text;
            color: $black-text;
        }
    }
    .clever-portfolio-item:hover {
        .post-date, .btn-around {
            opacity: 1;
        }
    }
}

.clever-portfolio.style-1 {
    a {
        color: inherit;
    }
    .wrap-portfolio-item {
        &:after {
            background: $white-text;
        }
    }
    .list-cat {
        a {
            color: $sec_color;
            &:hover {
                color: $primary_color;
            }
            &:before {
                color: $sec_color;
            }
        }
    }
    .btn-around {
        background: transparent;
        color: $primary_color;
        &:hover {
            background: $primary_color;
            color: $white-text;
        }
    }
}

.clever-portfolio.style-1, .clever-portfolio.style-2 {
    .icon-media {
        right: 50px;
        bottom: 50px
    }
    .clever-portfolio-item {
        float: left;
        display: inline-block;
    }
    .portfolio-info {
        position: absolute;
        top: 50%;
        left: 50%;
        text-align: center;
        width: calc(100% - 40px);
        @include transform(translate(-50%, -50%));
        opacity: 0;
    }
    .wrap-portfolio-item {
        overflow: hidden;
        &:after {
            top: 20px;
            left: 20px;
            width: calc(100% - 40px);
            height: calc(100% - 40px);
            @include transform(scale(1.2));
        }
        &:hover:after {
            @include transform(scale(1));
        }
        &:hover {
            img {
                @include transform(scale(1.1));
            }
            .portfolio-info {
                opacity: 1;
                z-index: 3;
            }
        }
    }
    .title a {
        font-size: 33px;
        text-transform: uppercase;
    }
    .list-cat {
        font-size: 14px;
        text-transform: capitalize;
        margin-bottom: 20px;
        a {

            padding: 0 5px;
            transition-delay: 0ms !important;
            &:before {
                content: '-';
                font-size: 16px;
                position: relative;
                margin-left: -8px;
            }
            &:first-child {
                &:before {
                    display: none;
                }
            }
        }
    }
}

.wrap-portfolio-item {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
}

.clever-portfolio.style-1 {
    .icon-media {
        color: $primary_color;
        border-color: $primary_color;
    }
}

.clever-portfolio.style-2 {
    .wrap-portfolio-item {
        &:after {
            border: 1px solid $white_transparent_5;
            background: transparent;
        }
        &:before {
            width: 100%;
            height: 100%;
            background: $black_transparent_4;
            z-index: 1;
            content: '';
            left: 0;
            position: absolute;
            top: 0;
            display: block;
            opacity: 0;
            @include transition-all(300ms)
        }
        &:hover:before {
            opacity: 1;
        }
    }
    .list-cat {
        a {
            color: $white_transparent_8;
            &:hover {
                color: $white-text;
            }
            &:before {
                color: $sec_color;
            }
        }
    }
    .title a {
        color: $white-text;
        &:hover {
            color: $sec_color;
        }
    }
    .btn-around {
        background: transparent;
        color: $white-text;
        border-color: $white-text;
        &:hover {
            background: $white-text;
            color: $primary_color;
        }
    }
}

.btn-around {
    height: 49px;
    line-height: 45px;
    display: inline-block;
    text-transform: uppercase;
    padding: 0 25px;
    @include border-radius(30px);
    border: 2px solid $primary_color;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: $primary_color;
    @include transition-all(300ms);
    &:hover {
        background: $primary_color;
        color: $white-text;
    }
}

@media (max-width: 769px) {
    .clever-portfolio.default .clever-portfolio-item {
        .post-date, .btn-around {
            opacity: 1;
        }
    }
    .clever-portfolio:not(.style-1).clever-portfolio-item .wrap-portfolio-item::after {
        opacity: 1;
    }
    .default .clever-portfolio-item .title, .default .clever-portfolio-item .list-cat a {
        opacity: 1;
        transform: translateX(0px) !important;
    }
    .clever-portfolio.style-2 .portfolio-info {
        opacity: 1;
        z-index: 2;
    }
    .clever-portfolio.style-2 .wrap-portfolio-item::before {
        opacity: 1;
    }
    .clever-portfolio.style-2 .wrap-portfolio-item::after {
        transform: scale(1);
    }
}

.clever-portfolio-item {
    overflow: hidden;
    float: left;
    .wrap-portfolio-img {
        height: 100%;
        a {
            height: 100%;
            img.lazy-img {
                height: 100%;
            }
        }
    }
    .btn {
        display: inline-block;
    }
    img {
        @include transition-all(300ms);
        width: 100%;
    }
    &:hover {
        .wrap-portfolio-item:after {
            opacity: 1;
        }
        .title {
            opacity: 1;
            @include transform(translateX(0));
        }
        .list-cat a {
            opacity: 1;
            @include transform(translateY(0px));
            transition-delay: 150ms;
            &:nth-child(2) {
                transition-delay: 300ms;
            }
            &:nth-child(3) {
                transition-delay: 450ms;
            }
            &:nth-child(4) {
                transition-delay: 600ms;
            }
            &:nth-child(5) {
                transition-delay: 750ms;
            }
            &:hover {
                transition-delay: 0ms !important;
            }
        }
    }
}

.attachment-portfolio-medium {
    width: 100%;
}

.cp-main-archive {
    .clever-portfolio {
        padding-top: 0;
    }
}

.cp-wrap-block-item {
    width: 100%;
    display: inline-block;
}

.cp-list-layout {
    .wrap-portfolio-img {
        width: 30%;
        float: left;
        position: relative;
        .portfolio-info {
            padding: 10px
        }
    }
    .main-portfolio-info {
        width: 70%;
        float: left;
        position: static;
        padding-left: 30px;
        .title {
            color: $black-text;
            opacity: 1;
            @include transform(translate(0));
            a {
                color: inherit;
            }
        }
    }
}

.clever-wrap-pagination {
    margin-top: 40px;
    &.default {
        span, a {
            min-width: 45px;
            margin: 0 3px;
        }
    }
}

.pagination {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.pagination span.current, .pagination a {
    display: inline-block;
    padding: 8px 15px;
    transition: all 300ms ease 0s;
}

.pagination span.current, .pagination a:hover {
    background: $primary_color;
    border: 1px solid;
    color: $white-text;
}

.pagination a {
    border: 1px solid $border_color;
    color: $primary_color;
}

/*End Portfolio page*/
/*Loading btn*/
.clever-ajax-load-more {
    text-align: center;
    .loading {
        &:before, &:after {
            border: none;
        }
    }
}

.btn-ajax-load {
    background: none !important;
}

.clever-wrap-pagination .ajax-func {
    height: 45px;
    display: inline-block;
    margin: 0 auto;
    font-size: 16px;
    padding: 10px 20px;
    text-transform: uppercase;
    color: $primary_color;
    position: relative;
    @include transition-all(400ms);
    &.no-load {
        opacity: 0.8;
        &:hover {
            cursor: not-allowed;
        }
    }
    &.loading {
        .btn-ajax-load {
            opacity: 0;
        }
        border-color: transparent;
    }
}

.clever-loading {
    opacity: 0;
    visibility: hidden;
    &:before, &:after {
        display: block;
        position: absolute;
        content: '';
    }
    &.standard {
        &:before, &:after {
            background: #00A69C;
            opacity: 0;
            width: 20px;
            height: 20px;
            @include border-radius(50%);
            left: 50%;
            top: 50%;
            @include transform(translate(-50%, -50%))
        }
        &:before {
            -webkit-animation: spinner-bubble 1.3s linear 1.8s infinite;
            animation: spinner-bubble 1.3s linear 1.8s infinite;
        }
        &:after {
            -webkit-animation: spinner-bubble 1.3s linear 0s infinite;
            animation: spinner-bubble 1.3s linear 0s infinite;
        }

    }
    &.circus {
        width: 30px;
        height: 30px;
        left: 50%;
        top: 50%;
        @include transform(translate(-50%, -50%));
        position: absolute;
        display: block;
        &:before, &:after {
            border: 2px solid #00A69C;
            border-left: 2px solid transparent;
            transform-origin: center center;
            @include border-radius(50%);
        }
        &:after {
            width: 30px;
            height: 30px;
            left: 0;
            top: 0;
            -webkit-animation: circus 1s linear 0s infinite;
            -o-animation: circus 1s linear 0s infinite;
            animation: circus 1s linear 0s infinite;
        }
        &:before {
            width: 20px;
            height: 20px;
            left: 5px;
            top: 5px;
            -webkit-animation: circus-back 1s linear 0s infinite;
            -o-animation: circus-back 1s linear 0s infinite;
            animation: circus-back 1s linear 0s infinite;
        }
    }
}

.loading {
    position: relative;
    .clever-loading {
        opacity: 1;
        visibility: visible;
    }
}

#infscr-loading {
    text-align: center;
    width: 100%;
    display: inline-block;
    margin-top: 40px;
    .clever-loading {
        opacity: 1;
        visibility: visible;
    }
    img {
        display: none;
    }
    & > div {
        height: 45px;
        display: inline-block;
        margin: 0 auto;
        padding: 10px 20px;
        text-transform: uppercase;
        color: $primary_color;
        position: relative;
        @include transition-all(400ms);
    }
}

.ajax-func:not(.no-load) .btn-ajax-load {
    padding: 0 10px;
    @extend .flat-btn
}

@-webkit-keyframes spinner-bubble {
    from {
        width: 10px;
        height: 10px;
        opacity: .8;
    }
    to {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

@keyframes spinner-bubble {
    from {
        width: 10px;
        height: 10px;
        opacity: .8;
    }
    to {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

@-webkit-keyframes circus {
    0% {
        @include transform(rotate(0deg))
    }
    50% {
        @include transform(rotate(180deg))
    }
    100% {
        @include transform(rotate(360deg))
    }
}

@keyframes circus {
    0% {
        @include transform(rotate(0deg))
    }
    50% {
        @include transform(rotate(180deg))
    }
    100% {
        @include transform(rotate(360deg))
    }
}

@-webkit-keyframes circus-back {
    0% {
        @include transform(rotate(0deg))
    }
    50% {
        @include transform(rotate(-180deg))
    }
    100% {
        @include transform(rotate(-360deg))
    }
}

@keyframes circus-back {
    0% {
        @include transform(rotate(0deg))
    }
    50% {
        @include transform(rotate(-180deg))
    }
    100% {
        @include transform(rotate(-360deg))
    }
}

/*End Loading btn*/

@media (max-width: 769px) and (min-width: 420px) {
    .cp-grid-layout {
        .clever-portfolio-item {
            width: 50%;
        }
    }
}

@media (max-width: 419px) {
    .cp-grid-layout {
        .clever-portfolio-item {
            width: 100%;
        }
    }
}

@media (min-width: 769px) {
    .cp-mobile-filter {
        display: none;
        text-align: center;
    }
}

@media (max-width: 769px) {
    .wrap-portfolio-filter {
        position: relative;
        width: 100%;
    }

    .cp-mobile-filter {
        display: block;
        text-align: center;
        cursor: pointer;
    }

    .clever-portfolio-filter {
        width: 250px;
        max-width: 100%;
        position: absolute;
        left: 50%;
        @include transform(translateX(-50%));
        @include transition-all(300ms);
        top: calc(100% + 25px);
        margin: 0;
        opacity: 0;
        visibility: hidden;
        z-index: -1;
        padding: 10px 0;
    }

    .wrap-portfolio-filter:hover .clever-portfolio-filter, .clever-portfolio-filter.active {
        top: 100%;
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }

    .clever-portfolio-filter li {
        width: 100%;
        padding: 5px 0;
        text-align: center;
        background: $white-text;
    }

    .cp-carousel-layout .wrap-portfolio-filter {
        margin-bottom: 20px;
    }
}

.clever-no-content {
    text-transform: uppercase;
    font-size: 3rem;
    letter-spacing: 5px;
    text-align: center;
    font-weight: lighter;
    color: $sec_color;
    padding: 50px 0;
    width: 100%;
}

.clever-portfolio {
    .cp-wrap-block-item {
        margin-bottom: -7px;
    }
    .portfolio-info .title {
        color: #fff;
        @include px2rem(24);
        margin-bottom: 5px;
        a {
            line-height: 1;
        }
    }
    &.default {
        .title {
            margin-bottom: 10px;
        }
    }
    &.style-1 {
        .clever-portfolio-item .wrap-portfolio-item::after {
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            background: rgba(255, 255, 255, 0.8);
        }
        .portfolio-info {
            transition: all 300ms;
            .title {
                color: #000;
                @include px2rem(24);
                a {
                    text-transform: capitalize;
                }
                &:hover {
                    color: var(--accent-color);
                }
            }
            .list-cat {
                @include px2rem(16);
                a {
                    color: rgba(0, 0, 0, 0.5);
                    &:before {
                        color: inherit;
                        padding: 0 3px;
                    }
                    &:hover {
                        color: var(--accent-color)
                    }
                }
            }
        }
        &.column-3, &.column-2, &.column-1 {
            .portfolio-info {
                .title {
                    @include px2rem(36)
                }
                .list-cat {
                    @include px2rem(18);
                }
            }
        }
    }
    &.style-3 {
        .portfolio-info {
            background: #3028cc;
        }
        a {
            &:hover {
                color: var(--accent-color);
            }
        }
    }
    &.style-4 {
        .portfolio-info {
            background: var(--accent-color);
        }
        a {
            &:hover {
                color: #000;
            }
        }
    }
    &.style-3, &.style-4 {
        .clever-portfolio-item {
            float: left;
        }
        .wrap-portfolio-item {
            position: relative;
            overflow: hidden;

        }
        .cp-slider-arrow {
            @include px2rem(40);
            &.prev-slide {
                left: 15px;
            }
            &.next-slide {
                right: 15px;
            }
        }
        .wrap-portfolio-item::after {
            display: none;
        }
        .portfolio-info {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            color: #fff;
            padding: 25px 80px 30px 50px;
            transform: translateY(100%);
            transition: all 350ms;
            opacity: 0;
            &:after {
                content: '\c151';
                font-family: cleversoft;
                position: absolute;
                right: 30px;
                top: 50%;
                @include px2rem(26);
                transform: translateY(-50%);
            }
        }
        a {
            color: inherit;
        }
        .list-cat {
            a {
                transition-delay: 0ms !important;
            }
            a:after {
                content: ',';
                margin-right: 5px;
            }
            a:last-child:after {
                content: '';
            }
        }
        .clever-portfolio-item:hover {
            .portfolio-info {
                transform: translateY(0);
                opacity: 1;
            }
        }
        .slick-dots button {
            border-color: #fff;
            &:before {
                background: #fff;
                color: #fff;
            }
        }
    }
    &.style-2 {
        .clever-portfolio-item {
            .portfolio-info {
                padding: 20px;
                transform: translate(-50%, -50%) scale(1.2);
                transition: all 500ms;
                .title a {
                    @include px2rem(24);
                    text-transform: capitalize;
                    &:hover {
                        color: var(--accent-color);
                    }
                }
            }
            .list-cat a {
                @include px2rem(18);
                color: #fff;
                &:hover {
                    color: var(--accent-color);
                }
                &:before {
                    content: '';
                    color: inherit;
                }
                &:after {
                    content: ', ';
                    color: inherit;
                }
                &:last-child:after {
                    display: none;
                }
            }
        }
        .wrap-portfolio-item::after {
            display: none;
        }
        .clever-portfolio-item .wrap-portfolio-item::before {
            transform: scale(1.2);
            transition: all 500ms;
            background-image: linear-gradient(150deg, rgba(33, 28, 207, 0.75), rgba(39, 212, 153, 0.75));
        }
        .clever-portfolio-item .wrap-portfolio-item:hover {
            &:before {
                transform: scale(1);
            }
            .portfolio-info {
                transform: translate(-50%, -50%) scale(1);
            }
        }
    }
    &.style-5 {
        .portfolio-info {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            padding: 20px 30px;
            position: absolute;
            width: calc(100% - 60px);
            height: calc(100% - 60px);
            left: 30px;
            top: 50%;
            transform: translateY(-50%) scale(0.9);
            z-index: 2;
            border: 20px solid rgba(255, 255, 255, 0.2);
            transition: all 300ms;
            opacity: 0;
        }
        .title {
            width: 100%;
            text-align: center;
        }
        .title a {
            color: #fff;
            &:hover {
                color: var(--accent-color);
            }
        }
        .list-cat {
            a {
                color: var(--accent-color);
                &:hover {
                    text-decoration: underline;
                }
            }
        }
        .wrap-portfolio-item::after {
            background: #000;
        }
        .clever-portfolio-item {
            &:hover {
                .portfolio-info {
                    opacity: 1;
                    transform: translateY(-50%) scale(1);
                }
                .wrap-portfolio-item::after {
                    opacity: 0.7;
                }
            }
        }
    }
    &.style-6 {
        .clever-portfolio-filter {
            max-width: 1170px;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 60px;
            li {
                text-transform: uppercase;
                font-size: 1rem;
                border-bottom: 2px solid transparent;
                &:hover, &.active {
                    border-color: var(--accent-color);
                }
            }
        }
        .wrap-portfolio-item::after {
            display: none;
        }
        .clever-portfolio-item:hover .portfolio-info {
            background: rgba(255, 255, 255, 0.2);
        }
        .portfolio-info {
            position: absolute;
            bottom: 0;
            padding: 20px 50px;
            display: flex;
            flex-direction: column;
            color: #fff;
            width: 100%;
            transition: all 300ms;
            .title {
                margin: 0;
                a {
                    color: #fff;
                    @include px2rem(48);
                    &:hover {
                        color: var(--accent-color)
                    }
                }
            }
            .list-cat {
                order: -1;
                margin-bottom: 15px;
                a {
                    padding: 3px 15px;
                    background: var(--accent-color);
                    color: $white_text;
                    text-transform: uppercase;
                    margin: 0 5px 5px 0;
                    @include px2rem(12);
                    font-weight: 500;
                    letter-spacing: 1px;
                }
            }
        }
    }
}

.white-filter .clever-portfolio.style-6 .clever-portfolio-filter {
    margin-bottom: 60px;
    li {
        font-size: 1rem;
        &:hover, &.active {
            color: #fff;
        }
    }
}

.cp-carousel-layout .slick-dots {
    position: static;
    text-align: center;
    margin-top: 40px;
    li {
        text-align: center;
        opacity: 0.5;
        transition: all 300ms;
        width: auto;
        height: auto;
        &.slick-active, &:hover {
            opacity: 1;
            button {
                background: $white_text;
            }
            button:before {
                transform: scale(1.2);
            }
        }
    }
    button {
        border: 2px solid $black_text;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        overflow: hidden;
        transition: all 300ms;
        position: relative;
        &:before {
            background: $black_text;
            transform: scale(0);
            width: calc(100% + 4px);
            height: calc(100% + 4px);
            transition: all 300ms;
            border-radius: 50%;
            opacity: 1 !important;
            content: '';
            top: -2px;
            left: -2px;
        }
    }
}

.wrap-portfolio-img {
    display: block;
    a {
        display: block;
    }
}

.clever-portfolio.style-1 {
    .clever-portfolio-filter li {
        color: $black_text;
        &.active, &:hover {
            color: var(--accent-color);
        }
    }
}

/*Style 7*/
.clever-portfolio.style-7 {
    .clever-portfolio-filter li{
        border-bottom: 2px solid transparent;
        &.active, &:hover{
            border-color:inherit;
        }
    }
    .clever-portfolio-item{
        overflow: visible;
    }
    .wrap-portfolio-img {
        position: relative;
        box-shadow: 0 20px 70px $black_transparent_2;
        margin-bottom: 30px;
        border-radius: 5px;
        overflow: hidden;
        &, & a {
            height: auto;
        }
        &:hover{
            a.btn-readmore {
                opacity: 1;
                visibility: visible;
            }
        }
    }
    .wrap-portfolio-img a.btn-readmore {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
        visibility: hidden;
        &:hover{
            transform: translate(-50%, calc(-50% - 10px));
            box-shadow: 0 10px 30px $black_transparent_2;
        }
    }
    .wrap-portfolio-item::after {
        display: none;
    }
    .portfolio-info{
        text-align: center;
        margin-bottom: 30px;
        .title{
            font-size: 1rem;
            font-weight: normal;
        }
    }
    .list-cat a{
        margin:0 5px
    }
}

@media(max-width: 555.98px) {
    .clever-portfolio-item {
        max-width: 100%;
    }
}

/*End Shortcode*/