.resize-container {
    position: relative;
    display: inline-block;
    cursor: move;
    margin: 0 auto;
}

.resize-container img {
    display: block
}

.resize-container:hover img,
.resize-container:active img {
    outline: 2px dashed rgba(222,60,80,.9);
}

.resize-handle-ne,
.resize-handle-ne,
.resize-handle-se,
.resize-handle-nw,
.resize-handle-sw {
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    background: rgba(222,60,80,.9);
    z-index: 999;
}

.resize-handle-nw {
    top: -5px;
    left: -5px;
    cursor: nw-resize;
}

.resize-handle-sw {
    bottom: -5px;
    left: -5px;
    cursor: sw-resize;
}

.resize-handle-ne {
    top: -5px;
    right: -5px;
    cursor: ne-resize;
}

.resize-handle-se {
    bottom: -5px;
    right: -5px;
    cursor: se-resize;
}

.overlay {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 39;
    width: 600px;
    height: 600px;
    margin: 0 auto;
    background: url("https://s2.stc.all.kpcdn.net/best/test/geraskin/14feb/images/editor-mask.png") no-repeat;
    pointer-events: none;
    outline: solid 1000px rgba(0,0,0,0.7);
    background-size: cover;
}

.editor-controls {
    height: 40px;
    text-align: center;
    margin-bottom: 15px;
}
    .editor-icon {
        position: relative;
        display: inline-block;
        vertical-align: top;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 10px;
        box-sizing: border-box;
        border: 1px solid #d2d2d2;
        box-shadow: 0 0 3px #d2d2d2;
        cursor: pointer;
    }
    .editor-icon:last-child {
        margin-right: 0;
    }
    .editor-icon::before,
    .editor-icon::after {
        position: absolute;
        left: 50%;
        top: 50%;
        content: "";
        background-color: #d2d2d2;
    }
    .editor-icon:hover {
        border-color: #999;
        box-shadow: 0 0 3px #999;
    }
    .editor-icon:hover::before,
    .editor-icon:hover::after {
        background-color: #999;
    }
    .editor-icon.minus-icon::before,
    .editor-icon.plus-icon::before {
        width: 26px;
        height: 2px;
        margin-top: -1px;
        margin-left: -13px;
    }
    .editor-icon.plus-icon::after {
        width: 2px;
        height: 26px;
        margin-top: -13px;
        margin-left: -1px;
    }

/*
.overlay:after,
.overlay:before {
    content: '';
    position: absolute;
    display: block;
    background-color: rgba(0,0,0,0.7);
    !*width: 204px;
    height: 40px;
    border-left: dashed 2px rgba(222,60,80,.9);
    border-right: dashed 2px rgba(222,60,80,.9);*!
}

.overlay:before {
    height: 500px;
    top: -500px;
    left: 50%;
    width: 1000px;
    margin-left: -500px;
}

.overlay:after {
    height: 500px;
    top: 100%;
    left: 50%;
    width: 1000px;
    margin-left: -500px;
}

.overlay-inner:after,
.overlay-inner:before {
    content: '';
    position: absolute;
    display: block;
    width: 500px;
    background-color: rgba(0,0,0,0.7);
}

.overlay-inner:before {
    right: 99.8%;
    top: 0;
    height:285px;
}

.overlay-inner:after {
    left:100%;
    top: 0;
    height:285px;
}*/
