.magnify-modal {
    position: fixed;
    width: 320px;
    height: 320px;
    background-color: #111;
    background-color: rgba(0, 0, 0, .85);
    -webkit-box-shadow: 0 0 3px 1px rgba(0, 0, 0, .3);
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, .3);
    z-index: 1090
}

.magnify-header {
    position: relative;
    height: 40px;
    color: #fff;
    z-index: 2
}

.magnify-header .magnify-toolbar {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 40px
}

.magnify-title {
    margin-right: 80px;
    padding: 13px 10px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default
}

.magnify-stage {
    position: absolute;
    top: 40px;
    left: 10px;
    bottom: 40px;
    right: 10px;
    border: 1px solid #ccc;
    overflow: hidden;
    z-index: 1
}

.magnify-stage img {
    display: inline-block;
    position: relative
}

.magnify-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    text-align: center;
    color: #fff;
    z-index: 2
}

.magnify-footer .magnify-toolbar {
    display: inline-block;
    height: 40px
}

.magnify-toolbar {
    font-size: 0
}

.magnify-button {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 10px;
    border-width: 0;
    border-radius: 0;
    text-align: center;
    font-size: 14px;
    background: url(../images/btns.png);
    color: #ccc;
    cursor: pointer;
    outline: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

.resizable-handle-e,
.resizable-handle-w {
    width: 10px;
    position: absolute;
    z-index: 10
}

.magnify-button-maximize {
    background-position: 0 0
}

.magnify-button-maximize:hover {
    background-position: right 0
}

.magnify-button-close {
    background-position: 0 -40px
}

.magnify-button-close:hover {
    background-position: right -40px
}

.magnify-button-prev {
    background-position: 0 -80px
}

.magnify-button-prev:hover {
    background-position: right -80px
}

.magnify-button-next {
    background-position: 0 -120px
}

.magnify-button-next:hover {
    background-position: right -120px
}

.magnify-button-rotate-right {
    background-position: 0 -160px
}

.magnify-button-rotate-right:hover {
    background-position: right -160px
}

.magnify-button:hover {
    color: #fff
}

.magnify-button.magnify-button-close:hover {
    background-color: #ff4545
}

.magnify-button.magnify-button-maximize:hover {
    background-color: #525252
}

.is-grab {
    cursor: move;
    cursor: -webkit-grab;
    cursor: grab
}

.is-grabbing {
    cursor: move;
    cursor: -webkit-grabbing;
    cursor: grabbing
}

.resizable-handle-e {
    top: 0;
    bottom: 0;
    right: -5px;
    left: auto;
    cursor: e-resize
}

.resizable-handle-s {
    position: absolute;
    top: auto;
    bottom: -5px;
    right: 0;
    left: 0;
    height: 10px;
    z-index: 10;
    cursor: s-resize
}

.resizable-handle-w {
    top: 0;
    bottom: 0;
    left: -5px;
    right: auto;
    cursor: w-resize
}

.resizable-handle-n {
    position: absolute;
    top: -5px;
    bottom: auto;
    right: 0;
    left: 0;
    height: 10px;
    z-index: 10;
    cursor: n-resize
}

.resizable-handle-se,
.resizable-handle-sw {
    position: absolute;
    width: 10px;
    height: 10px;
    bottom: -5px;
    top: auto
}

.resizable-handle-se {
    right: -5px;
    left: auto;
    z-index: 11;
    cursor: se-resize
}

.resizable-handle-sw {
    right: auto;
    left: -5px;
    z-index: 11;
    cursor: sw-resize
}

.resizable-handle-ne,
.resizable-handle-nw {
    position: absolute;
    width: 10px;
    height: 10px;
    bottom: auto;
    top: -5px;
    z-index: 11
}

.resizable-handle-nw {
    right: auto;
    left: -5px;
    cursor: nw-resize
}

.resizable-handle-ne {
    right: -5px;
    left: auto;
    cursor: ne-resize
}

:full-screen {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important
}

:full-screen .magnify-footer,
:full-screen .magnify-header,
:full-screen .resizable-handle {
    display: none
}

:full-screen .magnify-stage {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-width: 0
}

:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important
}

:-moz-full-screen {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important
}

:-ms-fullscreen {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important
}

:fullscreen {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important
}

:-webkit-full-screen .magnify-footer,
:-webkit-full-screen .magnify-header,
:-webkit-full-screen .resizable-handle {
    display: none
}

:-moz-full-screen .magnify-footer,
:-moz-full-screen .magnify-header,
:-moz-full-screen .resizable-handle {
    display: none
}

:-ms-fullscreen .magnify-footer,
:-ms-fullscreen .magnify-header,
:-ms-fullscreen .resizable-handle {
    display: none
}

:fullscreen .magnify-footer,
:fullscreen .magnify-header,
:fullscreen .resizable-handle {
    display: none
}

:-webkit-full-screen .magnify-stage {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-width: 0
}

:-moz-full-screen .magnify-stage {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-width: 0
}

:-ms-fullscreen .magnify-stage {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-width: 0
}

:fullscreen .magnify-stage {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-width: 0
}