#slider {
    margin-top: 10px;
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
    display: flex;
    flex-flow: nowrap;
    justify-content: space-between;
}

#slider input[type="checkbox"],
#slider input[type="radio"] {
    display: none;
}

#overflow {
    width: 100%;
    overflow: hidden;
    position: relative;
}

#slides article {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
#slides article label{
    width: 100%
}
#slides article img {
    max-width: 100%;
    max-height: 100%;
}

#slides {
    position: relative;
    order: 2;
}

#slides .inner {
    line-height: 0;
    display: flex;
    flex-flow: nowrap;
    justify-content: center;
    -webkit-justify-content: center;
    align-items: center;
}

#slides article {
    float: left;
    padding: 0px 20px;
    box-sizing: border-box;
    /*height: 400px*/
}

/** max 5 images **/
#slide0:checked ~ #slides .inner {
    margin-left: 0;
}

#slide1:checked ~ #slides .inner {
    margin-left: -100%;
}

#slide2:checked ~ #slides .inner {
    margin-left: -200%;
}

#slide3:checked ~ #slides .inner {
    margin-left: -300%;
}

#slide4:checked ~ #slides .inner {
    margin-left: -400%;
}

#slide5:checked ~ #slides .inner {
    margin-left: -500%;
}

#slide6:checked ~ #slides .inner {
    margin-left: -600%;
}

#slide7:checked ~ #slides .inner {
    margin-left: -700%;
}

#slide8:checked ~ #slides .inner {
    margin-left: -800%;
}

#slide9:checked ~ #slides .inner {
    margin-left: -900%;
}

#slides[data-sliders="1"] .inner {
    width: 100%;
}

#slides[data-sliders="1"] article {
    width: 100%;
}

#slides[data-sliders="2"] .inner {
    width: 200%;
}

#slides[data-sliders="2"] article {
    width: 50%;
}

#slides[data-sliders="3"] .inner {
    width: 300%;
}

#slides[data-sliders="3"] article {
    width: 33.33%;
}

#slides[data-sliders="4"] .inner {
    width: 400%;
}

#slides[data-sliders="4"] article {
    width: 25%;
}

#slides[data-sliders="5"] .inner {
    width: 500%;
}

#slides[data-sliders="5"] article {
    width: 20%;
}

#slides[data-sliders="6"] .inner {
    width: 600%;
}

#slides[data-sliders="6"] article {
    width: 16.66%;
}

#slides[data-sliders="7"] .inner {
    width: 700%;
}

#slides[data-sliders="7"] article {
    width: 14.28%;
}

#slides[data-sliders="8"] .inner {
    width: 800%;
}

#slides[data-sliders="8"] article {
    width: 12.5%;
}

#slides[data-sliders="9"] .inner {
    width: 900%;
}

#slides[data-sliders="9"] article {
    width: 11.11%;
}

#slides[data-sliders="10"] .inner {
    width: 1000%;
}

#slides[data-sliders="10"] article {
    width: 10%;
}

/** max 5 images **/

/* Slider Styling */

/* Control Setup */

#controls {
    margin: 0;
    width: 100%;
    position: absolute;
    top: 50%;
    margin-top: -15px;
    left: 0;
    height: 0px;
}

#controls label {
    display: none;
    width: 50px;
    height: 50px;
    opacity: 0.6;
    background-size: contain !important;
    cursor: pointer;
}

#active {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-flow: column;
    justify-content: center;
    -webkit-justify-content: center;
}

#active label {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #bbb;
}

#active label:hover {
    background: #ccc;
    border-color: #777 !important;
}

#active label img {
    max-width: 100%;
    max-height: 100%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#active.slider-thumbnail label {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    display: inline-block;
    width: 90px;
    height: 90px;
    background: transparent;
    margin: 15px 5px;
    border: 1px solid transparent;
    padding: 3px;
    cursor: pointer;
}

#active.slider-thumbnail label:hover {
    background: transparent;
}

#controls {
    padding: 0px 20px;
}
#controls label{
    background-position:center center;
    background-repeat:no-repeat
}
#controls label:hover {
    opacity: 1;
}

#autoplay:checked ~ #slides #controls label:nth-child(1),
#slide0:checked ~ #slides #controls label:nth-child(2),
#slide1:checked ~ #slides #controls label:nth-child(3),
#slide2:checked ~ #slides #controls label:nth-child(4),
#slide3:checked ~ #slides #controls label:nth-child(5),
#slide4:checked ~ #slides #controls label:nth-child(6),
#slide5:checked ~ #slides #controls label:nth-child(7),
#slide6:checked ~ #slides #controls label:nth-child(8),
#slide7:checked ~ #slides #controls label:nth-child(9),
#slide8:checked ~ #slides #controls label:nth-child(10),
#slide9:checked ~ #slides #controls label:nth-child(1) {
    background-image:url('../img/next.png');
    float: right;
    display: block;
}

