/* Owl Carousel */
.owl-carousel {
    margin-bottom: $spacement-lg;
    .img-thumbnail {
        max-width: $thumbnail-slide-width;

        img {
            width: 100%;
        }
    }
    .item-video {
        height: 300px;
    }
    .owl-nav {
        top: 50%;
        position: absolute;
        margin-top: -20px;
        width: 100%;
        .owl-prev, .owl-next {
            display: inline-block;
            position: absolute;
            width: 30px;
            height: 30px;
            text-align: center;
			/*margin: 5px 0;*/
        }
        .owl-prev {
            #{$left}: -5px;
            &:before {
                /*font-family: FontAwesome;
                content: if-ltr($fa-var-chevron-left, $fa-var-chevron-right);*/
				font-family: "Porto";
                content: if-ltr("\e819", "\e81a");
                position: relative;
                #{$left}: -1px;
                top: 1px;
            }
        }
        .owl-next {
            #{$right}: -5px;
			/*#{$right}: 15px;*/
            &:before {
                /*font-family: FontAwesome;
                content: if-ltr($fa-var-chevron-right, $fa-var-chevron-left);*/
				font-family: "Porto";
                content: if-ltr("\e81a", "\e819");
                position: relative;
                #{$left}: 1px;
                top: 1px;
            }
        }
    }
    .owl-dots {
        margin-top: 1em;
    }
    &.stage-margin {
        .owl-stage-outer {
            .owl-stage {
                padding-left: 0 !important;
                padding-right: 0 !important;
            }
            margin-left: 40px;
            margin-right: 40px;
        }
    }
    &.show-nav-hover {
        .owl-nav {
            opacity: 0;
            @include transition (opacity 0.2s ease-in-out);
            .owl-prev {
                #{$left}: (-15px - (($grid-gutter-width - 20px) / 2));
            }
            .owl-next {
                #{$right}: (-15px - (($grid-gutter-width - 20px) / 2));
            }
        }
        &:hover {
            .owl-nav {
                opacity: 1;
            }
        }
    }
    &.show-nav-title {
        .owl-nav {
            top: 0;
            #{$right}: 0;
            margin-top: -45px;
            width: auto;
            [class*="owl-"], [class*="owl-"]:hover, [class*="owl-"]:active {
                font-size: 18px;
                background: transparent !important;
                width: 18px;
                font-size: 18px;
                padding-left: 0;
                padding-right: 0;
            }
            .owl-prev {
                #{$left}: -45px;
            }
        }
        &.post-carousel,
        &.portfolio-carousel,
        &.member-carousel,
        &.product-carousel {
            .owl-nav {
                #{$right}: ($grid-gutter-width / 2);
            }
        }
    }
    &.nav-bottom {
        .owl-nav {
            position: static;
            margin: 0;
            padding: 0;
            width: auto;
            .owl-prev, .owl-next {
                position: static;
            }
        }
    }
    &.rounded-nav {
        .owl-nav {
            [class*="owl-"], [class*="owl-"]:hover {
                padding: 3px 7px;
                border-radius: 50%;
                background: transparent !important;
                border: 1px solid #999 !important;
                color: #999;
                width: 30px;
            }
        }
    }
    &.nav-inside {
        .owl-dots {
            bottom: 2px;
            margin-top: 10px;
            position: absolute;
            #{$right}: 6px;
        }
        .owl-nav {
            .owl-prev {
                #{$left}: 0;
            }
            .owl-next {
                #{$right}: 0;
            }
        }
    }
    &.nav-inside-left {
        .owl-dots {
            #{$left}: 6px;
            #{$right}: auto;
        }
    }
    &.nav-inside-center {
        .owl-dots {
            #{$right}: 6px;
            #{$left}: 6px;
        }
    }
    &.full-width, &.big-nav {
        .owl-nav {
            margin-top: -30px;
            [class*="owl-"], [class*="owl-"]:hover {
                height: auto;
                padding: 20px 0;
                margin: 0;
            }
            .owl-prev {
                border-radius: corner-values(0 $border-base $border-base 0);
                #{$left}: 0;
            }
            .owl-next {
                border-radius: corner-values($border-base 0 0 $border-base);
                #{$right}: 0;
            }
        }
    }
    &.top-border {
        border-top: if-light(1px solid #dbdbdb, 1px solid #3F4247);
        padding-top: 18px;
    }
    .owl-item .owl-lazy {
        @include transition(all 0.2s linear 0s, opacity 400ms ease 0s);
    }
    .wpb_content_element {
        margin-bottom: 0;
    }
}

/* Spaced */
.owl-carousel-spaced {
    margin-#{$left}: -5px;
    .owl-item > div {
        margin: 5px;
    }
}

/* Testimonials */
.owl-carousel.testimonials {
    img {
        display: inline-block;
        height: 70px;
        width: 70px;
    }
}

/* Responsive */
@media (max-width: 479px) {
    .owl-carousel-spaced {
        margin-#{$left}: 0;
    }
}

/* Slick Slider */
.slick-slider {
    .slick-dots li{
        opacity: 1 !important;
        i {
			color: if-light(#d6d6d6, $color-dark-4 !important);
        }
    }
    .slick-prev {
        width: auto;
        height: auto;
        #{$left}: 0;
        text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3);
    }
    .slick-next {
        width: auto;
        height: auto;
        #{$right}: 0;
        text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3);
    }

    @media #{$screen-medium} {
        .slick-prev,
        .slick-next {
            display: none !important;
        }
    }
}
.dots-inner .slick-slider,
.slick-slider.dots-inner {
    ul.slick-dots {
        position: absolute !important;
        bottom: 10px !important;
    }
}

[dir="rtl"] .slick-prev:before,
[dir="rtl"] .slick-next:before {
    display: none;
}

[dir="rtl"] .slick-prev i:before {
    content: "\e60d";
}
[dir="rtl"] .slick-next i:before {
    content: "\e60c";
}

.yith-wcan-loading{
    position: relative;
}
#fancybox-loading div {
    background-image: none;
    display: none;
}
.yith-wcan-loading,
.master-slider .ms-loading-container .ms-loading,
.master-slider .ms-slide .ms-slide-loading,
#fancybox-loading,
.slick-slider .slick-loading .slick-list,
.ult-carousel-wrapper > div:first-child > .ult-item-wrap:first-child,
#infscr-loading .infinite-loading,
.porto-ajax-loading {
    background-image: none;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;

    &:before {
        content: " ";
        display: inline-block !important;
        border-width: 3px 5px 2px 0;
        width: 32px;
        height: 32px;
        @include animate-spin;
        border-image: none;
        border-radius: 20px;
        border-style: solid;
        border-bottom-color: transparent !important;
        vertical-align: middle;
        position: absolute;
        margin: auto;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }
}

.carousel-areas {
    background: transparent url(../images/patterns/stripes.png) repeat 0 0;
    padding-top: 10px;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 0;
    border-radius: $border-medium;
    max-width: 750px;
    margin-left: auto !important;
    margin-right: auto !important;

    > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .ult-carousel-wrapper {
        margin-bottom: 10px;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);

        .slick-prev {
            #{$left}: -50px;
            border-radius: $border-thin !important;
        }
        .slick-next {
            #{$right}: -50px;
            border-radius: $border-thin !important;
        }
    }

    @media #{$screen-normal} {
        overflow: hidden;
    }
}

.porto-ajax-loading {
    &:before {
        z-index: 2;
    }
    &:after {
        background-color: if-light(#fff, $dark-bg);
        content: " ";
        position: absolute;
        margin: auto;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        opacity: .15;
        z-index: 1;
    }
}