/*  
Name: tib-mobile
URI: https://thisibelieve.org/
Description: This stylesheet is for optimized viewing on Webkit, including iOS and Android.
Version: 1.0
Author: Dennis Whiteman
Author URI: https://www.fastpipe.com/
*/

/* =Responsive Structure
----------------------------------------------- */
@media (max-width: 736px) {
	/* Simplify the basic layout */
	body { 
		color:#000033;
		background-color: #9cf;
		min-width:100%;
		font-size: 50%;
		margin: auto;
	}
	#wrapper { 
		background-color: #99ccff;
		background-image: none;
	}
	#wpadminbar, .nojq, .nojs, .quicklinks {
		display:none;
	}

	/* Main Page Layout */
	#header { 
		background: transparent url('tib-header-1280x152.png') no-repeat -70px 0px; 
		background-size:640px 76px;
		margin: 0 auto;
		z-index:2;
		height: 74px; 
		width:106%;
	}
	#sidebar {
		width:100%;
		float:none;
		position:relative;
		margin: 0;
		border-top: 6px solid #66a54a;
		background-color:white;
	}
	#main {
		width:100%;
		padding:24px 1em 0px;
    	overflow:visible;
	}
	#container {
		width:98%;
		border-bottom: solid #9cf 3px;
		float:none;
		margin-top:-1px;
	}
	#content {
		margin:0 2%;
	}
	#adjustFonts, #ad468x60, #footnav, #ad728x90, #single-bottom, .topBlock, #subsidiary, #sidebar .widget_tib_shop, .sharing, #sa, #more-products, object { 
		display: none;
	}

	/* footer elements */
	#footer { 
		width:106%; 
		background: transparent url('tib-footer-1280x152.png') no-repeat -260px 0; 
		background-size:640px 76px;
		padding: 10px 0;
		margin-top: 0;
		height: 56px;
	}
	#footnote { 
		text-align: left; 
		font-size: 0.75em;
		color: #003;
		width: 220px;
		margin: 5px 10px;
		white-space: normal;
	}
	#footnote a { 
		color: #f63;
		font-weight: bold;
	}

	/* header elements */
	#branding a {
		top: 0;
		margin-left: 0;
		height:74px;
		width:138px;
		border:none;
	}
	#blog-description {
		display: block;
		position:absolute;
		top: 74px;
		width: 106%;
		color:#fff;
		background: #69C;
		font-size:12px;
		font-style:normal;
		font-family: 'Georgia','Times New Roman',serif; 
		text-align:center;
		text-indent: 4px;
		padding: 2px 0 3px;
	}
	#headerContent { 
		top: 0; 
		left: 110px; 
		width: 200px; 
		text-align: left; 
	}
	#headerContent .icon {
			display: none;
	}
	#headerContent a { 	
			display: none;
	}

	/* widget elements */
	#sidebar .donate-widget h2 {
		background: #f6921e url('../images/widgets/icon_donate.png') no-repeat;
		background-size: 3em 4em;
		background-position: -2em 0;
		border-top-left-radius: 6px;
		border-top-right-radius: 6px;
		padding-top: 1px;
	}
	h2.donate a {
		width:100%;
	}
	#sidebar #secondary {
		padding-bottom: 9em;
	}

