/**
 * Blog listing card.
 *
 * The dark bar holds the title, author, date, and category. The excerpt stays
 * in the post body, behind that bar, on every screen size. Read More sits
 * below the bar.
 */

.blog-post-img img[src=""] {
	display: none;
}

.blog-non-single-post {
	position: relative;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin-bottom: 28px;
}

.blog-non-single-post .blog-post-img {
	position: relative;
	overflow: hidden;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.blog-non-single-post .blog-post-img > a {
	display: block;
	overflow: hidden;
}

.blog-non-single-post .blog-post-img img {
	opacity: 1 !important;
	-webkit-opacity: 1 !important;
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
}

.blog-non-single-post .post-content {
	position: relative;
}

.blog-non-single-post .post-content,
.blog-non-single-post .post-content-content,
.blog-non-single-post .post-content-content p {
	max-width: 100%;
	box-sizing: border-box;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.blog-non-single-post .black-stripe,
.blog-non-single-post .post-content > .black-stripe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-width: 100%;
	height: auto;
	box-sizing: border-box;
	margin: 0;
	background: rgba(0, 0, 0, 0.7);
	z-index: 1;
}

.blog-non-single-post .black-stripe .post-title,
.blog-non-single-post .black-stripe .post-title a {
	color: #fff;
	display: block;
	white-space: normal;
	overflow: visible;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.blog-non-single-post .post-content-content {
	position: relative;
	z-index: 0;
}

.blog-non-single-post .post-content-content .button,
.blog-non-single-post .post-content-content a.button {
	position: relative;
	z-index: 2;
}

@media only screen and (max-width: 1170px) {
	body.blog #content-container,
	body.archive #content-container,
	body.category #content-container,
	body.tag #content-container,
	body.single-post #content-container,
	body.page-template-template-blog-php #content-container {
		display: -webkit-flex;
		display: flex;
		-webkit-flex-wrap: wrap;
		flex-wrap: wrap;
		-webkit-align-items: flex-start;
		align-items: flex-start;
		gap: 24px;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 20px;
		padding-right: 20px;
		box-sizing: border-box;
	}

	body.blog .page-wrapper,
	body.archive .page-wrapper,
	body.single-post .page-wrapper,
	body.page-template-template-blog-php .page-wrapper,
	body.blog .content-boxed,
	body.archive .content-boxed,
	body.single-post .content-boxed,
	body.page-template-template-blog-php .content-boxed,
	.blog-non-single-post,
	.blog-single-post {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box;
		overflow: visible;
		-webkit-text-size-adjust: 100%;
	}

	body.blog #content,
	body.archive #content,
	body.category #content,
	body.tag #content,
	body.single-post #content,
	body.page-template-template-blog-php #content {
		-webkit-flex: 1 1 0%;
		flex: 1 1 0%;
		min-width: 0;
		width: auto !important;
		max-width: none !important;
		float: none !important;
		box-sizing: border-box;
	}

	body.blog #sidebar,
	body.archive #sidebar,
	body.category #sidebar,
	body.tag #sidebar,
	body.single-post #sidebar,
	body.page-template-template-blog-php #sidebar {
		-webkit-flex: 0 1 280px;
		flex: 0 1 280px;
		width: auto !important;
		max-width: 32%;
		min-width: 0;
		float: none !important;
		box-sizing: border-box;
	}

	body.blog .page-title h1,
	body.archive .page-title h1,
	body.category .page-title h1,
	body.tag .page-title h1,
	body.page-template-template-blog-php .page-title h1 {
		margin-top: 0;
		padding-top: 20px;
		padding-bottom: 20px;
		font-size: 26px;
		line-height: 1.3;
		word-wrap: break-word;
	}

	.blog-non-single-post .black-stripe .post-title,
	.blog-non-single-post .black-stripe .post-title a {
		font-size: 24px;
		line-height: 1.3;
	}

	#sidebar .wpcf7,
	#sidebar .cf7sr-g-recaptcha,
	#sidebar iframe {
		max-width: 100%;
	}

	.blog-single-post .post-content-content img,
	.blog-single-post .post-content-content .alignleft,
	.blog-single-post .post-content-content .alignright,
	.blog-single-post .post-content-content .size-full {
		float: none !important;
		display: block;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		margin: 0 0 16px !important;
	}

	#content-container .wp-pagenavi {
		display: -webkit-flex;
		display: flex;
		-webkit-flex-wrap: wrap;
		flex-wrap: wrap;
		-webkit-justify-content: center;
		justify-content: center;
		-webkit-align-items: center;
		align-items: center;
		clear: both;
		padding: 16px 0 24px;
		max-width: 100%;
		overflow: hidden;
	}

	.pg-pagination a,
	#content-container .wp-pagenavi a,
	#content-container .wp-pagenavi span {
		display: inline-block !important;
		width: auto !important;
		min-width: 36px !important;
		height: auto !important;
		min-height: 36px !important;
		padding: 8px 10px !important;
		line-height: 1.2 !important;
		box-sizing: border-box;
		margin: 3px;
	}

	#content-container .wp-pagenavi span.pages {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		border: 0 !important;
		text-align: center;
		margin: 0 0 8px;
	}

	.wp-pagenavi .larger.page,
	.wp-pagenavi .page.larger,
	.wp-pagenavi .nextpostslink,
	.wp-pagenavi .previouspostslink,
	.wp-pagenavi .last,
	.wp-pagenavi .first {
		display: inline-block !important;
	}
}

@media only screen and (max-width: 800px) {
	body.blog #content-container,
	body.archive #content-container,
	body.category #content-container,
	body.tag #content-container,
	body.single-post #content-container,
	body.page-template-template-blog-php #content-container {
		-webkit-flex-direction: column;
		flex-direction: column;
	}

	body.blog #content,
	body.archive #content,
	body.category #content,
	body.tag #content,
	body.single-post #content,
	body.page-template-template-blog-php #content,
	body.blog #sidebar,
	body.archive #sidebar,
	body.category #sidebar,
	body.tag #sidebar,
	body.single-post #sidebar,
	body.page-template-template-blog-php #sidebar {
		-webkit-flex: 1 1 100%;
		flex: 1 1 100%;
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
	}
}

@media only screen and (max-width: 480px) {
	.blog-non-single-post .black-stripe .post-title,
	.blog-non-single-post .black-stripe .post-title a {
		font-size: 20px;
	}
}
