.aligncenter,
dl.aligncenter,
.html5-captions .wp-caption.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft, .post img.alignleft {
	float: left;
	margin-right: 20px;
	margin-bottom: 20px;
}

.alignright, .post img.alignright {
	float: right;
	margin-left: 20px;
	margin-bottom: 20px;
}

.post img {
	margin-bottom: 11px;
}

.wp-caption-text {
	font-size: 80%;
	margin-top: 10px;
}

.html5-captions .wp-caption {
	border: none;
	background-color: transparent;
	margin: 0;
	padding: 0;
}

.mceIEcenter {
	text-align: center;
}

div.mceTemp {
	-ms-user-select: element;
}

dl.wp-caption,
dl.wp-caption * {
	-webkit-user-drag: none;
}

.wp-caption-dd {
	font-size: 11px;
	line-height: 17px;
	padding: 0 4px 5px;
	margin: 0;
}

pre {
	font: 12px/18px Consolas, Monaco, monospace;
}

td {
	color: #000;
	font-size: 11px;
	margin: 8px;
}



/* Remove blue highlighting of selected images in WebKit */
img::selection {
	background-color: transparent;
}

audio,
video,
embed {
	display: -moz-inline-stack;
	display: inline-block;
}

audio {
	visibility: hidden;
}

/**
 * WP Views
 */

.wpview-wrap {
	width: 99.99%; /* All IE need hasLayout, incl. 11 (ugh, not again!!) */
	position: relative;
	clear: both;
}

/* delegate the handling of the selection to the wpview tinymce plugin */
.wpview-wrap,
.wpview-wrap *,
#wp-image-toolbar,
#wp-image-toolbar * {
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* hide the shortcode content, but allow the content to still be selected */
.wpview-wrap .wpview-clipboard,
.wpview-wrap > p {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	clip: rect(1px 1px 1px 1px); /* IE7 */
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
	outline: 0;
	padding: 0;
	border: 0;
	width: 1px;
	height: 1px;
}

/* An ugly box will appear when this is focussed in IE, so we'll move it outside the window. */
.wpview-wrap.wpview-selection-before > p,
.wpview-wrap.wpview-selection-after > p {
	left: -10000px;
}

.wpview-wrap .wpview-clipboard,
.wpview-wrap .wpview-clipboard *,
.wpview-wrap > p {
	-moz-user-select: text;
	-webkit-user-select: text;
	-ms-user-select: text;
	user-select: text;
}

.has-focus .wpview-wrap.wpview-selection-before:before,
.has-focus .wpview-wrap.wpview-selection-after:before {
	content: '';
	margin: 0;
	padding: 0;
	position: absolute;
	top: -2px;
	left: -3px;
	bottom: -2px;
	width: 1px;
	background-color: black;
	background-color: currentcolor;
	opacity: 1;
}

.has-focus .wpview-wrap.wpview-selection-after:before {
	left: auto;
	right: -3px;
}

.has-focus .wpview-wrap.wpview-cursor-hide:before {
	opacity: 0;
}

/**
 * Media previews
 */
.wpview-wrap {
    position: relative;
    margin-bottom: 16px;
	border: 1px solid transparent;
}

.wpview-wrap[data-mce-selected] {
	background-color: rgba(0,0,0,0.1);
	border-color: rgba(0,0,0,0.3);
}

.ie8 .wpview-wrap[data-mce-selected],
.ie7 .wpview-wrap[data-mce-selected] {
	background-color: #e5e5e5;
	border-color: #777;
}

.wpview-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.wpview-wrap[data-mce-selected] .wpview-overlay {
	display: none;
}

.wpview-wrap .toolbar {
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	z-index: 100;
}

.wpview-wrap[data-mce-selected] .toolbar {
	display: block;
}

.wpview-wrap .loading-placeholder {
	border: 1px dashed #ccc;
	padding: 10px;
}

.wpview-wrap[data-mce-selected] .loading-placeholder {
	border-color: transparent;
}

/* A little "loading" animation, not showing in IE < 10 */
.wpview-wrap .wpview-loading {
	width: 60px;
	height: 5px;
	overflow: hidden;
	background-color: transparent;
	margin: 10px auto 0;
}

.wpview-wrap .wpview-loading ins {
	background-color: #333;
	margin: 0 0 0 -60px;
	width: 60px;
	height: 5px;
	display: block;
	-webkit-animation: wpview-loading 1.3s infinite 1s linear;
	animation: wpview-loading 1.3s infinite 1s linear;
}

@-webkit-keyframes wpview-loading {
	0% {
		margin-left: -60px;
	}
	100% {
		margin-left: 60px;
	}
}

@keyframes wpview-loading {
	0% {
		margin-left: -60px;
	}
	100% {
		margin-left: 60px;
	}
}

.wpview-wrap .wpview-content > iframe {
	max-width: 100%;
	background: transparent;
}

#wp-image-toolbar {
	position: absolute;
	margin: 0;
}

