// Carousel Styling
.g-newsslider {
    @include display(flex);
    @include flex-direction(row-reverse);
    @include breakpoint(mobile-only) {
        @include flex-direction(column);
    }

    .g-newsslider-carousel {
        width: 26%;
        position: relative;
        @include breakpoint(mobile-only) {
            width: 100%;
            display: none;
        }
        @include display(flex);
        @include flex-direction(column);
        overflow: hidden;

        // Thumb Container
        .g-newsslider-carousel-item-container {
            position: relative;
            cursor: pointer;
            padding: $content-padding - 0.5;

            .g-newsslider-carousel-item-content {
                padding: $content-padding;
                border-radius: 0.3rem;
                @include transition(all 0.2s ease-in-out);

                &:after {
                    background: transparentize($black, 95%);
                    height: 1px;
                    position: absolute;
                    margin-top: 2.45rem;
                    left: -2rem;
                    width: 130%;
                    content: '';
                }

                .g-newsslider-carousel-item-category {
                    display: block;
                    margin-bottom: 0.5rem;
                    text-transform: uppercase;
                    font-size: $core-font-size - 0.3;
                    font-weight: $font-weight-bold;
                    letter-spacing: 1px;

                    a {
                        color: fadeout($black, 70%);
                    }
                }

                .g-newsslider-carousel-item-title {
                    @include responsive-font($responsive-font-size - 0.1, $core-font-size - 0.1, false, false);
                    font-weight: $font-weight-regular;
                    line-height: normal;
                }

                .g-newsslider-carousel-item-meta {
                    color: transparentize($white, 50%);
                    @include responsive-font($responsive-font-size - 0.3, $core-font-size - 0.2, false, false);

                    div {
                        display: inline-block;
                    }
                }
            }

            &:hover, &.current {
                .g-newsslider-carousel-item-content {
                    background-color: $accent-color-1;
                    color: $white;
                }
                .g-newsslider-carousel-item-category {
                    a {
                        color: fadeout($white, 50%);
                    }
                }
            }
        }
    }

    // Slide styling
    .g-newsslider-slides {
        width: 75%;
        @include breakpoint(mobile-only) {
            width: 100%;
            height: 350px;
        }

        // Same Height
        .owl-stage-outer, .owl-stage, .owl-item, .g-newsslider-slides-item-image {
            height: 100%;
        }
        // Item
        .owl-item {

            // Category
            .g-newsslider-slides-item-category {
                position: absolute;
                top: 0;
                display: block;
                border-radius: 0.3rem;
                padding: $content-margin - 0.2 $content-margin;
                font-weight: $font-weight-medium;
                margin: $content-padding + $content-margin;
                color: $white;
                text-shadow: 0 0 3px transparentize($black, 65%);
                a {
                    color: $white;
                }
                @include breakpoint(mobile-only) {
                    position: relative;
                    padding: 0;
                    margin: 0;
                    padding-top: $content-padding;
                    text-align: center;
                }
            }

            // Avatar
            .g-newsslider-slides-item-avatar {
                img {
                    width: auto;
                    height: auto;
                    max-width: 40px;
                    border-radius: 100%;
                    margin-bottom: $content-margin;
                    @include breakpoint(mobile-only) {
                        margin: 0 auto;
                    }
                }
            }

            // Date
            .g-newsslider-slides-item-date {
                position: absolute;
                top: 0;
                right: 0;
                display: block;
                border-radius: 0.3rem;
                padding: $content-margin - 0.2 $content-margin;
                font-weight: $font-weight-medium;
                margin: $content-padding + $content-margin;
                color: $white;
                text-shadow: 0 0 3px transparentize($black, 65%);

                .dir-rtl & {
                    left: 0;
                    right: auto;
                }

                @include breakpoint(mobile-only) {
                    position: relative;
                    padding: 0;
                    margin: 0;
                    text-align: center;
                }
            }

            // Image
            .g-newsslider-slides-item-image {
                background-size: cover;
                background-repeat: no-repeat;
                background-position: center bottom;

                @include breakpoint(mobile-only) {
                    background-position: center;
                }
            }

            // Content
            .g-newsslider-slides-item-content {
                position: absolute;
                bottom: $content-padding + $content-margin + 2;
                margin: 0 $content-padding + $content-margin;

                .g-newsslider-slides-item-title {
                    @include responsive-font($responsive-font-size + 2, $core-font-size + 0.5, false, false);
                    font-weight: $font-weight-black;
                    line-height: $core-line-height - 0.4;

                    a {
                        color: $white;
                    }
                }
                .g-newsslider-slides-item-meta {
                    color: $white;
                    @include display(flex);
                }

                @include breakpoint(mobile-only) {
                    text-align: center;
                }
            }
        }

        // Prev & Next Controls
        .owl-nav {
            position: absolute;
            bottom: 1rem;
            right: 2rem;
            padding: 0;
            margin: 0;

            .dir-rtl & {
                left: 2rem;
                right: auto;
            }

            @include breakpoint(mobile-only) {
                width: 100%;
                text-align: center;
                right: 0;
                padding-top: 1rem;
                bottom: 0.5rem;
            }

            > div, > button{
                position: relative;
                margin: 0;
                padding: 0;
                opacity: 1;

                .fa {
                    font-size: $core-font-size + 0.5;
                    font-weight: $font-weight-regular;
                    vertical-align: super;
                }

                &:hover {
                    color: fadeout($white, 40%);
                }
            }

            .owl-prev {
                margin: 0;
                padding: 0;
            }

            .owl-next {
                margin: 0;
                padding: 0;
            }
        }
    }
}

// Carousel Scroller Core Code
.mThumbnailScroller {
    -ms-touch-action: none;
    touch-action: none
}

.mThumbnailScroller.mTS_no_scroll,
.mThumbnailScroller.mTS_touch_action {
    -ms-touch-action: auto;
    touch-action: auto
}

.mTSWrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
    max-width: 100%;
    outline: 0;
    direction: ltr
}

.mTSContainer {
    margin: 0;
    padding: 0;
    overflow: hidden
}

ol.mTSContainer,
ul.mTSContainer {
    list-style: none
}

.mTSThumb,
ul.mTSContainer > li img {
    vertical-align: bottom
}

.mTS_vertical .mTSContainer {
    margin-top: 0 !important;
    margin-bottom: 0 !important
}

.mTS_horizontal .mTSContainer {
    margin-left: 0 !important;
    margin-right: 0 !important
}

.mTS-hover-full {
    padding: 8px;
    background: rgba(0, 0, 0, .2)
}

.mTS-hover-full .mTS_vertical .mTSThumbContainer {
    margin: 8px 0
}

.mTS-hover-full .mTS_vertical .mTSThumbContainer:first-child {
    margin-top: 40px
}

.mTS-hover-full .mTS_vertical .mTSThumbContainer:last-child {
    margin-bottom: 40px
}

.mTS-hover-full .mTS_horizontal .mTSThumbContainer {
    margin: 0 4px
}

.mTS-hover-full .mTS_horizontal .mTSThumbContainer:first-child {
    margin-left: 40px
}

.mTS-hover-full .mTS_horizontal .mTSThumbContainer:last-child {
    margin-right: 40px
}
