.blueimp-gallery .modal-dialog {
    -webkit-transform: translate(0, -5%) !important;
    transform: translate(0, -5%) !important;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.blueimp-gallery .modal-content {
    height: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.blueimp-gallery .modal-body {
    padding: 0;
}

.blueimp-gallery > .prev,
.blueimp-gallery > .next,
.blueimp-gallery > .indicator,
.blueimp-gallery > .close {
    display: block;
}

.blueimp-gallery > .icon {
    position: absolute;
    line-height: 30px;
    color: #fff;
    text-shadow: 0 0 2px #000;
    opacity: 0.8;
    padding: 15px;
    margin: -15px;
    font-size: 30px;
    text-decoration: none;
    cursor: pointer;
}

.blueimp-gallery > .icon .iconfont {
    font-size: 18px;
}

.blueimp-gallery > .icon:hover,
.blueimp-gallery > .icon:active {
    opacity: 1;
    font-weight: 700;
}

.blueimp-gallery > .rotate {
    top: 60px;
    right: 30px;
    left: auto;
}

.blueimp-gallery > .icon, .blueimp-gallery > .close {
    right: 30px;
}

.blueimp-gallery > .slides > .slide {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.blueimp-gallery > .slides > .slide > .slide-content {
    max-height: none;
}
