.r-content {
	max-width: 1290px;
	padding: 0 1em;
	margin: 0 auto;
	text-align: center;
}

.r-component {
	position: relative;
	background: url(/js/resize/gridme.png) repeat center center;
	padding: 4em;
	height: 500px;
	border: 3px solid #49708A;
	max-width: 901px;
	overflow: hidden;
	margin: 0 auto;
}



.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-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;
}

.r-overlay {
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -100px;
	margin-top: -100px;
	z-index: 999;
	width: 200px;
	height: 200px;
	border: solid 2px rgba(222,60,80,.9);
	box-sizing: content-box;
	pointer-events: none;
}

.r-overlay:after,
.r-overlay:before {
	content: '';
	position: absolute;
	display: block;
	width: 204px;
	height: 40px;
	border-left: dashed 2px rgba(222,60,80,.9);
	border-right: dashed 2px rgba(222,60,80,.9);
}

.r-overlay:before {
	top: 0;
	margin-left: -2px;
	margin-top: -40px;
}

.r-overlay:after {
	bottom: 0;
	margin-left: -2px;
	margin-bottom: -40px;
}

.r-overlay-inner:after,
.r-overlay-inner:before {
	content: '';
	position: absolute;
	display: block;
	width: 40px;
	height: 204px;
	border-top: dashed 2px rgba(222,60,80,.9);
	border-bottom: dashed 2px rgba(222,60,80,.9);
}

.r-overlay-inner:before {
	left: 0;
	margin-left: -40px;
	margin-top: -2px;
}

.r-overlay-inner:after{
	right: 0;
	margin-right: -40px;
	margin-top: -2px;
}