/************************************************
*	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: 0px 16px;
		}
	#header .holder {
		display: inline-block;
		width: 100%;
		}
	#header #title a {
		float: none;
		background-image: url(images/logo_mobile.png) !important;
		background-size: 100% !important;
		text-align: center;
		margin: 10px auto 0px;
		}
	#navigation {
		float: left;
		padding: 0px 20px;
		}
	#callouts #tbtestimonials-widget li.testimonial-slide .testimonial-gravatar {
		width: 16%;
		margin-right: 12%;
		}
	#callouts .widget_tbtestimonialswidget {
		height: auto;
		}
	#callouts .middle, #callouts .right {
		max-height: 216px;
		}
	.flexslider {
		min-height: 0;
		padding-top: 60px;
		}
	#slideshow .slideinfo {
		top: -40px;
		}
	#homepage .feature .home_icon {
		margin-bottom: 0px;
		}
	#homepage .feature .home_icon.one {
		background-position: -30px 0px;
		}
	#homepage .feature .home_icon.two {
		background-position: -230px 0px;
		}
	#homepage .feature .home_icon.three {
		background-position: -30px -100px;
		}
	#homepage .feature .home_icon.four {
		background-position: -230px -100px;
		}
	#homepage .feature .home_icon.five {
		background-position: -30px -200px;
		}
	#homepage .feature .home_icon.six {
		background-position: -230px -200px;
		}
	#theme .banner {
		padding-top: 60px;
		}
	#themes .thumbnail.themes {
		height: 288px;
		background-size: 310px 288px !important;
		}
	h4.trigger {
		padding-left: 12% !important;
		width: 88%;
		}
	.toggle_container ul li {
		font-size: 11px;
		padding-left: 0px;
		}
	#s {
		width: 94%;
		}
	#searchsubmit {
		padding: 4px 12px !important;
		}
	#footerfeed {
		height: auto;
		margin-bottom: 0px;
		padding: 5px 0px;
		}
	#tweet {
		width: 100%;
		padding-top: 5px;
		}
	#twitterfeed {
		float: none;
		margin-bottom: 5px;
		padding: 5px 20px 5px 5px;
		}
	#twittericon {
		margin-left: 12px;
		}
	#footerfeed .social_links {
		float: none;
		width: auto;
		text-align: center;
		margin: 0px;
		padding: 5px 20px;
		}
	#footerfeed .like_btn, #footerfeed .plus_btn {
		float: left;
		display: inline-block;
		margin-left: 0px;
		margin-right: 5px;
		}
	#footer {
		height: auto;
		padding-bottom: 10px;
		overflow: hidden;
		}
	}

@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: 24px; 
		/*font-size: 2.0rem; */
		/*line-height: 1.3; */
		}
	h2 { 
		font-size: 16px; 
		/*font-size: 1.6rem; */
		line-height: 1.3; 
		}
	h3 { 
		font-size: 16px; 
		/*font-size: 1.4rem;*/ 
		line-height: 1.3; 
		}
	h4 { 
		font-size: 16px; 
		/*font-size: 1.2rem; */
		line-height: 1.2; 
		}
	h5 { 
		font-size: 16px; 
		/*font-size: 1.0rem;*/ 
		line-height: 1.2; 
		}
	h6 { 
		font-size: 14px; 
		/*font-size: 1.0rem; */
		line-height: 1.2; 
		}
	body, p {  
		font-size: 13px; 
		/*font-size: 1.1rem; */
		line-height: 22px; 
		}
	}
	
/* Content */
	
@media only screen and (max-width: 767px) {		

	/* Theme iPhone */
	
	#fancybox-inner {
		height: 96% !important;
		}
	#fancybox-wrap {
		height: 100% !important;
		max-height: 370px;
		overflow: hidden;
		}
	blockquote {
		margin: 10px 15px 10px 15px;
		padding: 0px 15px 0px 10px;
		}
	blockquote p {
		font-size: 16px;
		line-height: 22px;
		}
	.container {
		margin-bottom: 0px;
		padding: 0px;
		}
	.row {
		box-shadow: none;
		-moz-box-shadow: none;
		-webkit-box-shadow: none;
		}
	#header {
		margin-bottom: 0px;
		padding-bottom: 20px;
		border-bottom: 1px solid #EEEEEE;
		box-shadow: none;
		-moz-box-shadow: none;
		-webkit-box-shadow: none;
		}
	#header #title a {
		float: none;
		background-image: url(images/logo_mobile.png) !important;
		background-size: 100% !important;
		text-align: center;
		margin: 10px auto 10px;
		}
	.menu li {
		display: inline-block;
		width: 50%;
		}
	.menu a {
		background: #F9F9F9;
		font-size: 16px;
		margin: 4px 4px 4px 4px;
		padding: 6px 10px;
		}
	#callouts {
		display: none;
		}
	#slideshow .slideinfo {
		top: -80px;
		}
	.flexslider {
		min-height: 0;
		padding: 90px 30px 0px 30px;
		}
	.flex-direction-nav li .prev {
		left: -5px;
		}
	.flex-direction-nav li .next {
		right: -5px;
		}
	.flex-control-nav {
		display: none;
		}
	#homepage {
		margin-bottom: 0px;
		}
	#homepage .feature .information {
		padding: 10px 0px 10px 10px;
		}
	#homepage .feature.left .information {
		padding: 10px 10px 10px 0px;
		}
	#homepage .postarea {
		padding: 15px 20px;
		}
	#content .postarea {
		padding: 15px 20px;
		border-right: none;
		}
	#theme .banner {
		padding: 140px 10px 0px 10px;
		}
	#features .feature {
		width: 50%;
		}
	#features .feature.left {
		clear: none;
		}
	#themes .thumbnail.themes {
		height: 260px;
		background-size: 280px 260px !important;
		}
	#themes .postarea {
		margin-bottom: 0px !important;
		}
	#showcase .twelve.columns .postarea {
		margin-bottom: 0px;
		}
	#showcase .thumbnail.featured {
		float: none;
		display: block;
		margin: 0px;
		padding: 0px;
		}
	#showcase .postarea {
		margin-bottom: 0px;
		box-shadow: none;
		-moz-box-shadow: none;
		-webkit-box-shadow: none;
		}
	#showcase .thumbnail.themes {
		height: 200px;
		background-size: auto !important;
		}
	#showcase .thumbnail.themes:hover {
		background-position: center -200px !important;
		}
	#faq .question {
		float: none;
		width: 100%;
		}
	#faq .toggle_container {
		width: 100%;
		}
	#faq h4.trigger {
		display: block;
		width: 90%;
		font-weight: normal !important;
		padding-left: 9% !important;
		padding-right: 1%;
		}
	#blog .postarea, .number-paginate {
		border-right: none;
		}
	#packages {
		margin-top: 0px;
		}
	#packages .package {
		width: 100% !important;
		margin: 20px 0px 0px 0px !important;
		padding: 0px;
		}
	.sidebar {
		border-top: 1px solid #EEEEEE;
		}
	#footerwrap {
		height: auto;
		bottom: auto;
		position: relative;
		margin-top: -22px;
		border-top: 1px solid #EEEEEE;
		}
	#footer {
		height: auto;
		overflow: hidden;
		padding-bottom: 20px;
		}
	#footerfeed {
		overflow: hidden;
		box-shadow: none;
		-moz-box-shadow: none;
		-webkit-box-shadow: none;
		}
	.footer.right {
		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; }
}