/* slider.css */

.ml-slider-container {
    background-color: rgba(0, 151, 216, .8);
    cursor: all-scroll;
    overflow: hidden;
    position: relative;
    user-select: none;
}

@media screen and (max-width: 1199px) {
    .ml-slider-container {
        height: calc(100vh - 80px); /* 80px = navbarHeight */
    }
}
@media screen and (min-width: 1200px) {
    .ml-slider-container {
        height: calc(100vh);
        min-height: 775px;
    }
}


/* slider navigation ----------------------------*/

.ml-slider-navigation {
    bottom: 40px;
    max-width: 320px;
    position: absolute;
    z-index: 3;
    width: 100%;
}
.ml-slider-navigation > * {
    display: inline-block;
    vertical-align: middle;
}

/* slider control */
.ml-slider-control {
    color: #fff;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    width: 40px;
}
.ml-slider-control.inactive {
    opacity: .4;
}
.ml-slider-control.inactive:hover {
    cursor: auto;
}
.ml-slider-control:not(.inactive):hover {
    cursor: pointer;
}
.ml-slider-control-prev {}
.ml-slider-control-next {}

/* slider pagination */
.ml-slider-pagination {
    font-size: 0;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.ml-slider-pagination-item {
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    height: 12px;
    margin: 6px;
    position: relative;
    vertical-align: middle;
    width: 12px;
}
.ml-slider-pagination-item:before {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 8px;
    position: absolute; left: 50%; top: 50%;
    transition: transform 0.3s;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
}
.ml-slider-pagination-item.active:before,
.ml-slider-pagination-item:hover:before {
    transform: translate(-50%, -50%) scale(1);
}

@media screen and (max-width: 1199px) {
    .ml-slider-navigation {
        left: 50%;
        text-align: center;
        transform: translateX(-50%);
    }
}
@media screen and (min-width: 1200px) {
    .ml-slider-navigation {
        left: 80px;
        transform: translateY(-50%);
    }
    .ml-slider-navigation > * {}
    .ml-slider-control { margin: 0; }
    .ml-slider-pagination-item {}
}

/* slider ---------------------------------------*/

.ml-slider {
    height: 100%;
    position: relative;
    z-index: 1;
}
.ml-slider.animating {
    transition: transform 0.5s;
    will-change: transform;
}
.ml-slider.animating .ml-slide-bg {
    transition: transform 0.5s;
    will-change: transform;
}

/* slide */
.ml-slide {
    height: 100%;
    overflow: hidden;
    position: absolute; top: 0; bottom: 0;
    width: 100%;
}
.ml-slide.active .ml-slide-overlay,
.ml-slide.active .ml-slide-text {
    opacity: 1;
}
.ml-slide.active .ml-slide-overlay {
    transform: translateX(0);
}
.ml-slide.active .ml-slide-text {
    transform: translateX(0);
}
.ml-slide-bg {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    position: absolute; top: 0; left: -50%;
    width: 100%;
    will-change: transform;
}
.ml-slide-bg:after {
    background-color: rgba(0, 16, 24, .4);
    content: "";
    height: 100%;
    position: absolute;
    width: 100%;
    z-index: 3;
}
@media screen and (max-width: 1199px) {
    .ml-slide-bg {
        /*filter: grayscale(50%);*/
    }
    
}

/* 10 slide destekler */
.ml-slide:nth-child(1) { left: 0; }
.ml-slide:nth-child(1) .ml-slide-bg { left: 0; }

.ml-slide:nth-child(2) { left: 100%; }
.ml-slide:nth-child(2) .ml-slide-bg { left: -50%; }

.ml-slide:nth-child(3) { left: 200%; }
.ml-slide:nth-child(3) .ml-slide-bg { left: -100%; }

.ml-slide:nth-child(4) { left: 300%; }
.ml-slide:nth-child(4) .ml-slide-bg { left: -150%; }

.ml-slide:nth-child(5) { left: 400%; }
.ml-slide:nth-child(5) .ml-slide-bg { left: -200%; }

.ml-slide:nth-child(6) { left: 500%; }
.ml-slide:nth-child(6) .ml-slide-bg { left: -250%; }

.ml-slide:nth-child(7) { left: 600%; }
.ml-slide:nth-child(7) .ml-slide-bg { left: -300%; }

.ml-slide:nth-child(8) { left: 700%; }
.ml-slide:nth-child(8) .ml-slide-bg { left: -350%; }

.ml-slide:nth-child(9) { left: 800%; }
.ml-slide:nth-child(9) .ml-slide-bg { left: -400%; }

.ml-slide:nth-child(10) { left: 900%; }
.ml-slide:nth-child(10) .ml-slide-bg { left: -450%; }

.ml-slide-content {
    height: 100%;
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
}

.ml-slide-overlay {
    height: 100%;
    opacity: 0;
    position: absolute; bottom: 0; left: 0;
    transform: translate3d(-50%, 0, 0);
    transition: transform 0.5s 0.5s, opacity 0.2s 0.5s;
    width: 50%;
    will-change: transform, opacity;
}
.ml-slide-overlay div {
    /*background-color: rgba(0, 151, 216, .8);*/
    height: 100%;
    opacity: 1;
    position: relative;
    width: 100%;
}

.ml-slide-text {
    opacity: 0;
    position: absolute; right: 0; left: 0;
    z-index: 2;
}
.ml-slide-meta {
    color: #fff;
    display: none;
}
@media screen and (max-width: 1199px) {
    .ml-slide-overlay {
        display: none;
    }
    .ml-slide-text {
        bottom: 100px;
        padding-right: 32px;
        padding-left: 32px;
        bottom: 85px;
        transform: translateX(50%);
        transition: transform 0.5s 0.5s, opacity 0.5s 0.5s;
        width: 100%;
        will-change: transform, opacity;
    }
    .ml-slide-meta {
        margin-bottom: 16px;
        opacity: .48;
        text-align: center;
    }
}
@media screen and (min-width: 1200px) {
    .ml-slide-text {
        padding-right: 120px;
        padding-left: 88px;
        top: 40%; 
        transform: translateX(-50%);
        transition: transform 0.6s 0.6s, opacity 0.5s 0.8s;
        width: 56%;
        will-change: transform, opacity;
    }
    .ml-slide-meta {
        position: fixed; top: 16px; left: 56px;
        transform: rotate(90deg);
        transform-origin: left top;
    }
    .ml-slide-meta:after {
        background-color: #fff;
        content: "";
        display: inline-block;
        height: 1px;
        margin-left: 6px;
        margin-bottom: 8px;
        width: 72px;
    }
}

.ml-slide-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    /*text-transform: uppercase;*/
}
@media screen and (max-width: 1199px) {
    .ml-slide-title {
        text-align: center;
    }
}
@media (min-width: 576px) and (max-width: 1599px) {
    .ml-slide-title {
        font-size: calc( 28px + (56 - 28) * ( (100vw - 576px) / ( 1599 - 576) ));
    }
}
@media (min-width: 1600px) {
    .ml-slide-title {
        font-size: 56px;
        letter-spacing: -1px;
    }
}

.ml-slide-title:hover a {
    color: inherit;
}
.ml-slide-title ~ * {
    margin-top: .5em;
}
.ml-slide-desc {
    color: #fff;
    display: none;
    font-size: 24px;
    line-height: 1.2;
    opacity: .8;
}
.ml-slide-link {
    cursor: pointer;
    display: inline-block;
    perspective: 1000px;
    position: relative;
    z-index: 5;
}
@media screen and (max-width: 1199px) {
    .ml-slide-desc,
    .ml-slide-link {
        display: none;
    }
}

.ml-slider-video {
    min-height: calc(100vh);
    /*min-width: 100%;*/
    visibility: visible;
}
