.rebox {
    cursor: pointer;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    -webkit-filter: none !important;
    background-color: #999;
    background-color: rgba(27, 27, 27, 0.8);
    z-index: 200
}

.rebox * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.rebox-contents {
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
    height: 100%;
}

.rebox-contents .rebox-content {
    text-align: center;
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 90%;
}

.rebox-loading {
    width: 31px;
    height: 31px;
    margin: -16px 0 0 -16px;
    position: absolute;
    top: 48%;
    left: 50%;
}

.rebox-caption {
    display: none;
    position: absolute;
    left: 0;
    bottom: 50%;
    width: 100%;
    text-align: center;
    z-index: 1000;
    padding: 15px 0;
    margin: 0 0 -197px 0;
}

.rebox-caption p {
    font-size: 20px;
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 1)
}

.rebox-button {
    position: absolute;
    font-weight: normal;
    z-index: 9999;
    height: 60px;
    text-decoration: none;
    font-size: 34px;
    color: #d8d8d8;
    text-align: center;
    vertical-align: middle;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    transition: all 0.3s;
}


/*.rebox-button:hover,
.rebox-button:focus {color:#d8d8d8; opacity: 1; -webkit-transform: scale(1.4); -moz-transform: scale(1.4); -ms-transform: scale(1.4); transform: scale(1.4); }*/

.rebox-close {
    right: 0;
    top: 0;
    border: none;
    width: 140px;
    height: 140px;
    background: url(../images/picw_close.png) no-repeat center center;
    font-size: 0;
    color: #4a4a4a;
    text-indent: 999px;
}

.rebox-next {
    right: 0;
    top: 48%;
    border: none;
    font-size: 45px;
    width: 80px;
}

.rebox-prev {
    left: 0;
    top: 48%;
    border: none;
    font-size: 45px;
    font-weight: normal;
    width: 80px;
}

.rebox-loading {
    left: 50%;
    top: 48%;
    font-weight: normal;
    -webkit-animation-name: spin;
    -webkit-animation-duration: 2000ms;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation-name: spin;
    -moz-animation-duration: 2000ms;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    -ms-animation-name: spin;
    -ms-animation-duration: 2000ms;
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: linear;
    animation-name: spin;
    animation-duration: 2000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@-ms-keyframes spin {
    from {
        -ms-transform: rotate(0deg);
    }
    to {
        -ms-transform: rotate(360deg);
    }
}

@-moz-keyframes spin {
    from {
        -moz-transform: rotate(0deg);
    }
    to {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rebox-caption span {
    display: block;
    color: #fff;
    font-size: 20px;
    line-height: 27px;
}

@media screen and (max-width:1386px) {
    .rebox-close {
        width: 100px;
        height: 100px;
        background-size: 100px auto
    }
    .rebox-prev,
    .rebox-next {
        width: 30px;
        height: auto;
    }
    .box-prev img,
    .rebox-next img {
        width: 30px height: auto;
    }
}

@media screen and (max-width:992px) {
    .rebox-close {
        width: 80px;
        height: 80px;
        background-size: 80px auto
    }
    .rebox-prev,
    .rebox-next {
        width: 20px;
        height: auto;
    }
    .box-prev img,
    .rebox-next img {
        width: 20px height: auto;
    }
}

@media screen and (max-width:480px) {
    .rebox-close {
        width: 50px;
        height: 50px;
        background-size: 50px auto
    }
    .rebox-prev,
    .rebox-next {
        width: 15px;
        height: auto;
    }
    .box-prev img,
    .rebox-next img {
        width: 15px height: auto;
    }
}