.photo-preview-item:hover:after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    min-height: 100%;
    padding: 10px;
    z-index: 11;
    background: url('//st.vrazbore.com/images/zoom-in.png') rgba(255, 255, 255, 0.5);
    background-size: 20%;
    background-repeat: no-repeat;
    background-position: center;
}

.photo-preview-item {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.photo-preview-item img {
    max-width: 100%;
}


#photo-preview {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: url('//st.vrazbore.com/images/loading2.gif') rgba(255, 255, 255, 0.8);
    background-repeat: no-repeat;
    background-position: center;
    display: none;
    z-index: 100;
}

#photo-preview.shown {
    display: flex;
    align-items: center;
    justify-content: center;
}

#photo-preview #photo-preview-inner {
    height: 100%;
    width: 100%;
    background-size: contain;
    background-position: center;
    overflow: hidden;
    background-repeat: no-repeat;
}

#photo-preview #photo-preview-close {
    position: absolute;
    width: 100%;
    top: 0;
}

#photo-preview #photo-preview-close:before {
    content: 'Закрыть';
    background: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    border-bottom-left-radius: 30px;
    border-left: 1px solid whitesmoke;
    border-bottom: 1px solid whitesmoke;
    position: absolute;
    right: 0;
    top: 0;
    padding: 20px;
    z-index: 11;
    cursor: pointer;
}

#photo-preview img {
    max-width: 100%;
    max-height: 100%;
}