/************************************************
*	Media Queries								*
************************************************/

/* Mobile */
		
@media handheld, only screen and (max-width: 1023px) {
	.reveal-modal-bg { position: absolute; }
	.reveal-modal,
	.reveal-modal.small,
	.reveal-modal.medium,
	.reveal-modal.large,
	.reveal-modal.xlarge { width: 60%; top: 60px; left: 15%; margin-left: 0; padding: 20px; height: auto; }
	
	/* Theme iPad */
	.container { margin-top: 0px; padding: 20px; }
	.headline.smaller { font-size: 1.8rem; line-height: 1.5; }
	#slideshow iframe, #slideshow embed, #slideshow object { max-height: 268px; }
	#slideshow .article .headline.smaller { font-size: 1.3rem; max-height: 80px; overflow: hidden; }
	#slideshow .article p { max-height: 108px; overflow: hidden; }
	.featurevid iframe, .featurevid embed, .featurevid object { max-height: 268px; }
	.footer, .footerwidgets { padding: 10px 20px; }
	}

@media handheld, only screen and (max-width: 767px) {
	.reveal-modal-bg { position: absolute; }
	.reveal-modal,
	.reveal-modal.small,
	.reveal-modal.medium,
	.reveal-modal.large,
	.reveal-modal.xlarge { width: 80%; top: 15px; left: 5%; margin-left: 0; padding: 20px; height: auto; }
	}
	
/* Typography */
	
@media handheld, only screen and (max-width: 767px) {
	h1 { font-size: 32px; font-size: 2.0rem; line-height: 1.4; }
	h2 { font-size: 28px; font-size: 1.6rem; line-height: 1.4; }
	h3 { font-size: 21px; font-size: 1.4rem; line-height: 1.4; }
	h4 { font-size: 18px; font-size: 1.2rem; line-height: 1.4; }
	h5 { font-size: 16px; font-size: 1.0rem; line-height: 1.4; }
	h6 { font-size: 14px; font-size: 1.0rem; line-height: 1.4; }
		
	#page { width:100%;
	box-shadow: 0px 0px 0px #ffffff;
	-moz-box-shadow: 0px 0px 0px #ffffff;
	-webkit-box-shadow: 0px 0px 0px #ffffff;
	 }
	 
	 .row { width: 58%; max-width: 1220px; min-width:100%; margin: 0 auto; }
	 .row .eight { width: 100%; }
	 .row .four { width: 100%; margin: 60px 0 0 0 !important; }
	 #adrotate_widgets-4, #adrotate_widgets-2 { text-align: center !important; }
	
	 .column, .columns { float:none !important; }
	 #homepage iframe, #homepage embed, #homepage object { width: 58% !important; }
	 .row .two { width: 100%; float: left; display: inline; text-align: center; }
	  #text-12 { text-align: center; }
	.footerwidgets span { display: inline; }
	 .footerwidgets .four { width:100%; }
	 .row .tab { margin-left: 0% !important; }
	 
	 #content #homepage .holder.double.second { margin: 0 -9px 0px 0; }
	 #homepage .pagination { margin: 20px 0px 20px 0px; }
	 
	 #homepage .holder.double { width:100%; float:none !important; margin:0; }
	 #homepage .holder.double.second .article { padding: 0px; }
	 .featureimg img { width:384px; max-width: 384px; padding-right: 50%; }
	 .date-overlay { width:374px !important; }
	 
	.nav-home .menu { margin: 0px 0px 0px -16px; }
	.menu { margin: 10px 0px 0px -5px; }
	.menu ul { font-size: 0.9rem; }
	.nav-home { padding: 0 0 0 46px !important; }
	.nav-home .searchnav { position: relative !important; float: left !important; margin:10px 0 0 40px !important; }
	.searchnav { position: relative !important; float: left !important; margin:10px 0 0 66px !important; }
	
	.headline.smaller { font-size: 1.1em; line-height: 1.30em; font-weight: 300; margin: 2px 0px; padding: 2px 2px 2px 0px; }
	.shadow { background-image: url('images/img-shadow-331.png'); background-position: 20px 252px; background-repeat: no-repeat; height: 0px; }
	#homepage .social-2column .tweet_btn, #homepage .tweet_btn { width: 100%; }
	#homepage .social-2column .plus_btn, #homepage .plus_btn { width: 100%; clear: both; }
	#homepage .social-2column .like_btn, #homepage .like_btn { width: 100%; clear: both; }
	.fb_iframe_widget span { display: inline !important; }
	#content .tweet_btn, #content .plus_btn, #content .like_btn, #content .pin-it-btn-wrapper-shortcode { max-width:100%; width:100%; }
		.social .tweet_btn, .social .plus_btn, .social .like_btn, .social .pin-it-btn-wrapper-shortcode { padding:10px 0 0 0 !important; }
	#content .pin-it-btn-wrapper-shortcode { margin:0; float:left; margin-top:20px !important; }
	
	body, p { font-size: 14px; font-size: 0.95rem; line-height: 1.5; background-color: transparent !important; }
	blockquote { margin: 10px; padding: 0px 15px; }
	blockquote p { font-size: 1.2rem; line-height: 1.6; }
	}
	
