#hexGrid {
	overflow: hidden;
	width: 94%;
	max-width: 1050px;
	margin: 0 auto;
	padding: 0.866% 0;
	font-size: 15px;
}
#hexGrid:after {
	content: "";
	display: block;
	clear: both;
}
.hex {
	position: relative;
	list-style-type: none;
	float: left;
	overflow: hidden;
	visibility: hidden;
	 background:#FFF;
	outline: 1px solid transparent; /* fix for jagged edges in FF on hover transition */
	-webkit-transform: rotate(-60deg) skewY(30deg) translatez(-1px);
	-ms-transform: rotate(-60deg) skewY(30deg) translatez(-1px);
	transform: rotate(-60deg) skewY(30deg) translatez(-1px);
}
.hex * {
	position: absolute; background:#FFF;
	visibility: visible;
	outline: 1px solid transparent; /* fix for jagged edges in FF on hover transition */
}
.hexIn {
	display: block;
	width: 100%;
	height: 100%;
	text-align: center;
	color: #fff;
	overflow: hidden;
	-webkit-transform: skewY(-30deg) rotate(60deg);
	-ms-transform: skewY(-30deg) rotate(60deg);
	transform: skewY(-30deg) rotate(60deg);
}
/*** HEX CONTENT **********************************************************************/
.hex img {
	left: -100%;
	right: -100%;
	width: 100%;
	top:50%;  transform:translateY(-50%);
	height: auto;
	margin: 0 auto;
}
.hex h1, .hex p {
	width: 102%;
	left: -1%; /* prevent line on the right where background doesn't cover image */
	padding: 5%;
	box-sizing: border-box;
	background-color: rgba(45, 68, 133, 0.6);
	font-weight: 300;
	-webkit-transition: -webkit-transform .2s ease-out, opacity .3s ease-out;
	transition: transform .2s ease-out, opacity .3s ease-out;
}
.hex h1 {
	bottom: 50%;
	padding-top: 50%;
	font-size: 1.2em;
	color: #FFF;
	z-index: 1;
	-webkit-transform: translateY(-100%) translatez(-1px);
	-ms-transform: translateY(-100%) translatez(-1px);
	transform: translateY(-100%) translatez(-1px);
}
.hex h1:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 45%;
	width: 10%;
	text-align: center;
	border-bottom: 1px solid #fff;
}
.hex p {
	top: 50%;
	color: #FFF;
	padding-bottom: 50%;
	-webkit-transform: translateY(100%) translatez(-1px);
	-ms-transform: translateY(100%) translatez(-1px);
	transform: translateY(100%) translatez(-1px);
}
/*** HOVER EFFECT  **********************************************************************/
.hexIn:hover h1, .hexIn:focus h1, .hexIn:hover p, .hexIn:focus p {
	-webkit-transform: translateY(0%) translatez(-1px);
	-ms-transform: translateY(0%) translatez(-1px);
	transform: translateY(0%) translatez(-1px);
}

/*** SPACING AND SIZING *****************************************************************/
@media (min-width:1201px) { /* <- 5-4  hexagons per row */
.hex {
	width: 19.2%; /* = (100-4) / 5 */
	padding-bottom: 22.170%; /* =  width / sin(60deg) */
}
.hex:nth-child(9n+6),  .hex:nth-child(9n+7),  .hex:nth-child(9n+8),  .hex:nth-child(9n+9) {
	margin-top: -4.676%;
	margin-bottom: -4.676%;
	-webkit-transform: translateX(50%) rotate(-60deg) skewY(30deg);
	-ms-transform: translateX(50%) rotate(-60deg) skewY(30deg);
	transform: translateX(50%) rotate(-60deg) skewY(30deg);
}
.hex:nth-child(9n+6):last-child,  .hex:nth-child(9n+7):last-child,  .hex:nth-child(9n+8):last-child,  .hex:nth-child(9n+9):last-child {
	margin-bottom: 0;
}
.hex:nth-child(9n+6) {
	margin-left: 0.5%;
	clear: left;
}
.hex:nth-child(9n+10) {
	clear: left;
}
.hex:nth-child(9n+2),  .hex:nth-child(9n+ 7) {
	margin-left: 1%;
	margin-right: 1%;
}
.hex:nth-child(9n+3),  .hex:nth-child(9n+4),  .hex:nth-child(9n+8) {
	margin-right: 1%;
}
}
@media (max-width: 1200px)  {/* <- 4-3  hexagons per row */
.hex {
	width: 19.2%; /* = (100-4) / 5 */
	padding-bottom: 22.170%; /* =  width / sin(60deg) */
}
.hex:nth-child(9n+6),  .hex:nth-child(9n+7),  .hex:nth-child(9n+8),  .hex:nth-child(9n+9) {
	margin-top: -4.676%;
	margin-bottom: -4.676%;
	-webkit-transform: translateX(50%) rotate(-60deg) skewY(30deg);
	-ms-transform: translateX(50%) rotate(-60deg) skewY(30deg);
	transform: translateX(50%) rotate(-60deg) skewY(30deg);
}
.hex:nth-child(9n+6):last-child,  .hex:nth-child(9n+7):last-child,  .hex:nth-child(9n+8):last-child,  .hex:nth-child(9n+9):last-child {
	margin-bottom: 0;
}
.hex:nth-child(9n+6) {
	margin-left: 0.5%;
	clear: left;
}
.hex:nth-child(9n+10) {
	clear: left;
}
.hex:nth-child(9n+2),  .hex:nth-child(9n+ 7) {
	margin-left: 1%;
	margin-right: 1%;
}
.hex:nth-child(9n+3),  .hex:nth-child(9n+4),  .hex:nth-child(9n+8) {
	margin-right: 1%;
}
}
