/* Viewer.js CSS - 图片查看器 */
.viewer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: -;
    right: 0;
    overflow: hidden;
    z-index: 99999;
    background-color: rgba(0,0,0,.8);
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    cursor: default;
    visibility: hidden;
}
.viewer.in {
    visibility: visible;
}
.viewer.out {
    visibility: hidden;
}
.viewer.navbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: rgba(0,0,0,.5);
    z-index: 1;
}
.viewer.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}
.viewer.image {
    position: absolute;top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    cursor: -webkit-grab;
    cursor: grab;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.viewer.image:active {
    cursor: -webkit-grabbing;
    cursor: grabbing;
}
.viewer.toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}
.viewer.button {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 0 2px;
    color: #fff;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    background-color: rgba(0,0,0,.5);
    cursor: pointer;
    border-radius: 4px;
}
.viewer.button:hover {
    background-color: rgba(0,0,0,.8);
}
.viewer.title {position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 80px);
    color: #fff;
    font-size: 14px;
    line-height: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: rgba(0,0,0,.5);
    padding: 0 10px;
    border-radius: 4px;
}
.viewer.zoomable {
    cursor: -webkit-zoom-in;
    cursor: zoom-in;
}
.viewer.zooming {
    cursor: -webkit-zoom-out;
    cursor: zoom-out;
}
.viewer.transition {
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}
.viewer.hidden {
    opacity: 0;
}
.viewer.visible {
    opacity: 1;
}