html.fullscreen,
html.fullscreen body {
    overflow: hidden;
}

body {
    overflow-y: hidden;
}

html,
body {
    background: #000 !important;
}

* {
    margin: 0!important;
    padding: 0!important;
}
/*
.photo {
    width: auto;
    height: 100vh;
    min-height: 100vh;
}*/

li.dirimg.activ .fullWidth {
width: auto;
height: 100vh;
max-width: none;
min-height: auto;
min-width: none;
float: left;
}
/*
ul.dirimg {
    display: -webkit-flex;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    -webkit-flex-flow: row nowrap;
    -webkit-justify-content: space-between;
}
*/
.prev,
.next,
.close {
    display: none;
    z-index: 9999;
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 54px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
}

.next {
    text-align: right;
}

.close {
    text-align: center;
}

li.dirimg.activ .prev,
li.dirimg.activ .next,
.close.activ,
li.dirimg.activ .close {
    display: block;
    padding: 10px!important;
    border: 1px solid #000;
    border-width: 3px 1px 0 3px;
    background: #FFF;
}

.prev,
.next,
.close {
    cursor: pointer;
}

.next {
    bottom: 40px;
}

.prev {
    bottom: 80px;
}
/*
 ul#lister { display: flex;    
 
}*/
ul#lister {
overflow: visible;
display: flex;    
}
li.dirimg {
display: flex;
margin: 0;
padding: 0;
list-style: none;
-webkit-flex: auto;
width: auto !important;
float: none;
flex-direction: row;
height: 100vh !important;
}

 .photo[src*="-hide"] {display: none;}

/*.photo:not([src*=".gif"]) {cursor: pointer;}*/

li.dirimg .photo {
    cursor: pointer;
border: 0;
height: 100vh !important;
width: auto !important;
}

.photo[src*="-little"] {
    display: block;
    z-index: 3;
}

li.dirimg.activ {
    content: ' ';
    display: block;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw!important;
    min-height: 100vh!important;
    background: rgba(0, 0, 0, 0.94) none repeat scroll 0% 0%;
}

ul:not(#lister) li.dirimg.activ img,
ul:not(#lister) li.dirimg.activ div.exif {
    z-index: 30;
    position: fixed;
    top: 0;
    left: 0;
    margin: auto;
}

li.dirimg.activ img {
    cursor: move;
}

li.dirimg img[src*=".gif"] + div.exif > .exif-display {
    display: none!important;
}

div.exif > .exif-name {
    font-weight: bold;
}

li.dirimg div.exif {
    display: none;
    word-wrap: none;
}

li.dirimg.activ div.exif {
    right: 0;
    left: auto;
    width: 100%;
    width: 20vw;
padding: 20px !important;
min-width: 240px;
max-width: 240px;
    font-size: 13px;
    line-height: 17px;
    background: #FFF;
     position: fixed;
}

li.dirimg .exif {
    top: -400px;
    box-sizing: border-box;
    height: 0!important;
    padding: 0!important;
    border-right: 1px solid #000;
}

li.dirimg.activ .exif {
    display: block!important;
    top: 0;
    box-sizing: border-box;
    width: 150%;
    height: auto!important;
    padding: 10px!important;
}

li.dirimg.activ img:hover + .exif {
    opacity: 0!important;
}

li.dirimg.activ.end,
li.dirimg.activ.not {
    visibility: hidden!important;
    z-index: 0;
}

/*li.dirimg.last.activ .next {display: none!important;} 
*/

/*li.dirimg.activ img.ondrag + div, li.dirimg.activ img + div:hover { background: #000 !important; display: none!important;}*/

li.dirimg.activ img.ondrag {
    visibility: hidden;
}

li.dirimg.activ img.fullWidth.dragged {
width: auto !important;
height: auto !important;
max-width: 80vw !important; 
min-width: 50vw;
min-height: none !important;
}

li.dirimg.activ img.ondragnot + div {
    display: block!important;
    background: #FFF !important;
}

/*span.name:first-letter {text-transform: capitalize!important;}*/

li.number {
    counter-increment: number;
}

.count,
li .next:after {
    font-size: 12px;
}

.count {
    display: none;
}

li .next:after {
    content: counter(number) " sur ";
    z-index: 999999;
    position: fixed;
    right: 16px;
    bottom: 120px;
    padding: 6px;
    padding-right: 10px;
    border: 3px solid #000;
    border-right-width: 0;
    vertical-align: text-top;
    color: #000;
    background: #FFF;
}

ul .count:after {
    content: counter(number);
    display: none;
    z-index: 999998;
    position: fixed;
    right: 0;
    bottom: 120px;
    padding: 6px;
    padding-left: 0;
    border: 3px solid #000;
    border-width: 3px 1px 3px 0;
    vertical-align: text-top;
    color: #000;
    background: #FFF;
}

ul .close:hover ~ .count:after,
ul li.activ:hover ~ .count:after {
    content: counter(number);
    display: block;
}

ul .count.activ:after,
.count.activ {
    display: block;
}