@media screen and (max-width: 980px) {
	#pagewrap {
		width: 95%;
	}
	#header {
		height: 105px;
	}
	#mainmerge { 
		margin-top: 15px;
	}
	#main-nav li:first-child {
	 margin-left: 3.5%;
	}
	#content {
		width: 70%;
		padding: 0 5% 0 3%;
		margin:2%;
	}
	#sidebar {
		width: 16%;
	}
	#sidebar .widget {
		margin: 0;
		padding: 0;
		font-size: 97%;
	}
	.video embed,
	.video object,
	.video iframe {
		width: 100%;
		height: auto;
		min-height: 300px;
	}
}
@media screen and (max-width: 800px) {
	#header {
		height: auto;
		padding-top: 10px;
	}
	#searchform {
		position: absolute;
		top: 5px;
		right: 0;
		z-index: 100;
		height: 40px;
	}
	#searchform #s {
		width: 70px;
	}
	#searchform #s:focus {
		width: 150px;
	}
	#main-nav {
		position: static;
	}
	#main-nav li:first-child {
	 margin-left: 3%;
	}
	#site-logo {
		margin: 15px 100px 5px 0;
		position: static;
	}
	#site-description {
		margin: 0 0 15px;
		position: static;
	}
	#content {
		width: auto;
		float: none;
		margin: 15px 0 15px 15px;
		border-style: none;
	}
	.post-title {
		padding:0;
		font-size: 24px;
	}
	.caption {
		font-size: 90%;
	}
	#sidebar {
		width: 100%;
		margin: 0;
		float: none;
	}
	#sidebar .widget {
		padding: 3% 4%;
		margin: 0 0 10px;
	}
	#sidebar li, #sidebar img {
		display: inline-block;
		margin: 0 15px 10px 0;
	}
	.video embed,
	.video object,
	.video iframe {
	min-height: 250px;
	}
	.next {
	position: relative;
	left: 90%;
	top:0;
	 }
	 .sidebar-skip {
	 display: none;
	 }
}
@media screen and (max-width: 586px) {
	/* disable webkit text size adjust (for iPhone) */
	html {
	-webkit-text-size-adjust: none;
	}
	#site-logo { 
		font-size: 24px;
	}
	#site-description { 
		font-size: 85%;
		margin: 15px 0 10px; 
	}
	#main-nav a {
		font-size: 95%;
	}
	
	#main-nav li:first-child { 
	margin-left: 0; 
	}
	#content {
		border-style: none;
		padding-top: 0;
		font-size: 95%;
	}
	.post-title { 
	font-size: 18px;
	}
	.iesucks { 
	display:none; 
	}
	#searchform { 
	display: none; 
	}
	#bottom-nav li:first-child {
	margin-left: 0;
	}
	.section { 
	margin: 0;
	}
	.next {
	position: relative;
	left: 85%;
	top:0;
	 }
	.back-to-index {
		margin: 5px 10px 0 0;
		float: right;
	}
	.nodisplay { 
		display: none; 
		}
	.word-break { 
		white-space: pre; 
	}
	h2 { 
		font-size:1.3em;
		}
}
@media screen and (max-width: 321px) {
	/* disable webkit text size adjust (for iPhone) */
	html {
	-webkit-text-size-adjust: none;
	}
	p ~ p { 
	clear: both; 
	}
	#content { 
	font-size: 90%;
	}
	.section {
	margin: 0;
	}
	.post-title { 
	font-size: 16px;
	}
	.post-image { 
	width: 98%; 
	}
	aside p {
	font-size: 95%;
	}
	.image-left-h, .image-right-h, .caption-h, .image-left-h img, .image-right-h img {
	width: 100%; 
	 }
	.image-right-v, .caption-v,.image-right-v img { 
	float:left; 
	}
	.next {
	position: relative;
	left: 80%;
	top:0;
	 }
	.skip { 
	display: none !important; 
	}
}