@media only screen and (max-width: 1024px){
    /* tablet landscape */
		.container, #footer {
			width: 100%;
		}
		
		#header .top_banner {
			margin-left: 0;
			margin-right: 0;
		}
		#header #main_navbar {
			height: auto;
			
		}
		#header #main_navbar li {
			margin-bottom: 0;
			
		}
		#main_navbar form#nav_site_search {
			float: left;
			
		}
		
		
}

@media only screen and (max-width: 940px) {
    /* tablets portrait */
    
    a#on_stands {
	    display: none !important;
    }
		.container, #footer {
			width: 100%;
		}
		
		#main_navbar form#nav_site_search {
			padding-bottom: 15px;
			
		}
		
		#page_content #sidebar {
			width: 98%;
			margin-left: 1%;
			margin-right: 1%;
		}
		
		#page_content #sidebar .module {
			float: left !important;
			width: 48% !important;
			margin-left: 1% !important;
			margin-right: 1% !important;
		}
		
		#sidebar .module img {
			width: 100%;
		}
		
		#page_content #sidebar .module.top_stories, #page_content #sidebar .module.upcoming_events, #page_content #sidebar .module.tag_cloud {
			padding: 2%;
			width: 43% !important;
		}
		#footer .footer_links, #content .year_group, #adv_search {
			width: 98%;
			padding-left: 1%;
			padding-right: 1%;
		}
		
		.top_banner, .bottom_banner {
			width: 98%;
			margin: 0 1%;
		}
		
		.top_banner .advert, .bottom_banner .advert {
			float: left;
		}
		
		.top_banner .advert.left, .bottom_banner .advert.left, .top_banner .advert.left img, .top_banner, .bottom_banner img {
			width: 100% !important;
		}
		

		#home_banner_container {
			overflow: hidden;
		}
		
		
		
		
		#header form#nav_site_search {
			width: 46%;
			margin-left: 1%;
		}
		#header form#nav_site_search p input[type="text"] {
			width: 96%;
			padding-left: 2%;
			padding-right: 2%;
		}
		
		#page_content #content {
			width: 100%;
			padding-left: 0;
			padding-right: 0;
			margin-left: 0;
			margin-right: 0;
		}
		
		#page_content #content #home_banner_container #home_banner {
			width: 100% !important;
		}
		
		#page_content #content #home_banner_container #home_banner a {
			width: 100% !important;
		}
		
		#page_content #content #home_banner_container #home_banner img {
			width: 100% !important;
			display: block;
			height: auto;
		}
		
		.article.list {
			width: 98%;
			margin-left: 1%;
			margin-right: 1%;
		}
		
		.article.half_img .article_info {
			width: 70%;
		}
		
		.article.half_img img {
			width: 25%;
			height: auto;
		}
		
		.article.list.full_img > a, .article.list.full_img img {
			width: 100%;
			display: block;
		}
		ul#pagination_links li {
			vertical-align: middle;
		}
		ul#pagination_links li a {
			font-size: 1.5em;
		}
		
		
		
		#digital_edition .issuuembed {
			margin-left: auto;
			margin-right: auto;
		}
		
		.article.list a.page_number {
			width: 10%
		}
		
		.article.list .article_content.no_image {
			width: 80%;
		}
		
		#calendar {
			display: none;
		}

}

@media only screen and (max-width: 767px) {
        /* phones landscape */
   
   #header a#logo, #header a#logo img {
	   width: 98%;
	   margin-left: 1%;
	   margin-right: 1%;
	   display: block;
   }
   
   #header ul.social_links {
	   margin-top: 10px;
   }
   
   #main_nav {
	   display: none;
   }
   
	 #header #main_navbar #mobile_menu {
		 display: block;
		 width: 48%;
		 float: left;
	 }
   #mobile_menu a.menu.button {
	   color: #fff !important;
	   font-size: 2.8em;
	   margin-left: 5px;
	   cursor: pointer;
   }

   #mobile_menu a.menu span.menu {
	   width: 25px;
	   height: 25px;
	   display: inline-block;
	   background: url('../images/icons/menu-button.png');
	   vertical-align: middle;
	   margin-top: -2px;
   }
   #mobile_menu #mobile_nav {
	   display: none;
	   list-style: none;
	   margin: 0;
   }

   
   ul#mobile_nav li a {
	   color: #fff !important;
	   font-size: 1.8em;
   }
   
   #header form#nav_site_search {
	   float: right;
	   padding-bottom: 6px;
   }
   
   #subscribe #remind_me a, #subscribe #already_subscribed a {
	   font-size: 1.5em;
   }
   
   .member_fb {
	   width: 100% !important;
   }
}

@media only screen and (max-width: 767px) and (orientation: portrait) {
    /* portrait phones */
	 
	 .small-12 {
		 width: 98%;
		 padding: 0 1%;
	 }
	 
	 #subpage img {
		 width: 100% !important;
		 height: auto !important;
	 }
	 
	 #header .top_banner {
		 margin-bottom: 15px;
	 }
	 
	 #header #header_links #top_links {
		 margin-bottom: 10px;
	 }
	 
	 #header #header_links ul#top_links li {
		 margin: 0 8px;
	 }
	 #header form#nav_site_search {
		 width: 98%;
		 margin-left: 1%;
		 margin-right: 1%;
	 }
	 
	 #header #main_navbar #mobile_menu, #mobile_menu ul#mobile_nav {
		 width: 100%;
	 }
	 
	 ul#mobile_nav li {
		margin: 15px 0;
		}
		ul#mobile_nav li a {
		line-height: 1.1em;
		}
	 
	 .article.half_img img {
			width: 100%;
			height: auto;
		}
		
		.article.half_img .article_info {
			width: 100%;
		}
	 
	 #page_content #sidebar .module {
		 width: 98% !important;

	 }
	 
	 #page_content #sidebar .module.top_stories,#page_content #sidebar .module.upcoming_events, #page_content #sidebar .module.tag_cloud {
		 width: 96% !important;
		 padding: 1%;
	 }
	 
	 #page_content #sidebar .module.top_stories a {
		 font-size: 1.8em;
		 
	 }
	 
	 #page_content #sidebar .module.top_stories ul li {
		 margin: 20px 0;
	 }
	 
	 #fbcomments, .fb-comments, .fb-comments iframe[style], .fb-comments span {
		 width: 100% !important;
	 }
	 
	 #content #article, #content #subpage, #content #contribute, #content #contact {
		 width: 96%;
		 margin-left: 2%;
		 margin-right: 2%;
	 }
	 
	 #staff_bios, #staff_bios .staff_member { 
		 width: 100%;
		 margin: 2px 0;
	 }
	 
	 #staff_bios .staff_member a, #staff_bios .staff_member a img {
		 width: 100%;
		 display: block;
		 height: auto;
	 }
	 
	 ul.social_links li {
		 margin-bottom: 5px;
	 }
}

@media only screen and (max-width: 374px) and (orientation: portrait) {
	/* < iPhone 6 */
	#subscribe {
		width: 88%;
		padding: 6%;
		right: 0;
		left: 0;
		border-top: solid 3px #fff;
	}
	

}