/* Main item container */
.projekt-item {
	border: var(--border);
	border-radius: var(--radius-l);
	padding: 2.2rem;
	transition: 0.2s ease-out;
	transform: translateX(0px);
}

@media screen and (max-width: 1025px) {
	.projekt-item {
		padding: 1.6rem;
	}
}
/* Hover state */
@media screen and (min-width: 1026px) {
	div.projekt-item:has(a:is(:hover, :focus-visible)) {
		transform: translateX(30px);
		background: var(--primary-ultra-dark);
	}

	div.projekt-item:has(a:is(:hover, :focus-visible)) * {
		color: White;
	}
}

/* Title link */
div.projekt-item a.clickable-parent {
	text-decoration: none !important;
}

@media screen and (min-width: 1026px) {
	div.projekt-item:has(a:is(:hover, :focus-visible)) a.clickable-parent::after {
		inset: 0 -40px;
	}
}
.projekt-item__read-more {
	text-decoration: underline;
	text-underline-offset: 3px;
	padding-bottom: 20px;
}

/* Icon */
.projekt-item__icon {
	position: absolute;
	bottom: 2.2rem;
	left: 2.2rem;
	transition: 0.2s ease-out;
}
@media screen and (max-width: 1025px) {
	.projekt-item__icon {
		top: 0;
		right: 2.2rem;
		bottom: unset;
		left: unset;
		transform: rotate(90deg);
		width: 51px !important;
	}
	.projekt-item__content {
		padding-top: var(--space-xl);
	}
}

.projekt-item__icon path {
	transition: 0.2s ease-out;
}
.projekt-item__category {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: start;
}
@media screen and (max-width: 1025px) {
	.projekt-item__category {
		max-width: 75%;
	}
}
@media screen and (min-width: 1026px) {
	div.projekt-item:has(a:is(:hover, :focus-visible)) .projekt-item__icon {
		transform: rotate(90deg);
	}

	div.projekt-item:has(a:is(:hover, :focus-visible)) .projekt-item__icon path {
		fill: var(--accent);
	}
}

/* Category pills */
div.projekt-item a.pill {
	position: relative;
	z-index: 9;
}

@media screen and (min-width: 1026px) {
	div.projekt-item:has(a:is(:hover, :focus-visible)) a.pill {
		border-color: white;
	}
}

div.projekt-item a.pill:is(:hover, :focus-visible) {
	background: white;
	color: var(--primary-dark);
}

/* Image */
div.projekt-item__image img {
	display: block;
	border-radius: var(--radius-m);
	object-fit: cover;
	width: 100%;
	transform: translateZ(0);
	pointer-events: none;
}
@media screen and (max-width: 1025px) {
	div.projekt-item__image img {
		height: 245px;
	}
}
div.projekt-item__image img::selection {
	background: transparent;
}

.projekt-item__excerpt {
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	color: var(--primary-dark);
}

@media screen and (max-width: 1025px) {
	.projekt-feed__upper {
		align-items: flex-start !important;
		gap: 16px;
		padding-bottom: 4px;
	}
}
@media screen and (max-width: 1025px) {
	.projekt-feed__lower {
		gap: 16px !important;
	}
}
