.grid {
	position: relative;
	margin: 0 auto;
	padding: 1em 0 4em;
	list-style: none;
	text-align: center;
}

/* Common style */
.grid figure {
	position: relative;
	float: left;
	overflow: hidden;
	margin: 10px 1%;
	width: 100%;
	background: #3085a3;
	text-align: center;
	cursor: pointer;
	background-position: center;
    background-size: cover;
	height:18vw;
}

.grid figure img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	opacity: 0.8;
}

.grid figure figcaption {
	padding: 2em;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
	pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.grid figure h2 {
	word-spacing: -0.15em;
	font-weight: 300;
}

.grid figure h2 span {
	font-weight: 800;
}

.grid figure h2,
.grid figure p {
	margin: 0;
}

.grid figure p {
	letter-spacing: 1px;
	font-size: 68.5%;
}


/* +++++++ home page grid multiple image ++++++ */

.home-grid-box{
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  height: 100vh;
  position: relative;
  width: 100%
}
.inner-grid-box {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  height: 110vh;
  position: relative;
  width: 100%
}
@media screen and (max-width:950px) {
  .home-grid-box {
    height: 100vh;
	overflow:hidden;
  }
}
.home-grid-panel {
  background-position: center;
  background-size: cover;
  position: absolute
}
.home-grid-panel.first {
  display: none;
  height: 100%;
  left: 0;
  width: 25%
}
.home-grid-panel.fullscreen{
  height: 100%;
  width: 100%
}
.home-grid-panel.firsthalf {
    height: 100%;
    width: 50%;
    position: relative;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
	border-bottom: 3px solid #fff;
	display: flex;
    align-items: center;
}
.home-grid-panel.secondhalf{
  height: 100%;
  width: 50%;
  left:50%;
  border-top: 3px solid #fff;
  border-bottom: 3px solid #fff;
  display: flex;
  align-items: center;
}

h2 small{
    color: #fff;
}

.home-grid-panel.entire {
    height: 100%;
    width: 100%;
    position: relative;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
	border-bottom: 3px solid #fff;
	display: flex;
    align-items: center;
}

.home-grid-panel.secondhalf.inverted {
     border-top: 0px solid #fff;
    border-right: 3px solid #fff;
	border-bottom: 3px solid #fff;
}
.home-grid-panel.firsthalf.inverted {
   border-top: 0px solid #fff;
  border-bottom: 3px solid #fff;
}




.home-grid-panel.firsthalfInner {
    height: 100%;
    width: 50%;
    position: relative;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
	border-bottom: 3px solid #fff;
	display: flex;
    align-items: center;
}
.home-grid-panel.secondhalfInner{
  height: 100%;
  width: 50%;
  left:50%;
  border-top: 3px solid #fff;
  border-bottom: 3px solid #fff;
  display: flex;
  align-items: center;
}
.home-grid-panel.secondhalfInner.inverted {
     border-top: 0px solid #fff;
    border-right: 3px solid #fff;
	border-bottom: 3px solid #fff;
}
.home-grid-panel.firsthalfInner.inverted {
   border-top: 0px solid #fff;
  border-bottom: 3px solid #fff;
}






@media screen and (min-width:1080px) {
  .home-grid-panel.first {
    display: block
  }
}
.home-grid-panel.second {
  height: 50%;
  left: 0;
  width: 50%
}
@media screen and (min-width:1080px) {
  .home-grid-panel.second {
    left: 25%;
    width: 25%
  }
}
.home-grid-panel.third {
  height: 50%;
  left: 50%;
  width: 50%
}
.home-grid-panel.fourth {
  display: none;
  height: 50%;
  left: 0;
  top: 50%;
  width: 33.3333%
}
@media screen and (min-width:700px) {
  .home-grid-panel.fourth {
    display: block
  }
}
@media screen and (min-width:1080px) {
  .home-grid-panel.fourth {
    left: 25%;
    width: 25%
  }
}
.home-grid-panel.fifth {
  height: 50%;
  left: 0;
  top: 50%;
  width: 50%
}
@media screen and (min-width:700px) {
  .home-grid-panel.fifth {
    left: 33.3333%;
    width: 33.3333%
  }
}
@media screen and (min-width:1080px) {
  .home-grid-panel.fifth {
    left: 50%;
    width: 25%
  }
}
.home-grid-panel.sixth {
  height: 50%;
  left: 50%;
  top: 50%;
  width: 50%
}
@media screen and (min-width:700px) {
  .home-grid-panel.sixth {
    left: 66.6666%;
    width: 33.3333%
  }
}
@media screen and (min-width:1080px) {
  .home-grid-panel.sixth {
    left: 75%;
    width: 25%
  }
}
@media screen and (max-width:768px) {
.inner-grid-box {
    position: relative;
    display: block;
    height: auto!important;
    position: relative;
    width: 100%;
}
.home-grid-panel.firsthalf {
    height: 50%;
    width: 100%;
    position: relative;
    border-top: 3px solid #fff;
    border-bottom: 0px solid #fff;
}
.home-grid-panel.secondhalf{
  height: 50%;
  width: 100%;
  top: 50%;
  left:0;
  border-bottom: 3px solid #fff;
}
.home-grid-panel.secondhalf.inverted {
    width: 100%;
    top: 0%;
	border-right: 0px solid #fff;
    border-bottom: 3px solid #fff;
}
.home-grid-panel.firsthalf.inverted {
    height: 100%;
    width: 100%;
	top:50%;
    position: relative;
		border-right: 0px solid #fff;
    border-bottom: 3px solid #fff;
}


.home-grid-panel.firsthalfInner {
    height: 50vh;
    width: 100%;
    position: relative;
    border-top: 3px solid #fff;
    border-bottom: 0px solid #fff;
    border-right: 0px solid #fff;
}
.home-grid-panel.secondhalfInner{
  height: auto;
  width: 100%;
  top: 50%;
  left:0;
  position:relative;
  border-bottom: 3px solid #fff;
}
.home-grid-panel.firsthalfInner.inverted {
    height: auto;
    width: 100%;
    position: relative;
    border-right: 0px solid #fff;
    border-bottom: 3px solid #fff;
}
.home-grid-panel.secondhalfInner.inverted {
    width: 100%;
    position: relative;
    border-right: 0px solid #fff;
    height: 50vh;
    border-bottom: 3px solid #fff;
}
}