/* --- Small menu --- */
	/* Previous Nav Menu */
	.assistive-text {
		display: none;
		position: absolute !important;
		clip: rect(1px, 1px, 1px, 1px);
	}

	/* Navigation */
	#nav {
		display:none;
		padding-top: 30px;
		width:100%;
		overflow:hidden;
		top: 105px; 
	}
	#nav li h4 {
		float:none; 
		display:block;
		content: '';
		width: 100%;
		background-color: #4576B1;
		border-style: none;
		border-bottom: 1px #cfdeff dotted;
	}
	#nav li h4 {
		line-height: 1.95;
	}
	/* parent menus */
	#nav > li > h4:before {
		content: '';
		background-image: url('tib-nav432x576.png');
		background-repeat: no-repeat;
		background-size: 3em 4em;
		height: 1em;
		width: 1em;
		text-align: left;
		position: absolute;
		left: 35px;
		top: 50%;
		margin: -.5em 0 0 0;
	}
	/* iconic navigation */
	#nav li.nav-explore h4, #nav li.nav-shop h4, #nav li.nav-participate h4, #nav li.nav-donate h4, #nav li.nav-listen h4, #nav li.nav-educators h4, #nav li.nav-about h4 {
		background-image: none;
		padding-left: 0;
		text-align: left;
		padding-left: 70px;
		border-left-style: none;
	}
	#nav li.nav-explore h4:before {
		background-position: 0 0;
	}
	#nav li.nav-participate h4:before {
		background-position: -1em 0;
	}
	#nav li.nav-donate h4:before {
		background-position: -2em 0;
	}
	#nav li.nav-listen h4:before {
		background-position: 0 -1em;
	}
	#nav li.nav-shop h4:before {
		background-position: 0 -3em;
	}
	#nav li.nav-educators h4:before {
		background-position: -1em -1em;
	}
	#nav li.nav-about h4:before {
		background-position: -2em -1em;
	}
	#nav li.nav-explore, #nav li.nav-shop, #nav li.nav-participate, #nav li.nav-donate, #nav li.nav-listen, #nav li.nav-educators, #nav li.nav-about {
		width: 100%; 
	}
	/* submenus, hidden */
	#nav ul {
		position:inherit; 
		display:normal; 
		border-style: none;
		border-style: none;
	}
	#nav ul li {
		float:none; 
	}
	#nav li ul li a {
		width: 320px; 
		background-color: #9cf;
		border-style: none;
		border-style: none;
		text-decoration:none; 
		color: #003;
		padding: 0.5em 2.5em 0.5em;
	}
	#nav li ul li a:hover {
		background-color: #69C;
	}
	#show-nav {
		content: '';
		background-image: url('tib-nav432x576.png');
		background-repeat: no-repeat;
		background-size: 86px 115px;
		height: 1.75em;
		width: 2em;
		background-position: -30px -86px;
		clear:both;
		display: block;
		border-radius:5px;
		box-shadow:rgba(200,200,200,0.7) 0 4px 10px -1px;
		margin: 5px 0 0 10px;
		padding: 5px 18px 1px 28px;
		border-color: #fff;
		font-weight: bold;
		color: #ffe700;
		background-color: #3e608a;
		text-decoration: none;
		float: right;
		vertical-align: middle;
		font-size: 1.5em;
	}

	/* Home Page Styles  */
	.home #container {
		font-size:100%
		border-top: none; 
		background-color: transparent;
	}

	#home-left {
		width:100%;
		margin: 1em auto 0;
		color: #003;
		float:none;
	}
	#home-left-left, #home-left-right, #home-left-bottom {
		display:none;
	}
	#home-right {
		width:100%;
		float:none;
		overflow:hidden;
	}
	#tabs ul.ui-tabs-nav {
		width: 100%;
		font-size: 1em;
	}
	#tabs .ui-tabs-nav a {
		font-size: 50%;
	}
	#tabs ul.ui-tabs-nav li {
		width:78px;
		background-color:#36733a;
		overflow:hidden;
		margin: 0 1px;
		border-top-left-radius: 6px;
		border-top-right-radius: 6px;
		padding-top: 5px;
	}
	#tabs ul.ui-tabs-nav li.ui-state-active {
		background-color:#36733a;
	}
	.home_photo img, .home_photo a, .feature_photo img {
		max-width: 300px !important;
		height : auto;
	}
	.home_photo img, .home_photo a, .feature_photo img {
		width: auto;
		max-height : 200px !important;
	}
	.home_photo a {
		background-size: 300px 200px;
		padding: 165px 5px 5px 0;
	}
	ul.essaylist {
		font-size: 80%;
		width: 100%;
		padding-bottom:2em !important;
	}
	ul.essaylist li {
		width: 100%;
	}
	.blurb {
		font-size: 90%;
	}
	/* Essay items */
	.essay .single-content {
		margin-top: -0.75em;
	}
	.essay #essay-meta {
		width: 305px; 
		float: none; 
	}
	.essay #essay-excerpt {
		float: none; 
		font-size: 1em;
		font-style: oblique;
	}
	.essay #essay-text {
		width: 95%; 
		float: none;
	}
	#age {
		clear:both;
	}

	/* Photos */
	.inside_photo {
		float: left;
		padding-top: 2px;
		margin-right: 1em;
	}
	.inside_photo .photographer {
		font-size: 9px !important;
		margin-bottom: 1em;
		padding-bottom: 4px;
	}
	.inside_photo img {
	width: 100px;
	height : auto;
	}
	.inside_photo img {
	width: auto;
	height : 100px;
	}
	.mejs-audio {
		width: 100% !important;
	}
	/* special features */
	.feature .feature_photo .photographer {
		width: 100%;
		padding-right: 5px;
		text-align:right;
		float:left;
	}
	.feature_photo .photographer {
		width: 290px;
		text-align:right;
		/* padding-right:1em; */
	}
	.feature ol {
		font-size: 1.75em;
		line-height: 1.5;
	} 
	.feature .entry-content, .feature .feature-content, .feature .feature_photo {
		float: none !important;
		padding:0;
		margin:0;
	} 
	.feature .feature_photo {
		float: none !important;
		max-width: 320px !important;
		max-height : 275px !important;
		height : auto;
		width: auto;
		padding:0;
		overflow:hidden;
		margin: 0;
	} 
	.feature .feature_photo img {
		float: none !important;
		max-width: 370px !important;
		height : auto;
	}
	.feature .feature_photo img {
		width: auto;
		max-height : 275px !important;
	}
	.feature .feature-content {
		float: none !important;
		width: 100%;
		padding:0;
		margin: 10px 0 0;
	} 

	/* Archive Specific */
	#wp_page_numbers a {
		font-size: 1.2em;
		margin-top: 0.75em;
	}
	.archive .entry-content .featured-essayist {
		float: left;
		width: 75px !important;
	}
	.archive .entry-content p.essay-excerpt {
		float: right;
		margin-top: 0 !important;
	}
	.archive .entry-content p.has_photo {
		margin-top: -8px !important;
		width: 70% !important;
	}
	.archive .page-title {
		font-size: 2em;
	}
	.archive h3.essay-title a {
		font-size: 1em;
	}
	.archive .essay-writer .contributor, .archive .essay-writer .location, .archive .essay-date .airdate {
		font-size: 0.7em;
	}
	.archive .essay-excerpt {
		font-size: 70%;
	}
	.essay #age, #themes {
		clear:both;
		font-size:150%;
	}
	/* Search Form */
	#searchform #s, #cse-search-box #q {
		border-radius: 0;
		float: right;
		-webkit-transition-duration: 400ms;
		-webkit-transition-property: width, background;
		-webkit-transition-timing-function: ease;
		-moz-transition-duration: 400ms;
		-moz-transition-property: width, background;
		-moz-transition-timing-function: ease;
		-o-transition-duration: 400ms;
		-o-transition-property: width, background;
		-o-transition-timing-function: ease;
		width: 100px;
	}
	#searchform #s:focus, #cse-search-box #q:focus {
		background-color: #f9f9f9;
		width: 153px;
	}
	#searchform #searchsubmit, #cse-search-box #sa {
		display: none;
	}
	#cse-search-box input#q {
		display: none;
	}
	#TIBMessage {
		font-size: 12px;
	}
	#theme-cloud .content-column {
		float:none !important;
		margin-left:0;;
		width: 100%;
		font-size: 175%;
	}
	#theme-cloud .content-column li {
		padding-bottom: 1em;
	}
}

