/* JHR Loop Grid – frontend */

.jhr-loop-grid {
	position: relative;
	width: 100%;
}

.jhr-loop-grid__items {
	--jhr-lg-columns: 3;
	--jhr-lg-column-gap: 20px;
	--jhr-lg-row-gap: 20px;
	display: grid;
	grid-template-columns: repeat(var(--jhr-lg-columns), minmax(0, 1fr));
	column-gap: var(--jhr-lg-column-gap);
	row-gap: var(--jhr-lg-row-gap);
	width: 100%;
}

.jhr-loop-item {
	min-width: 0;
	position: relative;
}

/* Equal height */
.jhr-loop-grid__items--equal-height {
	align-items: stretch;
}

.jhr-loop-grid__items--equal-height .jhr-loop-item,
.jhr-loop-grid__items--equal-height .jhr-loop-item > .elementor,
.jhr-loop-grid__items--equal-height .jhr-loop-item > .elementor > .elementor-element,
.jhr-loop-grid__items--equal-height .jhr-loop-item > .elementor > .e-con,
.jhr-loop-grid__items--equal-height .jhr-loop-item > .elementor > .elementor-section {
	height: 100%;
}

/* Masonry */
.jhr-loop-grid__items--masonry {
	display: block;
	position: relative;
}

.jhr-loop-grid__items--masonry.jhr-lg-masonry-ready > .jhr-loop-item {
	position: absolute;
	top: 0;
	left: 0;
	transition: top 0.2s ease, left 0.2s ease;
}

/* Pagination */
.jhr-loop-grid__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
	width: 100%;
}

.jhr-loop-grid__pagination a,
.jhr-loop-grid__pagination span {
	text-decoration: none;
	line-height: 1;
	padding: 6px 10px;
	display: inline-block;
}

.jhr-loop-grid__pagination .current {
	font-weight: 700;
}

.jhr-loop-grid__pagination--load-more {
	flex-direction: column;
}

.jhr-loop-grid__load-more-btn {
	cursor: pointer;
	border: none;
	background-color: #61ce70;
	color: #fff;
	padding: 12px 26px;
	font-size: 15px;
	line-height: 1;
	border-radius: 3px;
}

.jhr-loop-grid__load-more-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

.jhr-loop-grid__scroll-sentinel {
	width: 100%;
	height: 1px;
}

.jhr-loop-grid__spinner {
	display: none;
	width: 22px;
	height: 22px;
	margin-top: 12px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: jhr-lg-spin 0.8s linear infinite;
}

.jhr-loop-grid.is-loading .jhr-loop-grid__spinner {
	display: block;
}

@keyframes jhr-lg-spin {
	to {
		transform: rotate(360deg);
	}
}

.jhr-loop-grid__no-more {
	margin-top: 10px;
	opacity: 0.8;
}

/* Messages */
.jhr-loop-grid__nothing-found {
	width: 100%;
	text-align: center;
	padding: 20px 0;
}

.jhr-loop-grid__notice {
	padding: 20px;
	border: 1px dashed #c4c4c4;
	color: #6d7882;
	text-align: center;
	font-size: 13px;
}
