/* Kafferlin Strategies - Custom Divi Modules - Modules Stylesheet */

/******* KS Blog Module: *******/
/* fullwidth */
.et_pb_blog_fullwidth .entry-featured-image-url img {
	width: 100%; /* force fullwidth on fullwidth blog images */
}

.et_pb_blog_fullwidth  .et_overlay,
.et_pb_blog_grid_equalized .et_overlay,
.et_pb_blog_stacked .et_pb_overlay {
	border: none;
}

/* grid layout */

/* new divi got rid of blog animation
.js .et_pb_blog_grid_equalized.et_pb_ks_animation_wait {
	opacity: 0;
}*/
.js .et_pb_blog_grid_equalized.et_pb_ks_animation_ready .et_pb_post {
	opacity: 1;
	-webkit-animation: gridFadeIn 1s 1 cubic-bezier(0.77, 0, 0.175, 1);
	-moz-animation: gridFadeIn 1s 1 cubic-bezier(0.77, 0, 0.175, 1);
	-o-animation: gridFadeIn 1s 1 cubic-bezier(0.77, 0, 0.175, 1);
	animation: gridFadeIn 1s 1 cubic-bezier(0.77, 0, 0.175, 1);
}

.et_pb_blog_grid_equalized {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.et_pb_blog_grid_equalized .et_pb_post {
	width: 30%;
	overflow: hidden;
}

.et_pb_column_1_2 .et_pb_blog_grid_equalized,
.et_pb_column_1_3 .et_pb_blog_grid_equalized,
.et_pb_column_1_4 .et_pb_blog_grid_equalized {
	display: block;
}

.et_pb_column_2_3 .et_pb_post,
.et_pb_column_3_4 .et_pb_post {
	width: 46%;
}

@media only screen and (max-width:1080px) {
	.et_pb_blog_grid_equalized .et_pb_post {
		width: 46%;
	}
}

@media only screen and (max-width:760px) {
	.et_pb_blog_grid_equalized {
		justify-content: space-around;
	}
	.et_pb_blog_grid_equalized .et_pb_post {
		width: 100%;
	}
}

.et_pb_column_1_2 .et_pb_blog_grid_equalized .et_pb_post,
.et_pb_column_1_3 .et_pb_blog_grid_equalized .et_pb_post,
.et_pb_column_1_4 .et_pb_blog_grid_equalized .et_pb_post {
	width: 100%;
}

.et_pb_blog_grid_equalized::after {
	display: none !important;
}

.et_pb_ks_blog_grid_wrapper .et_pb_image_container {
	position: relative;
}

.et_pb_ks_blog_grid_wrapper .et_pb_image_container img {
	display: block;
}

/* tiled layout*/
.et_pb_blog_tiles {
	display: flex;
	flex-wrap: wrap;
}

.et_pb_blog_tiles .et_pb_post {
	margin-bottom: 0;
}

.et_pb_blog_tile_wrapper {
	width: 100%;
	height: 0;
	padding-bottom: 62.5%;
	display: block;
	overflow: hidden;
	position: relative;
}
.et_pb_blog_tile {
	position: absolute;
	top: 50%;
	-ms-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	text-align: center;
	width: 100%;
}

.et_pb_blog_tile_hover {
	opacity: 0;
	transition: all 0.3s ease-out;
}

.et_pb_blog_tile_hover:hover {
	opacity: 1;
}

.et_pb_blog_tile .entry-title, .et_pb_blog_tile .post-meta {
	padding-left: 30px;
	padding-right: 30px;
	margin: 0;
}

/* stacked layout */
.et_pb_blog_stacked .et_pb_post {
	overflow: hidden;
	margin-bottom: 40px;
}
.et_pb_blog_stacked .et_pb_post > a.entry-featured-image-url .et_overlay {
	border: none;
}
.et_pb_blog_stacked .et_pb_post > a.entry-featured-image-url {
	max-width: 400px;
	float: left;
	margin-right: 40px;
}
.et_pb_blog_stacked .et_pb_post .et_pb_blog_stack_content {
	display: block;
	overflow: hidden;
	min-width: 300px;
	margin-left: 30px;
	margin-right: 30px;
	margin-bottom: 30px;
}
.et_pb_blog_stacked.et_pb_blog_righthand .et_pb_post > a.entry-featured-image-url {
	float: right;
	margin-right: 0;
	margin-left: 40px;
}
.et_pb_blog_stacked.et_pb_blog_righthand .et_pb_post .et_pb_blog_stack_content {
	text-align: right;
}
.et_pb_blog_stacked.et_pb_blog_alternate:not(.et_pb_blog_righthand) .et_pb_post:nth-child(2n) > a.entry-featured-image-url {
	float: right;
	margin-right: 0;
	margin-left: 40px;
}
.et_pb_blog_stacked.et_pb_blog_alternate:not(.et_pb_blog_righthand) .et_pb_post:nth-child(2n) .et_pb_blog_stack_content {
	text-align: right;
}
.et_pb_blog_stacked.et_pb_blog_alternate.et_pb_blog_righthand .et_pb_post:nth-child(2n) > a.entry-featured-image-url {
	float: left;
	margin-left: 0;
	margin-right: 40px;
}
.et_pb_blog_stacked.et_pb_blog_alternate.et_pb_blog_righthand .et_pb_post:nth-child(2n) .et_pb_blog_stack_content {
	text-align: left;
}

/* fix pagination styling */
.et_pb_blog_tiles + .pagination,
.et_pb_blog_stacked + .pagination {
	margin: 10px;
}

.et_pb_ks_slider.et_pb_ks_slider_fullscreen .et_pb_slides .et_pb_slide {
	height: 100vh;
}
.et_pb_ks_slider.et_pb_ks_slider_fullscreen .et_pb_slides .et_pb_slide .et_pb_container {
	display: flex;
	min-height: 0 !important;
	height: 100% !important;
}

