#gallery-list{
}

.main-icon{
	float:left;
	margin-right:20px;
	margin-bottom:40px;
	width:30%;
	height:250px;
	background-size:cover;
}

.back-icon{
	text-align:center;
	padding-bottom:20px;
	background-color:#FFF;
	-o-transition:0.5s;
	-ms-transition:0.5s;
	-moz-transition:0.5s;
	-webkit-transition:0.5s;
	transition:0.5s;
	height:200px;
	
}

.back-icon a{
	display:block;
	width:100%;
	height:200px;
	background-position:center;
	background-repeat:no-repeat;
	background-size:cover;
}

.back-icon img{
	max-height:180px;
}

.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:10px 20px;
	background-color:#C9A746;
	text-align:center;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);	
	background-image: url(../img/gheader.jpg);
    background-repeat: repeat-x;
	background-size:cover;
    color: #FFF;
    font-weight: normal;
}

.main-link-shadow{
	position:absolute;
	margin-left:-20px;
	margin-top:15px;
	display:none;
	visibility:hidden;
}

.main-link a{
	color:#FFF;
	font-weight: bold;
	text-decoration:none;
}

.grid-item{
	float:left;
	width:20%;
	margin-right:20px;
	margin-bottom:20px;
}

.grid-item a{
  margin-bottom: 5px;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: block;
  height:350px;
}

.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{
			margin-bottom:5px;
			text-align:center;
			overflow:hidden;
			background-size:cover;
			background-position:center;
			display:block;
			height:40%;
		}
		
		.main-icon{
			width:40%;
			margin:10px;
		}
		
		.grid-item{
			float:left;
			width:40%;
			margin-right:20px;
			margin-bottom:20px;
		}

}

/* iPad Minis (portrait & landscape) ----------- */
@media only screen and (max-width : 620px) {	
	.main-icon{
		width:40%;
		margin:10px;
	}
	
	
	.grid-item{
		float:left;
		width:40%;
		margin-right:20px;
		margin-bottom:20px;
	}
	
	.grid-item a{
	  margin-bottom: 5px;
	  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:0px;
		padding-bottom:50px;
	}
	
	#gallery-list a{
		text-decoration:none;
	}
	
	.main-icon{
		width:95%;
		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{
  margin-bottom: 5px;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: block;
  height:400px;
}
}

@media only screen and (max-width : 340px) {

}
	
