/************************************************
*	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 {
		padding: 20px;
		}
	.row.slideshow .flex-direction-nav li a {
		margin-top: -30px; 
		}
	.flex-direction-nav .flex-next {
		right: 0px;
		box-shadow: -1px 1px 1px rgba(0, 0, 0, .4);
		-moz-box-shadow: -1px 1px 1px rgba(0, 0, 0, .4);
		-webkit-box-shadow: -1px 1px 1px rgba(0, 0, 0, .4);
		border-radius: 3px 0px 0px 3px;
		-moz-border-radius: 3px 0px 0px 3px;
		-khtml-border-radius: 3px 0px 0px 3px;
		-webkit-border-radius: 3px 0px 0px 3px;
		}
	.flex-direction-nav .flex-prev {
		left: 0px;
		box-shadow: 1px 1px 1px rgba(0, 0, 0, .4);
		-moz-box-shadow: 1px 1px 1px rgba(0, 0, 0, .4);
		-webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, .4);
		border-radius: 0px 3px 3px 0px;
		-moz-border-radius: 0px 3px 3px 0px;
		-khtml-border-radius: 0px 3px 3px 0px;
		-webkit-border-radius: 0px 3px 3px 0px;
		}
	.datebox {
		display: none;
		}
		
	}

@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: 1.8rem; 
		line-height: 1.4; 
		}
	h2 { 
		font-size: 1.6rem; 
		line-height: 1.4; 
		}
	h3 {  
		font-size: 1.4rem; 
		line-height: 1.4; 
		}
	h4 { 
		font-size: 1.2rem; 
		line-height: 1.4; 
		}
	h5 {  
		font-size: 1.0rem; 
		line-height: 1.4; 
		}
	h6 { 
		font-size: 1.0rem; 
		line-height: 1.4; 
		}
	body, p {  
		font-size: 0.9rem; 
		line-height: 1.7; 
		}
	blockquote {
		margin: 10px;
		padding: 0px 15px;
		}
	blockquote p {
		font-size: 1.1rem;
		line-height: 1.4;
		}
	}
	
/* Content */
	
@media only screen and (max-width: 767px) {		

	/* Theme iPhone */
	
	.container {
		padding: 10px;
		}
	#header #masthead {
		padding-top: 12px;
		padding-bottom: 12px;
		}
	#header .site-title {
		font-size: 2rem;
		}
	#custom-header {
		margin: 0px;
		}
	.headline {
		font-size: 2rem;
		margin-bottom: 15px;
		}
	#navigation {
		margin: 20px 0px 10px 0px;
		}
	.menu ul.sub-menu, 
	a > .sf-sub-indicator {
		display: none !important;
		}
	.menu a {
		background: #FFFFFF;
		width: 100%;
		padding: 0px;
		}
	.menu li, .menu li.sfHover {
		width: 48%;
		text-align: center;
		margin-bottom: 6px;
		margin-right: 0px;
		padding: 0px 1%;
		}
	.menu li.sfHover:hover {
		background: none;
		}
	.menu li.sfHover:hover a {
		background: #333333;
		}
	.menu a.sf-with-ul {
		padding-right: 0px;
		}
	#slideshow {
		margin-bottom: 20px;
		}
	#slideshow .slide-info {
		width: 88%;
		padding: 6%;
		}
	.loading {
		min-height: 200px;
		}
	#homepage .three.columns {
		width: 48% !important;
		margin-left: 4%;
		}
	#homepage .three.columns.third {
		margin-left: 0;
		clear: both;
		}
	.home_info .title {
		font-size: 0.9rem;
		line-height: 1.4;
		margin-bottom: 4px;
		padding-bottom: 4px;
		}
	.home_info p {
		display: block;
		max-height: 44px;
		margin: 0px;
		padding: 0px;
		overflow: hidden;
		}
	#content {
		padding-top: 10px;
		}
	.archive-column {
		float: none;
		width: 100%;
		padding-right: 0px;
		}
	.search .article, 
	.archive .article,
	.blog-page .article {
		padding: 20px;
		margin-bottom: 20px;
		}
	.woocommerce ul.products li.product, 
	.woocommerce-page ul.products li.product {
		width: 100% !important;
		}
	#footer {
		text-align: center;
		padding: 20px 0px;
		}
	#footer p {
		font-size: 0.7rem;
		}
	.footerright {
		display: none;
		}
		
	/* 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; }
}


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