/*
 * v1.8.52.8 (Susanne, 23 Nov 2026): homepage "What HR leaders are reading"
 * cards — show the 16:9 thumbnail in full on top, with the title card
 * (kind label, title, date) sitting below it, not overlapping the image.
 *
 * Scoped to .shf-mck only, so the Articles page and every other homepage
 * section stay as they are. The staggered grid, reveal, image zoom and
 * the round "All articles" arrow are unchanged. The title-panel
 * translateY(-4px) hover depended on the panel floating over the photo
 * (lifting it revealed more of the image); with the panel now below the
 * photo that lift would open a gap, so the same 4px lift is applied to
 * the whole card instead. The image scale(1.04) zoom is untouched.
 *
 * The card ::after scrim is turned off. It existed to keep overlaid text
 * readable and would mute the newly visible thumbnail.
 */

/* Let each card size to the 16:9 image plus the title block. */
.shf-mck-grid .wp-block-post-template > li:nth-child(1),
.shf-mck-grid .wp-block-post-template > li:nth-child(2),
.shf-mck-grid .wp-block-post-template > li:nth-child(3) {
	height: auto !important;
	min-height: 0 !important;
	align-self: start;
}

.shf-mck-card {
	display: flex !important;
	flex-direction: column;
	height: auto !important;
	overflow: hidden; /* clip the image to the card radius; hover lift is on the card */
}

/* 16:9 thumbnail on top, fully visible (cover inside a 16:9 box). */
.shf-mck .shf-mck-card__image,
.shf-mck .shf-mck-card__image.shf-mck-card__image--v186 {
	position: relative !important;
	inset: auto !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin: 0 !important;
	flex: none;
}

.shf-mck .shf-mck-card__image img,
.shf-mck .shf-mck-card__image .shf-as-bg,
.shf-mck .shf-mck-card__image--v186 .shf-as-bg {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: 50% 50%;
}

/* Drop the image scrim — it was there so overlaid text stayed readable. */
.shf-mck-card::after {
	content: none !important;
	background: none !important;
	display: none !important;
}

/* Title card sits below the image, flush, not inset over the photo. */
.shf-mck .shf-mck-card__body,
.shf-mck .shf-mck-grid li:nth-child(1) .shf-mck-card__body {
	position: static !important;
	inset: auto !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	z-index: auto;
	flex: 1 1 auto;
	width: auto;
	justify-content: flex-start !important;
	margin: 0 !important;
	border-radius: 0;
	background: #fff !important;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: none;
	/* Keep the existing hover transition; the transform itself moves to the card. */
}

/* Same 4px lift, now on the whole card so the title and image stay together. */
.shf-mck-card:hover .shf-mck-card__body,
.shf-mck-card:focus-within .shf-mck-card__body {
	transform: none;
}
.shf-mck-card:hover,
.shf-mck-card:focus-within {
	transform: translateY(-4px);
	transition: transform .35s ease;
}

@media (prefers-reduced-motion: reduce) {
	.shf-mck-card,
	.shf-mck-card:hover,
	.shf-mck-card:focus-within {
		transition: none !important;
		transform: none !important;
	}
}

@media (max-width: 960px) {
	.shf-mck-grid .wp-block-post-template > li:nth-child(1),
	.shf-mck-grid .wp-block-post-template > li:nth-child(2),
	.shf-mck-grid .wp-block-post-template > li:nth-child(3) {
		height: auto !important;
		min-height: 0 !important;
	}
}

@media (max-width: 600px) {
	.shf-mck-grid .wp-block-post-template > li:nth-child(n),
	.shf-mck-grid .wp-block-post-template > li:nth-child(1),
	.shf-mck-grid .wp-block-post-template > li:nth-child(2),
	.shf-mck-grid .wp-block-post-template > li:nth-child(3) {
		height: auto !important;
		min-height: 0 !important;
	}
}
