.wp-block-gnist-link-anything {

	text-decoration: none;
	border-radius: 12px;

	* {
		color: #272725;
	}

	/* Employees */



	.gost-employee-details__list {
		gap: 5px;
		padding-bottom: 8px;

	}

	.gost-employee-details__item {
		font-size: 16px;
	}

	.gost-employee-details__item--title span,
	.gost-employee-details__item--extra-title span {
		color: #50504D !important;
	}

	.gost-employee-details__item--mobile,
	.gost-employee-details__item--email {
		font-weight: 500;
	}

	.gost-employee-details__item--mobile {
		margin-top: 15px;
	}


	&:hover,
	&:active {
		text-decoration: none;
	}

	&.has-custom-footer-background-color {

		&:hover {
			background-color: #F1F1E8 !important;
		}

		&:focus,
		&:active {
			background-color: #F5F5F1 !important;
			box-shadow: 0 0 0 1px #590512 !important;
		}
	}

}

/* News */

.type-post {
	.wp-block-gnist-link-anything {
		position: relative;

		h3 {
			padding-bottom: 54px;
		}

		figure {
			position: absolute;
			left: var(--wp--preset--spacing--50);
			bottom: var(--wp--preset--spacing--50);
		}
	}
}

/* Employees */
.type-ansatte {
	.wp-block-gnist-link-anything {
		border-bottom: 1px solid transparent;
		border-radius: 0;
		display: flex !important;
		flex-direction: column;
		width: 100%;
		height: 100%;
		padding-bottom: 8px !important;

		.gost-employee-details.align-bottom {
			margin-top: auto !important;
		}

		figure {
			overflow: hidden;

			img {
				width: 100%;
				aspect-ratio: 3 / 4;
				object-fit: cover;
				object-position: center;
				transition: all 0.4s linear;
			}
		}

		&:hover,
		&:active {
			border-bottom-color: #C1242A;

			figure {
				img {
					transform: scale(1.045);
					filter: brightness(1.21);
				}
			}
		}

	}
}

/* Subject Areas */

.post-type-archive-fagomrader {
	ul.wp-block-post-template:has(>li.type-fagomrader) {
		@media all and (max-width: 1499px) {
			grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
		}

		@media all and (min-width: 1500px) {
			column-gap: var(--wp--preset--spacing--70);
			row-gap: 0;
		}
	}
}

.type-fagomrader {
	.wp-block-gnist-link-anything {
		border-radius: 0;
		border-bottom: solid 1px #590512;
		transition: all 0.3s ease-in-out;
		position: relative;
		padding-right: 44px !important;

		figure {
			position: absolute;
			right: 0;
			top: 18px;

			img {
				max-width: 24px;
				height: auto;
				transition: all 0.4s linear;
			}
		}

		&:hover,
		&:active {
			border-bottom-color: transparent;

			h3 {
				color: #C1242A;
			}

			figure {
				img {
					filter: brightness(0) invert(17%) sepia(90%) saturate(2766%) hue-rotate(344deg) brightness(95%) contrast(92%);
				}
			}

		}
	}
}

/* Employees on news single */
.single-post {
	.type-ansatte {
		.gc-link-anything {}
	}
}


html .wp-block-post-template:has(>li.type-ansatte) {
	@media all and (max-width: 1024px) {
		grid-template-columns: repeat(auto-fill, minmax(max(min(165px, 100%), (100% - (24px * (5 - 1))) /5), 1fr)) !important;

		.wp-block-gnist-link-anything {
			margin-bottom: 30px;

			figure {
				img {
					max-width: 165px;
				}
			}
		}
	}

	@media all and (max-width: 780px) {
		grid-template-columns: repeat(2, 1fr) !important;

		.wp-block-gnist-link-anything {
			figure {
				img {}
			}
		}
	}
}
