.sub-header-block {
	margin: 0 0 30px;
}

.sub-header-block {
	margin: 60px -30px 30px !important;
	padding: 10px !important;
	background-color: #333;
	background-image: linear-gradient(320deg, #6200ea 0%, #aa00ff 100%);
	background-image: linear-gradient(320deg, #6200eaCC 0%, #aa00ffCC 100%);
	border-radius: 5px 0 0 5px;
}

.sub-header-block:first-child {
	margin-top: -15px !important;
}

.sub-header-block > .uagb-section__overlay,
.sub-header-block .uagb-ifb-separator-parent {
	display: none !important;
}

.sub-header-block > .uagb-infobox__content-wrap,
.sub-header-block > .uagb-section__inner-wrap {
	margin: 40px auto;
	max-width: 600px !important;
	padding: 0 40px;
}

.sub-header-block .uagb-ifb-icon > svg {
	fill: #fff;
}

.sub-header-block h2,
.sub-header-block h3,
.sub-header-block h4 {
	color: #fff;
	text-align: center;
	margin: 0 0 20px !important;
	padding: 0 !important;
	font-weight: 600;
	letter-spacing: -1px;
}

.sub-header-block .uagb-ifb-imgicon-wrap {
	margin: 0 0 20px !important;
}

.sub-header-block p {
	color: #eeeeee;
	text-align: center;
	font-size: 18px;
}

.single-post h2,
.single-ht_kb h2 {
	margin-top: 80px;
}

.single-post h3,
.single-ht_kb h3 {
	margin-top: 70px;
}

.single-post h4,
.single-ht_kb h4 {
	margin-top: 60px;
}

.single-post h5,
.single-ht_kb h5 {
	margin-top: 50px;
}

body .cta-block {
	background: #f5f1f6;
	padding: 25px;
	margin: 30px -30px;
	border-radius: 5px;
	box-shadow: 0 0 25px #0001 inset;
}

body .cta-block > * {
	margin-top: 20px;
	margin-bottom: 20px;
	padding-top: 0;
	padding-bottom: 0;
}

body .cta-block > *:first-child {
	margin-top: 0;
}

body .cta-block > *:last-child {
	margin-bottom: 0;
}

.wp-block-group.has-background,
p.has-background {
	border-radius: 5px;
}

.has-medium-font-size {
	line-height: 1.65;
}

@media (max-width: 980px) {
	.cta-block,
	.sub-header-block {
		border-radius: 0;
	}

	.sub-header-block > .uagb-infobox__content-wrap,
	.sub-header-block > .uagb-section__inner-wrap {
		margin: 20px auto;
		padding: 0 10px;
	}
}


/* Image block */

.wp-block-getwid-image-hotspot,
.wp-block-video,
.wp-block-image {
	margin: 2em 0;
}

.wp-block-image {
	width: 100%;
}

.wp-block-image:first-child {
	margin-top: 0;
}

.enhanced_before_and_after_image,
.wp-block-gallery figure img,
.gallery-stacked figure img,
.wp-block-image img,
.wp-block-video video,
.wp-block-getwid-image-hotspot__wrapper img,
.uagb-ifb-image-content img {
	background-color: #e8e8e8;
	box-shadow: 0 0 40px #0004;
	border-radius: 5px;
}

.wp-block-gallery figure img {
	box-shadow: 0 0 16px #0003;
}

.enhanced_before_and_after_image {
	overflow: hidden;
}

#left-area figure ul.blocks-gallery-grid {
	margin-left: 0;
	padding-left: 0;
}

.wp-block-image figcaption {
	text-align: center;
	font-size: 0.8em;
}

.with-space img {
	padding: 15px;
	background-color: #fff;
}


/* Code block */

pre.wp-block-code[class*="language-"],
pre.wp-block-code {
	margin: 2em -30px;
	border-radius: 5px 0 0 5px;
	white-space: normal;
}

.et_left_sidebar pre.wp-block-code[class*="language-"],
.et_left_sidebar pre.wp-block-code {
	border-radius: 0 5px 5px 0;
}

@media (max-width: 980px) {

	.et_left_sidebar pre.wp-block-code,
	pre.wp-block-code {
		border-radius: 0;
	}
}


/* Image comparison block */

/*
This block is inserted via a custom HTML block that uses following code:

<div class="dm-image-comparison" tabindex="-1">
<img src="/wp-content/uploads/2020/08/close-solid-light-1.png" />
<img src="/wp-content/uploads/2020/08/close-solid-light-2.png" />
</div>
*/

.dm-image-comparison {
	position: relative;
	display: inline-block;
	margin: 20px auto;
	background-color: #e8e8e8;
	box-shadow: 0 0 40px #0004;
	border-radius: 5px;
	left: 50%;
	transform: translateX(-50%);
	overflow: hidden;
}

.dm-image-comparison.round {
	border-radius: 100%;
}

.dm-image-comparison > img {
	position: absolute;
	left: 0;
	top: 0;
	transition: all 0.3s;
	z-index: 1;
	border-radius: 5px;
	display: block;
}

.dm-image-comparison > img:first-child {
	position: relative;
	z-index: 2;
}

.dm-image-comparison:hover > img:first-child,
.dm-image-comparison:focus > img:first-child {
	opacity: 0;
}


/* Embedded videos */

.single-lessons .wp-block-embed-youtube:first-child {
	margin-top: -24px !important;
}

.single-lessons .wp-block-embed-youtube {
	margin-left: -30px;
	margin-right: -30px;
}

/* Action-Reference table */

.wp-block-table.is-style-stripes {
	border-bottom: 0;
}

.action-ref.wp-block-table.is-style-stripes {
	border: 0;
}

.action-ref tr > td:first-child {
	width: 80px;
	font-size: 12px;
	font-weight: bold;
	text-align: right;
}

.action-ref tr > td:nth-child(2) {
	width: 220px;
	white-space: nowrap;
}


/* Definition list */

dl.wp-block-simple-definition-list-blocks-list > dt {
	font-weight: 400;
	margin: 15px 0;
	font-size: 1.25em;
}

dl.wp-block-simple-definition-list-blocks-list > dd + dt {
	margin-top: 30px;
}


/* Separator */

.wp-block-separator {
	width: 20%;
	margin: 2em auto;
	border-style: solid;
	border-color: #aaa;
	white-space: nowrap;
}


/* Buttons */

.wp-block-button {
	margin-top: 2em;
	margin-bottom: 2em;
}


/* Custom CSS classes */

#page-container .wp-block-group.has-background {
	padding: 1.5em;
}

p.block-start:not(.has-background),
#page-container p.block-start:not(.has-background) {
	font-weight: bold;
	margin-top: 2em !important;
}

p.intro-with-image:before,
p.intro-with-image:after {
	content: '';
	display: table;
	clear: both;
}

p.intro-with-image > img:first-child {
	float: left;
	border-radius: 5px;
	margin: 0 10px 10px 0;
}
