﻿/* =======================
#Slideshow https://codepen.io/andrealba/pen/WzOOBe
======================= */
.container-slider {
    position:relative;
    height: 60vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

    /* #Slider */
    .container-slider .slider2 {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .container-slider .slides2 {
        width: calc(100% * 5);
        height: 100%;
        position: relative;
        left: -100%;
    }

    .container-slider .slides__img {
        width: calc(100% / 5);
        height: 100%;
        float: left;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        position: relative;
    }

    .container-slider .slides__img__filter {
        width: 100%;
        height: 100%;
        background-color: #000;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        opacity: 0.05;
    }

    /* #Captions */
    .container-slider .slide__caption {
        width: 100%;
        text-align: center;
        color: #fff;
        position: absolute;
        bottom: 5%;
        z-index: 20;
        opacity: 0
    }

    .container-slider .slide__caption__title {
        font-size: 3em;
        line-height: 1.05em;
    }

    .container-slider .slide__caption__subtitle {
        font-size: 2.25em;
        line-height: 1.25em;
    }

    .container-slider .slide__caption__text {
        font-size: 1.75em;
        line-height: 1.25em;
    }

    /* #Controls */
    .container-slider .control {
        cursor: pointer;
        position: absolute;
        z-index: 20;
        top: calc(50% - 50px);
        padding: 15px;
        color: #fff;
        font-size: 3em;
        opacity: 0.5;
    }

        .container-slider .control:hover {
            background-color: #fff;
            opacity: 0.5;
            color: #000;
            color: rgba(0, 0, 0, 0.5);
        }

    .container-slider #prev {
        left: 0;
        border-radius: 0 5px 5px 0;
    }

    .container-slider #next {
        right: 0;
        border-radius: 5px 0 0 5px;
    }

    /* #Indicators */
    .container-slider .dots {
        width: 100%;
        position: absolute;
        z-index: 20;
        bottom: 2%;
        text-align: center;
    }

    .container-slider .dots__single {
        cursor: pointer;
        display: inline-block;
        width: 20px;
        height: 6px;
        background-color: #fff;
        opacity: 0.5;
        margin: 0 5px;
    }

        .container-slider .dots__single:hover,
        .container-slider .dots__current {
            opacity: 1;
        }



/* ########################
Media Queries
######################## */

/* ------------------------
#Desktop, iPad Pro
------------------------ */
@media only screen and (min-width: 1024px) and (max-width: 1170px) {
}

/* ------------------------
#Display 12", iPad Pro portrait, iPad landscape
------------------------ */
@media only screen and (max-width: 1024px) {
}

/* ------------------------
#Medium Devices, Desktops
------------------------ */
@media only screen and (max-width: 992px) {

    /* #Captions */
    .slide__caption__title {
        font-size: 2.5em;
        line-height: 1.125em;
    }

    .slide__caption__subtitle {
        font-size: 2em;
    }

    /* #Controls */
    .container-slider .prev,
    .container-slider .next {
        font-size: 2.5em;
    }
}

/* ------------------------
#Display 5.5", iPad portrait, iPhone 6, 6s, 7, 8 portrait and landscape, iPhone 5s landscape
------------------------ */
@media only screen and (max-width: 768px) {

    /* #Captions */
    .slide__caption__subtitle {
        font-size: 1.625em;
    }

    .slide__caption__text {
        font-size: 1.5em;
    }
}

/* ------------------------
#Extra Small Devices, Phones
------------------------ */
@media only screen and (max-width: 480px) {

    /* #Captions */
    .slide__caption__title {
        font-size: 2em;
        line-height: 1.25em;
    }

    .slide__caption__subtitle {
        line-height: 1.15384615em;
    }

    .slide__caption__text {
        font-size: 1.375em;
        line-height: 1.13636364em;
    }

    /* #Controls */
    .container-slider .prev,
    .container-slider .next {
        font-size: 2em;
    }
}

/* ------------------------
#Display 4", iPhone 5s portrait
------------------------ */
@media only screen and (max-width: 320px) {

    /* #Controls */
    .container-slider .prev,
    .container-slider .next {
        font-size: 1.5em;
    }
}



/* =======================
#Hacks & Fixes
======================= */
/* Clearfix Hack*/
.container-slider .clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}
