@import "base/variables";

/* Tools */
@import "tools/mixin";
// @import "tools/fonts";
@import "tools/media";

/* Base */
@import "base/normalize";
@import "base/base";

/* Layout */
@import "layout/topbar";
@import "layout/header";
@import "layout/footer";

/* Modules */
// @import "modules/form";
// @import "modules/list";
// @import "modules/piclist";
// @import "modules/table";
// @import "modules/button";
// @import "modules/single";
// @import "modules/toggle";

/* Components */
// @import "components/dropmenu";
// @import "components/panel";
@import "components/scrolltop";
@import "components/slider";
// @import "components/tab";
@import "components/pop";


/* S iconfont */
@font-face {
    @include font-face-custom(iconfont);
}

.iconfont-custom {
    @include font-custom(iconfont);
}

/* S Other */
body, html{
    width: 100%;
    height: 100%;
}
.m-img__wrap {
    height: 100%;
    background: #000;
    overflow:hidden;
}
.m-img__header{
    height: 44px;
    line-height: 44px;
    overflow: hidden;
    position: absolute;
    width: 100%;
    left:0;
    top:0;
    background: rgba(0,0,0,.6);
    transform: translate3d(0, 0, 0);
    z-index: 10;
    @include webkitbox(1);
    overflow: hidden;
}
.m-img__back{
    position: absolute;
    width: 38px;
    height: 44px;
    line-height: 44px;
    font-size: 22px;
    color: #fff;
    text-align: center;
}
.m-img__title{
    @include flex(1);
    width: 100%;
    text-align: center;
    // padding-left: 35px;
    height: 44px;
    color: #fff;
    font-size: 20px;
    line-height: 48px;
    display: none;
}
.m-img_num{
    position: absolute;
    right: 0;
    top: 7px;
    width: 50px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 15px;
    color: #fff;
    span{
        font-weight: bold;
        font-size: 20px;
    }
}
.m-img__com{
    position: absolute;
    padding-left: 28px;
    right: 0;
    top: 2px;
    width: 50px;
    height: 44px;
    line-height: 44px;
    font-size: 18px;
    color: #fff;
    float: left;
    background: url('../img/ico-ref-one.png') left center no-repeat;
}

.img-control{
    position: absolute;
    bottom:0;
    left: 0;
    height: 44px;
    line-height: 44px;
    width: 100%;
    background: rgba(45, 45, 45, 0.6);
    transform: translate3d(0, 0, 0);
    z-index: 10;
    color: #fff;
    .ico-ding{
        float: left;
        width: 22px;
        height: 40px;
        background: url(../img/ico-imgControl.png) 4px 12px no-repeat;
        background-size: 68px;
    }
    .ico-cai{
        float: left;
        width: 22px;
        height: 40px;
        background: url(../img/ico-imgControl.png) -20px 16px no-repeat;
        background-size: 68px;
    }
    .ico-download{
        float: right;
        width: 24px;
        height: 40px;
        background: url(../img/ico-imgControl.png) right center no-repeat;
        background-size: 68px;
    }
}
.img-control__num{
    float: left;
    padding-left: 5px;
    font-size: 14px;
}
.img-control--ding{
    float: left;
    margin-left: 10px;
    overflow: hidden;
    &.checked{
        .ico-ding{
            background-image: url(../img/ico-imgControl2.png);
        }
        .img-control__num{
            color: #e50050;
        }
    }
}
.img-control--cai{
    float: left;
    margin-left: 30px;
    overflow: hidden;
    &.checked{
        .ico-cai{
            background-image: url(../img/ico-imgControl2.png);
        }
        .img-control__num{
            color: #e50050;
        }
    }
}
.img-control--download{
    float: right;
    margin-right: 10px;
}
.img-info {
    position: absolute;
    z-index: 10;
    bottom: 44px;
    left: 0;
    width: 100%;
    background: rgba(45, 45, 45, 0.6);
    transform: translate3d(0, 0, 0);
    color: #fff;
}
.img-info-n{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    overflow: hidden;
    *{
        -webkit-box-sizing: border-box;
           -moz-box-sizing: border-box;
                box-sizing: border-box;
    }
    .img-info-title{
        width: 100%;
        height: 50px;
        line-height: 60px;
        padding: 0 10px;
        font-size: 20px;
        font-weight: bold;
        overflow: hidden;
    }
    .img-info-content{
        width: 100%;
        height: 40px;
        padding: 0 10px;
        overflow: hidden;
        position: relative;
        p{
            color: #b6b6b6;
            line-height: 20px;
        }
    }
}

.img-info > p {
    font-size: 14px;
    line-height: 20px;
    margin: 0 10px;
    padding: 8px 0;
    border-bottom: 1px solid #484848;
}
.img-show {
    width: 100%;
    height: 100%;
    overflow: hidden;
}


.swipe {
    overflow: hidden;
    visibility: hidden;
    position: relative;
    height: 100%;
}
.swipe__wrap {
    overflow: hidden;
    position: relative;
    height: 100%;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    -ms-perspective: 1000;
    perspective: 1000;
}
.swipe__wrap > div {
    float:left;
    width:100%;
    height: 100%;
    position: relative;
    text-align: center;
    overflow: hidden;
}
.swipe__wrap > div:before {
    content: ''; 
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
.swipe__wrap >div img {
    max-height: 100%;
    max-width: 100%;
    // vertical-align: middle;
    margin-top: 44px;
}
// .swipe__wrap >div .mid {
//     margin-top: -22px;
//     vertical-align: middle !important;
// }

.swipe {
    visibility: visible;
}
//下一个图集
.next-album {
    display: inline-block;
    max-height: 100%;
    max-width: 100%;
    // vertical-align: middle;
    p {
        color: #999;
        font-size: 20px;
    }
}
.iScrollIndicator{
    position: absolute !important;
    right: 4px !important;
    width: 2px !important;
    border-style: none !important; 
    background: #b6b6b6 !important;
    -webkit-border-radius: 0 !important;
       -moz-border-radius: 0 !important;
            border-radius: 0 !important;
}