#minor-publishing-actions{
	display: none;
}
#minor-publishing-actions #post-preview,#minor-publishing-actions #save-post{
	display: none;
}

.case-images-sort {
    padding: 20px;
    margin-bottom: 0;
    margin-top: 0;
}
#rmg_image_rows .rm-droppable-field{
	border:0;
}
/*
.case-images-sort .handle {
	float: right;
	height: 32px;
	padding-top: 6px;
	cursor: move;
}
*/

.case-max-upload-size{
	text-align:right;position: absolute;bottom: 0;right: 10px;
}

#rmg_editor .wp-editor-tools { background-color: transparent; }

.case-images-sort span {
	display: inline-block;
	vertical-align: top;
}

.case-images-sort .view-name { margin-right: 2em; }

.view-name label.error {
	color: #ff0000;
	display: block;
}

.image-row {
	background: #ffffff;
	padding: 15px 10px;
	margin:0;
	overflow: auto;
	
	display: -webkit-flex;
	display:    -moz-flex;
	display: 		 flex;
	
	align-items: center;
	
	-webkit-justify-content: space-between;
	   -moz-justify-content: space-between;
			justify-content: space-between;
}

#caseImagesSort .image-row{
	margin-top: 1em;
}
#caseImagesSort .image-row:first-of-type{
	margin-top: 0;
}

.image-row > div {
	-webkit-flex-grow: 0;
	   -moz-flex-grow: 0;
	   		flex-grow: 0;
	   		
	-webkit-flex-shrink: 1;
	   -moz-flex-shrink: 1;
	        flex-shrink: 1;
}

.image-row button.delete-images {
	background: none;
	border: 0 none;
	cursor: pointer;
	display: block;

	-webkit-appearance: none;
}

.delete-images span{
	color: #ffffff;
	padding: 5px;
	border-radius: 50px;
	background: #e54c58;
	width: 22px;
	height: 22px;
	font-size: 20px;
	box-shadow: 0 0 0 0 rgba(0,0,0,0.15);
	opacity:0.5;
	transition: all .25s;
}
.delete-images:hover span{
	opacity:1;
	box-shadow:0 0px 10px 1px rgba(0,0,0,0.25);
}

.image-row .ui-handle {
	-webkit-flex-basis: 35px;
	   -moz-flex-basis: 35px;
	   		flex-basis: 35px;
}

.image-row .ui-delete {	
	-webkit-flex-basis: 65px;
	   -moz-flex-basis: 65px;
	   		flex-basis: 65px;
}

.image-row div:not(.ui-elem) {
	-webkit-flex-basis: calc((100% - 100px) / 3 );
	   -moz-flex-basis: calc((100% - 100px) / 3 );
			flex-basis: calc((100% - 100px) / 3 );
}

.image-row .is-set-imgs{
	margin-bottom: auto;
	text-align: center;
}

.case-images-sort .img-wrapper .file-input-label{
	margin-bottom: 4px;
}
.section-new-image-row{
	text-align: center;
	margin-bottom: 25px;
}
.section-new-image-row button{
	width: 99%;
	padding: 13px 10px;
	display: block;
	margin: 0 auto;
}
.new-image-row span.dashicons {
	font-size: 1.2em;
	line-height: 1.4em;
}
.new-image-row{
	border: 0 none;
	text-shadow:1px 1px 0px rgba(0,0,0,0.25);
	border-radius: 0;
	box-shadow: 2px 2px 2px rgba(0,0,0,0.25);
	cursor: pointer;
	font-weight: normal;
	display: inline-block;
	font-size: 14px;
	padding: 7px 12px;
	text-decoration: none;
	background: #E59640;
	color: #fff;
}
.new-image-row:hover{
	background: #E59640;
}

#deleteDialog {
	padding: 10px;
}

#rmg_case-cat-attach .cat-child{
	margin-left:10px;
}

#rmg_category_attach .attachment_success{
	padding:2px 5px;
	border-radius: 2px;
	font-size:10px;
}

#rmg_category_attach .success_notice_green .attachment_success{
	background: #90DA90;
}
#rmg_category_attach .success_notice_red .attachment_success{
	background: #DAB590;
}


.case-images-sort .img-wrapper{
	position: relative;
}
.case-images-sort .img-wrapper .update_image {
    vertical-align: top;
}

.case-images-sort .img-wrapper input[type="file"] {
    border: 1px dashed #E3E3E3;
    display: inline-block;
    opacity: 0.75;
    padding: 5px;
    vertical-align: top;
    width: 160px;
}
.case-images-sort .img-wrapper > img{
	margin:0px 5px;
}

.case-images-sort .img-wrapper > label{
	display: block;
}

.change-photo {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
}

.change-photo button{
	width:100%;
}

.change-photo .update_image {
	display: block;
	margin-bottom: 4px;
	margin-top: 4px;
	-webkit-transition: margin-top .4s ease-in-out;
	   -moz-transition: margin-top .4s ease-in-out;
	   		transition: margin-top .4s ease-in-out;
}
.change-photo.shift{
	position: absolute;
	left: 0;
	background: rgba(255,255,255,0.75);
	height: 100%;
	text-align: center;
}
.change-photo.shift input{
	width: 90%!important;
	margin:0 auto!important;
}
.change-photo.shift a{
	width: 100%;
	text-align: center;
}
.change-photo.shift button{
	display: none!important;
}

.change-photo .crop_image{
	/*background: #E59640;*/
}
.change-photo .crop_image i{
	/*color:#E59640;*/
}

.cancel-change {
	display: block;
	text-align: right;
	width: 160px;
}

