.ce-above.ce-right .ce-gallery,
.ce-above.ce-left .ce-gallery {
	margin-bottom: 0;
}

.ce-gallery {
	/* compensate for left/right/bottom distances of edge-columns */
	margin-left: -10px;
	margin-right: -10px;
	margin-bottom: -20px;
}

.ce-above .ce-gallery + .ce-bodytext {
	clear: both;
	margin-top: 20px;
}

.ce-gallery figure {
	max-width: 100%;
	margin: 0;
}

.ce-gallery figure.video {
	width: 100%;
}

.ce-gallery figure.video:hover {
	box-shadow: 0 8px 30px -15px rgba(0, 0, 0, 0.4);
}

.ce-gallery .video-embed {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	width: 100%;
}

.ce-gallery .video-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin-bottom: 0;
}

.ce-gallery .video-caption-title {
	background: #000;
	color: #FFF;
	margin-top: -1px;
	text-align: left;
}

.ce-gallery .video-caption-title .h3 {
	padding: 15px;
	margin-bottom: 0;
	color: #FFF;
	font-weight: 700;
	font-size: 18px;
}

.ce-gallery .video-caption {
	margin: 0;
	background-color: #FFF;
	padding: 15px;
	color: #000;
	box-shadow: 0 0 15px 3px rgba(0, 0, 0, 0.24);
}

.ce-gallery img {
	display: block;
	height: auto;
	max-width: 100%;
}

.ce-gallery iframe {
	border-width: 0;
	max-width: 100%;
}

picture .image-no-svg {
	max-width: 100%;
	height: auto;
}

.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-gallery[data-ce-columns='2'] .ce-column {
	width: 50%;
}

.ce-gallery[data-ce-columns='3'] .ce-column {
	width: 33.3333%;
}

.ce-gallery[data-ce-columns='4'] .ce-column {
	width: 25%;
}

.ce-gallery[data-ce-columns='5'] .ce-column {
	width: 20%;
}

.ce-gallery[data-ce-columns='6'] .ce-column {
	width: 16.6667%;
}

.ce-left.ce-intext .ce-gallery,
.ce-gallery[data-ce-columns='2'] .ce-column,
.ce-gallery[data-ce-columns='3'] .ce-column,
.ce-gallery[data-ce-columns='4'] .ce-column,
.ce-gallery[data-ce-columns='5'] .ce-column,
.ce-gallery[data-ce-columns='6'] .ce-column {
	float: left;
	max-width: 100%;
}

@media (max-width: 700px) {
	.ce-left.ce-intext .ce-gallery,
	.ce-gallery[data-ce-columns='2'] .ce-column,
	.ce-gallery[data-ce-columns='3'] .ce-column,
	.ce-gallery[data-ce-columns='4'] .ce-column,
	.ce-gallery[data-ce-columns='5'] .ce-column,
	.ce-gallery[data-ce-columns='6'] .ce-column {
		float: none;
		width: 100%;
	}
}

.ce-center .ce-outer {
	position: relative;
	max-width: 100%;
}

.ce-center .ce-inner {
	position: relative;
	max-width: 100%;
}

.ce-center .ce-column {
	text-align: center;
}

.ce-center .ce-column img {
	margin-left: auto;
	margin-right: auto;
}

.ce-center .ce-column figure {
	display: inline-block;
}

.ce-center .ce-column figcaption {
	text-align: left;
}

.ce-gallery::after,
.ce-left::after,
.ce-right::after {
	content: '';
	display: table;
	clear: both;
}

.ce-right .ce-gallery {
	float: right;
}

.ce-left .ce-gallery {
	float: left;
}

figcaption {
	margin: 10px 0 0;
}

.ce-border img,
.ce-border iframe {
	border: 2px solid #000;
	padding: 0;
}

.ce-intext.ce-right .ce-gallery {
	margin-left: 10px;
}

.ce-intext.ce-left .ce-gallery {
	margin-right: 10px;
}

.ce-below .ce-gallery {
	margin-top: 20px;
}

.ce-below .ce-gallery:last-of-type {
	margin-top: 0;
}

.default-content-element:last-of-type .ce-intext.ce-right .ce-gallery,
.default-content-element:last-of-type .ce-intext.ce-left .ce-gallery,
.default-content-element:last-of-type .ce-above .ce-gallery,
.default-content-element:last-of-type .ce-left,
.default-content-element:last-of-type .ce-right {
	margin-bottom: 0;
}

.ce-column {
	margin-bottom: 20px;
	padding-left: 10px;
	padding-right: 10px;
}

.ce-row::after {
	content: '';
	display: table;
	clear: both;
}

.ce-above .ce-bodytext::after {
	content: '';
	display: table;
	clear: both;
}

.ce-intext.ce-left ol,
.ce-intext.ce-left ul {
	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;
}

/* Space */
.frame-space-before-none {
	margin-top: 0 !important;
}

.frame-space-before-extra-small {
	margin-top: calc(15px / 2) !important;
}

.frame-space-before-small {
	margin-top: calc(15px * 2) !important;
}

.frame-space-before-medium {
	margin-top: calc(15px * 3) !important;
}

.frame-space-before-large {
	margin-top: calc(15px * 4) !important;
}

.frame-space-before-extra-large {
	margin-top: calc(15px * 5) !important;
}

.frame-space-after-none {
	margin-bottom: 0 !important;
}

.frame-space-after-extra-small {
	margin-bottom: calc(15px / 2) !important;
}

.frame-space-after-small {
	margin-bottom: calc(15px * 2) !important;
}

.frame-space-after-medium {
	margin-bottom: calc(15px * 3) !important;
}

.frame-space-after-large {
	margin-bottom: calc(15px * 4) !important;
}

.frame-space-after-extra-large {
	margin-bottom: calc(15px * 5) !important;
}

/* Frame */
.frame-ruler-before::before {
	content: '';
	display: block;
	width: 100% !important;
	border-top: 1px solid #000;
	margin-bottom: 2em;
}

.frame-ruler-after::after {
	content: '';
	display: block;
	width: 100% !important;
	border-bottom: 1px solid #000;
	margin-top: 2em;
}

.frame-indent {
	margin-left: 15% !important;
	margin-right: 15% !important;
}

.frame-indent-left {
	margin-left: 33% !important;
}

.frame-indent-right {
	margin-right: 33% !important;
}

@media screen and (max-width: 600px) {
	.main-content .ce-textpic .ce-gallery {
		margin: 0;
		float: none;
	}

	.main-content .ce-textpic .ce-gallery .ce-column {
		padding: 0;
	}
}
