/* Product-category cards: keep image, copy and action areas consistently aligned. */
.xk-product-detail .hero-section {
	display: none !important;
}

@media (min-width: 1025px) {
	.xk-product-center-layout .ct-container {
		width: min(1800px, calc(100% - 160px));
		max-width: 1800px;
	}

	.xk-product-feature .wp-block-columns > .wp-block-column:first-child {
		flex-basis: 50% !important;
	}

	.xk-product-feature .wp-block-columns > .wp-block-column:last-child {
		flex-basis: 50% !important;
	}

	.xk-category-archive .wp-block-post-template {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	.xk-category-archive .wp-block-post-template > li > .wp-block-group {
		min-height: 700px;
	}

	.xk-category-archive .wp-block-post-featured-image {
		height: 240px !important;
	}
}

/* Applications page: the existing Query Loop must use the same square image frame. */
.page-id-1660 .wp-block-query .wp-block-post-featured-image {
	display: block;
	aspect-ratio: 1 / 1;
	height: auto !important;
	overflow: hidden;
}

.page-id-1660 .wp-block-query .wp-block-post-featured-image > a {
	display: block;
	height: 100%;
}

.page-id-1660 .wp-block-query .wp-block-post-featured-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

.xk-category-archive .wp-block-post-template {
	align-items: stretch;
}

.xk-category-archive .wp-block-post-template > li {
	display: flex;
}

.xk-category-archive .wp-block-post-template > li > .wp-block-group {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 650px;
}

.xk-category-archive .wp-block-post-featured-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px !important;
	margin: 0 0 4px !important;
	overflow: hidden;
}

.xk-category-archive .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.xk-category-archive .wp-block-post-title {
	min-height: 112px;
	margin-bottom: 0 !important;
}

.xk-category-archive .wp-block-post-excerpt {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.xk-category-archive .wp-block-post-excerpt__more-link {
	margin-top: auto;
}

@media (max-width: 781px) {
	.xk-category-archive .wp-block-post-template > li > .wp-block-group {
		min-height: 0;
	}

	.xk-category-archive .wp-block-post-title {
		min-height: 0;
	}
}
