.cover-background {
    position: fixed;
    top: 0;
    left: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.cover-background .cover {
    position: relative;
    background-color: #000000;
    filter: alpha(opacity=80);
    opacity: 0.8;
    -moz-opacity: 0.8;
    width: 100%;
    height: 100%;

}

.cover-background .main {
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
}

.cover-background .main .img {
    position: relative;
    max-width: 100%;
    margin: 0;
    height: 100%;
    vertical-align: middle;
    width: auto;
    display: inline-block;
    padding: 0 0;
}

.cover-background .main .img .close,
.cover-background .main .img .title {
    position: absolute;
    top: -30px;
    right: 0;
    display: inline-block;
    font-size: 20px;
}

.cover-background .main .img .title {
    top: auto;
    bottom: -25px;
}

.cover-background .main .next, .cover-background .main .prev {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    margin-top: -25px;
    font-size: 30px;
    line-height: 30px;
    padding: 0 10px;
}

.cover-background .main .img .close,
.cover-background .main .img .title,
.cover-background .main .next,
.cover-background .main .prev {
    font-weight: bolder;
    color: #aaaaaa;
}

.cover-background .main .img .close:hover,
.cover-background .main .next:hover,
.cover-background .main .prev:hover {
    color: #ffffff;
}

.cover-background .main .next {
    right: 0;
}

.cover-background .main .prev {
    left: 0;
}

#endtext img,
.cover-background .close,
.cover-background .img,
.cover-background .main .next,
.cover-background .main .prev {
    cursor: pointer;
}

.cover-background .main .img img {
    width: auto;
    max-width: 100%;
    height: 100%;
}

.cover-background .main .img img.auto-height {
    height: auto;
}