/* BLOCK TYPE 8 - title + image links */
/* BLOCK TYPE 8 - title + image links */
/* BLOCK TYPE 8 - title + image links */

.block_type_8 {
	position: relative;
	background-color: lightgray;
	padding: 10vw 5vw;
}
.block_type_8::before {
	content: '8';
	background-color: #84de02;
}
/* THEME */
.block_type_8.theme_licht {
	background-color: var(--bg-light);
	color: var(--txt-light);
}
.block_type_8.theme_donker {
	background-color: var(--bg-dark);
	color: var(--txt-dark);
}

.block_type_8 div.cards {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 2vw;
}

.block_type_8 .title {
	font-size: var(--txt-header-2);
	font-weight: 400;
	line-height: 1.3em;
	margin-bottom: 0.5em;
	grid-column: 1 / -1;
	width: 50%;
}

.block_type_8 div.card {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.block_type_8 div.card *, 
.block_type_8 div.card *:after, 
.block_type_8 div.card *:before{
	transition: 0.5s;
}

.block_type_8 div.card > a {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	color: white;
}
.block_type_8 div.card > a::before {
	content: '';
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.6) 100%);
	z-index: 1;
}
.block_type_8 div.card > a::after {
	content: '';
	opacity: 0;
}
.block_type_8 div.card a > img {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;

	transform: scale(1);
	-webkit-filter: grayscale(100%);
  	filter: grayscale(100%);
}
.block_type_8 div.card > a > div {
	position: absolute;
	display: flex;
	align-items: end;
	left: 0;
	bottom: 0;
	width: 100%;
	font-size: var(--txt-header-3);
	padding: 2vw;
	font-weight: 700;
	z-index: 1;
}

.block_type_8 div.card > a > div > div {
	width: 100%;
	position: relative;
}

.block_type_8 div.card > a > div > div > span {
	position: relative;
}

.block_type_8 div.card > a > div > div > span::after {
	content: '';
	width: 0;
	position: absolute;
	bottom: -0.2vw;
	left: 0;
	height: 0.15em;
	width: 100%;
	background-color: var(--clr-magenta-100);
	
	transform-origin: right;
	transform: scaleX(0);
	transition: transform 0.25s ease-in-out;
}

.block_type_8 div.card > a > div > svg {
	height: 3vw;
	aspect-ratio: 1 / 1;
	position: relative;
}

.block_type_8 div.card a:hover > img {
	transform: scale(1.2);
	-webkit-filter: grayscale(0%);
  	filter: grayscale(0%);
}

.block_type_8 div.card > a:hover > div > div > span::after {
	transform-origin: left;
	transform: scaleX(1);
}
.block_type_8 div.card > a:hover > div > svg {
	
}

@media (max-width: 1000px) {
	.block_type_8 div.cards {
		gap: 2.5vw;
	}
	.block_type_8 .title{
		width: 100%;
	}
	.block_type_8 div.cards {
		grid-template-columns: 1fr;
	}
	.block_type_8 div.card {
		aspect-ratio: 3 / 1;
	}
	.block_type_8 div.card > a::before {
		/* background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.6) 100%); */
		background: rgba(0, 0, 0, 0.4);
	}
	.block_type_8 div.card > a > div {
		padding: 4vw;
		height: 100%;
		align-items: center;
	}
	.block_type_8 div.card > a > div > svg {
		height: 50px;
		width: 50px;
	}
	.block_type_8 div.card a > img {
		-webkit-filter: grayscale(0%);
		  filter: grayscale(0%);
	}
	.block_type_8 div.card > a > div > div > span::after {
		display: none;		
	}
}


