/* Anchor targets (e.g. the featured event link in the service hero) shouldn't
   land underneath the fixed header */
section.post-feed[id] {
	scroll-margin-top: 130px;
}

.post-item__img-wrapper {
	border-radius: var(--radius-m);
	overflow: hidden;
	aspect-ratio: 450 / 334;
	position: relative;
}

.post-item__countdown {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	padding: 2px 12px;
	line-height: 1.3;
	border-radius: 50vmax;
	color: var(--base-light);
	background: var(--primary-ultra-dark);
	pointer-events: none;
}

/* Rendered above the meta line rather than inside the image wrapper.
   On mobile it stays there; on desktop it's positioned back over the image
   (the .post-item is `relative` and the image starts at its top-left corner). */
.post-item__countdown--inline {
	position: static;
	display: inline-block;
	align-self: flex-start;
	top: auto;
	left: auto;
}

@media screen and (min-width: 1026px) {
	.post-item__countdown--inline {
		position: absolute;
		top: 12px;
		left: 12px;
	}
}
.mega-feed__section .post-item__img-wrapper {
	aspect-ratio: 332 / 210;
}

.post-item__img-wrapper img {
	width: 100%;
	min-height: 100%;
	object-fit: cover;
	border-radius: var(--radius-m);
	transform: translateZ(0);
}
.post-item__img-wrapper img {
	height: 100%;
}

.mega-feed__section .post-item[cpt="case"] .post-item__img-wrapper,
.mega-feed__section .post-item[cpt="case"] .post-item__img-wrapper img {
	border-radius: var(--radius-l);
	flex-grow: 1;
}

.post-item__img {
	transition: 0.2s ease-out;
	transform: translateZ(0);
	object-fit: cover;
}

.post-item__heading {
	font-size: var(--text-l);
}

/* Horizontal card variant — image left, content right.
   Used by the mega feed and the featured event in the service hero.
   Selector is repeated to outrank ACSS's .flex--col.flex--col on the same element. */
.post-item.post-item--row.post-item--row {
	display: flex;
	flex-direction: row;
	gap: 16px;
	flex: 1;
}

.post-item--row .post-item__img-wrapper {
	width: 143px;
	flex-shrink: 0;
	overflow: hidden;
	position: relative;
}

@media screen and (max-width: 1025px) {
	.post-item--row .post-item__img-wrapper {
		width: 105px;
		min-height: 150px;
	}
}

.post-item--row .post-item__img {
	object-fit: cover;
}

.post-item--row .link-primary {
	margin-top: auto;
}

/* Meta row shouldn't swallow clicks meant for the card */
.post-item--row .post-item__meta {
	pointer-events: none;
}

@media screen and (max-width: 1025px) {
	.post-feed__upper {
		align-items: start !important;
		gap: var(--gap-xs7);
	}
}

.post-item .link-primary {
	pointer-events: none;
}

.post-item__meta {
	margin-bottom: var(--gap-xs8);
}

.post-item__content .link-primary {
	margin-top: var(--gap-xs8);
}

@media screen and (max-width: 1025px) {
	.mega-feed__post .mega-feed__post-inner {
		gap: var(--gap-xs3) !important;
	}
}
