// Grid
//--------------------------------------------------
.pxl-grid {
    .pxl-grid-masonry {
        position: relative;
    }
    .grid-sizer {
        z-index: -1;
    }
    .pxl-load-more {
        text-align: center;
        padding: 0 15px;
        margin-top: 20px;
        .btn {
            color: #fff;
            padding-left: 30px;
            padding-right: 30px;
            background-color: $primary_color;
            font-size: 16px;
            font-weight: 500;
            text-transform: capitalize;
            line-height: 44px;
            @include border-radius(5px);
            overflow: hidden;
            position: relative;
            z-index: 1;
            &:hover, &:active, &:focus {
                color: #fff;
            }
            &:active, &:focus {
                padding-left: 20px;
                padding-right: 40px;
            }
            .pxl-load-icon {
                width: 24px;
                height: 24px;
                right: 13px;
                position: absolute;
                top: 50%;
                opacity: 0;
                z-index: 1;
                @include transform(translate(0, -50%));
                line-height: 24px;
                text-align: center;
                color: #fff;
            }
            i {
                font-size: 18px;
                position: absolute;
                top: 0;
                right: 0;
                left: 0;
                bottom: 0;
                margin: auto;
                display: flex;
                flex-wrap: nowrap;
                align-items: center;
                justify-content: center;
            }
        }
        &.loading {
            .btn {
                padding-left: 20px;
                padding-right: 40px;
                color: #fff;
                background-color: $primary_color;
                .pxl-load-icon {
                    opacity: 1;
                    color: #fff;
                    i {
                        animation: pxl_spin 0.6s infinite linear;
                        -webkit-animation: pxl_spin 0.6s infinite linear;
                    }
                }
            }
        }
    }
    .pxl-pagination-wrap {
        margin-top: 40px;
    }
    @media #{$min-xl} {
        .col-xl-pxl5 {
            -ms-flex: 0 0 20%;
            flex: 0 0 20%;
            max-width: 20%;
        }
    }
}
.pxl-grid {
    &.pxl-blog-grid {
        .pxl-load-more {
            margin-top: 50px;
        }
    }
}
.pxl-grid-filter1 {
    margin-bottom: 35px;
    .filter-item {
        font-size: 14px;
        font-weight: 500;
        display: inline-flex;
        padding: 0 20px;
        line-height: 45px;
        cursor: pointer;
        border: 1px solid #D9D9D9;
        background-color: transparent;
        color: $secondary_color;
        margin-right: 5px;
        margin-bottom: 8px;
        @include border-radius(5px);
        overflow: hidden;
        position: relative;
        z-index: 1;
        @include transition(all .25s cubic-bezier(.645,.045,.355,1));
        justify-content: center;
        @include border-radius(5px);
        &:before {
            @include border-radius(3px);
            z-index: -1;
            position: absolute;
            top: 0;
            left: -45%;
            height: 100%;
            content: '';
            background: #D9D9D9;
            width: 200%;
            @include transform(skew(45deg));
            @include transition(transform 0.4s cubic-bezier(0.3, 1, 0.8, 1));
        }
        @media #{$max-lg} {
            line-height: 50px;
            padding: 0 18px;
        }
        &:last-child {
            @media #{$max-lg} {
                margin-right: 9px;
            }
            @media #{$max-sm} {
                margin-right: 0;
            }
        }
        &.active, &:hover {
            color: #fff;
            border-color: $primary_color;
            background-color: $primary_color;
            &:before {
                @include transform( translate3d(100%,0,0) skew(0deg) );
            }
        }
    }
    .pxl--filter-inner {
        display: inline-block;
        @media #{$max-sm} {
            @include box-shadow(none);
        }
    }
}

.elementor-editor-active .grid-sizer {
    display: none;
}

// Elementor - Column Settings
//--------------------------------------------------
.pxl-col-align-start {
    > .elementor-widget-wrap {
        justify-content: flex-start;
    }
    .elementor-inner-section > .elementor-container {
        margin-left: 0;
    }
}
.pxl-col-align-center {
    > .elementor-widget-wrap {
        justify-content: center;
    }
}
.pxl-col-align-end {
    > .elementor-widget-wrap {
        justify-content: flex-end;
    }
    .elementor-inner-section > .elementor-container {
        margin-right: 0;
    }
}

// Start Swiper Carousel
//--------------------------------------------------
.pxl-swiper-container {
    margin: 0 -15px;
    position: relative;
    overflow: hidden;
}
.pxl-swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    -o-transition-property: transform;
    transition-property: transform;
    transition-property: transform,-webkit-transform;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}
.pxl-swiper-slide {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0 15px;
}