#autoplay:checked ~ #slides #controls label:nth-child(5),
#slide0:checked ~ #slides #controls label:nth-child(10),
#slide1:checked ~ #slides #controls label:nth-child(1),
#slide2:checked ~ #slides #controls label:nth-child(2),
#slide3:checked ~ #slides #controls label:nth-child(3),
#slide4:checked ~ #slides #controls label:nth-child(4),
#slide5:checked ~ #slides #controls label:nth-child(5),
#slide6:checked ~ #slides #controls label:nth-child(6),
#slide7:checked ~ #slides #controls label:nth-child(7),
#slide8:checked ~ #slides #controls label:nth-child(8),
#slide9:checked ~ #slides #controls label:nth-child(9) {
    background-image: url('../img/prev.png');
    float: left;
    display: block;
}

#slide0:checked ~ #active label:nth-child(1),
#slide1:checked ~ #active label:nth-child(2),
#slide2:checked ~ #active label:nth-child(3),
#slide3:checked ~ #active label:nth-child(4),
#slide4:checked ~ #active label:nth-child(5),
#slide5:checked ~ #active label:nth-child(6),
#slide6:checked ~ #active label:nth-child(7),
#slide7:checked ~ #active label:nth-child(8),
#slide8:checked ~ #active label:nth-child(9),
#slide9:checked ~ #active label:nth-child(10) {
    background: #333;
    border-color: #333 !important;
}

#slide0:checked ~ #active.slider-thumbnail label:nth-child(1),
#slide1:checked ~ #active.slider-thumbnail label:nth-child(2),
#slide2:checked ~ #active.slider-thumbnail label:nth-child(3),
#slide3:checked ~ #active.slider-thumbnail label:nth-child(4),
#slide4:checked ~ #active.slider-thumbnail label:nth-child(5),
#slide5:checked ~ #active.slider-thumbnail label:nth-child(6),
#slide6:checked ~ #active.slider-thumbnail label:nth-child(7),
#slide7:checked ~ #active.slider-thumbnail label:nth-child(8),
#slide8:checked ~ #active.slider-thumbnail label:nth-child(9),
#slide9:checked ~ #active.slider-thumbnail label:nth-child(10) {
    background: transparent;
    border-color: #aaaaaa !important;
}

/* Info Box
.info {
    line-height: 20px;
    margin: 0 0 -150%;
    position: absolute;
    font-style: italic;
    padding: 30px 30px;
    opacity: 0;
    color: #000;
    text-align: left;
}

.info h3 {
    color: #333;
    margin: 0 0 5px;
    font-weight: normal;
    font-size: 22px;
    font-style: normal;
}
*/
/* Slider Styling */
/* Animation */

#slides .inner {
    -webkit-transform: translateZ(0);
    -webkit-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
    -moz-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
    -ms-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
    -o-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
    transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */

    -webkit-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000);
    -moz-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000);
    -ms-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000);
    -o-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000);
    transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */
}

#slider {
    -webkit-transform: translateZ(0);
    -webkit-transition: all 0.5s ease-out;
    -moz-transition: all 0.5s ease-out;
    -o-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
}

#controls label {
    -webkit-transform: translateZ(0);
    -webkit-transition: opacity 0.2s ease-out;
    -moz-transition: opacity 0.2s ease-out;
    -o-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
}

.info, #controls, #slides, #active, #active label, .info h3, .desktop, .tablet, .mobile {
    -webkit-transform: translateZ(0);
    -webkit-transition: all 0.5s ease-out;
    -moz-transition: all 0.5s ease-out;
    -o-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
}

/* Lightbox
------------------------------------------------------------------------*/
#lightbox-close {
    display: none;
    height: 30px;
    width: 30px;
    font-size: 16px;
    font-weight: bold;
    line-height: 30px;
    background-color: #333;
    color: #fff;
    right: 0px;
    position: absolute;
    z-index: 1;
    text-align: center;
}

@media (min-width: 480px) {
    #lightbox ~ .main-content #slides article img {
        cursor: pointer;
    }

    #lightbox:checked ~ .main-content {
        margin-top: 10px;
        padding: 0px;
    }

    #lightbox:checked ~ .main-content #lightbox-close {
        display: block;
        cursor: pointer;
    }

    #lightbox:checked ~ .main-content .lightbox-show {
        -webkit-animation-name: slideFull;
        animation-name: slideFull;
        -webkit-animation-duration: .8s;
        animation-duration: .8s;
        -webkit-animation-fill-mode: both;
        animation-fill-mode: both;
        border: 30px solid #333;
    }
    #lightbox:checked ~ .main-content #slider{
        display: block;
    }

    #lightbox:checked ~ .main-content #slides article {
        height: auto;
        /*
        -webkit-animation-name: increaseHeight;
        animation-name: increaseHeight;
        */
        -webkit-animation-duration: 1s;
        animation-duration: 1s;
        -webkit-animation-fill-mode: both;
        animation-fill-mode: both;
    }

    #lightbox:checked ~ .main-content #slides article img {
        max-height: inherit;
        min-width: 60%;
        top: inherit;
        transform: translateY(0);
    }

    #lightbox:checked ~ .main-content #active{
        display: block;
    }

    #lightbox:checked ~ .main-content .lightbox-off {
        display: none;
    }
}

