/* Projects grid and filters (inc/projects.php). Matches the old JetEngine listing. */

.lls-projects__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 20px;
}

.lls-card {
	position: relative;
	display: block;
	height: 575px;
	margin: 2px;
	overflow: hidden;
	background: #fff;
}

.lls-card[hidden] {
	display: none;
}

/* Beats Elementor's `.elementor img { height: auto }`. */
.lls-card .lls-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}

.lls-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 35px;
	background: #000000b5;
	opacity: 0;
	transition: opacity 0.4s;
}

.lls-card:hover .lls-card__overlay,
.lls-card:focus-visible .lls-card__overlay {
	opacity: 1;
}

.lls-card__title {
	color: #fff;
	font-family: "al", sans-serif;
	font-size: 25px;
	font-weight: 600;
	text-align: center;
}

.lls-projects__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 500px;
	margin: 0;
	color: var(--e-global-color-primary, #000);
	font-family: "al", sans-serif;
	font-size: 21px;
	letter-spacing: 0.5px;
}

.lls-projects__empty[hidden] {
	display: none;
}

@media (max-width: 767px) {
	.lls-projects__grid {
		grid-template-columns: 1fr;
	}

	.lls-card {
		height: 350px;
	}

	.lls-card__title {
		font-size: 21px;
	}
}

/* Radio lists */

.lls-filter__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 6px;
	color: var(--e-global-color-primary, #000);
	font-family: "al", sans-serif;
	letter-spacing: 0.5px;
	cursor: pointer;
}

.lls-filter__item input {
	appearance: none;
	flex: none;
	width: 10px;
	height: 10px;
	margin: 5px 0 0;
	border: 1px solid #ccc;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.lls-filter__item input:checked {
	border-color: #000;
	background: #000;
}

/* Search box */

.lls-search {
	width: 200px;
	padding: 10px 15px;
	border: 1px solid #eee;
	border-radius: 0;
	color: var(--e-global-color-primary, #000);
	font-family: "al", sans-serif;
	font-size: 16px;
	letter-spacing: 1px;
}

/* Clear button */

.lls-clear {
	padding: 12px 20px;
	border: 1px solid #000;
	border-radius: 0;
	background: #000;
	color: #fff;
	font-family: "al", sans-serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 1px;
	cursor: pointer;
}

.lls-clear:hover {
	background: #000;
	color: #fff;
	opacity: 0.85;
}

.lls-clear[hidden] {
	display: none;
}
