.main-icon {
	float:left;
	padding-bottom:0px;
	border:1px solid;
	background-color:#F3F3F3;
	padding:10px;
	padding-bottom:15px;
	-moz-box-shadow: 1px 1px 5px #ccc;
	-webkit-box-shadow: 1px 1px 5px #ccc;
	box-shadow: 1px 1px 5px #ccc;
	width:25%;
	height:200px;
	background-position:center;
	background-size:cover;
	-o-transition:0.5s;
	-ms-transition:0.5s;
	-moz-transition:0.5s;
	-webkit-transition:0.5s;
	transition:0.5s;
}
.main-icon:hover {
	border:1px solid #c53f35;
}
.back-icon {
	margin-bottom:5px;
	text-align:center;
	overflow:hidden;
}
.main-icon-thumb {
	float:left;
	margin-bottom:20px;
	padding:2px;
	padding-bottom:0px;
}
.back-icon-thumb {
	float:left;
	margin-right:8px;
	margin-bottom:5px;
	padding-bottom:0px;
	width:75px;
	height:75px;
	text-align:center;
	overflow:hidden;
	border:1px solid #CCC;
}
.back-icon-thumb:hover {
	background-color:#FFF;
	border:1px solid #8CDAF1;
	-moz-box-shadow: 1px 1px 5px #ccc;
	-webkit-box-shadow: 1px 1px 5px #ccc;
	box-shadow: 1px 1px 5px #ccc;
}
.main-link {
	padding:5px 20px;
	text-align:center;
	margin-top:240px;
	-o-transition:0.5s;
	-ms-transition:0.5s;
	-moz-transition:0.5s;
	-webkit-transition:0.5s;
	transition:0.5s;
}
.main-icon:hover .main-link {
	background-color:#004274;
}
.main-link a {
	color:#FFF;
	font-weight:bold;
}
.grid {
}
.grid-item {
	float:left;
	width: 24%;
	margin:0.5%;
}
.grid-item a {
	text-align: center;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	display: block;
	height: 200px;
	padding-bottom: 0px;
	border: 1px solid #c53f35;
	background-color: #F3F3F3;
	padding: 10px;
	padding-bottom: 15px;
	background-position: center;
	background-size: cover;
	-o-transition: 0.5s;
	-ms-transition: 0.5s;
	-moz-transition: 0.5s;
	-webkit-transition: 0.5s;
	transition: 0.5s;
}
.grid-item a:hover {
	border:1px solid #c53f35;
}
.grid-item a img {
	visibility:hidden;
}

/* iPads (portrait & landscape) ----------- */
/* @media only screen and (min-device-width : 768px) and (max-device-width : 1024px)  { */
@media only screen and (max-width : 1100px) {
}

/* iPads (portrait & landscape) ----------- */
@media only screen and (max-width : 950px) {
 .gallery-icon {
 text-align:center;
 overflow:hidden;
 background-size:cover;
 background-position:center;
 display:block;
 height:40%;
}
 .main-icon {
 width:40%;
 margin:10px;
}
 .grid {
}
}

/* iPad Minis (portrait & landscape) ----------- */
@media only screen and (max-width : 620px) {
 .main-icon {
 width:40%;
 margin:10px;
}
 .grid {
}
 .grid-item {
 float:left;
 width:50%;
}
 .grid-item a {
 text-align: center;
 overflow: hidden;
 background-size: cover;
 background-position: center;
 display: block;
 height:200px;
}
}

/* Smartphones (portrait) ----------- */
@media only screen and (max-width : 500px) {
 #gallery-list {
 padding: 0px;
 margin-left:5px;
 padding-bottom:50px;
}
 .main-icon {
 width:87.5%;
 float:none;
 margin-bottom:10px;
}
 .gallery-icon {
 margin-bottom:5px;
 text-align:center;
 overflow:hidden;
 background-size:cover;
 background-position:center;
 display:block;
 height:75%;
}
 .grid {
 margin-left:0px;
}
 .grid-item {
 float:none;
 width:100%;
 margin-right:20px;
 margin-bottom:20px;
}
 .grid-item a {
 text-align: center;
 overflow: hidden;
 background-size: cover;
 background-position: center;
 display: block;
 height:300px;
}
}
 @media only screen and (max-width : 340px) {
}
