/**
 * Created by Michal on 10.2.2017.
 * for http://www.webnaut.cz/
 */
@font-face {
    font-family: 'Arrows'; /* deklarace fontu */
    src: url("./fonts/Arrows2.ttf"); /* propojení na umístění souboru */
}
.arrows {
    font-family: 'Arrows';
}
#sidebar_gallery {
    position:relative;
    z-index: 999999;
}
#sidebar_gallery_bg, #sidebar_gallery_html {
    z-index: 99999;
}
#sidebar_gallery_bg {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.7);
    width: 100%;
    height: 100%;
}
#sidebar_gallery_html {
    position: fixed;
    top: 0;
    left: 5%;
    width: 90%;
}
#sidebar_gallery_main {
    width:300%;
    margin-left: -100%;
    height: calc(95vh - 40px);
    display:table;
}
#sidebar_gallery_main .item {
    width: 33.33%;
    vertical-align: middle;
    display: table-cell;
    height: 100%;
}
#sidebar_gallery_main, #sidebar_gallery_main img {
    line-height:0;
}
#sidebar_gallery_header {
    display: table;
    height: 40px;
    width: 100%;
    position:relative;
    margin: 5px 0;
}
#sidebar_gallery_title, #sidebar_gallery_close {
    display: table-cell;
    vertical-align: middle;
    color:#fff;
}
#sidebar_gallery_close {
    width: 100px;
    padding-right: 40px;
    text-align: right;
    cursor:pointer;
}
#sidebar_gallery_close:before, #sidebar_gallery_close:after {
    width: 30px;
    height: 2px;
    top: 50%;
    content: '';
    position: absolute;
    right: 0;
    margin-top: -1px;
    transform: rotate(45deg);
    background: #fff;
}
#sidebar_gallery_close:after {
    transform: rotate(-45deg);
}
#sidebar_gallery_body {
    position:relative;
    display:table;
    width:100%;
    height:95vh;
    height: calc(95vh - 40px);
    background-color: #fff;
}
#sidebar_gallery_sidebar li {
    display:inline-block;
    list-style:none;
    margin:2%;
    line-height: 0;
    width:46%;
    padding-bottom:46%;
    position:relative;
}
#sidebar_gallery_sidebar li a img {
    border:2px solid transparent;
    box-sizing: border-box;
}
#sidebar_gallery_sidebar li:hover a img {
    border-color: #ff0000;
}
#sidebar_gallery_sidebar li.selected a img {
    border-color: #00ff00;
}
#sidebar_gallery_sidebar li a {
    position:absolute;
    top:0;
    left:0;
    border:none;
}
#sidebar_gallery_sidebar li a:hover {
    text-decoration: none;
}
#sidebar_gallery_sidebar li a, #sidebar_gallery_sidebar li img {
    padding:0;
    margin:0;
    line-height: 0;
    width:100%;
    height:100%;
    object-fit:cover;
}
#sidebar_gallery_body #sidebar_gallery_big, #sidebar_gallery_body #sidebar_gallery_sidebar {
    display:inline-block;
    vertical-align:top;
    position:relative;
    height:100%;
    height:95vh;
    height: calc(95vh - 40px);
    text-align: center;
}
#sidebar_gallery_body #sidebar_gallery_sidebar {
    padding:5px;
    width:200px;
    background-color: #9ec6e0;
    box-sizing:border-box;
    overflow:auto;
}
#sidebar_gallery_body #sidebar_gallery_big {
    overflow: hidden;
    vertical-align:middle;
    width: calc(100% - 200px);
    color:#ababab;
}
#sidebar_gallery_body #sidebar_gallery_big.full {
    width:100%;
}
#sidebar_gallery_body img {
    max-height:95vh;
    max-height: calc(95vh - 40px);
    max-width:100%;
}
#sidebar_gallery_prew, #sidebar_gallery_next {
    font-family: 'Arrows';
    position:absolute;
    cursor:pointer;
    height:100%;
    width:50%;
    left:0;
    top:0;
}
#sidebar_gallery_next {
    left:50%;
}
#sidebar_gallery_prew:before, #sidebar_gallery_next:before {
    content:'A';
    font-size:60px;
    position:absolute;
    top:50%;
    left:10px;
    margin-top:-30px;
    opacity:0.3;
    transition:opacity 0.2s;
}
#sidebar_gallery_next:before {
    content:'B';
    left:auto;
    right:10px;
}
#sidebar_gallery_prew:hover:before, #sidebar_gallery_next:hover:before {
    opacity: 0.95;
}
#sidebar_gallery_sidebar ul {
    padding: 0;
    margin: 0;
}

/*
        Selected classes
*/
.one_column #sidebar_gallery_body #sidebar_gallery_sidebar {
    width:100px;
}
.one_column #sidebar_gallery_body #sidebar_gallery_big {
    width: calc(100% - 100px);
}
.one_column #sidebar_gallery_sidebar li {
    margin: 4%;
    width: 92%;
    padding-bottom: 92%;
}
.arrow_1 #sidebar_gallery_prew:before {
    content: 'D';
}
.arrow_1 #sidebar_gallery_next:before {
    content: 'C';
}
.arrow_2 #sidebar_gallery_prew:before {
    content: 'F';
}
.arrow_2 #sidebar_gallery_next:before {
    content: 'E';
}
.arrow_3 #sidebar_gallery_prew:before {
    content: 'H';
}
.arrow_3 #sidebar_gallery_next:before {
    content: 'G';
}
.arrow_4 #sidebar_gallery_prew:before {
    content: 'J';
}
.arrow_4 #sidebar_gallery_next:before {
    content: 'I';
}
.arrow_5 #sidebar_gallery_prew:before {
    content: 'L';
}
.arrow_5 #sidebar_gallery_next:before {
    content: 'K';
}

/*
        Responziv
*/

@media screen and (max-width:767px){
    #sidebar_gallery_body #sidebar_gallery_sidebar, .one_column #sidebar_gallery_body #sidebar_gallery_sidebar {
        display:none;
    }
    #sidebar_gallery_body #sidebar_gallery_big, .one_column #sidebar_gallery_body #sidebar_gallery_big {
        width:100%;
    }
}
body.noScroll {
    overflow: hidden;
    width:100%;
}