/* Content */

@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape)
and (-webkit-min-device-pixel-ratio: 1)  {
	body.home .headline.smaller { font-size: 1.8rem; line-height: 1.5; margin-top:10px !important; }
	#content.row .headline.smaller { font-size: 1.8rem; line-height: 1.5; margin-top:5px !important; }
	.related-text { padding: 5px; position: relative; bottom: 32px; width: 116px !important; }
	#slideshow { display:none !important; }
}

@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait)
and (-webkit-min-device-pixel-ratio: 1)  {
	.relatedposts-single { display:none; }
	#slideshow { display:none !important; }
}

@media only screen 
and (min-device-width : 768px)
and (max-device-width : 1024px) {	

	/* Theme iPhone and all iPad */
	
	.row { width: 100%; max-width: 1023px; min-width: 767px; margin: 0 auto; }
	.row .eight { width: 66.393443% !important; padding-right: 5px !important; }
	.row .four { width: 27.868852% !important;  }
	.sidebar.right { padding:0px !important; margin:45px -25px 0 10px !important; }
	#content.row .sidebar.right { padding:0px !important; margin:35px -25px 0 10px !important; }
	.column, .columns { margin-left: 4.4%; float:left !important; }
	
	.container { margin-top: 0px; padding: 20px; }
	.headline { font-size: 1.8rem; line-height: 1.3; margin-bottom: 20px; }
	.headline.smaller { font-size: 1.8rem; line-height: 1.5; margin-top:-50px !important; }
	
	.headline.page { padding-bottom: 0px; }
	.text-date { font-size: 0.7rem; margin-top: -2px; }
	/*.searchnav { display: block; }*/
	.searchnav { width: 15%; font-size: 11px; line-height: 40px; height: 40px; margin:7px -35px 0 0; }
	
	#content-slider, #slideshow, .flexslider { /*width: 48.5%; height: 20%; margin: 0; padding: 0;*/ display:none !important; }
	.open-close img { display:none; }
	#custom-header img { padding-top:10px; }
	
	.footerwidgets { max-width: 100% !important; }
	.footer { max-width: 100% !important; }
	.row .tab { width: 95% !important; }
	
	/*
	#navigation.nav-home .menu { margin:0 0 10px -20px; font-size: 1.2rem; }
	#navigation .menu { margin:0 0 10px 0px; font-size: 1.2rem; }
	#navigation .menu { width: 100%; }
	#navigation .menu, #navigation .menu .menu li { display: block; list-style-type: none; width:100%; line-height:10px; }

	#navigation .menu li { display: block;  width: 400px; border:1px solid white; }
	#navigation .menu li:hover a { color: #fff; background:#444; text-shadow: 0px 1px 0px #000; width:95%; }
	
	.menu { float:left !important; }
	.menu li { float:left !important; display: inline-block !important; position: relative !important; }
	.menu ul ul, ul.menu ul { position: absolute; top: 0px !important; width: 160px !important; }
	.menu ul li ul li, ul.menu ul li { width: 100% !important; }
	*/
	body.home .menu { margin-left: -22px !important; }
	.menu { margin-left: -2px !important; }
	
	.flex-direction-nav li a { top: 80px; }
	.flex-direction-nav li .next { left: 100%; }
	.flex-control-nav { display: none; }
	
	#slideshow iframe, #slideshow embed, #slideshow object { max-height: 196px; }
	#slideshow .four.columns { margin-left: 0; width: auto; }
	#slideshow .article { padding-top: 20px; }
	
	#homepage .holder.double { margin:0 0 0 0; }
	#content #homepage .holder.double.first { width: 49% !important; }
	#content #homepage .holder.double.second { width: 49% !important; margin: 0 0 -30px -4px !important; }
	#homepage .holder.single .article { width: 77%; }
	#homepage .holder.single .postdata { width: 19%; margin-right: 4%; }
	#homepage .holder.single iframe, 
	#homepage .holder.single embed, 
	#homepage .holder.single object { max-height: 160px; }
		
	.postdata p { display: none; }
	.datebox { width: 92%; }
	
	#homepage .holder.double.first .article { padding-right: 10px; }
	#homepage .holder.double.second .article { padding-left: 10px; }
	#homepage .holder.double iframe, 
	#homepage .holder.double embed, 
	#homepage .holder.double object { max-height: 110px; }
	#homepage .holder.double .headline.smaller { font-size: 1.2rem; line-height: 1.3; }
	#homepage .holder.double .article p { font-size: 12px; line-height: 1.6; }
	#content { margin-top: 20px; }
	
	.social-2column { /*float:none;*/ }
	#homepage .social-2column .tweet_btn,
	#homepage .social-2column .like_btn,
	#homepage .social-2column .plus_btn { margin-bottom: 15px; }
	#homepage .social-2column .like_btn { margin-top: 0px; }
	#homepage .social-2column .tweet_btn { margin-bottom: 6px; }
	
	
.shadow { background:none; height: 220px !important; }
.date-overlay { width: 96% !important; }
.holder.double.second .date-overlay, .holder.double.second #content .date-overlay { width: 94% !important; }
#content .date-overlay { width: 96% !important; }
#content .featureimg, .featurevid { width: 100% !important; }

.featureimg {
background-image: url('images/img-shadow-331.png');
background-size: 300px auto;
background-position: 0px 88%;
background-repeat: no-repeat;
padding-bottom: 18%;
margin-bottom: 5px;
position: absolute;
width: 100% !important;

}

#content #homepage .holder.double.first span.top5,
#homepage .holder.double.first span.top5 { margin:0 !important; right: 0.3% !important; }
#content #homepage .holder.double.second span.top5,
#homepage .holder.double.second span.top5 { margin:0 !important; right: 0.3% !important; }

body.home .execphpwidget span { width: 80%; } /* top5 widget */
/* .relatedposts-single div:last-child { display:none; } */
.relatedthumb a { width: 126px; }
.related-text { width: 18.3%; }

	
	.postauthor { margin-top: -14px; }
	.postauthor p { font-size: 0.9rem; }
	.article.archive .featurevid iframe, 
	.article.archive .featurevid embed, 
	.article.archive .featurevid object { max-height: 160px; }

	.sidebar { margin-top: 40px !important; }
	.sidebar.left { display: none; }
	.footer, .footerwidgets { padding: 0px 20px; width: 1020px !important; }
	.footerwidgets .column:first-child, .columns:first-child { margin-left: 0 !important; }
	.footerwidgets .two.columns { margin-left: 4.4% !important; }
	.footerwidgets .row .two { width: 13% !important; }
	
	.footer { height: auto; padding-bottom: 12px; }
	.footer .twelve.columns .footerleft { float:left !important; display: block !important; margin: 12px 0px 0px 0px !important; padding-right: 22% !important; }
	.footer .twelve.columns .footerright { float:right !important; display: block !important; margin: 18px 0px 0px 0px !important; }
		
	/* Grid */
	
	body { -webkit-text-size-adjust: none; -ms-text-size-adjust: none; width: 100%; min-width: 0; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
	.container { min-width: 0; margin-left: 0; margin-right: 0; }
	.row { width: 100%; min-width: 0; margin-left: 0; margin-right: 0; }
	.row .row .column, .row .row .columns { padding: 0; }
	
	.column, .columns { width: auto !important; float: none; margin-left: 0; margin-right: 0; }
	.column:last-child, .columns:last-child { margin-right: 0; float: none; }
	
	[class*="column"] + [class*="column"]:last-child { float: none; }
	[class*="column"]:before, [class*="column"]:after { content:""; display:table; }
	[class*="column"]:after { clear: both; }
	
	.offset-by-one, .offset-by-two, .offset-by-three, .offset-by-four, .offset-by-five, .offset-by-six, 
	.offset-by-seven, .offset-by-eight, .offset-by-nine, .offset-by-ten, .offset-by-eleven, .centered { margin-left: 0 !important; }
	
	.push-two, .push-three, .push-four, .push-five, .push-six, .push-seven, .push-eight, .push-nine, .push-ten { left: auto; }
	.pull-two, .pull-three, .pull-four, .pull-five, .pull-six, .pull-seven, .pull-eight, .pull-nine, .pull-ten { right: auto; }
	
	/* Mobile 4-column Grid */
	
	.row .phone-one:first-child, .row .phone-two:first-child, .row .phone-three:first-child, .row .phone-four:first-child { margin-left: 0; }
	.row .phone-one:last-child, .row .phone-two:last-child, .row .phone-three:last-child, .row .phone-four:last-child { float: right; }
	
	.row .phone-one, .row .phone-two, .row .phone-three, .row .phone-four { margin-left: 4.4%; float: left; min-height: 1px; position: relative; padding: 0; }
	
	.row .phone-one 	{ width: 21.68% !important; }
	.row .phone-two 	{ width: 47.8% !important; }
	.row .phone-three 	{ width: 73.9% !important; }
	.row .phone-four 	{ width: 100% !important; }
	
	.row .push-one-phone { left: 26.08%; }
	.row .push-two-phone { left: 52.2% }
	.row .push-three-phone { left: 78.3% }
	
	.row .pull-one-phone { right: 26.08% }
	.row .pull-two-phone { right: 52.2% }
	.row .pull-three-phone { right: 78.3%; }
	
	
}
	
	
/* Block Grids */	
	
@media only screen and (max-width: 767px) {
	.block-grid.mobile { margin-left: 0; }
	.block-grid.mobile > li { float: none; width: 100%; margin-left: 0; }
}
	
	

/* -------------------------------------------------- 
	:: Mobile Visibility Affordances
---------------------------------------------------*/
	
	
.show-on-phones { display: none !important; }	
.show-on-tablets { display: none !important; }
.show-on-desktops { display: block !important; }

.hide-on-phones { display: block !important; }	
.hide-on-tablets { display: block !important; }
.hide-on-desktops { display: none !important; }


/* Modernizr-enabled tablet targeting */
@media only screen and (max-width: 1280px) and (min-width: 768px) {
	.touch .hide-on-phones { display: block !important; }
	.touch .hide-on-tablets { display: none !important; }
	.touch .hide-on-desktops { display: block !important; }
	
	.touch .show-on-phones { display: none !important; }
	.touch .show-on-tablets { display: block !important; }
	.touch .show-on-desktops { display: none !important; }
}

	
@media only screen and (max-width: 767px) {
	.hide-on-phones { display: none !important; }
	.hide-on-tablets { display: block !important; }
	.hide-on-desktops { display: block !important; }
	
	.show-on-phones { display: block !important; }
	.show-on-tablets { display: none !important; }
	.show-on-desktops { display: none !important; }
	.searchnav { position:relative !important; float:left !important; }
}


/* Specific overrides for elements that require something other than display: block */

table.show-on-desktops { display: table !important; }
table.hide-on-phones { display: table !important; }	
table.hide-on-tablets { display: table !important; }

@media only screen and (max-width: 1280px) and (min-width: 768px) {
	.touch table.hide-on-phones { display: table !important; }
	.touch table.hide-on-desktops { display: table !important; }
	.touch table.show-on-tablets { display: table !important; }
}

@media only screen and (max-width: 767px) {
	table.hide-on-tablets { display: table !important; }
	table.hide-on-desktops { display: table !important; }
	table.show-on-phones { display: table !important; }
}