@media (max-width: 767px) {
    #lightbox:checked ~ .main-content .lightbox-show {
        border: 0 none;
    }
    #slides article {
        min-height: inherit;
        padding: 0 5px;
    }
}

@keyframes slideFull {
    to {
        width: 100%;
    }
}

@keyframes increaseHeight {
    to {
        height: auto;
    }
}

/* Carousel
------------------------------------------------------------------------*/

.carousel {
    position: relative;
}

.carousel .overflow {
    overflow: hidden;
    position: relative;
    height: 100%;
    width: 100%;
    box-shadow: 0px 0px 10px #ccc;
    background-color: #ccc;
}

.carousel-items {
    position: relative;
    height: 100%;
    -webkit-transform: translateZ(0);
    -webkit-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
    -moz-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
    -ms-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
    -o-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
    transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */

    -webkit-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000);
    -moz-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000);
    -ms-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000);
    -o-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000);
    transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */
}

.carousel-items[data-items="1"]{
    width: 100%;
}
.carousel-items[data-items="2"]{
    width: 200%;
}
.carousel-items[data-items="3"]{
    width: 300%;
}
.carousel-items[data-items="4"]{
    width: 400%;
}
.carousel-items[data-items="5"]{
    width: 500%;
}
.carousel-items[data-items="6"]{
    width: 600%;
}
.carousel-items[data-items="7"]{
    width: 700%;
}
.carousel-items[data-items="8"]{
    width: 800%;
}
.carousel-items[data-items="9"]{
    width: 900%;
}
.carousel-items[data-items="10"]{
    width: 1000%;
}

.carousel-item {
    position: relative;
    height: 100%;
    float: left;
    display: block;
    background-position: center center;
    background-size: cover;
    min-height: 320px;
}

.carousel-item img{
    width: 100%;
    padding: 0;
    margin: 0;
}

.carousel-items[data-items="1"] .carousel-item{
    width: 100%;
}
.carousel-items[data-items="2"] .carousel-item{
    width: 50%;
}
.carousel-items[data-items="3"] .carousel-item{
    width: 33.33%;
}
.carousel-items[data-items="4"] .carousel-item{
    width: 25%;
}
.carousel-items[data-items="5"] .carousel-item{
    width: 20%;
}
.carousel-items[data-items="6"] .carousel-item{
    width: 16.66%;
}
.carousel-items[data-items="7"] .carousel-item{
    width: 14.28%;
}
.carousel-items[data-items="8"] .carousel-item{
    width: 12.5%;
}
.carousel-items[data-items="9"] .carousel-item{
    width: 11.11%;
}
.carousel-items[data-items="10"] .carousel-item{
    width: 10%;
}

.carousel #carousel1:checked ~ .overflow .carousel-items {
    margin-left: 0%;
}
.carousel #carousel2:checked ~ .overflow .carousel-items {
    margin-left: -100%;
}
.carousel #carousel3:checked ~ .overflow .carousel-items {
    margin-left: -200%;
}
.carousel #carousel4:checked ~ .overflow .carousel-items {
    margin-left: -300%;
}
.carousel #carousel5:checked ~ .overflow .carousel-items {
    margin-left: -400%;
}
.carousel #carousel6:checked ~ .overflow .carousel-items {
    margin-left: -500%;
}
.carousel #carousel7:checked ~ .overflow .carousel-items {
    margin-left: -600%;
}
.carousel #carousel8:checked ~ .overflow .carousel-items {
    margin-left: -700%;
}
.carousel #carousel9:checked ~ .overflow .carousel-items {
    margin-left: -800%;
}
.carousel #carousel10:checked ~ .overflow .carousel-items {
    margin-left: -900%;
}


.carousel .control-prev,
.carousel .control-next {
    position: absolute;
    top: 50%;
    background-repeat: no-repeat;
    background-position: center;
    height: 60px;
    width: 60px;
    margin-top: -25px;
    cursor: pointer;
    opacity: 0.6;
}

.carousel .control-prev {
    background-image: url('../img/prev.png');
    left: 0;
}

.carousel .control-next {
    background-image: url('../img/next.png');
    right: 0;
}

.carousel .control-prev:hover,
.carousel .control-next:hover {
    opacity: 1 !important;
}

