/************************************************
*	Media Queries								*
************************************************/
@media only screen and (min-width: 1280px) {
	/** Footer **/
	.footer:before,
	.footer:after {
		content: "";
		position: absolute;
		top: -11px;
		width: 0;
		height: 0;
		border-top: 10px solid transparent;
	}
	.footer:before {
		left: 0;
		border-right: 15px solid #555;
	}
	.footer:after {
		right: 0;
		border-left: 15px solid #555;
	}
}

@media only screen and (max-width: 1150px) {
	#header-container {
		padding-top: 0;
	}
	#header #masthead {
		text-align: center;
		float: none;
	}
	#header .ad-wrap {
		clear: left;
		float: none !important;
		padding: 30px 0 10px;
		text-align: center;
	}
	.datebox {
		width: 100%;
		margin: 0 0 15px;
		padding: 5px 0;
	}
		.datebox:before {
			background: none;
			border: none;
		}
}

/* Mobile */
@media only screen and (max-width: 1023px) {
	#sidebar {
		clear: both;
		float: none;
		width: 100%;
		margin-left: 0;
	}
	#content, #content_noscroll {
		width: 100%;
	}
	#sidebar-scroll {
		display: none !important;
	}
	.infinite-scroll #sidebar {
		display: none;
	}
}

@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 only screen and (min-width: 767px) and (max-width: 1150px) {
	#tabs-container .tabs-menu li a {
   		padding: 6px;
    	font-size: 12px;
	}
}




@media only screen and (min-width: 767px) and (max-width: 1023px) {
	#sidebar .widget {
		width: 30%;
		float: left;
		margin-right: 3%;
		border-bottom: none !important;
		border-top: 1px solid #ddd !important;
		padding-top: 10px !important;
	}
}

@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; 
		}
	body, p {  
		font-size: 14px; 
		font-size: 1.0rem; 
		line-height: 1.7; 
		}
	blockquote {
		margin: 10px;
		padding: 0px 15px;
		}
	blockquote p {
		font-size: 1.2rem;
		line-height: 1.6;
		}
	.headline,
	.post .headline {
		font-size: 24px;
		line-height: 27px;
		-ms-word-wrap: break-all;
		-moz-word-wrap: break-all;
		-webkit-word-wrap: break-all;
		word-wrap: break-all;

		-webkit-hyphens: auto;
		-moz-hyphens: auto;
		hyphens: auto;
	}
}
	
/* Content */
	
@media only screen and (max-width: 767px) {

	/* Theme iPhone */

	.container {
		margin-top: 0px;
		padding: 0;
		}
	.headline {
		font-size: 1.8rem;
		line-height: 1.3;
		margin-bottom: 20px;
		}
	.headline.smaller {
		font-size: 1.8rem;
		line-height: 1.5;
		}
	.headline.page {
		padding-bottom: 0px;
		}
	.text-date {
		font-size: 0.7rem;
		margin-top: -2px;
		}
	.searchnav {
		display: none;
		}
	.menu {
		width: 100%;
		}
	.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.single iframe, 
	#homepage .holder.single embed, 
	#homepage .holder.single object {
		max-height: 160px;
		}
	#navigation {
		margin: 0;
		padding: 0;
	}
	.postdata p {
		display: none;
		}
	.datebox {
		border-radius: 0;
	}
	#homepage .holder.double.second .article {
		padding-left: 10px;
		}
	#homepage .holder.double.first .article {
		padding-right: 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, #content_noscroll {
		margin-top: 20px;
		}
	.postauthor {
		margin-top: -14px;
		}
	.postauthor p {
		font-size: 0.9rem;
		}
	#content p,
	#content h1,
	#content h2,
	#content h3,
	#content h4,
	#content h5,
	#content h6,
	#content_noscroll p,
	#content_noscroll h1,
	#content_noscroll h2,
	#content_noscroll h3,
	#content_noscroll h4,
	#content_noscroll h5,
	#content_noscroll h6
	{
		padding-right: 10px;
		padding-left: 10px;
	}
	.article.archive .featurevid iframe, 
	.article.archive .featurevid embed, 
	.article.archive .featurevid object {
		max-height: 160px;
		}
	.sidebar {
		margin-top: 10px !important;
		}
	.sidebar.left {
		display: none;
		}
	.single-format-gallery #sidebar .widget {
		width: 100% !important;
	}
	.footer, .footerwidgets {
		padding: 0px 20px;
		}
	.footer {
		height: auto;
		padding-bottom: 12px;
		}
	.footerright {
		display: none;
		}

	.sifter-share-single {
		display: inline-block;
		padding: 10px;
	}

	.addthis_button_facebook_share {
		padding: 0px 10px 15px !important;
	}

	.sifter__share .sd-social-official .sd-content ul>li {
		padding-left: 0 !important;
		margin-right: 5px !important;
	}

	#sifter-fb-likebox {
		display: none;
	}

	.widget_sifter_subscribe_widget input[type=text] {
		margin-bottom: 10px;
	}

	/* Shortcodes */

	.subscribe-shortcode {
		padding: 10px;
	}

	.subscribe-shortcode form {
		width: 100%;
	}

	.subscribe-shortcode form .af-body {
		width: 100%;
	}

	.subscribe-shortcode form input[type=text] {
		margin-right: 0;
		margin-bottom: 10px;
	}

	/* 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; }
	
	.video-grid .row .phone-one:first-child, .video-grid .row .phone-two:first-child, .video-grid .row .phone-three:first-child, .video-grid .row .phone-four:first-child { margin-left: 0; }
 	.video-grid .row .phone-one:last-child, .video-grid .row .phone-two:last-child, .video-grid .row .phone-three:last-child, .video-grid .row .phone-four:last-child { float: left; }
 	.video-grid .row .phone-one, .video-grid .row .phone-two, .video-grid .row .phone-three, .video-grid .row .phone-four { margin-left: 0; }
	.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; 
		}
}

/* Pgination */
@media only screen and ( max-width: 767px ) {
	.paginate-wrapper .paginate_navigation .page-numbers {
		padding: 0 10px;
	}
	.paginate-wrapper .paginate_navigation ul.page-numbers li a, .paginate-wrapper .paginate_navigation ul.page-numbers li {
		margin-right: 5px;
	}
	.paginate-wrapper .paginate_navigation ul.page-numbers li .next span, .paginate-wrapper .paginate_navigation ul.page-numbers li .prev span {
		padding-top: 3px;
	}
}

/* -------------------------------------------------- 
	:: 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; }
}


/* 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; }
}

/* Ads */

/* Don't show leaderboard if < 730 */
@media only screen and (max-width: 730px) {
	#content .ad-wrap-728 { display: none; }
	#content_noscroll .ad-wrap-728 { display: none; }
}

@media only screen and (min-width: 767px) and (max-width: 1200px) {
	/* Don't show big box in sidebar if between 1200 and 767; sidebar drops to footer after 767 */
	.sidebar .ad-wrap-336, .sidebar .widget_sifter_ad_bigbox_widget { display: none; }
}

@media only screen and (max-width: 730px) {
	#header .ad-wrap {
		display: none !important;
	}
}