/* Filter buttons — matches the site's global .btn pattern */
@keyframes wportFilterNudge {
	0% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-10px);
	}
	50% {
		transform: translateX(0);
	}
	75% {
		transform: translateX(-10px);
	}
	100% {
		transform: translateX(0);
	}
}

.wport-filter-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
}

.wport-filter-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	outline: none;
	border-radius: 4px !important;
	vertical-align: middle;
	text-align: center;
	text-decoration: none !important;
	text-shadow: none;
	line-height: 1.2;
	cursor: pointer;
	transition: all 0.25s ease;
	color: #ffffff !important;
	border: 4px solid transparent !important;
	box-shadow: unset !important;
	text-transform: var(--btn-transform, uppercase);
	font-weight: var(--btn-font-weight, 600);
	font-family: var(--btn-font-family, inherit);
	font-style: var(--btn-font-style, unset);
	padding: var(--btn-padding, 5px 20px);
	min-height: var(--btn-height, 42px);
	font-size: var(--btn-font-size, 13px);
	background: transparent !important;
	background-color: transparent !important;
}

.wport-filter-btn:nth-child(1) { animation-delay: 0.03s; }
.wport-filter-btn:nth-child(2) { animation-delay: 0.08s; }
.wport-filter-btn:nth-child(3) { animation-delay: 0.13s; }
.wport-filter-btn:nth-child(4) { animation-delay: 0.18s; }
.wport-filter-btn:nth-child(5) { animation-delay: 0.23s; }
.wport-filter-btn:nth-child(6) { animation-delay: 0.28s; }
.wport-filter-btn:nth-child(7) { animation-delay: 0.33s; }
.wport-filter-btn:nth-child(8) { animation-delay: 0.38s; }
.wport-filter-btn:nth-child(n+9) { animation-delay: 0.42s; }

.wport-filter-btn:hover {
	border-color: #0eb04b !important;
	background: #0eb04b !important;
	background-color: #0eb04b !important;
	color: #ffffff !important;
}

.wport-filter-btn.is-active {
	background: #0eb04b !important;
	background-color: #0eb04b !important;
	border-color: #0eb04b !important;
	color: #ffffff !important;
}

@media (max-width: 600px) {
	.wport-filter-buttons {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		justify-content: flex-start;
		gap: 8px;
		padding-bottom: 4px;
		animation: wportFilterNudge 1.1s ease 0.4s;
	}

	.wport-filter-buttons::-webkit-scrollbar {
		display: none;
	}

	.wport-filter-btn {
		border-width: 2px !important;
		padding: 4px 12px;
		min-height: 32px;
		font-size: 11px;
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

/* Grid */
.wport-filter-grid {
	display: grid;
	grid-template-columns: repeat(var(--wport-columns, 3), 1fr);
	gap: 20px;
	transition: opacity 0.2s ease;
}

.wport-filter-grid.is-loading {
	opacity: 0.4;
	pointer-events: none;
}

@media (max-width: 900px) {
	.wport-filter-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.wport-filter-grid {
		grid-template-columns: 1fr;
	}
}

/* Cards — same green overlay-on-hover pattern used elsewhere on the site */
.wport-filter-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	text-decoration: none;
	aspect-ratio: 1 / 1;
}

.wport-filter-card__image {
	width: 100%;
	height: 100%;
}

.wport-filter-card__image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	object-fit: cover;
	display: block;
}

.wport-filter-card__overlay {
	position: absolute;
	inset: 0;
	background: rgba(14, 176, 75, 0.68);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.wport-filter-card:hover .wport-filter-card__overlay {
	opacity: 1;
}

.wport-filter-card__title {
	color: #ffffff;
	font-weight: 600;
	font-size: 16px;
}

/* Pagination */
.wport-filter-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 30px;
}

.wport-filter-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
}

.wport-filter-pagination .page-numbers.current {
	background: #0eb04b;
	border-color: #0eb04b;
	color: #ffffff;
}

.wport-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 0;
	opacity: 0.7;
}
