/**
 * Public-specific CSS.
 */

#template-em-grid {
	max-width: 1200px;
	margin: 40px auto;
}

#em-grid-header {
	text-align: center;
	margin-bottom: 40px;
}

#em-grid-header h1 {
	margin-bottom: 20px;
}

.em-grid-cat-desc {
	max-width: 800px;
	text-align: center;
	margin: 0 auto 25px;
}

.em-grid-filters {
	margin: 0;
	padding: 0;
	list-style: none;
}

.em-grid-filters li {
	display: inline-block;
	margin: 0 15px;
}

.em-grid-filters li a {
	border-bottom: 1px solid transparent;
}

.em-grid-filters li.current a, 
.em-grid-filters li a:hover {
	border-color: #000;
}

#em-grid {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
}

#em-grid article.post-em-grid {
	width: 30%;
	margin: 0 0 45px 0;
	padding: 0;
	border: none;
	text-align: center;
}

#em-grid article.post-em-grid:before,
#em-grid article.post-em-grid:after {
	display: none;
}

#em-grid .em-grid-gap {
	width: 30%;
}

#em-grid article.post-em-grid .entry-title {
	float: none;
	text-align: center;
	border: none;
	margin: 0;
	padding: 0;
}

#em-grid article.post-em-grid .featured-image {
	position: relative;
	margin: 0 0 15px 0;
	padding: 0;
}

.post-em-grid .featured-image img,
.post-em-grid .featured-image a {
	display: block;
}

#em-grid .post-em-grid .em-shop-the-post {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	padding: 10px;
	margin: 0;
	border: none;
	transform: translateY(100%);
	-webkit-transition: all .3s ease-in-out;
	-moz-transition: all .3s ease-in-out;
	-ms-transition: all .3s ease-in-out;
	-o-transition: all .3s ease-in-out;
	transition: all .3s ease-in-out;
}

.post-em-grid .featured-image {
	overflow: hidden;
}

.post-em-grid .featured-image img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
}

#em-grid .post-em-grid .featured-image:hover .em-shop-the-post {
	transform: translateY(0);
}

#em-grid .post-em-grid .em-shop-the-post:before {
	content: '\f290';
	font: 14px "Font Awesome 5 Free";
	font-weight: 900;
	display: block;
	position: absolute;
	top: 0;
	right: 20px;
	padding: 10px;
	background: #fff;
	color: #000;
	transform: translateY(-100%);
}

.post-em-grid .em-shop-title {
	display: none;
}

.screen-reader-text {
	display: none;
}

@media screen and (max-width: 1280px) {
	
	#template-em-grid {
		width: 90%;
	}

}

@media screen and (max-width: 767px) {

	.em-grid-filters li {
		display: block;
		margin: 10px 0;
	}

	#em-grid article.post-em-grid {
		width: 100%;
		margin-bottom: 70px;
	}

	#em-grid .em-grid-gap {
		width: 100%;
	}
	
	#em-grid .post-em-grid .em-shop-the-post {
		position: static;
		transform: translateY(0);
	}
	
	#em-grid .post-em-grid .em-shop-the-post:before {
		display: none;
	}

}
