/*
Conteneur principal
*/
.liteBox-container {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 5000;
}

.liteBox-container.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.liteBox-container.overflow {

    height: 100%;
}

/*
Fond de la lightbox
*/
.liteBox-container .liteBox-bg {
    background-color: rgba(0, 0, 0, 0.95);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

/*
Conteneur de l'image de la lightbox
*/
.liteBox-container .liteBox-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}

.liteBox-image-container.overflow {
    overflow: auto;
    -ms-overflow-style: scrollbar;
    position: relative;
    width: 100vw;
    height: 100vh;
}

/*
Image de la lightbox
*/
.liteBox-container .liteBox-image {
    opacity: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.liteBox-container .liteBox-image.overflowable {
    cursor: zoom-in;
}

.liteBox-container .liteBox-image.overflow:hover {
    cursor: zoom-out;
}

.liteBox-container .liteBox-image.landscape {
    max-width: 100vw;
    height: auto;
}

.liteBox-container .liteBox-image.landscape.overflow {
    max-width: none;
}

.liteBox-container .liteBox-image.portrait {
    max-height: 100vh;
    width: auto;
}

.liteBox-container .liteBox-image.portrait.overflow {
    max-height: none;
}


.liteBox-container .liteBox-image.loaded {
    animation: loaded .5s forwards;
}

@keyframes loaded {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/*
Flèches de la lightbox
*/
.liteBox-container .liteBox-arrow {
    width: 0;
    height: 0;
    position: fixed;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.liteBox-container .liteBox-left-arrow {
    border-right: 20px solid #fff;
    left: 2rem;
}

.liteBox-container .liteBox-right-arrow {
    border-left: 20px solid #fff;
    right: 2rem;
}

.liteBox-container .liteBox-left-arrow:hover {
    border-right: 20px solid #333;
}

.liteBox-container .liteBox-right-arrow:hover {
    border-left: 20px solid #333;
}



.liteBox-container.visible .liteBox-left-arrow {
    animation: slideinleftarrow .25s forwards;
}

.liteBox-container.visible.overflow .liteBox-arrow {
    opacity: 0;
}

@keyframes slideinleftarrow {
    0% {
        left: -5rem;
    }

    100% {
        left: 2rem;
    }
}

.liteBox-container.visible .liteBox-right-arrow {
    animation: slideinrightarrow .25s forwards;
}

@keyframes slideinrightarrow {
    0% {
        right: -5rem;
    }

    100% {
        right: 2rem;
    }
}

/*
Bouton pour fermer la lightbox
*/
.liteBox-container .liteBox-close {
    width: 1rem;
    height: 1rem;
    position: fixed;
    right: 2rem;
    top: 2rem;
    cursor: pointer;
}

.liteBox-container.overflow .liteBox-close {
    right: 2.5rem;
}

.liteBox-container .liteBox-close:before,
.liteBox-container .liteBox-close:after {
    content: '';
    position: absolute;
    height: 4px;
    width: 100%;
    top: 50%;
    left: 0;
    margin-top: -1px;
    background: #fff;

}

.liteBox-container .liteBox-close:hover:before,
.liteBox-container .liteBox-close:hover:after {
    background: #333;
}

.liteBox-container .liteBox-close:before {
    transform: rotate(45deg) scale(2);
}

.liteBox-container .liteBox-close:after {
    transform: rotate(-45deg) scale(2);
}

/*
Description de la lightbox
*/
.liteBox-container .liteBox-description {
    border: 1px solid #fcfcfc;
    border-radius: 5px;
    position: fixed;
    bottom: 1rem;
    text-align: center;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 8px 6px -6px #000;
    color: #333;
}


.liteBox-container.visible .liteBox-description {
    animation: slideindescription .25s forwards;
}

.liteBox-container.visible.overflow .liteBox-description {
    opacity: 0;
}



@keyframes slideindescription {
    0% {
        bottom: -5rem;
    }

    100% {
        bottom: 1rem;
    }
}

/*
css loading spinner (http://tobiasahlin.com/spinkit/)
*/
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: none;
}

.spinner>div {
    width: 18px;
    height: 18px;
    background-color: #fff;

    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {

    0%,
    80%,
    100% {
        -webkit-transform: scale(0)
    }

    40% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes sk-bouncedelay {

    0%,
    80%,
    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}

@media all and (max-width: 700px) {
    .liteBox-container .liteBox-image.landscape.overflow {

        max-height: none;
    }


    .liteBox-container .liteBox-image.portrait.overflow {

        max-width: none;

    }

    .liteBox-container .liteBox-arrow {
        opacity: 0.5;
        border-top: 35px solid transparent;
        border-bottom: 35px solid transparent;
    }

    .liteBox-container .liteBox-left-arrow {
        border-right: 30px solid #fff;
    }

    .liteBox-container .liteBox-right-arrow {
        border-left: 30px solid #fff;
    }

    .liteBox-container .liteBox-left-arrow:hover,
    .liteBox-container .liteBox-left-arrow:focus,
    .liteBox-container .liteBox-left-arrow:active {
        border-right: 30px solid #fff !important;
        opacity: 1;
        outline: 0;
    }

    .liteBox-container .liteBox-right-arrow:hover,
    .liteBox-container .liteBox-right-arrow:focus,
    .liteBox-container .liteBox-right-arrow:active {
        border-left: 30px solid #fff !important;
        opacity: 1;
        outline: 0;
    }

    .liteBox-container .liteBox-close:before {
        transform: rotate(45deg) scale(3);
    }

    .liteBox-container .liteBox-close:after {
        transform: rotate(-45deg) scale(3);
    }
}

@media all and (max-width: 450px) {
    .liteBox-container .liteBox-description {
        min-width: 50vw;

    }
}

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {


    .liteBox-container .liteBox-description {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .liteBox-container .liteBox-image.overflowable {
        cursor: all-scroll;
    }

    .liteBox-container .liteBox-image.overflow:hover {
        cursor: all-scroll;
    }


}