/* OVERRIDE PADDING AT YOP OF PAGE */

body{
	padding-top:0!important;
}

section.main-image {
	overflow: hidden;
	position: relative;
	width: 100%;
	height: 100vh;
	transition:all 0.3s;
}

section.main-image.homepage {
	display: flex;
	justify-content: flex-end;
}

section.main-image div.image {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-position: center center;
	background-size: cover;
}

section.main-image.homepage div.image {
	width: 50%;
	background-size: contain;
	background-repeat: no-repeat;
	position: relative;}

section.main-image div.image:after {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	z-index: 1;
}

section.main-image .info {
	position: absolute;
	top: 55%;
	transform: translateY(-50%);
	width: fit-content;
	text-align: left;
	line-height: 1.4em;
	max-width: 650px;
	left: 5%;
	padding: 3rem;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(10px);
	}
	

section.main-image .info h1 {
	font-weight: 500;
	font-size: 3em;
	line-height: 1em;
	color:var(--second-color);
	margin:0 auto;
}

section.main-image .info h1:after{
	display:none;
}
section.main-image .info p.text {
	margin: 15px 0;
	transition: all 1.5s 0s;
	transform: translateY(0);
	font-size: 1em;
	font-weight: 300;
	color: var(--font-color);
	line-height: 1.4em;
}

section.main-image .info p.text:last-of-type {
	margin-bottom: 0;
}

section.main-image div.image:after {
	content: '';
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	position: absolute;
}


section.main-image.content-page {
	height: 70vh;
}

/* dark styling */

section.main-image .info.dark p.text{
	color:var(--light-font-color);
}

@media screen and (max-width: 600px) {
	section.main-image .info {
		width: 70%;
		padding: 2rem;
	}
	
	section.main-image .info h1 {
		font-size:3em;
	}
	
	section.main-image .info p.text {
		font-size: 1em;
	}
	
}

@media screen and (max-width:540px){
	section.main-image .info h1{
		font-size:2.5em;
	}
}
@media screen and (min-width:1024px){
	section.main-image .info h1{
		font-size:4em;
		margin: 0 0 0 0;
	}
}

@media screen and (min-width:2030px){
	section.main-image .info h1{
		font-size:5em;
		margin: 0 0 0 0;
	}
}