/************************************************************************************
smaller than 980
*************************************************************************************/
@media screen and (max-width: 980px) {

	/* pagewrap */
	#pagewrap {
		width: 95%;
	}

	/* content */
	#myContent {
		width: 66%;
		/*padding: 3% 4%;*/
	}
	
	#content {
		width: 60%;
		padding: 3% 4%;
	}
	
	

	/* sidebar */
	#sidebar {
		width: 30%;
	}
	#sidebar .widget {
		padding: 8% 7%;
		margin-bottom: 10px;
	}

	/* embedded videos */
	.video embed,
	.video object,
	.video iframe {
		width: 100%;
		height: auto;
		min-height: 300px;
	}

}


@media (max-width: 900px) {
	#work article { width: 47%; }
}


/************************************************************************************
smaller than 650
*************************************************************************************/
@media screen and (max-width: 650px) {

#pagewrap {
		width: 100%;
	}
#innerwrapper{
margin:0 10px 0 10px;
}

	/* header */
	#header {
		height: auto;
		padding:10px;
	}

	/* 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 */
	#myNav {
		width: 100%;
		margin-top: 10px;
		float: none;
		position:relative;
		top: 10px;
		text-align:right;
	}
	
	#main-nav {
		position: static;
	}

	/* site logo */
	#site-logo {
		margin: 0px 100px 5px 0;
		position: static;
	}

	/* site description */
	#site-description {
		margin: 0 0 15px;
		position: static;
	}

	
	#myContent {
		width: auto;
		float: none;
		margin: 20px 0;
	}
	
	/* content */
	#content {
		width: auto;
		float: none;
		margin: 20px 0;
	}
	
	#myAbout{
width: auto;
		float: none;
		margin: 20px 0;
}

#myAboutRight{
width: auto;
		float: none;
		margin: 20px 0;
}

	/* sidebar */
	#sidebar {
		width: 100%;
		margin: 15px 0 0 0;
		float: none;
	}
	#sidebar .widget {
		padding: 3% 4%;
		margin: 0 0 10px;
	}

	/* embedded videos */
	.video embed,
	.video object,
	.video iframe {
		min-height: 250px;
	}

}


@media (max-width: 480px) {/*was 640px*/
	#work article { width: 98%; }
}


/************************************************************************************
smaller than 560
*************************************************************************************/
@media screen and (max-width: 480px) {

    .col {
        width: 100%;
        margin: 0;
    }
	
	#site-logo img{
	max-width: 150%;
	height: auto;
	width: auto\9; /* ie8 */
	}
	/* disable webkit text size adjust (for iPhone) */
	html {
		-webkit-text-size-adjust: none;
	}

	/* main nav */
	#main-nav a {
		font-size: 90%;
		padding: 10px 8px;
	}

}



