/******************************* BEGIN MEDIA QUERIES *******************************/

/************************************************************************************
smaller than 899
*************************************************************************************/

@media screen and (max-width: 899px) {

	#wrapper1 {
		background: url(../images/header-bg-2.png) 0 -240px repeat-x;
	}

/* header */
	#header {
		height: 100%;
	}

	/*#contact-top {top: -30px;}*/

	#branding-top {
		height: 100%; 
		max-height: 100%;
		min-height: 170px;
	}

/* search form */
	#searchform {
		position: absolute;
		top: 5px;
		right: 0;
		z-index: 100;
		height: 40px;
	}
	#searchform #s {
		width: 70px;
	}
	#searchform #s:focus {
		width: 150px;
	}

/* main nav */

	/* see extra_css/nav_menu.css */

/* site logo */
	#site-logo {
		position: static;
	}

/* site description */
	#site-description {
		margin: 0 0 15px;
		position: static;
	}

/* content */
	#content, #secure-content {
		width: auto;
		float: left;
		margin: 10px 0;
	}

/* sidebar */
	#sidebar-right,#sidebar-left {
		width: 100%;
		margin: 0;
		float: none;
	}

	#sidebar-right .widget,#sidebar-left .widget {
		padding: 3% 4%;
		margin: 0 0 10px;
	}

	#fw1,#fw2,#fw3, #footer-nav-alt, 
	aside#sidebar-left section#fw1, 
	aside#sidebar-left section#fw2, 
	aside#sidebar-left section#fw3 {
 		width: 92%;
		float: none;
		padding: 3% 4%;
		margin: 1em 0;
	}

/* embedded videos */
	.video embed,
	.video object,
	.video iframe {
		min-height: 250px;
	}

/* login */
	#loginWrapper #loginLeft { width: 90%; max-width: 90%; margin: 0 auto; position: relative; top: 0; right: auto; }

	#loginWrapper #loginRight { width: 100%; }

	#loginLeft table { margin: 0 auto; }

/* misc */

	#secure-content h1 { margin: .5em 0 1em; }

	#contact-page { float: left; width: 100%; }

	#contact-1 { float: left; padding: 1em; width: 50%; width: calc(50% - 2em); }

	#contact-2 { float: left; padding: 1em; width: 50%; width: calc(50% - 2em); }

	#contact-3 { float: left; padding: 1em; width: 50%; width: calc(50% - 2em); }

	#contact-4 { float: left; padding: 1em; width: 50%; width: calc(50% - 2em); }

}

/************************************************************************************
smaller than 599
*************************************************************************************/

@media screen and (max-width: 599px) {

/* disable webkit text size adjust (for iPhone) */
	html {
		-webkit-text-size-adjust: none;
	}

#wrapper1, #wrapper2 {
	/*background: none;*/
}

/* header */

	#header {
		height: 100%;
		/*margin-top: .5em;*/
	}

	#branding-top { 
		/*width: calc(100% - 160px);*/
	}


	#branding-top img { 
		/*margin-top: 2.5em; */
	}

/* site logo */
	#site-logo {
		position: relative;
		width: 100%;
		text-align: center;
	}

	#site-logo img {
		/*max-height: 150px;*/
		max-width: 275px;
		margin: 15px auto;
		position: relative;
		z-index: 9999;
	}

	#contact-top { 
		position: absolute; 
		top: 5px;
		left: 5px;  
		width: 99%;
	}

	#contact-top p#top-phone {
		font-size: 1.1em;
		margin: 2px;
		line-height: 1.1em;
		letter-spacing: 0em;
		float: left;
		text-align: left;
		font-weight: 700; 
		width: calc(50% - 4px);
		white-space: nowrap;
	}

	#contact-top p#top-email {
		font-size: 1.1em;
		line-height: 1.1em;
		letter-spacing: 0em;
		float: right;
		text-align: right;
		margin: 2px;
		font-weight: 700; 
		width: calc(50% - 4px);
		white-space: nowrap;
	}

	#social-top { 
		/*width: calc(35% - 1em);*/
		width: 160px;
	}

	#social-top img { 
		padding: .5em;
	}

