.body {
	padding: 80px 40px;
}

.body > * {
	width: 992px;
	max-width: 100%;
	margin: 0 auto;
	padding: 20px 20px;
}

.body > .mfp-bg,
.body > .mfp-wrap {
	width: 100%;
	background: none;
}

.body > *:empty {
	display: none;
}

.body > *:first-child {
	padding-top: 40px;
}

.body > *:last-child {
	padding-bottom: 40px;
}

/* general layout */

.dir-x {
	display: flex;
	flex-flow: row wrap;
	padding-left: 10px;
	padding-right: 10px;
}

.dir-x > * {
	padding-left: 10px;
	padding-right: 10px;
}

.dir-x > * {
	float: left;
	display: block;
	flex: 1 0 auto;
}

.dir-x::after {
	display: block;
	clear: both;
	content: '';
}

/* cols */

/* cols / cols-4 */

@media (min-width: 1080px) {
	.cols-4 > * {
		width: 25%;
	}
}

@media (max-width: 1080px) and (min-width: 760px) {
	.cols-4 > * {
		width: 50%;
	}
	.cols-4 > *:nth-child(3),
	.cols-4 > *:nth-child(4) {
		margin-top: 20px;
	}
}

@media (max-width: 760px) {
	.cols-4 > * {
		float: none;
		width: 100%;
	}
	.cols-4 > * + * {
		margin-top: 20px;
	}
}

/* cols / cols-2 */

@media (min-width: 1080px) {
	.cols-2 > * {
		width: 100%;
	}
}

@media (max-width: 1080px) {
	.cols-2 > * {
		float: none;
		width: 100%;
	}
	.cols-2 > * + * {
		margin-top: 20px;
	}
}

/* col */

@media (min-width: 1080px) {
	.col-1o4 {
		width: 25%;
	}

	.col-1o2 {
		width: 50%;
	}

	.col-3o4 {
		width: 75%;
	}
}

@media (max-width: 1080px) {
	.col-1o4,
	.col-1o2 {
		width: 100%;
		float: none;
	}

	* + .col-1o4,
	* + .col-1o2,
	* + .col-3o4 {
		margin-top: 20px;
	}

	.col-3o4 {
		width: 100%;
	}
}

/* ce-textpic */

.ce-textpic.ce-intext {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
}

.ce-textpic.ce-intext.ce-left {
	-webkit-flex-direction: row;
	    -ms-flex-direction: row;
	        flex-direction: row;
}

.ce-textpic.ce-intext.ce-right {
	-webkit-flex-direction: row-reverse;
	    -ms-flex-direction: row-reverse;
	        flex-direction: row-reverse;
}

.ce-textpic.ce-intext > .ce-gallery {
	-webkit-flex: 1 1 auto;
	    -ms-flex: 1 1 auto;
	        flex: 1 1 auto;
}

.ce-textpic.ce-intext > .ce-gallery + .ce-bodytext {
	-webkit-flex: 1 1 100%;
	    -ms-flex: 1 1 100%;
	        flex: 1 1 100%;
}

.ce-textpic.ce-intext.ce-left > .ce-gallery {
	padding-right: 5px;
}

.ce-textpic.ce-intext.ce-left > .ce-bodytext {
	padding-left: 5px;
}

.ce-textpic.ce-intext.ce-right > .ce-gallery:nth-child(2) {
	padding-left: 5px;
}

.ce-textpic.ce-intext.ce-right > .ce-gallery + .ce-bodytext {
	padding-right: 5px;
}

.ce-textpic.ce-intext > .ce-bodytext:first-child:last-child,
.ce-textpic.ce-intext > .ce-gallery:first-child:last-child {
	width: 100%;
}

.ce-textpic .ce-row {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: nowrap row;
	    -ms-flex-wrap: nowrap row;
	        flex-wrap: nowrap row;
}

.ce-textpic.ce-right .ce-row {
	float: right;
}

.ce-textpic .ce-column {
	-webkit-flex: 0 1 auto;
	    -ms-flex: 0 1 auto;
	        flex: 0 1 auto;
	width: 100%;
}

.ce-textpic .ce-column {
	padding-left: 10px;
	padding-right: 10px;
}

.ce-textpic .ce-column:first-child {
	padding-left: 0;
}

.ce-textpic .ce-column:last-child {
	padding-right: 0;
}

.splash .ce-textpic .ce-column {
	padding-left: 0;
	padding-right: 0;
}

.ce-textpic.ce-above > .ce-gallery {
	display: inline-block;
	max-width: 100%;
	width: 100%;
}

.ce-textpic.ce-above.ce-right {
	text-align: right;
}

.ce-textpic.ce-above.ce-left {
	text-align: left;
}

.ce-textpic.ce-above.ce-center {
	text-align: center;
}

.ce-textpic.ce-above > * {
	text-align: left;
}

.splash .ce-textpic.ce-above.ce-center,
.splash .ce-textpic.ce-above > * {
	text-align: inherit;
}

.ce-textpic.ce-intext.ce-right > .ce-gallery {
	float: right;
}

.ce-textpic.ce-intext.ce-left > .ce-gallery {
	float: left;
}

/* responsive menu */

@media (max-width: 1080px) {
	.menu > .hide {
		display: none;
	}
	.menu > .toggleHide {
		cursor: pointer;
		display: block;
		height: 45px;
		width: 50px;
		margin: 0 0 0 auto;
		padding: 10px;
		background-origin: content-box;
		background-clip: content-box;
		background-image: linear-gradient(to bottom, #FFBA0A 0%, #FFBA0A 20%, transparent 20%, transparent 40%, #FFBA0A 40%, #FFBA0A 60%, transparent 60%, transparent 80%, #FFBA0A 80%, #FFBA0A 100%);
		transition: 250ms background-image;
	}
	.dark .menu > .toggleHide {
		background-image: linear-gradient(to bottom, #FFF 0%, #FFF 20%, transparent 20%, transparent 40%, #FFF 40%, #FFF 60%, transparent 60%, transparent 80%, #FFF 80%, #FFF 100%);

	}

	.nav.menu > ul > li {
		display: block;
	}
}

/* nav */

.nav > ul > li {
	display: inline-block;
}

.nav > ul > li > a {
	display: block;
}

/* splash */

.splash {
	padding-left: 0;
	padding-right: 0;
}

.splash .ce-gallery {
	position: relative;
	width: 100%;
	height: 700px;
}

.splash .ce-gallery .ce-row {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}
