.post-item {
	transition: 0.3s ease-out;
}
.post-item__inner {
	gap: 22px;
	padding: 12px;
	height: 100%;
}
.post-item__image {
	overflow: hidden;
	border-radius: var(--radius-s);
	position: relative;
}
.post-item__image {
	overflow: hidden;
	border-radius: var(--radius-s);
}
.post-item__image img {
	display: block;
	min-height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	min-width: 100%;
	object-fit: cover;
	transition: 0.35s ease-out;
	transform: translateZ(0);
}
@media screen and (max-width: 1025px) {
	.post-item__image img,
	.post-item__image img img {
		max-height: 202px;
		border-radius: var(--radius-s);
	}
}
@media screen and (max-width: 1025px) {
	.post-item__image img {
		position: static;
	}
}

@keyframes read-more-line {
	from {
		width: 0;
	}
	to {
		width: 100%;
	}
}
@media screen and (max-width: 1025px) {
	.nyheter-feed__upper {
		align-items: flex-start !important;
		gap: 16px;
		padding-bottom: 4px;
	}
}

.post-item__read-more {
	position: relative;
	pointer-events: none;
	margin-top: auto;
	padding-top: var(--space-s);
	color: var(--primary-dark);
}
.post-item__read-more::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--primary-dark);
}
@media screen and (min-width: 1026px) {
	.post-item:has(a:is(:hover, :focus-visible)) .post-item__read-more::after {
		background: white;
	}

	.post-item__read-more.is-animating::after {
		animation: read-more-line 0.85s var(--animation-bezier) forwards;
	}
}

.post-item a.clickable-parent {
	text-decoration: none !important;
}
@media screen and (min-width: 1026px) {
	.post-item:has(a:is(:hover, :focus-visible)) {
		background: var(--primary-ultra-dark);
	}

	.post-item:has(a:is(:hover, :focus-visible)) .post-item__image img {
		transform: translateZ(0) scale(1.05);
	}
}

.post-item a,
.post-item h3,
.post-item span {
	transition: 0.2s ease-out;
}
@media screen and (min-width: 1026px) {
	.post-item:has(a:is(:hover, :focus-visible)) * {
		color: White;
	}
	.post-item:has(a:is(:hover, :focus-visible)) span.post-item__read-more {
		color: var(--accent);
	}
	.post-item:has(a:is(:hover, :focus-visible)) span.post-item__read-more::after {
		background: var(--accent);
	}

	.post-item:has(a:is(:hover, :focus-visible)) .pill {
		border-color: white;
	}
}
.post-item .pill {
	z-index: 9;
	position: relative;
	display: inline-block;
}
@media screen and (min-width: 1026px) {
	.post-item .pill:is(:hover, :focus-visible) {
		background: white;
		color: var(--primary-ultra-dark);
	}
}