/* main nav */

	/* see extra_css/nav_menu.css */

/* content */
	#content, #secure-content {
		width: auto;
		float: left;
		margin: 10px 0;
	}

/* login */
	#loginWrapper .login {
		width: 90%; /* arrived at arbitrarily*/
	}

	#loginWrapper a#whatsThis { font-size: 1em; }

/* pop-up */
	#imgCell {
	float: left;
	width: 100%;
	}

#descCell {
	float: left;
	vertical-align: top;
	width: 100%;
	}
}

/************************************************************************************
smaller than 460
*************************************************************************************/

@media only screen and (max-width: 460px) {

	#branding-top	{
		/*width: calc(100% - 140px);
		margin-top: 3em;*/
	}

	#branding-top img { 
		/*margin-top: 2em; */
	}

	#social-top {
		margin-top: 2em;
		width: 140px;
	}

	#contact-top p#top-phone, 
	#contact-top p#top-email 
	{
		width: 100%;
		white-space: nowrap;
		text-align: center;
		margin: 2px auto;
		font-size: 1.1em;
	}

	#social-top img { 
		height: 3em; 
		margin: .5em;
	}

	#feature-boxes {
		width: 100%;
		max-width: 400px;
		margin: 1em auto;
		text-align: center;
		padding: .5em; /* 10 /1000 */
	}

	#feature-box-1, 
	#feature-box-2, 
	#feature-box-3
	{
		/*position: relative;*/
		list-style: none;
		overflow: hidden;
		width: 85%;
		max-width: 300px;
		float: none;
		padding: 1em 0;
		margin: 0 auto;
		text-align: center;
	}

	#fw1,#fw2,#fw3,#footer-nav-alt {
		width: calc(100% - 2em);
		max-width: 400px;
		margin: 1em auto;
		text-align: center;
		padding: .5em; /* 10 /1000 */
		padding: 1em;
	}

	/*#feature-box-1 {
		margin: 0 auto;
	}

	#feature-box-2 {
		margin: 0 auto;
	}

	#feature-box-3 {
		margin: 0 auto;
	}*/

	ul.icon-full, ul.icon-full li { display: none; }	

	ul.icon-only { display: block; }

	ul.icon-only li { 
		list-style-type: none;
		float: none;
	}

	ul.icon-only li a { display: block; }

	.display-normal { display: none; }

	.display-toggle { display: initial; }

	.toggletitle { cursor: pointer; }

	.toggle-title { 
		cursor: pointer; 
		margin: .4em 0; 
	}

	.toggle-arrow { 
		display: initial; 
		float: right; 
	}

	.toggle-drop { display: none; }

	label#toggle-menu { background: url(../images/nav-bg.png) repeat-x; height: 55px; }

/* login */
	#loginWrapper .login {
		width: 90%; /* arrived at arbitrarily*/
	}

	#loginBottom p { 
		font-size: 1em;
	}

	#contact-page { float: left; width: 100%; }

	#contact-1 { float: left; padding: 1em; width: 100%; width: calc(100% - 2em); }

	#contact-2 { float: left; padding: 1em; width: 100%; width: calc(100% - 2em); }

	#contact-3 { float: left; padding: 1em; width: 100%; width: calc(100% - 2em); }

	#contact-4 { float: left; padding: 1em; width: 100%; width: calc(100% - 2em); }

}

/************************************************************************************
smaller than 380 (arbitrary)
*************************************************************************************/

@media only screen and (max-width: 380px) {

	#branding-top	{
		/*width: calc(100% - 125px);
		margin-top: 3em;*/
	}

	#branding-top img { 
		/*margin-top: 2em; */
	}

	#social-top {
		margin-top: 2em;
		width: 125px;
	}
	#social-top img { 
		height: 3em; 
		margin: .25em;
	}

}