/*.preview-overlay {*/
/*    height: 100vh;*/
/*    width: 100vh;*/
/*    z-index: 1000;*/
/*}*/

.insideview {
    background-color: #222222;
    color: #ffffff;
    position: fixed;
    z-index: 9999;
}

.insideview-header {
    left: 0;
    top: 0;
    right: 0;
    height: 40px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;   
}

.insideview-body {
    left: 0;
    top: 40px;
    right: 0;
    bottom: 0;
    /*display: flex;*/
    
}
.preview-page-container {
   
    min-height: 100%;
    width: auto;    
    max-height: 95vh !important;
    min-width: 50%;
    max-width: 50%;
}


.slide-container {
    height: 90vh;
    max-height: 90vh !important;
}


.preview-page {
    background-size: contain;
    background-repeat: no-repeat;
    min-height: 100%;
    height: inherit;
    object-fit: contain;    
    width: 100%;
}

.book-element:nth-child(even) {
    justify-content: left;
}
.book-element:nth-child(odd) {
    justify-content: right;
}

.book-element:nth-child(even)  .preview-page {
    object-position: left;
}
.book-element:nth-child(odd)  .preview-page {
    object-position: right;
}

/*.lSAction > a {*/
/*    border-radius: 50%;*/
/*    background-color: darkgrey;   */
/*}*/
/*.lSAction > .lSPrev {*/
/*    background-position: 1px 0 !important;*/
/*}*/
/*.lSAction > .lSNext {*/
/*    background-position: -33px 0 !important;*/
/*}*/
@media (max-width: 1800px) {
    .preview-page-container {
        max-width: 80%;
    }
}

@media (max-width: 767.98px) {

    .insideview-body {
        left: 0;
        top: 40px;
        right: 0;
        bottom: 0;
        overflow-y: auto;
       // flex-direction: column;
    }
    

    /*.preview-page {*/
    /*    min-width: 100%;*/
    /*    max-width: 100%;*/
    /*    min-height: 100%;*/
    /*    max-height: 100%;*/
    /*    margin-bottom: 20px;*/
    /*}*/

    .left-page {
        background-position: center;
    }

    .right-page {
        background-position: center;
    }

    .page-invisible {
        display: inherit;
    }

    .first-page, .last-page {
        display: none;
    }

    .nav-bar {
        display: none;
    }
}


@media (min-width: 768px) {

    .insideview-body {
        left: 0;
        top: 40px;
        right: 0;
        bottom: 0;
        flex-direction: row;
    }

    /*.preview-page {*/
    /*    min-width: 50%;*/
    /*    max-width: 50%;*/
    /*    min-height: 100%;*/
    /*    max-height: 100%;*/
    /*}*/

    .left-page {
        background-position: right;
        filter: drop-shadow(0 0 8px #c0c0c0)
    }

    .right-page {
        background-position: left;
    }

    .page-invisible {
        display: none;
    }

    .nav-bar {
        position: fixed;
        top: 20px;
        width: 55px;
        bottom: 0;
        margin: 24px;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .nav-bar-left {
        left: 0;
    }

    .nav-bar-right {
        right: 0;
    }
}