/*!
 * Single Post Components - Knowledge AGMA Theme
 * Version: 2.4.3
 * Single post page styles
 */

/* Single Post Layout */
.single-post .main {
	width: 75.4vw;
	float: none;
	display: flex;
}

.single-post .main .page.page_content {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-content: space-between;
	align-items: flex-start;
	gap: 30px;
}

.single-post .main .page.page_content div#single_post_wrap {
	width: 44vw;
	margin-top: 37px;
	margin-bottom: 37px;
}

.single-post .main .page.page_content .more_sc_content {
	width: 22vw;
	position: relative;
	top: 0;
	left: 0;
	margin: 37px 0;
}

.single-post .main .page.page_content .more_sc_content .more_posts h3 {
	font-size: 1.17em;
	margin-top: 0;
}

/* Single Post Wrap */
.single_post_wrap .img {
	height: 373px;
	background-position: bottom;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-clip: border-box;
	transition: var(--transition-slow) linear;
	-webkit-mask-image: url(../../../images/my_path2.svg);
	-webkit-mask-size: cover;
	-webkit-mask-position: top;
	-webkit-mask-repeat: no-repeat;
}

@media screen and (max-width: 765px) {
	.single_post_wrap .img {
		height: 280px;
		-webkit-mask-position: top;
		margin-top: 22px;
	}
}

.single_post_wrap .img:hover {
	-webkit-mask-position: left bottom;
	-webkit-mask-size: 180%;
}

.single_post_wrap img {
	width: 100%;
	height: auto;
	object-fit: cover;
	margin-bottom: 15px;
	object-position: center;
	background-position: bottom;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-clip: border-box;
	transition: var(--transition-slow) linear;
	-webkit-mask-size: cover;
	-webkit-mask-position: bottom;
	-webkit-mask-repeat: no-repeat;
	max-width: 1393px;
	max-height: 380px;
}

/* Image Alignment */
.single_post_wrap img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	clear: both;
	width: revert-layer;
}

.single_post_wrap img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
	max-width: 50%;
	width: revert-layer;
}

.single_post_wrap img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
	max-width: 50%;
	width: revert-layer;
}

.single_post_wrap img.size-medium {
	max-width: 300px;
}

.single_post_wrap img.size-full {
	max-width: 100%;
	clear: both;
}

.single_post_wrap::after {
	content: "";
	display: table;
	clear: both;
}

@media screen and (max-width: 768px) {
	.single_post_wrap img.alignright,
	.single_post_wrap img.alignleft {
		float: none;
		margin: 15px auto;
		max-width: 100%;
		display: block;
	}
}

.single-cases .single_post_wrap img:not(.post-type-icon) {
	padding-top: 47px;
}

.single_post_wrap h1 span img {
	max-width: 20px;
	margin: auto;
	padding-inline-end: 10px;
}

/* Article Content */
.single_post_wrap .article_content {
	line-height: 1.2;
	white-space: pre-line;
	font-size: 1.2em;
}

.single_post_wrap .article_content h3:first-child,
.single_post_wrap .article_content h4:first-child,
.single_post_wrap .article_content h5:first-child,
.single_post_wrap .article_content h6:first-child {
	margin: auto;
}

.single-post .article_content a {
	text-decoration: underline;
	color: var(--s-color);
}

/* Post Header */
.single_post_wrap .post_header {
	display: grid;
	grid-template-columns: 3fr 1fr;
	align-items: center;
	position: sticky;
	top: -2px;
	background: var(--b-color);
	z-index: 998;
	grid-gap: 3px;
	line-height: 24px;
	padding: 16px 0px 16px 20px;
	grid-template-areas:
		"post_header_title post_header_title"
		"post_header_tax post_header_share_box";
}

.single_post_wrap .title {
	grid-area: post_header_title;
	border-bottom: var(--border-width) var(--border-style);
	padding-bottom: 16px;
	display: flex;
	flex-direction: column;
	margin-bottom: 10px;
}

.single_post_wrap .title h1 {
	margin: 0;
	font-family: var(--font-a);
	font-size: 2.05em;
	line-height: 1.1em;
}

.single_post_wrap .title h2 {
	margin: 0;
	font-family: var(--font-a);
	font-weight: normal;
	font-size: 2.05em;
	line-height: 1.1em;
}

.single-post .single_post_wrap .title h2 {
	font-size: 1.55em;
}

.single_post_wrap .post_header .tax {
	text-align: left;
	display: flex;
	flex-flow: wrap;
	justify-content: flex-start;
	grid-area: post_header_tax;
	line-height: 1;
	gap: 4px;
}

.single_post_wrap .post_header .share_box {
	text-align: left;
	padding-right: 10px;
	grid-area: post_header_share_box;
}

.single_post_wrap .post_header .share_box span.env_mobile_icon {
	/* display: none; */
}

.single_post_wrap .post_header .share_box svg {
	width: 1.1em;
	vertical-align: middle;
	margin-right: 6px;
	margin-top: 6px;
	cursor: pointer;
}

.single_post_wrap .post_header .share_box svg:hover g {
	stroke: var(--s-color);
}

/* Image Masks */
.post_list_box img.img_01,
.single_post_wrap img.img_01,
.r_post_img.img_01 {
	-webkit-mask-image: url(../../../images/path_01.svg);
}

.single_post_wrap img.img_02,
.r_post_img.img_02 {
	-webkit-mask-image: url(../../../images/path_02.svg);
}

.single_post_wrap img.img_03,
.r_post_img.img_03 {
	-webkit-mask-image: url(../../../images/path_03.svg);
}

.single_post_wrap img.img_04,
.r_post_img.img_04 {
	-webkit-mask-image: url(../../../images/path_04.svg);
}

.single_post_wrap img.img_05,
.r_post_img.img_05 {
	-webkit-mask-image: url(../../../images/path_05.svg);
}

.single_post_wrap img:hover {
	-webkit-mask-position: left bottom;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
	.single_post_wrap .article_content {
		padding: 0 16px;
	}

	.single_post_wrap .title {
		padding-bottom: 0;
	}

	.single_post_wrap .title h1 {
		margin: 0;
		font-family: var(--font-a);
		font-size: 1.6em;
		line-height: 1em;
		margin-bottom: 8px;
	}

	.single_post_wrap .title h2 {
		margin: 0;
		font-family: var(--font-a);
		font-weight: normal;
		font-size: 1.4em;
		line-height: 0.9em;
	}

	.single-cases .single_post_wrap img:not(.post-type-icon) {
		padding-top: 6px;
	}

	.single_post_wrap .post_header {
		padding-left: 0;
		grid-template-columns: 1fr 1fr;
	}

	.single_post_wrap .post_header .tax .post_tax {
		margin: 0;
	}

	.single-cases .single_post_wrap .post_header {
		padding-bottom: 0px;
		border-bottom: none;
	}

	.single-post .main {
		width: 96vw !important;
	}

	.single-post .main .page.page_content {
		display: block;
	}

	.single-post .main .page.page_content div#single_post_wrap {
		width: 100%;
	}

	.single-post .main .page.page_content .more_sc_content {
		width: 100%;
		position: relative;
		top: 0;
		left: 0;
		padding: 0;
	}
}

iframe {
	width: 100%;
    margin: 16px 0;
}