@media only screen 
and (min-device-width : 320px) { 
	body {
		min-width:320px;
	}
	#wrapper { 
		min-width:320px;
	}
	.feature .feature-content {
		float: none !important;
		width: 100%;
		padding:0;
		margin: 10px 0 0;
	} 
	.feature .entry-title a {
		font-size: 1.35em !important;
	} 
		/* Home Page Styles  */
	ul.essaylist {
		margin-bottom: 0 !important;
	}
	ul.essaylist img {
		width: 35% !important;
		height: 35% !important;
	}
	ul.essaylist li {
		font-size: 110%;
		width: 47% !important;
		padding-bottom:0 !important;
	}
}

/* iPhone 6 = adjust width */
@media only screen 
and (min-device-width : 375px) 
and (max-device-width : 667px) { 
	body {
		min-width:375px;
	}
	#wrapper { 
		min-width:375px;
	}
	#header { 
		background-size:750px 89px;
		height:83px; 
		width:112%;
	}
	#nav {
		padding-top: 43px;
		top: 120px; 
	}
	#nav li ul li a {
		width:375px;
	}
	#blog-description {
		top: 83px;
		width: 112%;
		font-size:16px;
	}
	#headerContent { 
		top: 0; 
		left: 200px; 
		width: 200px; 
		top: 0; 
		left: 200px; 
		width: 200px; 
	}
	#footer { 
		background-position: -200px 0; 
		background-size:640px 76px;
		width:112%; 
	}
	#footnote { 
		font-size: 0.95em;
		width: 275px;
	}

	/* Home Page Styles  */
	ul.essaylist {
		margin-bottom: 1em;
	}
	ul.essaylist li {
		font-size: 1.25em;
		line-height: 1.5;
	}
	#tabs ul.ui-tabs-nav li {
		width:125px;
		font-size: 1em;
	}

	/* Archive Specific */
	.archive .entry-content p.has_photo {
		width: 78% !important;
	}

	/* donate essay widget */
	.essay .donate-widget-full {
		width: 92%;
	}

	/* inside pages */
	.essay #essay-meta {
		width: 355px; 
		float: none; 
	}
	.essay .mejs-audio {
		width: 98% !important;
	}
	#sidebar {
		width:105%;
	}
	#main {
		width:102%;
	}
	#container {
		width:103%;
		margin: auto;
		margin-top:5px;
	}
	#content {
		margin:0 2%;
	}
	
	/* Essay items */
	.essay #essay-meta {
		width: 102%; 
	}
	.essay #essay-text {
		width: 102%; 
	}

	/* Photos */
	.home_photo img, .home_photo a, .feature_photo img {
		max-width: 373px !important;
	}
	.home_photo img, .home_photo a, .feature_photo img {
		max-height : 240px !important;
	}
	/* Photos */
	.feature .feature_photo {
		max-width: 373px !important;
		max-height : 275px !important;
	} 
	.feature .feature_photo img {
		max-width: 373px !important;
	}
	.feature .feature-content {
		float: none !important;
		width: 100%;
		padding:0;
		margin: 10px 0 0;
	} 
}

/* phablets */
@media only screen 
and (min-device-width : 414px) 
and (max-device-width : 736px) { 
	body {
		min-width:414px;
	}
	#wrapper {
		min-width:414px;
	}
	#header { 
		width:101%;
	}
	#blog-description {
		width: 101%;
		font-size:15px;
	}
	#footer { 
		background-position: -200px 0; 
		background-size:640px 76px;
		width:101%; 
	}
	#main {
		width:91%;
		font-size:1.25em;
	}
	#sidebar, #container {
		width:100%;
		margin: auto;
	}
	#container {
		margin-top:3px;
	}
	.essay #essay-text, .essay #essay-excerpt {
		font-size: 1.15em;
	}
	/* Photos */
	.feature .feature_photo {
		max-width: 400px !important;
		max-height : 275px !important;
	} 
	.feature .feature_photo img {
		max-width: 400px !important;
	}
	/* Archive Specific */
	.archive .entry-content p.has_photo {
		width: 75% !important;
	}
}
