/* Homepage Hero */

section.homepage-hero{
	padding:20px 5%
}

section.homepage-hero .wrapper {
	max-width: 1300px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	position:relative;
}

section.homepage-hero .info{
	width:57%;
	background:#fff;
	padding:5em 3em;
	margin:70px 0;
	border-radius:16px;
}

section.homepage-hero .info h1{
	font-size:3.5em;
	font-weight:500;
	margin-top:0;
}

section.homepage-hero .info p.text{
	font-size: 1.125em;
	margin: 1.5em 0;
}

section.homepage-hero .image{
	width: 57%;
	height:100%;
	position: absolute;
	top: 0;
	right:0;
	z-index: -1;
	background-size:cover;
	border-radius:16px;
	background-position:center center;
}

@media screen and (max-width:1023px){
	
	section.homepage-hero .wrapper{
		flex-wrap:wrap;
		flex-direction:column-reverse;
		border-radius:16px;
		overflow:hidden;
	}
	section.homepage-hero .info {
		width: 100%;
		max-width: 800px;
		margin: 0;
		padding: 3em;
		border-radius: 0;
		box-shadow: none;
	  }
	section.homepage-hero .image{
		width:100%;
		position:relative;
		padding-bottom:50%;
		border-radius: 0;
	}
}

/* OLD STYLE */
section.main-image {
	overflow: hidden;
	position: relative;
	width: 100%;
	height: 50vh;
	transition:all 0.3s;
}
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 div.image:after {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
}
section.main-image .info {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	text-align: center;
	padding: 0 4%;
	
}
section.main-image .info h1 {
	font-weight: 700;
	font-size: 7vw;
	line-height: 1em;
	color:#fff;
	margin:0 auto;
	max-width:900px;
}

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:1.5em;
	font-weight:400;
	color:#fff;
	max-width: 640px;
	margin: 0 auto;
	line-height:1.2em;
}

section.main-image div.image:after {
	content: '';
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	position: absolute;
	background:rgba(0,0,0, 0.25);
}

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