﻿/**********************************************
smaller than 980
***********************************************/
@media screen and (max-width: 980px) {
#outerWrapper {
	width: 95%;
}
#contentWrapper {
	clear: both;
	position: relative;
}
#rightColumn1 {
	width: 30%;
	/*padding: 3% 4%;*/
}
#content {
	width: 60%;
	padding: 3% 4%;
	}
#content0 {
	width: 60%;
	padding: 3% 4%;
	}
#rightColumn0 {
	width: 30%;
	/*padding: 3% 4%;*/
}

input[type=text], select, textarea {
	width: 100%;
}
.galleryItem {width: 46%;}
}
/* ===============================
 iPads (portrait) 
 ============================== */
@media only screen and (min-device-width : 768px) and (orientation : portrait) {

#outerWrapper {
	width: 95%;
}
#contentWrapper {
	clear: both;
	}
#content {
	width: 63%;
	padding: 3% 4%;
}
#rightColumn1 {
	width: 27%;
}
#content0 {
	width: 63%;
	padding: 3% 4%;
}
#rightColumn0 {
	width: 27%;
}

input[type=text], select, textarea {
	width: 100%;
}
.galleryItem {width: 46%;}
}
/**********************************************
smaller than 650
***********************************************/

@media screen and (max-width: 650px) {
#header {
	height: auto;
}
#topNavigation {
	position: static;
}
#contentWrapper {
	clear: both;
}
#content {
	width: auto;
	float: none;
	margin: 20px 0;
}
#rightColumn1 {
	width: auto;
	float: none;
	margin: 0;
}
#content0 {
	width: auto;
	float: none;
	margin: 20px 0;
}
#rightColumn0 {
	width: auto;
	float: none;
	margin: 0;
}

input[type=text], select, textarea {
	width: 100%;
}
.galleryItem {width: 46%;}
}
/*********************************************
smaller than 560
**********************************************/
@media screen and (max-width: 480px) {
html {
	-webkit-text-size-adjust: none;
}
#outerWrapper #header {
	border-radius: 8px 8px 0px 0px;
	-webkit-border-radius: 8px 8px 0px 0px;
	-moz-border-radius: 8px 8px 0px 0px;
}
#contentWrapper {
	clear: both;
}
#header {
	min-height: 100px;
}
#outerWrapper #topNavigation {
	min-height: 50px;
}

#topNavigation a {
	font-size: 90%;
	padding: 10px 8px;
}
#content {
	width: auto;
	float: none;
	margin: 0;
}
#content h1 {
	font-size: 140%;
	margin: 0px;
	text-align: left;
}
#content0 {
	width: auto;
	float: none;
	margin: 0;
}
#content0 h1 {
	font-size: 140%;
	margin: 0px;
	text-align: left;
}
input[type=text], select, textarea {
	width: 100%;
}
}
 /*for gallery
 MEDIA QUERIES*/
/*@media only screen and (max-width : 940px),
only screen and (max-device-width : 940px){
	.galleryItem {width: 21%;}
}
*/
@media only screen and (max-width : 1023px),
only screen and (max-device-width : 1023px){
	.galleryItem {width: 29.333333%;}
}

@media only screen and (max-width : 899px),
only screen and (max-device-width : 899px){
	.galleryItem {width: 46%;}
}

@media only screen and (max-width : 590px),
only screen and (max-device-width : 590px){
	.galleryItem {width: 46%;}
}

@media only screen and (max-width : 390px),
only screen and (max-device-width : 390px){
	.galleryItem {width: 96%;}
	.galleryItem img {width: 96%;}
	.galleryItem h4 {font-size: 18px;}
	.galleryItem p, {font-size: 18px;}
}