@media only screen and (min-width: 5px ) {
	/* we put this in a @media tag, so non-responsive browers only see the static-width directives in style.css*/
	#container {width:85%; min-width:280px; max-width:1000px; }
}

@media only screen and (min-width: 901px) and (max-width: 1050px) {
	/*Minor adjustments to the desktop site when it starts getting more narrow*/
	#group-sittings { table-layout: fixed }
}

@media only screen and (min-width: 901px) and (max-width: 980px) {
	/*Minor adjustments to the desktop site when it starts getting more narrow*/
	#header-site-name {	font-size: 2.4em; }
	.logged-in-menu a { text-decoration: none; display: block; white-space: nowrap; padding-left: 7px; padding-right: 7px; }
}

@media only screen and (max-width: 900px) {
	/*Note these rules apply to the tablet site AND the mobile site*/
	#header-image-link, #header-image { display: none }
	#header-site-name {	font-size: 2.1em; margin-top: 20px }
	#header-site-description { font-size: 1.4em; }		
	
	table#group-sittings , #group-sittings thead, #group-sittings tbody, 
	#group-sittings th, #group-sittings td, #group-sittings  tr:not(.table-fix-dummy),
	table.organizational-structure, .organizational-structure thead, .organizational-structure tbody, 
	.organizational-structure th, .organizational-structure td, .organizational-structure  tr,
	table.email-list, .email-list thead, .email-list tbody, 
	.email-list th, .email-list td, .email-list  tr 
		{ display: block; }/*If you add any to this list, please include it in style-ie9.css as well*/
	
	.email-list td:first-child { border-bottom: none !important; text-align: center; font-weight: bold}
	.email-list td:nth-child(2) { border-top: none !important; text-align: center}
	#group-sittings th { display: none }
	#group-sittings td:nth-child(1) { text-align: center; font-weight: bold}

	.phone-list, .email-list, .finance-table, .child-teen-schedule  { width: 100%; min-width: 100%}
	
	embed { width: 300px !important; height: 225px !important } 
}

@media only screen and (min-width: 601px) and (max-width: 900px) {
	/*These rules only apply to the tablet site*/
	
	.logged-in-menu > ul > li > a { padding-left: 5px; padding-right: 5px; }

	/*Begin Drop Down Menus*/
	.logged-in-menu { 
		clear: both; 
		width: 100%; 
		border-bottom: 1px dotted;
		font-weight: bold;
		height: 38px;
	}
	
	.logged-in-menu ul { position: relative; list-style-type: none;}
	.logged-in-menu > ul > li { 
		vertical-align: middle; 
		font-size: 1em; 
		padding: 0px;
		border-bottom: 1px dotted;
		display: table-cell;
		border-right: 1px solid; 
	}
	.logged-in-menu > ul > li > a { 
		padding: 0px 10px;
		text-align: center;
		display: table-cell;
		height: 38px;
		vertical-align: middle;
		white-space: normal;
	}
	.logged-in-menu > ul > li:first-child { border-left: 1px solid; }
	.logged-in-menu a { text-decoration: none; display: block; padding: 5px 10px; }

	.logged-in-menu ul ul { position: absolute; display: none; top: 100%; margin-left: -0.5px; z-index: 999 }
	.logged-in-menu ul ul li { position: relative; min-width: 160px; }
	.logged-in-menu ul ul li:first-child{ border-top:1px solid; }
	.logged-in-menu ul ul a { border: 1px solid; border-top: 0px; padding: 5px 10px; }

	.logged-in-menu ul ul ul { left: 100%; top: -0.5px; } 
	.logged-in-menu ul li:hover > ul { display: inline-block; }
	
	.www-pageSetup img, .page-content img { max-width: 260px !important; padding: 10px;}
	
	#main-sidebar { min-width: 130px}	
}

@media only screen and (min-width: 701px) and (max-width: 780px) {
	/*Some minor adjustments at lower resultions for the tablet site*/
	.logged-in-menu > ul > li > a { padding-left: 4px; padding-right: 4px; }
	.www-pageSetup img, .page-content img {max-width: 600px} { max-width: 225px !important; }
}

@media only screen and (min-width: 601px) and (max-width: 700px) {
	/*Some minor adjustments at lower resultions for the tablet site*/
	.logged-in-menu > ul > li > a { padding-left: 2px; padding-right: 2px; }
	.wp-caption, .page-content img { max-width: 250px !important; } /*I'm not crazy about this solution*/

}

@media only screen and (max-width: 600px) {
	/*These rules only apply to the mobile site*/
	#page-header { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; overflow: hidden}
	#header-titles { padding: 5px }
		
	#mobile-menu { width: 100%; list-style: none; display: block; overflow: hidden; }
	#mobile-menu li { width:25%; float:left; }
	#mobile-menu a { 
		display:block; text-align: center; height: 66px; line-height: 66px;
		font-size: 1.4em; font-weight: bold;
	}
	#mobile-menu img { vertical-align: top; height: 24px; padding-bottom: 4px; }
	#mobile-menu span { display:inline-block; vertical-align: middle; line-height:14px; }
	
	.header-nav-menu { border-bottom: 0px }
	.header-nav-menu  * { border: 0px !important }
	.header-nav-menu > ul > li { display: block; }
	.header-nav-menu > ul > li > a { display: block; height: auto; text-align: left; }
	.header-nav-menu > ul { clear: both; display: none; width: 100% }
	.nav{zoom:1;}
	.header-nav-menu a { font-size: 1.2em; padding:10px 15px !important;}	
	.header-nav-menu ul ul > li { padding-left: 10px }
	.header-nav-menu > ul > li > a > .submenu-arrow { display: block }
	.nav ul{ display: block !important; width:100% !important;}
	.nav > li.hover > ul, .nav li li.hover ul{ position:static; }

	#mobile-search { padding: 5%; text-align: center}
	#mobile-search #s { width: 70%; display: inline }
	#mobile-search #searchsubmit {  width: 20%; display: inline }
	
	#mobile-login { padding: 10px; text-align: center; }
	
	#main-sidebar {	
		padding: 5px 0px; display: block; vertical-align: top; min-width: 170px;
		border-top-left-radius: 8px; border-top-right-radius: 8px;
	}

	#content-sidebar-table { clear: both; display: block; }
	#content-sidebar-row { display: block;  }
			
	.page-content { width: 100%; padding: 10px; max-width: 100% }	
	.page-content h1 { font-size: 1.4em; line-height: 1.1em; margin: 10px 0px 10px; text-align: center }
	.page-content .breadcrumbs { margin-left: -5px; margin-top: -5px; }

	.wp-caption { max-width: 250px !important; width: 250px !important } /*I'm not crazy about this solution*/
	
	.course-schedule-widget { display: none }
	.widget_search {display: none}
	.widget_wp_sidebarlogin { display: none}
		
	.www-pageSetup img { max-width: 225px; padding: 10px;}
	.page-content img {max-width: 225px}
	.page-content blockquote { margin: 10px 10px; padding: 5px; }
}

@media only screen and (max-width: 450px) {
	/*Some minor adjustments at lower resolutions for the mobile site when it's very thin*/
	.wp-caption.alignright, .wp-caption.alignleft{
		float: none; margin-left:auto; margin-right:auto; width: 250px !important; max-width: 250px !important
	}
	
	embed { width: 240px !important; height: 180px !important } 
}
