.gallery_image_page_contents
{
	margin: auto;
	text-align: center;
	/*max-width: 980px;*/
	min-width: 320px;
	color: #fff;
	padding: 0;
	height: 150px;
	/*text-shadow: 1px 1px 0 rgba(0,0,0,0.5);*/
	position: absolute;
	top: 99px;
	width: 100%;
	background: none; /* For browsers that do not support gradients */
	background: -webkit-linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0)); /* For Safari 5.1 to 6.0 */
	background: -o-linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0)); /* For Opera 11.1 to 12.0 */
	background: -moz-linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0)); /* For Firefox 3.6 to 15 */
	background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0)); /* Standard syntax */	
}

.gallery_mobile_image_title
{
	margin: auto;
	text-align: center;
	min-width: 320px;
	color: #fff;
	padding: 0;
	width: 100%;
	font-size: 9.0pt;
	/*line-height: 200%;*/
	display: none;
}

.gallery_mobile_image_title h1 {
	/*margin-bottom: 8px;
	font-size: 18pt;*/
}

.gallery_image_page_contents h1, .gallery_image_page_contents ul {
	opacity: 1;
}

.gallery_controls_row {
	width: 98.68%; display: table; margin: auto; padding: 0;
}

.gallery_image_grid {
	display: table;
	width: 100%;
	text-align: center;
}

.gallery_title_block {
	/*width: 980px;*/
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 32px;
	padding-bottom: 20px;
	margin: auto;
	text-align: center;
	color: #fff;
}

.gallery_controls {
	text-transform: lowercase;
	float: left;
	color: #bbb;
	padding: 0;
	padding-bottom: 0px;
}

.gallery_controls li {
	display: inline;
	list-style-type: none;
	font-size: 9pt;
	color: #888;
}

li.gallery_inactive_control {
	padding: 4px;
	padding-left: 8px;
	padding-right: 8px;
	color: #ddd;
	border: 1px solid #ddd;
	border-radius: 6px;		
}

.gallery_controls a {
	padding: 4px;
	padding-left: 8px;
	padding-right: 8px;
	color: #888;
	text-decoration: none;
	border: 1px solid #888;
	border-radius: 6px;	
}

.gallery_controls a:hover {
	color: #ddd;
	border: 1px solid #ddd;
}

.gallery_title_block h1 {
	margin-top: 0;
}

.video_info_block {
	padding-top: 0px;
	padding-left: 20px;
	padding-right: 20px;
	margin: auto;
	text-align: center;
	color: #fff;
}

div.gallery_image_block {
    float:left;
    width: 32%;
    padding-bottom: 16.875%;
    margin:0.66%;
	background: url("../wallpaper01.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100%;
}

.gallery_image_block:hover {
	background-size: 105%;
	opacity: 0.7;
	animation: gallery_imagegrow 0.25s;
}

/* FadeIn Animation */
@-webkit-keyframes gallery_imagegrow {
  0%   { background-size: 100%; opacity: 1.0; }
  100% { background-size: 105%; opacity: 0.7; }
}
@-moz-keyframes gallery_imagegrow {
  0%   { background-size: 100%; opacity: 1.0; }
  100% { background-size: 105%; opacity: 0.7; }
}
@-o-keyframes gallery_imagegrow {
  0%   { background-size: 100%; opacity: 1.0; }
  100% { background-size: 105%; opacity: 0.7; }
}
@keyframes gallery_imagegrow {
  0%   { background-size: 100%; opacity: 1.0; }
  100% { background-size: 105%; opacity: 0.7; }
}

img.gallery_bullet {
	vertical-align:bottom;
}

.gallery_image_page_contents ul {
	padding-top: 0;
	padding-bottom: 8px;
}

.gallery_main_image_block {
	max-width: 1200px;
}

img.gallery_main_image {
	margin:auto; max-width: 100%; padding:0; display: block;
	padding-bottom: 18px;
	/*padding-bottom: 12px;*/
}

.gallery_image_page_contents iframe {
	padding-bottom: 12px;
}

.galleryimageblock {
	background: #000 url("wallpaper01.jpg");
	background-size: 100%;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden; 
}

.galleryimagegrid {
	text-align: center;
	width: 100%;
	/*min-width: 960px;*/
	max-width: 1400px;
	padding: 0;
	margin: auto;
	border-spacing: 4px;
}

.galleryimagegrid td
{
	background: #000 url("wallpaper01.jpg");
	background-size: 100%;
	background-position: center;
	background-repeat: no-repeat;
}

.galleryimageblock:hover {
	background-size: 130%;
	animation: imagegrow 0.25s;
}

.galleryimagegrid img {
}

.galleryimagegrid img:hover {
	opacity: 0.5;
}

.galleryiteminfo {
	text-align: center;
	margin: auto;
	font-size: 10pt; color: #000;
	display: block;
	padding: 0px;
	color: #eee;
}

.galleryiteminfo li {
	display: inline-block;
	list-style-type: none;
	padding-right: 0;
	margin-right: 20px;
	padding-bottom: 18px;
}

.galleryiteminfo a {
	color: #eee;
	text-decoration: none;
}

.galleryiteminfo a:hover {
	color: #fff;
}

.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}

.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: 1200px; 
}

.videoblock {
	width:100%; padding-bottom: 18px; max-width: 1200px; text-align: center; margin: auto;
}

@media screen and (max-width: 1200px) {
	.videoblock {
		padding-bottom: 0 !important;
	}	
img.gallery_main_image {
	padding-bottom: 0 !important; 
	/*padding-bottom: 12px;*/
}	
}

@media screen and (max-width: 668px) {
	ul.galleryiteminfo, .video_info_block {
		display: none !important;
	}
	.gallery_mobile_image_title {
		display: inline !important;
	}
	.gallery_image_page_contents
	{
		/*height: 100px !important;
		top: 59px !important;*/
		display: none !important;
	}
	.gallery_image_page_contents h1
	{
		font-size: 18pt !important;
	}
	.gallery_controls_row {
		width: auto !important;
	}
	.gallery_controls li {
		font-size: 11pt !important;
	}
}

div.gallery_image_block {
	width: 19%;
	padding-bottom: 10.6875%;
	margin:0.5%;
}

@media screen and (max-width: 1700px) {
	div.gallery_image_block {
		width: 24%;
		padding-bottom: 13.5%;
		margin:0.5%;
	}
}

@media screen and (max-width: 1300px) {
	div.gallery_image_block {
		width: 32%;
		padding-bottom: 18%;
		margin:0.6666667%;
	}
}

@media screen and (max-width: 900px) {
	div.gallery_image_block {
		width: 49%;
		padding-bottom: 27.5625%;
		margin:0.5%;		
	}
}

@media screen and (max-width: 668px) {
	div.gallery_image_block {
		width: 100%;
		padding-bottom: 56.25%;
		margin:0;		
		margin-bottom: 8px;		
	}
}
