/************************************************************************************
smaller than 980
*************************************************************************************/
@media screen and (max-width: 980px) {

	/* container */
	#header,
	#container
	{
		width: 95%;
	}
	
	#footer .main {
		width:100%;
	}
	
	.footerBox {
		margin: 0 15px 20px 15px;
		
	}
	
	#footer .secondary {
		margin: 0 20px;
	}
	
	#sidebar ul.recentPostsSidebar img {
		width: 90%;
		height: auto;
	}
	

	
	#sidebar ul.recentPostsSidebar strong {
		width: 58%;
	}

	/* content */
	
	
	

	/* sidebar */
	#sidebar {
		width: 30%;
		overflow: hidden;
	}
	#sidebar .widgetBox {
		padding: 8% 5%;
		margin: 0 0 10px 0;
		width: 100%;
	}

	/* embedded videos */
	.video embed,
	.video object,
	.video iframe {
		width: 100%;
		height: auto;
		min-height: 300px;
	}
	
	#commentForm textarea {
		width: 90%;
	}
	
	#slideshow, #slider {
		width: 100%;
		max-width: 100%;
	}
	
	.posts {
		width: 65%;
	}
	
	#content .post {
		margin: 0;
	}
	
	#portfolio-item {
		width: 30%;
		padding: 1% 1.5%;
	}
	
	#portfolio-item img, .attachment-tia_oneColumn, .attachment-tia_postImage {
		width: 100%;
		height:auto;
	}
	
	.galview .right {
		display:block;
		float:none;
	}
	
	.galview .right img.galimglrg {
		width:100%;
		height:auto;
		margin:0px;
		padding:0px;
		text-align:left;
	}
	
	#pageHead {
		margin: 0 0 30px 0;
	}
	
	#footer .oneThird {
	width:100%;
}

#footer .recentPostsSidebar li {
	float:left;
	margin-right: 15px;
}
	
}

/************************************************************************************
smaller than 650
*************************************************************************************/
@media screen and (max-width: 650px) {

	/* header */
	#header {
		height: auto;
	}
	
	#header h1 {
		font-size: 32px;
	}
	
	#socialNetworks {
		float:left;
		display:block;
		clear:both;
		text-align:left;
		margin-bottom: 15px;
	}
	
	#logo {
		padding: 0;
		margin: 0;
	}
	
	#logo img {
	max-height: 70px;
	max-width: 300px;
	width: auto;
	}
	
	#content.full {
		width: auto;
	}

	
	#sidebar ul.recentPostsSidebar strong {
		width: 78%;
	}
	
	/* search form */
	#searchform {
		position: absolute;
		top: 5px;
		right: 0;
		z-index: 100;
		height: 40px;
	}
	#searchform #s {
		width: 70px;
	}
	#searchform #s:focus {
		width: 150px;
	}

	/* main nav */
	#mainNav {
		position: static;
	}
	
	#main {
		padding: 0px;
	}
	
	/* site logo */
	#site-logo {
		margin: 15px 100px 5px 0;
		position: static;
	}

	/* site description */
	#site-description {
		margin: 0 0 15px;
		position: static;
	}

	/* content */
	#content {
		width: auto;
		float: none;
		margin: 0;
	}
	
	#content.full {
		
	}
	
	
	/* sidebar */
	#sidebar {
		width: 100%;
		margin: 0;
		float: none;
	}
	#sidebar .widgetBox {
		padding: 0;
		margin: 0 0 10px;
	}

	/* embedded videos */
	.video embed,
	.video object,
	.video iframe {
		min-height: 250px;
	}
	
	.secondary p.left {
		float:none;
		text-align:center;
		display:block;
	}
	
	.secondary p.right {
		float: none;
		text-align:center;
		display:block;
	}
	
	#slideshow #slider img {
		max-height: 400px;
		width: auto;
	}
	
	#portfolio-item {
		width: 45%;
		padding: 1% 2.5%;
	}
	
	#portfolio-item img {
		width: 100%;
		height:auto;
	}
	
	
	#sidebar ul.recentPostsSidebar li {
		float:left;
	}
	
	

}

/************************************************************************************
smaller than 560
*************************************************************************************/
@media screen and (max-width: 480px) {

	/* disable webkit text size adjust (for iPhone) */
	html {
		-webkit-text-size-adjust: none;
	}

	/* main nav */
	#menu-main {
		margin:0 auto;
		text-align:center;
		display:table;
	}
	
	#mainNav a {
		font-size: 90%;
		padding: 10px 1px 10px 10px;
	}
	
	#mainNav li {
		margin: 0 0 0 4px;
	}
	
	#socialNetworks{
		margin:0 auto;
		text-align:center;
		float:none;
		padding-bottom: 5px;
	}
	
	.footerBox {
		margin:0 auto;
		text-align:left;
		float:none;
		height:auto;
		padding-bottom: 20px;
	}
	
		#logo, #header h1 {		
	text-align: center;
	margin:0 auto;
	float:none;
	padding-bottom: 10px;
	}

	#logo img {
	max-height: 60px;
	max-width: 280px;
	width:auto;
	}
	
		
	.handwritten #header h1 {
		font-size: 24px;
	}
	
	.serif #header h1 {
		font-size: 26px;
	}
	
	.sansserif #header h1 {
		font-size: 28px;
	}
	
	#searchform {
		display:none;
		visibility:hidden;
	}
	
	#footer .secondary {
		margin: 0;
	}


#portfolio-item {
		width: 95%;
		padding: 5px 0;
	}
	
	#portfolio-item img {
		width: 100%;
		height:auto;
		margin: 0 auto;
	}
	
		
	#footer .oneThird {
		text-align: center;
	}
	
	#footer .recentPostsSidebar li {
	float:none;
	margin:0;
	display:block;
}

.post img.size-medium {
		width: 200px;
		height:auto;
	}
}

