.gallery {
	margin: 0px 0 1em 0;
	padding: 0;
	list-style: none;
	position: relative;
	width: 100%;
	display: block;
}

/*.gallery li {
	position: relative;
	float: left;
	overflow: hidden;
	width: 16.6666667%; 
	width: -webkit-calc(100% / 6);
	width: calc(100% / 6);
	padding: 20px;
}*/

.gallery li {
	position: relative;
	float: left;
	overflow: hidden;
	width: 200px; 
	padding: 5px;
}


.gallery li a,
.gallery li a img {
	display: block;
	width: 100%;
	height: auto;
	cursor: pointer;
	font-size: 14px;
}

.gallery li a img {
	max-width: 100%;
	height: auto;
}

/* Flexbox is used for centering the heading */
.gallery li a div {
	position: absolute;
	left: 20px;
	top: 20px;
	right: 20px;
	bottom: 20px;
	/*background: rgba(71,163,218,0.2);*/
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: flex;
	-webkit-align-items: center;
	-moz-align-items: center;
	-ms-align-items: center;
    align-items: center;
    text-align: center;
    opacity: 0;
}

.gallery li a:hover div {
	background: #000 url('../images/mag.png') no-repeat center center;
	opacity:0.3;
	filter:alpha(opacity=30);
}

.gallery li a div h3 {
	width: 100%;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.2em;
	letter-spacing: 2px;
	padding: 0 10px;
}

/* Example for media query: change number of items per row */

@media screen and (max-width: 1190px) {
	/*.gallery li {
		width: 20%; 
		width: -webkit-calc(100% / 5);
		width: calc(100% / 5);
	}*/
}

@media screen and (max-width: 945px) {
	/*.gallery li {
		width: 25%; 
		width: -webkit-calc(100% / 4);
		width: calc(100% / 4);
	}*/
}

@media screen and (max-width: 660px) {
	/*.gallery li {
		width: 33.3333333%; 
		width: -webkit-calc(100% / 3);
		width: calc(100% / 3);
	}*/
}

@media screen and (max-width: 660px) {
	/*.gallery li {
		width: 33.3333333%; 
		width: -webkit-calc(100% / 3);
		width: calc(100% / 3);
	}*/
}

@media screen and (max-width: 400px) {
	/*.gallery li {
		width: 50%; 
		width: -webkit-calc(100% / 2);
		width: calc(100% / 2);
	}*/
}

@media screen and (max-width: 300px) {
	/*.gallery li {
		width: 100%;
	}*/
}

.imageshadow {border:0px solid #FFF;box-shadow: 0px 4px 3px rgba(0,0,0,0.4),
       0px 4px 7px rgba(0,0,0,0.1),
       0px 9px 13px rgba(0,0,0,0.1);}

.imageshadow:hover{
	/*background: #000 url('../images/mag.png') no-repeat;*/
	/*-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
    filter: alpha(opacity=60);
    -moz-opacity: 0.60;
    -khtml-opacity: 0.6;
    opacity: 0.6;*/
	}