.post-card {
    height: 100%;
}

.content-card {
	position: relative;
	height: 100%;
	background: #fff;
	overflow: hidden;
}

.content-card.team-card {
	display: flex;
    flex-direction: column;
}

.content-card__stretched-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.content-card__image {
	position: relative;
	overflow: hidden;
}

.content-card__image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.content-card__content {
	padding: 0 var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	display: flex;
	flex-direction: column;
}

.content-card__content:not(:has(.content-card__label)) {
	padding-top: 24px;
}

.content-card__label {
	text-transform: uppercase;
	display: block;
	letter-spacing: 0.05em;
	font-weight: 600;
	line-height: 24px;
	color: #777777;
}

.content-card__title {
	margin: 0;
	font-weight: 500;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 28px;
	max-height: calc(28px * 2);
}

/* Set card titles fixed except for team titles which have social footer */
.content-card:not(.type-team) .content-card__title {
	@media screen and (min-width: 768px) {
		min-height: calc(1.3em * 2);
	}
}
@media (max-width: 600px) {
	.content-card__title {
		hyphens: auto;
	}
}

.content-card__excerpt p {
	margin: 0;
	font-size: 10pt;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 20px;
	line-height: 20px;
}

.content-card:hover .content-card__title {
	text-decoration: underline;
}

.content-card__plus-overlay {
	height: 128px;
	width: 16px;
	position: absolute;
	pointer-events: none;
	z-index: 10;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #fff;
	opacity: 0;
	transition: opacity 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.content-card__plus-overlay::after {
	content: "";
	background-color: #fff;
	width: 100%;
	height: 100%;
	transform: rotate(90deg);
	display: block;
	position: absolute;
	transform-origin: center center;
}

.content-card:hover .content-card__plus-overlay {
	opacity: 0.6;
}

/* Bericht */
.post-card__image {
	aspect-ratio: 320/280;
}

/* Project */
.project-card__image {
	aspect-ratio: 320/280;
}

/* Team layout on related items */
.team-card__image {
	aspect-ratio: 1/1;
	.related-items & {
		aspect-ratio: 320/280;
	}
}

.team-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.content-card.category-video .content-card__image.post-card__image:before {
	content: "\e9ba";
	font-family: 'icomoon' !important;
	z-index: 10;
	position: absolute;
	font-size: 150px;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	color: var(--base);
	opacity: .6;
	pointer-events: none;
	transition: transform 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.content-card.category-video:hover .content-card__image.post-card__image:before {
	opacity: 0;
}

.team-card__role {
	position: absolute;
	left: 0;
	right: 0;
	letter-spacing: .05em;
	bottom: 0;
	padding: 0 var(--wp--preset--spacing--40);
	line-height: 36px;
	background: rgba(0,0,0,0.5);
	color: #fff;
	text-transform: uppercase;
    transition: transform 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.content-card:hover .team-card__role {
	transform: translateY(100%);
}

.team-card__footer {
	display: flex;
	gap: var(--wp--preset--spacing--30);
	font-size: 23px;
	padding: 0 var(--wp--preset--spacing--40);
	height: 50px;
	align-items: center;
	border-top: 1px solid var(--base-variant);
	margin-top: auto;
}

.team-card__icon {
	position: relative;
	z-index: 2;
	display: inline-flex;
	text-decoration: none;
	color: #d2d2d2 !important;
	.icon-linkedin2 {
    	margin-top: -0.07em;
	}
}

.team-card__icon:hover {
	color: var(--contrast) !important;
}

.team-card__icon svg {
	width: 22px;
	height: 22px;
}

/* Disable links in the editor */
.block-editor-block-list__block .post-card a {
	pointer-events: none;
}