.wpview-wrap .toolbar div,
#wp-image-toolbar i {
	margin-top: 7px;
	margin-left: 7px;
	padding: 2px;
	width: 30px;
	height: 30px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.5);
	background-color: #000;
	background-color: rgba(0,0,0,0.9);
	cursor: pointer;
	color: white;
	font-size: 30px;
}

.ie8 .wpview-wrap .toolbar div,
.ie7 .wpview-wrap .toolbar div,
.ie8 #wp-image-toolbar i,
.ie7 #wp-image-toolbar i {
	display: inline;
	padding: 0;
}

.ie8 .dashicons-edit,
.ie7 .dashicons-edit {
	background-image: url(images/dashicon-edit.png);
}

.ie8 .dashicons-no-alt,
.ie7 .dashicons-no-alt {
	background-image: url(images/dashicon-no-alt.png);
}

.wpview-error {
	border: 1px solid #dedede;
	padding: 1em 0;
	margin: 0;
	word-wrap: break-word;
}

.wpview-wrap[data-mce-selected] .wpview-error {
	border-color: transparent;
}

.wpview-error .dashicons,
.loading-placeholder .dashicons {
	display: block;
	margin: 0 auto;
	width: 32px;
	height: 32px;
	font-size: 32px;
}

.wpview-error p {
	margin: 0;
	text-align: center;
	font-family: 'Open Sans', sans-serif;
}

.wpview-wrap .toolbar div:hover,
#wp-image-toolbar i:hover {
	box-shadow: 0 1px 3px rgba(0,0,0,0.8);
	background-color: #000;
	color: #2ea2cc;
}

/* Audio player is short; therefore let's put the toolbar above */
.wpview-wrap[data-wpview-type="audio"] .toolbar {
	top: auto;
	bottom: -34px;
}

.wpview-wrap[data-wpview-type="audio"] .toolbar div {
	margin-top: 0;
}

.wpview-wrap[data-wpview-type="audio"] .toolbar div:first-child {
	margin-left: 0;
}

.wont-play {
	padding: 4px 0;
}

.wont-play p {
	font-size: 13px;
	line-height: 1.3;
	display: block;
	width: 70%;
	margin: 0 15%;
	text-align: center;
}

.wpview-type-gallery:after {
    content: '';
	display: table;
    clear: both;
}

.gallery img[data-mce-selected]:focus {
	outline: none;
}

.gallery a {
	cursor: default;
}

.gallery {
	margin: auto -6px 10px -6px;
	padding: 6px 0;
	line-height: 1;
	overflow-x: hidden;
}

.ie7 .gallery,
.ie8 .gallery {
	margin: auto;
}


.gallery .gallery-item {
	float: left;
	margin: 0;
	text-align: center;
	padding: 6px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.ie7 .gallery .gallery-item,
.ie8 .gallery .gallery-item {
	padding: 6px 0;
}

.gallery .gallery-caption,
.gallery .gallery-icon {
	margin: 0;
}

.gallery .gallery-caption {
	/*font-size: 13px;*/
	margin: 4px 0;
}

.gallery-columns-1 .gallery-item {
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	width: 50%;
}

.gallery-columns-3 .gallery-item {
	width: 33.333%;
}

.ie8 .gallery-columns-3 .gallery-item,
.ie7 .gallery-columns-3 .gallery-item {
	width: 33%;
}

.gallery-columns-4 .gallery-item {
	width: 25%;
}

.gallery-columns-5 .gallery-item {
	width: 20%;
}

.gallery-columns-6 .gallery-item {
	width: 16.665%;
}

.gallery-columns-7 .gallery-item {
	width: 14.285%;
}

.gallery-columns-8 .gallery-item {
	width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	width: 11.111%;
}

.gallery img {
	max-width: 100%;
	height: auto;
	border: none;
	padding: 0;
	margin: 0;
}

img.wp-oembed {
	border: 1px dashed #888;
	background: #f7f5f2 url(images/embedded.png) no-repeat scroll center center;
	width: 300px;
	height: 250px;
	outline: 0;
}

/* rtl */
.rtl .gallery .gallery-item {
	float: right;
}

.rtl .wpview-wrap .toolbar {
	left: auto;
	right: 0;
}

.rtl .wpview-wrap .toolbar div,
.rtl #wp-image-toolbar i {
	margin-left: auto;
	margin-right: 7px;
}

@media print,
	(-o-min-device-pixel-ratio: 5/4),
	(-webkit-min-device-pixel-ratio: 1.25),
	(min-resolution: 120dpi) {

	.mce-content-body img.mce-wp-more {
		background-image: url( images/more-2x.png );
		background-size: 1900px 20px;
	}

	.mce-content-body img.mce-wp-nextpage {
    	background-image: url( images/pagebreak-2x.png );
		background-size: 1900px 20px;
	}
}

@media (max-width: 450px) {
	
	.alignleft, .post img.alignleft {
		float: none;
		margin: 0px;
	}

	.alignright, .post img.alignright {
		float: none;
		margin: 0px;
	}

	.gallery {
		max-width: 124%;
		margin: 0 -12% 20px -12%;
		padding: 0;
	}

	.post .gallery img {
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding: 0;
	}

	.gallery .gallery-item {
		padding: 0;
	}

}