﻿/* slideshow */
#slideshow {
    min-height: 100%;
    background-color: rgba(0,0,0,.5);
}

/*---Use for slideshow 2.8.0 and after---*/
/*----for fixed width and fixed height slideshow------*/
/*#slideshow {
    height: 720px;
    width: 1280px;
    margin: 0 auto;
}
*/
/*---------for cover background image slideshow---------*/
#slideshow {
    width: 100%;
    height: 100vh;
}

@media screen and (max-width:1050px) {
    #slideshow {
        min-height: 0vh;
        height: calc(100% - 6rem);
    }
}

@media screen and (min-width:1051px) and (max-height:800px) {
    #slideshow {
        min-height: 840px;
    }
}

/*-----Global slideshow styles------*/

#slideshow {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.slideshow {
    position: relative;
    width: 100%;
    text-indent: -5000px;
}

@media screen and (max-width:1050px) {
    .slideshow {
        height: calc(100vh - 72px);
    }
}

@media screen and (min-width:1051px) {
    .slideshow {
        height: 100vh;
    }
}

@media screen and (min-width:1051px) {
    .slideshow:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        z-index: 100;
        height: 100%;
        width: 100%;
        /*background: linear-gradient(100deg, rgba(255,255,255,0) 0%,rgba(255,255,255,.85) 20%,rgba(255,255,255,.8) 30%,rgba(255,255,255,0) 50%), radial-gradient(rgba(210, 180, 140, 0) 0%,rgba(210, 180, 140, 0) 50%,rgba(210, 180, 140, .8) 100%);*/
        background-repeat: no-repeat;
    }
}

.slideshow .slide, .slideshow video {
    display: block;
    position: absolute;
    width: auto;
    height: auto;
    min-height: 100%;
    min-width: 100%;
    max-width: none;
    top: 0;
    left: 0;
    z-index: 1;
    border-width: 0px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    /*background-attachment: fixed;*/
    opacity: 1;
}

.csstransforms .slideshow .slide, .csstransforms .slideshow video {
    z-index: 1;
    display: block;
    transition: all .5s ease-in-out;
    -webkit-backface-visibility: hidden;
}

    .csstransforms .slideshow .slide.active, .csstransforms .slideshow video.active {
        z-index: 2;
        visibility: visible;
    }

.Table-Slide {
    display: none;
}
/**************************/
/*Caption Container*/
.caption-container {
    position: absolute;
    box-sizing: border-box;
    top: 19vh;
    width: 100%;
    min-height: calc(100vh - 19vh);
    text-indent: 0;
    overflow: hidden;
    display: block;
    z-index: 500;
    -webkit-backface-visibility: hidden;
}

@media only screen and (min-width:1051px) and (max-height:800px) {
    .caption-container {
        top: 150px;
    }
}

@media screen and (min-width: 1051px) {
    .caption-container {
        left: 0;
    }
}

@media screen and (max-width: 480px) {
    .caption-container {
        top: 12vh;
    }
}

/* ---Use these two rules for captions that slide in and out--*/

.csstransforms .captionInActive {
    left: -1000px;
    transition: all 0.5s ease-in-out;
}

.csstransforms .captionActive {
    left: 0px;
    transition: all 1s ease-in-out;
}

/*---Use these two rules for captions that fade in and out--*/
.csstransforms .captionInActive {
    opacity: 0;
    transition: all .8s ease-in-out;
    -webkit-backface-visibility: hidden;
    transition-delay: .5s;
}

.csstransforms .captionActive {
    opacity: 1;
    z-index: 100;
    transition: all .8s ease-in-out;
    -webkit-backface-visibility: hidden;
    transition-delay: .5s;
}

.caption-container div.caption {
    position: absolute;
    top: 40px;
    border-collapse: collapse;
    width: 23%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 5px 5px 15px 15px;
    padding: 2rem;
}

@media screen and (max-width: 480px) {
    .caption-container div.caption {
        top: 32vh;
        width: 100%;
        padding: 5vw;
    }
}

@media screen and (min-width: 481px) and (max-width: 640px) {
    .caption-container div.caption {
        width: calc(100% - 50%);
        padding: 5vw;
    }
}

@media screen and (min-width: 641px) and (max-width: 1050px) {
    .caption-container div.caption {
        width: calc(100% - 66%);
        padding: 5vw;
    }
}

.caption-container div.caption > * {
    text-align: right;
}

.slideshow-container-controls {
    position: absolute;
    height: 1.5rem;
    bottom: 360px;
    left: 5%;
    z-index: 750;
    overflow: visible;
    text-align: center;
}

@media only screen and (max-width:1050px) {
    .slideshow-container-controls {
        bottom: 40px;
        left: auto;
        right: 5%;
    }
}

@media only screen and (min-width:1051px) and (max-width:1340px) {
    .slideshow-container-controls {
        left: 0 !important;
        margin-left: 0px !important;
        width: 100% !important;
        text-align: center;
    }
}

@media only screen and (min-width:1051px) {
    .slideshow-container-controls {
        /*bottom: 360px;*/
        bottom: 150px;
        left: 50%;
        /*margin-left: -685px;*/
        margin-left: -130px;
        width: 16%;
        box-sizing: border-box;
    }
}

.slideshow-container-controls div {
    cursor: pointer;
    height: 1.25rem;
    width: 1.25rem;
    line-height: 1.25rem;
    margin: .25rem;
    display: inline-block;
}

    .slideshow-container-controls div img {
        cursor: pointer;
        height: 1.25rem;
        border-collapse: collapse;
        border-width: 0px;
        float: left;
        margin: 0px 0px 0px -60px;
    }

    .slideshow-container-controls div a {
        display: block;
        height: 1.25rem;
        width: 1.25rem;
        line-height: 1.25rem;
        overflow: hidden;
        text-decoration: none;
        background-color: rgba(0, 0, 0, 0.35);
        color: #fff;
        text-align: center;
        border-radius: 500px;
        font-size: .5rem;
        text-indent: -0px;
        text-indent: -10rem;
    }

.csstransitions .slideshow-container-controls div a, .csstransitions .slideshow-container-controls div:after {
    transition: all .2s ease-in-out;
}

.slideshow-container-controls div a:hover {
    background-color: rgba(0,0,0, 1) !important;
    color: #fff !important;
}

.slideshow-container-controls div a .numeric-index {
    display: block;
}

.toc-active a {
    background-color: rgba(226, 38, 42, 1) !important;
    color: #666 !important;
}

/** Slide transitions **
/** Add the '/' after the line with the title to enable the transition **

/** fade **/
.csstransforms .slideshow .slide, .csstransforms .slideshow video {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .csstransforms .slideshow .slide.active, .csstransforms .slideshow video.active {
        opacity: 1;
    }

/*----------Responsive styles ---------------*/

/*CSS Cover Fix:*/
@media screen and (min-aspect-ratio: 16/9) {
    .slideshow video {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: auto;
    }
}

@media screen and (max-aspect-ratio: 16/9) {
    .slideshow video {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        height: 100%;
    }
}

@media screen and (min-aspect-ratio: 1920/770) {
    .slideshow img {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: auto;
    }
}

@media screen and (max-aspect-ratio: 1920/770) {
    .slideshow img {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        height: 100%;
    }
}

@supports (object-fit: cover) {
    .slideshow {
        width: auto;
    }

        .slideshow img, .slideshow video {
            top: 0;
            left: 0;
            transform: none;
            width: auto;
            height: 100%;
            object-fit: cover;
            object-position: 50% 50%;
            overflow: hidden;
        }
}
