section.main-image {
	overflow: hidden;
	position: relative;
	width: 100%;
	height: 85vh;
	transition:all 0.3s;
	clip-path: polygon(0 0, 100% 0%, 100% 85%, 50% 100%, 0 85%);
	transition: all 0.3s;
	margin: 0 0 45px 0;
}

.blog-post section.main-image {
	height: 50vh;
}

.blog-post section.main-image:after {
	clip-path:polygon(50% 94%, 100% 88%, 100% 100%, 0 100%, 0 88%);
}

.overlay {
	background: rgba(7,57,105,0.4);
	  position: absolute;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  z-index: 1;
}

section.main-image.inner {
	overflow: hidden;
	position: relative;
	width: 100%;
	height: 50vh;
	transition:all 0.3s;
	clip-path: none;
	border-bottom: 5px solid var(--second-color);
	clip-path: polygon(0 0, 100% 0%, 100% 90%, 50% 100%, 0 90%);
}

section.main-image:after {
	content: '';
	background: var(--second-color);
	position: absolute;
	z-index: 2;
	bottom: -20px;
	width: 100%;
	height: 85vh;
	clip-path:polygon(50% 93%, 100% 82%, 100% 100%, 0 100%, 0 82%);
	transition: all 0.3s;
}

section.main-image.inner:after {
	content: '';
	background: var(--second-color);
	position: absolute;
	z-index: 2;
	bottom: -20px;
	width: 100%;
	height: 50vh;
	transition: all 0.3s;
	clip-path:polygon(50% 93%, 100% 86%, 100% 100%, 0 100%, 0 86%);
}

@media only screen and (max-width:1024px) {
	section.main-image {
		clip-path: polygon(0 0, 100% 0%, 100% 85%, 50% 95%, 0 85%);
		transition: all 0.3s;
	}
	
	section.main-image:after {
		clip-path:polygon(50% 89%, 100% 82%, 100% 100%, 0 100%, 0 82%);
		transition: all 0.3s;
	}
}

@media only screen and (max-width:500px) {
	section.main-image {
		clip-path: polygon(0 0, 100% 0%, 100% 85%, 50% 92%, 0 85%);
		transition: all 0.3s;
	}
	
	section.main-image:after {
		clip-path:polygon(50% 87%, 100% 82%, 100% 100%, 0 100%, 0 82%);
		transition: all 0.3s;
	}
}

 section.main-image video {
position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%; /* Ensures the video covers the width */
  min-height: 100%; /* Ensures the video covers the height */
  width: auto;
  height: auto;
  transform: translate(-50%, -50%); /* Centers the video */
  object-fit: cover; /* Ensures the video covers the container without stretching */
}


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: 45%;
	transform: translate(-50%, -50%);
	width: 100%;
	left: 50%;
	max-width: 650px;
	padding: 0 4%;
	text-align: center;
	display: flex;
	  flex-direction: column;
	  z-index: 2;
	  align-items: center;
	
}

section.main-image .info .hero-title{
	margin: 0 0 20px 0;
	  position: relative;
  }
  
  
section.main-image h1{
	font-size: 2.5em;
	color: var(--white-color);
	  text-transform: uppercase;
	  font-weight: 800;
	  line-height: 1em;
	  background: var(--second-color);
	  padding: 0 0;
	  display: inline;
	  box-shadow: -18px 0 0 var(--second-color), 18px 0 0 var(--second-color);
	  -webkit-box-decoration-break: clone;
	  -moz-box-decoration-break: clone;
	  box-decoration-break: clone;
}
section.main-image p{
	color: var(--white-color);
	  background: var(--main-color);
	  font-size: 1.5em;
	  display: inline;
	  text-transform: uppercase;
	  font-weight: 700;
	  margin: 0;
	  box-shadow: -18px 0 0 var(--main-color), 18px 0 0 var(--main-color);
		-webkit-box-decoration-break: clone;
		-moz-box-decoration-break: clone;
		box-decoration-break: clone;
		padding: 8px 0;
}

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:600px){
	section.main-image .info {

		padding: 0 6%;
	}
	
	section.main-image {
		margin: 0;
	}
	
}

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

@media screen and (min-width:1420px){
	
	section.main-image .info {
		max-width: 850px;
	}
	
	section.main-image .info h1{
		font-size:3.25em;
	}
}
