/**
 * Herlong Plugin CSS
 *
 * CSS for the Herlong Template Grid element
 */

/* Grid Layout */
#herlong_masonry_container {
	width: 100%;
	margin: 0 auto;
}

#herlong_masonry_container:after {
	content: '';
	display: block;
	clear: both;
}

.herlong_masonry_item {
	margin-bottom: 20px;
	padding: 0 10px;
}

.herlong-grid .herlong_masonry_detail {
	padding: 20px 0;
}

.herlong-grid-image {
	width: 100%;
	position: relative;
	display: block;
	overflow: hidden;
	padding-top: 56%; /* Maintain 16:9 aspect ratio */
}

.herlong-grid-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	position: absolute;
	top: 0;
	left: 0;
	transition: .4s all;
}

.herlong-grid-image:hover img {
	filter: brightness(0.5);
	transition: .4s all;
}

/* Filter */
.herlong_masonry_filter {
	margin-bottom: 30px;
	text-align: center;
}

.herlong_masonry_filter ul {
	display: inline-block;
	list-style: none;
	margin: 0;
	padding: 0;
}

.herlong_masonry_filter li {
	display: inline-block;
	margin: 0 10px;
}

.herlong_masonry_filter a {
	/*color: #333;*/
	/*font-size: 14px;*/
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.3s ease;
	font-weight: bold;
}

.herlong_masonry_filter a:hover,
.herlong_masonry_filter a.selected {
	/*color: #2ed3ae;*/
}

.herlong_masonry_title h4 {
	font-size: 20px;
}

/* Load More Button */
.herlong_loader_container {
	text-align: center;
	margin: 30px 0;
}

.load_more {
	display: inline-block;
	padding: 10px 20px;
	background-color: #f5f5f5;
	color: #333;
	text-decoration: none;
	border-radius: 3px;
	transition: background-color 0.3s ease;
}

.load_more:hover {
	background-color: #e5e5e5;
}

.load_more.loading {
	opacity: 0.7;
	cursor: wait;
}

.load_more.end_of_posts {
	opacity: 0.5;
	cursor: default;
}

/* Responsive */
@media (min-width: 768px) {
	.herlong_masonry_item.col-2 {
		width: 50%;
		float: left;
	}

	.herlong_masonry_item.col-3 {
		width: 33.333%;
		float: left;
	}

	.herlong_masonry_item.col-4 {
		width: 25%;
		float: left;
	}
}

@media (max-width: 767px) {
	.herlong_masonry_item {
		width: 100%;
		float: none;
	}
}