.pxl-swiper-arrow {
    width: 44px;
    height: 44px;
    font-size: 18px;
    color: $secondary_color;
    z-index: 2;
    text-align: center;
    cursor: pointer;
    @include transition(all .25s cubic-bezier(.645,.045,.355,1));
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #D9D9D9;
    i {
        color: inherit;
        font-size: 18px;
        @extend .pxl-flex-center;
    }
    &:hover {
        background-color: $primary_color;
        color: #fff;
    }
    &.swiper-button-disabled {
        cursor: not-allowed;
    }
    &.arrow-style1 {
        top: 50%;
        @include transform(translateY(-50%));
        &.pxl-swiper-arrow-prev {
            left: -28px;
            @media #{$max-lg} {
                left: 30px;
            }
        }
        &.pxl-swiper-arrow-next {
            right: -28px;
            @media #{$max-lg} {
                right: 30px;
            }
        }
    }
}
.pxl-swiper-nogap {
    .pxl-swiper-container {
        margin: 0;
        .pxl-swiper-slide {
            padding: 0;
        }
    }
}
.pxl-swiper-dots {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    .pxl-swiper-pagination-bullet {
        margin: 0 8px;
        width: 18px;
        height: 18px;
        text-align: center;
        background: transparent;
        cursor: pointer;
        position: relative;
        @include transition(all .25s cubic-bezier(.645,.045,.355,1));
        &:before {
            content: "";
            display: block;
            width: 8px;
            height: 8px;
            position: absolute;
            top: 50%;
            left: 50%;
            @include transform(translate(-50%, -50%));
            background-color: $primary_color;
        }
        &:hover,
        &.swiper-pagination-bullet-active {
            background: rgba(31, 31, 31, 0.20);
        }
    }
    &.pxl-swiper-pagination-bullets {

    }
    &.pxl-swiper-pagination-fraction {
        span {
            font-size: 17px;
            display: inline-block;
            text-align: center;
            color: $third_color;
        }
    }
}
.pxl-swiper-boxshadow {
    .pxl-carousel-inner {
        margin: 0 -30px;
        .pxl-swiper-container {
            padding: 0 30px;
        }
    }
    .pxl-swiper-slide {
        @include transition(opacity .25s cubic-bezier(.645,.045,.355,1));
    }
    .pxl-swiper-slide:not(.swiper-slide-visible) {
        opacity: 0;
    }
}
.pxl-swiper-sliders, .pxl-swiper-slider {
    position: relative;
    .pxl-carousel-inner {
        &.arrows-top {
            position: relative;
            overflow: hidden;
            padding: 98px 30px 0;
            .grap-arrows {
                display: flex;
                margin-top: 0;
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                .pxl-swiper-arrow-prev {
                    margin-right: 20px;
                }
            }
        }
        &.arrows-bottom {
            .grap-arrows {
                display: flex;
                margin-top: 50px;
                padding: 0 30px;
                .pxl-swiper-arrow-prev {
                    margin-right: 20px;
                }
            }
        }
        &.arrows-middle {
            position: relative;
            .pxl-swiper-arrow {
                @include transition(.4s cubic-bezier(.24,.74,.58,1));
                position: absolute;
                top: 50%;
                @include transform(translateY(-50%));
                opacity: 0;
            }
            .pxl-swiper-arrow-prev {
                left: -30px;
                @media #{ $max-xxl } {
                    left: 25px;
                }
            }
            .pxl-swiper-arrow-next {
                right: -30px;
                @media #{ $max-xxl } {
                    right: 25px;
                }
            }
        }
    }
    &:hover {
        .pxl-carousel-inner {
            &.arrows-middle {
                .pxl-swiper-arrow {
                    opacity: 1;
                }
                .pxl-swiper-arrow-prev {
                    left: -60px;
                    @media #{ $max-xxl } {
                        left: 15px;
                    }
                }
                .pxl-swiper-arrow-next {
                    right: -60px;
                    @media #{ $max-xxl } {
                        right: 15px;
                    }
                }
            }
        }
    }
    &.pxl-swiper-arrow-show .pxl-swiper-arrow {

    }
    &.bullets-middle-left, &.bullets-middle-right {
        .pxl-swiper-dots {
            @media #{ $min-xl } {
                margin-top: 0;
                position: absolute;
                top: 50%;
                @include transform(translateY(-50%));
                display: flex;
                flex-direction: column;
                .pxl-swiper-pagination-bullet {
                    margin: 2px 5px;
                }
            }
        }
    }
    &.bullets-middle-left {
        .pxl-swiper-dots {
            @media #{ $min-xxl } {
                left: -50px;
            }
            @media #{ $mm-xl } {
                left: 20px;   
            }
        }
    }
    &.bullets-middle-right {
        .pxl-swiper-dots {
            @media #{ $min-xxl } {
                right: -50px;
            }
            @media #{ $mm-xl } {
                right: 20px;   
            }
        }
    }

}

.pxl-portfolio-carousel {

}

.pxl-swiper-nogap {
    .pxl-swiper-container {
        margin: 0;
        .pxl-swiper-slide {
            padding: 0;
        }
    }
}

.pxl-swiper-thumbs {
    overflow: hidden;
    .swiper-slide {
        cursor: pointer;
    }
}
// End Swiper Carousel
//--------------------------------------------------
