#gallery {
	position: relative;
	width: 1400px;
	max-width: 90%;
	text-align: center;
	margin: auto;
	
}
img {
	max-width: 100%;
}

.thumbtable {
	position: relative;
	display: table;
	width: 100%;
	border-collapse: separate;
    border-spacing: 15px;
}
.thumbRow {
	display: table-row;	
}
.thumbData {
	display: table-cell;
	width: 33%;
	height: 280px;
	vertical-align: middle;
	padding: 1px;
	/* background-color: #AAAAAA; */
}
.thumbData img {
	height: auto;
	max-height: 280px;
	max-width: 100%;
	margin: auto;
	display: block;
	border: solid 1px rgba(173,173,173,0.8);
}

.thumbnail {
	position: relative;
	width: 30%;
	min-width: 200px;
	height: 280px;
	display: inline-block;
	margin: 3px;
	overflow-x: hidden;
	padding: 1px;
	/* background-color: #AAAAAA; */
}
.thumbnail img {
	max-height: 100%;
	max-width: 100%;
	margin: auto;
	display: inline-block;
	vertical-align: middle;
}
#picNumbers {
	position: relative;
	margin: auto;
	width: 100%;
}
#picNav {
	float: right;
	width: 45%;
}
#pageNav {
	position: relative;
	width: 80%;
	margin: 25px auto;
	text-align: center;
}
#pageNav p {
	text-align: center;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	color: #999999;
	line-height: 280%;
}
#pageNav p a {
	padding: 5px 8px;
	color: #FFFFFF;
	text-decoration: none;
	border: solid 1px #000000;
	white-space:nowrap;
}
#pageNav p a:hover {
	color: #999999;
	text-decoration: none;
	border: solid 1px #999999;
	background-color: #FFFFFF;
}
.activePage {
	padding: 5px 8px;
	color: #FFFFFF;
	text-decoration: none;
	border: solid 1px #999999;
	background-color: #999999;
}
#pageNav p a::after {
	content: '';
}

@media only screen and (max-width: 1650px) {
	.thumbData {
	height: 260px;
	}
}

@media only screen and (max-width: 1450px) {
	.thumbData {
	height: 230px;
	}
}

@media only screen and (max-width: 1250px) {
	.thumbData {
	height: 200px;
	}
}

@media only screen and (max-width: 1050px) {
	.thumbData {
	height: 170px;
	}
}
@media only screen and (max-width: 850px) {
	.thumbData {
	height: 180px;
	}
}

@media only screen and (max-width: 650px) {
	.thumbData {
	height: 160px;
	}
}
@media only screen and (max-width: 450px) {
	.thumbData {
	height: 100px;
	}
	#picNumbers {
	float: none;
	width: 100%;
	}
	#picNav {
	float: none;
	width: 100%;
	}
	h1 {
	font-size: 18px;
	}
}
