.apro-posts {
	width: 100%;
}

.apro-posts__list {
	display: grid;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: 1fr;
}

.apro-posts--cols-2 .apro-posts__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apro-posts--cols-3 .apro-posts__list {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apro-posts--cols-4 .apro-posts__list {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
	.apro-posts--cols-3 .apro-posts__list,
	.apro-posts--cols-4 .apro-posts__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.apro-posts--cols-2 .apro-posts__list,
	.apro-posts--cols-3 .apro-posts__list,
	.apro-posts--cols-4 .apro-posts__list {
		grid-template-columns: 1fr;
	}
}

.apro-posts__item {
	min-width: 0;
}

.apro-posts--elementor .apro-posts__item > .elementor {
	height: 100%;
}

/* Fallback card (only when no Elementor card template) */
.apro-posts--fallback .apro-posts__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.apro-posts--fallback .apro-posts__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.apro-posts--fallback .apro-posts__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.apro-posts--fallback .apro-posts__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 0 0;
	flex: 1;
}

.apro-posts--fallback .apro-posts__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	font-size: 0.875rem;
	opacity: 0.75;
}

.apro-posts--fallback .apro-posts__title {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.35;
}

.apro-posts--fallback .apro-posts__title a {
	color: inherit;
	text-decoration: none;
}

.apro-posts--fallback .apro-posts__excerpt {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	opacity: 0.85;
}

.apro-posts--fallback .apro-posts__more {
	margin-top: auto;
	padding-top: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.apro-posts--empty {
	opacity: 0.7;
	font-size: 0.9375rem;
}
