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

/* Mobile */

@media handheld, only screen and (max-width: 1023px) {

	/* Theme iPad */

	body, p {
		font-size: 0.9rem;
		line-height: 1.8;
	}
	.menu a {
		font-size: 0.85em;
		line-height: 4.8;
		padding: 0px 6px;
	}
	.menu li:hover ul,
	.menu li.sfHover ul {
		top: 52px;
	}
	.sf-arrows .sf-with-ul {
		padding-right: 18px;
	}
	.sf-arrows .sf-with-ul::after {
		right: 6px;
	}
	.flexslider.loading {
		min-height: 360px;
	}
	.home-pages .information {
		padding: 6px;
	}
	#footer-widgets, #footer {
		padding-left: 24px;
		padding-right: 24px;
	}

}

/* 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.1rem;
		line-height: 1.4;
	}
	h6 {
		font-size: 1.0rem;
		line-height: 1.4;
	}
	.headline {
		font-size: 1.6rem;
	}
	body, p {
		font-size: 0.85rem;
		line-height: 1.8;
	}
	blockquote {
		margin: 12px 0px;
		padding: 12px 0px;
		border-left: none;
	}
	blockquote p {
		font-size: 1rem;
		line-height: 1.6;
	}
}

/* Content */

@media only screen and (max-width: 767px) {

	/* Theme iPhone */

	#wrap {
		padding: 0px 12px;
		overflow: hidden;
	}
	#header {
		display: inline-block;
		width: 100%;
		height: auto;
	}
	#header .site-title {
		font-size: 2em;
	}
	#header .site-description {
		font-size: 1.3em;
	}
	#custom-header {
		margin: 0px;
	}
	.header-search {
		display: none;
	}
	#navigation {
		background: #99cc00;
		position: relative;
		top: auto;
		margin: 0px 0px 12px 0px;
		padding: 0px;
		border-radius: 3px;
		-moz-border-radius: 3px;
		-khtml-border-radius: 3px;
		-webkit-border-radius: 3px;
		box-shadow: inset 0px 1px 0px rgba(0, 0, 0, .1);
		-moz-box-shadow: inset 0px 1px 0px rgba(0, 0, 0, .1);
		-webkit-box-shadow: inset 0px 1px 0px rgba(0, 0, 0, .1);
	}
	#navigation::after,
	#navigation .corner-left,
	#navigation .corner-right {
		display: none;
	}
	.mobile-menu {
		margin: 0px;
		padding: 0px;
	}
	.menu-toggle,
	.main-small-navigation ul.mobile-menu.toggled-on {
		display: block;
	}
	.navigation-main ul.menu,
	.sf-sub-indicator {
		display: none;
	}
	.menu {
		display: block;
	}
	.menu-toggle {
		color: #FFFFFF;
		font-family: 'Roboto Slab', 'Helvetica Neue', Arial, Helvetica, sans-serif;
		font-size: 1.8em;
		font-weight: 400;
		text-shadow: -1px -1px rgba(0,0,0, 0.1);
		letter-spacing: 0;
		text-transform: none;
		text-align: center;
		margin: 0;
		padding: 12px;
	}
	.menu-toggle:before {
		color: #FFFFFF;
		font-family: 'FontAwesome';
		content: ' ';
		top: 1px;
		margin-right: 6px;
		position: relative;
	}
	.mobile-menu ul.sub-menu {
		display: block !important;
		visibility: visible !important;
		left: auto;
		margin: 0;
		padding: 0;
	}
	.mobile-menu ul,
	.mobile-menu li {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	.mobile-menu li {
		display: block;
		text-align: center;
		line-height: 2.4;
	}
	.mobile-menu li li a:before {
		content: '- ';
	}
	.mobile-menu li li li a:before {
		content: '-- ';
	}
	.mobile-menu li li li li a:before {
		content: '--- ';
	}
	.mobile-menu a {
		display: block;
		color: #EEEEEE;
		font-size: 1.2em;
		text-decoration: none;
		text-shadow: -1px -1px rgba(0,0,0, 0.1);
		padding: 6px 0px;
		border-top: 1px solid rgba(0,0,0, 0.1);
	}
	.mobile-menu a:hover {
		background: rgba(0,0,0, 0.08);
		color: #FFFFFF;
		text-decoration: none;
	}
	#slideshow .information .headline {
		font-size: 1.4em;
		letter-spacing: 0px;
	}
	#slideshow .information p {
		display: none;
	}
	.flexslider.loading {
		min-height: 180px;
	}
	.home-pages .holder {
		width: 100%;
		border-top: 1px solid rgba(0,0,0, 0.09);
	}
	.home-pages .holder:first-child {
		border-top: none;
	}
	.home-pages .holder .information {
		padding: 12px !important;
	}
	.home-pages .text-holder,
	.home-pages .img-holder {
		height: auto !important;
	}
	.home-news {
		margin-bottom: 24px;
	}
	#postarea,
	#postarea.full-page,
	#postarea.middle-page {
		padding: 18px;
	}
	.post-author p {
		display: block;
		width: 100%;
		font-size: 1em;
	}
	.organization-sidebar-inactive .alignfull,
	.organization-sidebar-inactive .alignwide,
	.organization-sidebar-active .alignfull,
	.organization-sidebar-active .alignwide {
		width: calc(100% + 36px);
		left: -18px;
	}
	.blog-icon {
		display: none;
	}
	.no-img {
		margin-top: 0px;
	}
	.archive-column {
		width: 100%;
		padding-right: 0;
	}
	#comments {
		padding: 6px 18px;
	}
	.sidebar {
		padding: 24px;
		border-top: 1px solid rgba(0,0,0, 0.09);
	}
	.sidebar.left {
		display: none;
	}
	#footer,
	#footer-widgets,
	.footer-widget {
		padding-left: 12px;
		padding-right: 12px;
	}
	.footer-widget .widget {
		margin-top: 12px;
		margin-bottom: 12px;
	}
	#footer {
		text-align: center;
	}
	#footer p {
		font-size: 0.8rem;
	}
	.footer.left,
	.footer.right {
		float: none;
	}
	.no-img {
	    margin-top: 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;
		overflow: visible !important;
	}
	.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;
	}
}
