

section#heading {
	height: 60vh;
	width: 100%;
	overflow: hidden;
	position: relative;
}

section#heading .heading-overlay {
	inset: 0 0;
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	padding: 3rem;
	backdrop-filter: brightness(0.8);
}

section#heading .heading-overlay * {
	text-align: left;
	max-width: 60%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #ffffff;
}

section#heading .heading-overlay h1:after {
	background: #ffffff;
}

section#heading .heading-overlay #heading-image-link {
	position: relative;
	background: var(--secondary-color);
	color: var(--primary-color);
	border-radius: 5em;
	width: 25vw;
	aspect-ratio: 10/1.5;
	display: grid;
	place-items: center;
	cursor: pointer;
	margin-top: 2rem;
	transition: all 0.3s;
}

section#heading img:nth-child(1) {
	min-height: 100%;
	min-width: 100%;
	max-height: none;
	max-width: none;
	object-fit: contain;
	filter: brightness(0.5) blur(1rem);
}

section#heading img:nth-child(2) {
	position: absolute;
	max-width: 90%;
	max-height: 90%;
	inset: 50% 50%;
	transform: translate(-50%, -50%) !important;
	z-index: 1;
}

.scrollable-header {
	width: 85%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

section#scrollable {
	width: 85%;
	height: 40vh;
	display: flex;
	align-items: center;
	overflow-x: scroll;
	gap: 1rem;
}

section#scrollable::-webkit-scrollbar {
	height: 5px;
}

section#scrollable::-webkit-scrollbar-thumb {
	background: var(--secondary-color);
	border-radius: 1rem;
}

section#scrollable::-webkit-scrollbar-track {
	background: var(--primary-color);
}

section#scrollable .webp-image-card {
	min-width: 15vw;
	max-width: 15vw;
	aspect-ratio: 5/3;
	display: flex;
	flex-direction: column;
	transition: 0.3s;
}

section#scrollable .webp-image-card .image-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

section#scrollable .webp-image-card.active img {
	filter: brightness(1);
	scale: 1.025;
}

section#scrollable .webp-image-card:hover img {
	filter: brightness(1);
	scale: 1.025;
}

section#scrollable .webp-image-card:hover {
	font-size: 1.1rem;
}

section#scrollable .webp-image-card img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--secondary-color);
	filter: brightness(0.5);
	transition: 0.3s;
}

@media (max-width: 768px) {
	section#heading .heading-overlay #heading-image-link {
		width: 45vw;
	}

	section#heading .heading-overlay {
		padding: 1rem;
	}

	section#scrollable {
		width: 90%;
	}

	section#scrollable .webp-image-card {
		min-width: 40vw;
		max-width: 40vw;
	}
}

@media (max-width: 425px) {
	section#heading .heading-overlay * {
		max-width: 95%;
	}

	section#heading .heading-overlay h1 {
		font-size: 1rem;
		white-space: break-spaces;
		word-wrap: break-word;

	}

	section#heading .heading-overlay #heading-image-link {
		width: 90vw;
	}

	section#scrollable .webp-image-card {
		min-width: 80vw;
	}
}
