/* 
  ------------------------------------------------
  Code complements of DesignShack, found at
  http://designshack.net/articles/css/how-to-build-a-responsive-thumbnail-gallery/
  Modified by Brenda J. Wiley for use on John Snyder's website
  ------------------------------------------------
*/

.container {
    width: 90%;
	margin-left: auto;
	margin-right: auto;
    overflow: hidden;
}

.photography {
	width: 70%;
	margin-left: auto;
	margin-right: auto;
}

h4.intro {
	text-align: center;
	margin-top: 0px;
	margin-bottom: 5px;
	color: #CC0000;
	font-size: 1.1em
}

h4.camera {
	text-align: center;
	margin-top: 0px;
	margin-bottom: 10px;
	color: black;
	font-size: 1.1em
}

/*Top Row if 3 photos left ... to center it*/
.containerT3 {
    width: 90%;
	margin-left: auto;
	margin-right: auto;
    overflow: hidden;
	padding-left: 16%;
}

/*Bottom Row if 1 photo left ... to center it*/
.container1 {
    width: 90%;
	margin-left: auto;
	margin-right: auto;
    overflow: hidden;
	padding-left: 37%;
}

.galleryItem {
    color: #000000;
 /*   font-family: Arial;*/
    float: left;    
    width: 20%;
    margin:  2px 2% 20px 2%; 
	height: 250px;
}

/*Shorter Items*/
.galleryItemS {
    color: #000000;
/*   font-family: Arial;*/
    float: left;    
    width: 20%;
    margin:  2px 2% 20px 2%; 
	height: 120px;
}

.galleryItem img {
	height: auto !important;  
	width: auto !important;
    max-width: 100%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.galleryItemS img {
	height: auto !important; 
	width: auto !important;  
    max-width: 100%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

/* MEDIA QUERIES*/
@media only screen and (max-width : 940px),
only screen and (max-device-width : 940px){
    .galleryItem {width: 21%;}
	.galleryItemS {width: 21%;}
}
 
@media only screen and (max-width : 720px),
only screen and (max-device-width : 720px){
    .galleryItem {width: 29.33333%;}
	.galleryItemS {width: 29.33333%;}
}
 
@media only screen and (max-width : 530px),
only screen and (max-device-width : 530px){
    .galleryItem {width: 46%;}
	.galleryItemS{width: 46%;}
}
 
@media only screen and (max-width : 320px),
only screen and (max-device-width : 320px){
    .galleryItem {width: 96%;}
    .galleryItem img {width: 96%;}
    .galleryItemS {width: 96%;}
    .galleryItemS img {width: 96%;}
}