.cat-item input[type="checkbox"]{
	display: inline-block;
	*display: inline;
	*zoom: 1;
}

.cat-item a {
	font-size: .65em;
	text-decoration: none;
}

#rmg_case-cat-attach.rmg_case-cat-recent{
	padding:2px;
}
#rmg_case-cat-attach.rmg_case-cat-recent li{
	margin-left:0px;
}
#rmg_case-cat-attach.rmg_case-cat-recent{
	border:1px dashed #c3c3c3;
}

#rmg_case-cat-attach.rmg_case-cat-recent h4{
	display: none;
	text-align: center;
}
#rmg_case-cat-attach.rmg_case-cat-recent.is_active h4{
	display: block;
}


/* UPDATE IMAGE */

.change-photo button{
	background: #ffffff;
	border:1px solid #efefef;
	color:#666666;
	cursor: pointer;
	width: 100%;
}

/* CROPPING TOOL */

.cropping-tool-holder{
	position: fixed;
	left:0;
	top:0;
	background: rgba(0,0,0,0.75);
	width: 100%;
	height: 100%;
	z-index: 100000;
	left:-100%;
	transition: left 0.5s;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cropping-tool-holder h5{
	margin:0 0 10px;
}
.cropping-tool-holder *{
	box-sizing: border-box;
}
.cropping-tool-holder.crop-ready{
	left:0;
}
.cropping-tool-holder .crop-section{
	position: relative;
	max-width: 980px;
	width: 100%;
	margin:0 auto;
	background: #ffffff;
}
.cropping-tool-holder .crop-stage{
	padding:10px;
	font-size: 0px;
	vertical-align: top;
	position: relative;
}
.cropping-tool-holder .crop-stage > div{
	font-size: 1rem;
}
.cropping-tool-holder .crop-action{
	display: inline-block;
	width: 60%;
	position: relative;
}
.crop-original-size{
	position: absolute;
	bottom: 0;
	right:0;
	padding:2px;
	background: #ffffff;
	margin:0;
}
.cropping-tool-holder .crop-action img{
	width: 100%;
	max-width: 100%;
	height: auto;
}
.cropping-tool-holder .crop-preview{
	display: inline-block;
	vertical-align: top;
	width: 35%;
	margin-left: 5%;
}
.cropping-tool-holder .crop-preview h5{
	text-align: center;
}
.cropping-tool-holder .crop-preview:before{
	position: absolute;
	left: calc(100% - 37.5%);
	top: 0;
	height: 100%;
	width: 1px;
	content: " ";
	display: block;
	border-left: 1px dotted #cccccc;

}
.imgpreview{
	max-width: 200px;
	margin: 0 auto;
}

.cropping-tool-holder .img-preview-size,.cropping-tool-holder .control-buttons{
	text-align: center;
	margin:5px 0px;
}

.cropping-tool-holder .img-preview-size{
	font-size: 0;
}
.cropping-tool-holder .img-preview-size > span{
	display: inline-block;
	width: 49%;
	vertical-align: top;
	border:1px solid #efefef;
	padding:3px;
	font-size: 13px;
}
.cropping-tool-holder .default-aspectratio{
	font-size: 13px;
	border: 1px solid #efefef;
	padding: 8px 0px;
	border-bottom: 0;
	line-height: normal;
	position: relative;
}
.cropping-tool-holder .default-aspectratio a{
	text-decoration: none;
	cursor: pointer;
}
.cropping-tool-holder .updates-ratio{
	position: absolute;
	left: 0;
	top: 0;
	background: #ffffff;
	width: 100%;
	height: 100%;
	padding: 2px 0px;
	display: none;
}
.cropping-tool-holder .updates-ratio.now-updating{
	display: block;
}

.cropping-tool-holder .updates-ratio input{
	text-align: center;
	height: auto;
	margin-right: 10px;
	text-align: center;
}
.cropping-tool-holder .default-aspectratio span{
	font-weight: bold;
}
.cropping-tool-holder .img-preview-size > span input{
	margin-left: 10px;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    margin: 0;
    width: 100%;
    padding: 2px 0px;
    height: auto;
}
.cropping-tool-holder .img-preview-size > span:first-of-type{
	margin-right: 2%;
}
.cropping-tool-holder .control-buttons{
	margin-top:10px;
	font-size: 0;
	display: flex;
	justify-content: space-between;
}
.cropping-tool-holder .crop-info{
	margin-top: 10px;
}
.cropping-tool-holder .crop-info p{
	margin:0 0 2px;
	line-height: normal;
}

.cropping-tool-holder .control-buttons button{
	width: 100%;
	margin:0px 2px;
	border:0;
	font-size: 13px;
	background: #666666;
	padding:10px;
	color:#ffffff;
}
.cropping-tool-holder .control-buttons .cancel-current-crop{
	background: #e54c58;
}
.cropping-tool-holder .control-buttons .do-current-crop{
	background: #db770b;
	color:#ffffff;
}

.cropping-tool-holder  .undo-changes-actions{
	text-align: left;
	font-size: 13px;
	position: absolute;
	top:0;
	right:0;
	visibility: hidden;
}
.cropping-tool-holder  .undo-changes-actions.has-changes{
	visibility: visible;
}
.cropping-tool-holder  .undo-changes-actions a{
	font-size: 12px;
	padding:4px 10px;
	cursor: pointer;
	background:#efefef;
	color:#444444;
	text-decoration: none;
}
.cropping-tool-holder  .undo-changes-actions a i{
	font-size: 14px;
	vertical-align: middle;
}
