.hero-section-wrapper{
	display: flex;
}

.hero-section-half{
	flex: 1;
	flex-basis: 50%;
	position: relative;
	transition: flex-basis 0.3s ease-in-out;
	overflow: hidden;
	height: 100%;
}

.hero-section-half:hover{
	flex-basis: 52.5%;
}

.hero-section-wrapper:has(.hero-section-half:hover) .hero-section-half:not(:hover){
	flex-basis: 47.5%;
}

.hero-section-half:before{
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-size: cover;
}

.hero-section-half:first-child:before{
	background-position: left center;
}

.hero-section-half:last-child:before{
	background-position: right center;
}

.hero-section-half div{
	position: absolute;
	bottom: 0;
	top: 0;
	width: 100%;
	max-width: calc(var(--max-width) / 2);
	padding: 64px 74px;
	display: flex;
	flex-direction: column;
	justify-content: end;
	z-index: 1;
	transition: max-width 0.3s ease-in-out;
}

.hero-section-half:first-child div{
	right: 0;
}

.hero-section-half:last-child div{
	left: 0;
}

.hero-section-half:hover div{
	max-width: calc(var(--max-width) / 2 + 2.5vw);
}

.hero-section-wrapper:has(.hero-section-half:hover) .hero-section-half:not(:hover) div{
	max-width: calc(var(--max-width) / 2 - 2.5vw);
}

.hero-section-half:after{
	content: '';
	position: absolute;
	top: 10%;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(180deg, rgba(22, 22, 22, 0) 0%, #000000 100%);
	transition: top 0.3s ease-in-out;
}

.hero-section-half:hover:after{
	top: 60%;
}

.hero-section-half h4,
.hero-section-half h2,
.hero-section-half p{
	color: #FFF;
	margin-bottom: 0;
	position: relative;
}

.hero-section-half h4:not(.weight-300){
	margin-bottom: 18px;
	transition: color 0.1s ease-in-out;
}

.hero-section-half:hover h4:not(.weight-300){
	color: var(--fs-color-primary);
}

.hero-section-half .button{
	margin-top: 20px;
}

@media screen and (max-width: 849px){
	.hero-section-wrapper{
		flex-direction: column;
	}
	
	.hero-section-half div{
		padding: 10px 30px;
		max-width: 100%;
	}

	.hero-section-half h4.weight-300{
		font-weight: 500;
		color: var(--fs-color-primary);
	}

	.hero-section-half:hover h4:not(.weight-300){
		color: #FFF;
	}
	
	.hero-section-half:hover{
		flex-basis: unset;
	}

	.hero-section-wrapper:has(.hero-section-half:hover) .hero-section-half:not(:hover){
		flex-basis: unset;
	}
	
	.hero-section-half{
		flex: unset;
	}
	
	.hero-section-half:hover:after{
		top: 10%;
	}
	
	.hero-section-half:last-child div{
		padding-top: 100px;
		position: relative;
	}
	
	.hero-section-half:last-child{
		height: fit-content;
		flex-shrink: 0;
	}

	.hero-section-half:hover div,
	.hero-section-wrapper:has(.hero-section-half:hover) .hero-section-half:not(:hover) div{
		max-width: 100%;
	}
}