/* Default Style - Dont touch too much if possible */

.ce-align-left { text-align: left; }
.ce-align-center { text-align: center; }
.ce-align-right { text-align: right; }

.ce-table td, .ce-table th { vertical-align: top; }

.ce-textpic, .ce-nowrap .ce-bodytext, .ce-gallery, .ce-row, .ce-uploads li, .ce-uploads div { overflow: hidden; }

.ce-left .ce-gallery, .ce-column { float: left; }
.ce-center .ce-outer { position: relative; float: right; right: 50%; }
.ce-center .ce-inner { position: relative; float: right; right: -50%; }
.ce-right .ce-gallery { float: right; }

.ce-gallery figure { display: table; margin: 0; }
.ce-gallery figcaption { background: grey; display: table-caption; caption-side: bottom; }
.ce-gallery img { display: block; }
.ce-gallery iframe { border-width: 0; }
.ce-border img,
.ce-border iframe {
	border: 2px solid #000000;
	padding: 0px;
}

.ce-intext.ce-right .ce-gallery, .ce-intext.ce-left .ce-gallery, .ce-above .ce-gallery {
	margin-bottom: 10px;
}
.ce-intext.ce-right .ce-gallery { margin-left: 10px; }
.ce-intext.ce-left .ce-gallery { margin-right: 10px; }
.ce-below .ce-gallery { margin-top: 10px; }

.ce-column { margin-right: 10px; }
.ce-column:last-child { margin-right: 0; }

.ce-row { margin-bottom: 10px; }
.ce-row:last-child { margin-bottom: 0; }

.ce-above .ce-bodytext { clear: both; }

.ce-intext.ce-left ol, .ce-intext.ce-left ul { padding-left: 40px; overflow: auto; }

.ce-uploads { margin: 0; padding: 0; }
.ce-uploads li { list-style: none outside none; margin: 1em 0; }
.ce-uploads img { float: left; padding-right: 1em; vertical-align: top; }
.ce-uploads span { display: block; }

/* Responsive stuff you might want to change this */

/*firefox doesn't make images responsive without:*/
.ce-gallery figure, .ce-gallery figcaption {display: block;}
.ce-intext.ce-left .ce-gallery {
	margin-right: 0 !important;
}
.ce-center .ce-outer,.ce-center .ce-inner {
	float: none;
	right: 0;
}
.ce-intext.ce-right .ce-gallery {
	margin-left: 0 !important;
}
.ce-intext > .ce-gallery {
	width: 100%;
}
.ce-intext > .ce-bodytext {
	width:100%;
}
.ce-column {
	margin-right: 0;
	padding-right: 10px;
}
.ce-right .ce-column {
	padding-left: 10px;
	padding-right: 0;
}
.ce-above .ce-gallery, .ce-below .ce-gallery {
	margin-right: -10px;
}
.ce-right.ce-above, .ce-right.ce-below {
	margin-left: -10px;
	margin-right: 0;
}
[data-ce-columns="1"] .ce-column {
	max-width: 100%;
}
[data-ce-columns="2"] .ce-column {
	max-width: 50%;
}
[data-ce-columns="3"] .ce-column {
	max-width: 33.33333333%;
}
[data-ce-columns="4"] .ce-column {
	max-width: 25%;
}
.ce-intext > .ce-gallery {
	width: 41.6667%;
}
.ce-intext.ce-nowrap > .ce-bodytext {
	width: 58.3333%;
}
.ce-left.ce-above .ce-gallery,
.ce-left.ce-below .ce-gallery
{float: none;}
/*firefox adjustement so that images over whole width are responsive*/
@media all and (max-width: 850px) {
	.ce-above .ce-gallery[data-ce-columns="1"],
	.ce-below .ce-gallery[data-ce-columns="1"] {
		float: none;
	}
}