#gallery-1 {
	margin: auto;
	padding-top:10px;
	padding-bottom:10px;	
}
.par3{
	display:block;	
}
.par2{
	display:none;	
}
#gallery-1 .par3 {
	float: left;
	margin-top: 0;
	text-align: center;
	width: 33.333333333333333%;
}
#gallery-1 .par2 {
	float: left;
	margin-top: 0;
	text-align: center;
	width: 50%;
}
#gallery-1 .gallery-item.nosidebar{
	float: left;
	margin-top: 10px;
	text-align: center;
	width: 50%;
}
#gallery-1 img {
	border: 1px solid #333;
	/*border: 5px ridge gold;*/
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	box-shadow: 0 0 20px #000;
	-moz-box-shadow: 0 0 20px #000;
	-webkit-box-shadow: 0 0 20px #000;
}
.portrait, .portrait-nosidebar{
width: auto;
max-height:300px!important;
margin: 0 auto 10px;
}
.landscape, .landscape-nosidebar{
max-width: 300px!important;
height:auto;
margin: 0 auto 10px;
}

/* All Tablet Portrait size smaller than standard 950 (devices and browsers) */

@media only screen and (max-width: 1080px) {
.portrait, .portrait-nosidebar{
width: auto;
max-height:260px!important;
margin: 0 auto 10px;
}
.landscape, .landscape-nosidebar{
max-width: 260px!important;
height:auto;
margin: 0 auto 10px;
}
}
@media only screen and (max-width: 1024px) {
.portrait, .portrait-nosidebar{
width: auto;
max-height:220px!important;
margin: 0 auto 10px;
}
.landscape, .landscape-nosidebar{
max-width: 220px!important;
height:auto;
margin: 0 auto 10px;
}
}
@media only screen and (max-width: 949px) {
	.portrait{
	width: auto;
	max-height:190px!important;					
	margin: 0 auto 10px;
	}
	.landscape{
	max-width: 190px!important;	
	height:auto;
	margin: 0 auto 10px;
	}				
}

/* All Tablet Portrait size smaller than standard 870 (devices and browsers) */

@media only screen and (max-width: 869px) {
	.portrait{
	width: auto;
	max-height:170px!important;					
	margin: 0 auto 10px;
	}
	.landscape{
	max-width: 170px!important;
	height:auto;
	margin: 0 auto 10px;
	}
	.portrait-nosidebar{
	width: auto;
	max-height:190px!important;					
	margin: 0 auto 10px;
	}
	.landscape-nosidebar{
	max-width: 190px!important;
	height:auto;
	margin: 0 auto 10px;
	}					
}


/* All Mobile Portrait size smaller than 768 (devices and browsers) */

@media only screen and (max-width: 767px) {
	#gallery-1 {	
	padding-bottom:0;	
}
	.par3{display:none;}
	.par2{display:block;}
	.portrait, .portrait-nosidebar{
	width: auto;
	max-height:190px!important;
	margin: 0 auto 10px;
	
	}
	.landscape, .landscape-nosidebar{
	max-width: 190px!important;
	height:auto;
	margin: 0 auto 10px;
	}		
}

/* All Mobile Portrait size smaller than 600 (devices and browsers) */

@media only screen and (max-width: 599px) {
	.portrait, .portrait-nosidebar{
	width: auto;
	max-height:170px!important;
	margin: 0 auto 10px;
	}
	.landscape, .landscape-nosidebar{
	max-width: 170px!important;
	height:auto;					
	margin: 0 auto 10px;
	}	
}

/* All Mobile landscape size and All Mini Tablet Portrait size smaller than 480 (devices and browsers) */
@media only screen and (max-width: 479px) {	
	.portrait, .portrait-nosidebar{
	width: auto;
	max-height:200px!important;
	margin: 0 auto 10px;
	}
	.landscape, .landscape-nosidebar{
	max-width: 200px!important;
	height:auto;					
	margin: 0 auto 10px;
	}
	
	#gallery-1 .par2, #gallery-1 .gallery-item.nosidebar {
	clear: left;
	margin-top: 10px;
	text-align: center;
	width: 100%;
	}	
}

/* All Mobile size smaller than standard 320 (devices and browsers) */

@media only screen and (max-width: 319px) {
	.portrait, .portrait-nosidebar{
	width: auto;
	max-height:190px;
	margin: 0 auto 10px;
	}
	.landscape, .landscape-nosidebar{
	max-width: 190px!important;
	height:auto;					
	margin: 0 auto 10px;
	}			
}

/* All Mobile size smaller than standard 230 (devices and browsers) */

@media only screen and (max-width: 229px) {
	.portrait, .portrait-nosidebar{
	width: auto;
	max-height:160px!important;
	margin: 0 auto 10px;
	}
	.landscape, .landscape-nosidebar{
	max-width: 160px!important;
	height:auto;					
	margin: 0 auto 10px;
	}			
}
