.grid {
	position: relative;
	margin: 0 auto;
	padding: 1em 0 4em;
	list-style: none;
	text-align: center;
}
.square:before{
	content: "";
	display: block;
	padding-top: 90%; 	/* initial ratio of 1:1*/
}
/* 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;
}

.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%
}
@media screen and (min-width:950px) {
  .home-grid-box {
    height: 100vh
  }
}
.home-grid-panel {
  background-position: center;
  background-size: cover;
  position: absolute
}
.home-grid-panel.first {
  display: none;
  height: 100%;
  left: 0;
  width: 25%
}
@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%
  }
}