/* autoplay */
.carousel #carousel1:checked ~ .overflow .carousel-items,
.carousel #carousel2:checked ~ .overflow .carousel-items,
.carousel #carousel3:checked ~ .overflow .carousel-items,
.carousel #carousel4:checked ~ .overflow .carousel-items,
.carousel #carousel5:checked ~ .overflow .carousel-items,
.carousel #carousel6:checked ~ .overflow .carousel-items,
.carousel #carousel7:checked ~ .overflow .carousel-items,
.carousel #carousel8:checked ~ .overflow .carousel-items,
.carousel #carousel9:checked ~ .overflow .carousel-items,
.carousel #carousel10:checked ~ .overflow .carousel-items{
    -webkit-animation: none;
    -moz-animation: none;
    animation: none;
}

input#autoplay:checked ~ .overflow .carousel-items {
    -webkit-animation: carouselSlide 25s infinite;
    -moz-animation: carouselSlide 25s infinite;
    animation: carouselSlide 25s infinite;
}



.pause, .autoplay{
    position: absolute;
    bottom: 0px;
    right: 0px;
    background-color: #000000;
    color: #ffffff;
    padding: 5px 10px;
    line-height: 1;
    font-size: 12px;
    cursor: pointer;
    display: block;
}
/*
input#autoplay:checked ~ .overflow .carousel-items label{
    opacity: 0 !important;
}
*/
input#autoplay:checked ~ .overflow .pause{
    display: block;
}
input#autoplay:checked ~ .overflow .autoplay{
    display: none;
}


@-webkit-keyframes carouselSlide {
    0%, 5% {
        transform: translateX(0);
    }
    5%,19%{
        transform: translateX(0);
    }
    20%,25%{
        transform: translateX(-20%);
    }
    26%,39%{
        transform: translateX(-20%);
    }
    40%, 45% {
        transform: translateX(-40%);
    }
    46%,59%{
        transform: translateX(-40%);
    }
    60%, 65% {
        transform: translateX(-60%);
    }
    66%,79%{
        transform: translateX(-60%);
    }
    80%, 85% {
        transform: translateX(-80%);
    }
    86%,99%{
        transform: translateX(-80%);
    }
}
/*
@-moz-keyframes carouselSlide {
    0%, 5% {
        margin-left: 0;
    }
    5%,19%{
        margin-left: 0;
    }
    20%,25%{
        margin-left: -100%;
    }
    26%,39%{
        margin-left: -100%;
    }
    40%, 45% {
        margin-left: -200%;
    }
    46%,59%{
        margin-left: -200%;
    }
    60%, 65% {
        margin-left: -300%;
    }
    66%,79%{
        margin-left: -300%;
    }
    80%, 85% {
        margin-left: -400%;
    }
    86%,99%{
        margin-left: -400%;
    }
}

@keyframes carouselSlide {
    0%, 5% {
        margin-left: 0;
    }
    5%,19%{
        margin-left: 0;
    }
    20%,25%{
        margin-left: -100%;
    }
    26%,39%{
        margin-left: -100%;
    }
    40%, 45% {
        margin-left: -200%;
    }
    46%,59%{
        margin-left: -200%;
    }
    60%, 65% {
        margin-left: -300%;
    }
    66%,79%{
        margin-left: -300%;
    }
    80%, 85% {
        margin-left: -400%;
    }
    86%,99%{
        margin-left: -400%;
    }
}


/* Responsive Styling */
@media (max-width: 1280px) {
    #controls {
        padding: 0px;
    }

    .banner #controls {
        padding: 0px 10px;
    }
}

@media (max-width: 991px) {
    #slider{
        display: block;
    }
    #active{
        display: block;
    }
    #active.slider-thumbnail label{
        height: 70px;
        width: 60px;
        margin-bottom: 10px;
    }
    /*-- banner --*/
    .banner {
        margin: 0px;
        flex-flow: column;
    }

    .banner #slider {
        flex: 1 100%;
    }

    .banner #promote {
        flex: 1 100%;
        margin: 0px -5px 0px -5px;
        padding: 10px 0px 0px 0px;
        flex-direction: row;
    }

    .banner #promote .promote-item {
        flex: 1 50%;
        margin: 0px 5px 0px 5px;
    }

    .banner #promote .promote-item img {
        display: block;
    }
}

@media only screen and (max-width: 850px) and (min-width: 450px) {
    /*
    #slides article {
        height: 300px
    }


    @keyframes increaseHeight {
        to {
            height: 400px;
        }
    }
    */
}

@media (max-width: 767px) {

}

@media only screen and (max-width: 480px) {
    #slides article {
        min-height: 250px
    }

    @keyframes increaseHeight {
        to {
            height: 350px;
        }
    }

}

@media only screen and (max-width: 320px) {

}
