/**
 * Default post card — extends style.css Section 7 (.card-post).
 *
 * Square cover images and Section 7 hover/shadow are defined globally in style.css.
 * This file is reserved for card-post overrides inside specific block contexts.
 */

/* Kadence archive loop: flex (not grid) so justify-content centers incomplete last row */
#archive-container.kadence-posts-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: var(--grid-gap);
}

#archive-container > li.custom-post-type-list-item {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	flex: 1 1 100%;
	max-width: 100%;
	min-width: 0;
	height: 100%;
}

@media (min-width: 576px) {
	#archive-container.grid-sm-col-2 > li.custom-post-type-list-item {
		flex: 0 1 calc((100% - var(--grid-gap)) / 2);
		max-width: calc((100% - var(--grid-gap)) / 2);
	}
}

@media (min-width: 1025px) {
	#archive-container.grid-lg-col-3 > li.custom-post-type-list-item {
		flex: 0 1 calc((100% - 2 * var(--grid-gap)) / 3);
		max-width: calc((100% - 2 * var(--grid-gap)) / 3);
	}
}

#archive-container > li.custom-post-type-list-item > .entry-list-item.card {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}
