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

	/*
	STRUCTURE
	****************************************/
	.pagewidth {
		max-width: 94%;
	}
		
	/* content */
	#content {
		max-width: 57%;
	}
	
	/* sidebar */
	#sidebar {
		margin: 0 0 5%;
		max-width: 300px;
	}
		
	/*
	GRID
	****************************************/
	.col4-1,
	.col4-2,
	.col4-3,
	.col3-1,
	.col3-2,
	.col2-1
	{
		margin-left: 2%;
	}
	.first {
		margin-left: 0;
	}
	.col4-1 {
		max-width: 23%;
	}
	.col4-2, .col2-1 {
		max-width: 48%;
	}
	.col4-3 {
		max-width: 72%;
	}
	.col3-1 {
		max-width: 31%;
	}
	.col3-2 {
		max-width: 62%;
	}
	
}

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

	/*
	STRUCTURE
	****************************************/
	#content {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
	}
	
	#sidebar {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
	}
	
	/*
	HEADER
	****************************************/
	/* reset absolute elements to static */
	#site-logo, #main-nav  {
		position: static;
		float: none;
		clear: both;
	}
	
	/* header */
	#header {
		height: auto;
		/*padding-top: 20px;*/
	}
	
	/* social widget */
	.social-widget {
		position: static;
		padding: 3px 0 5px;
		float: none;
	}

	/* searchform */
	#header #searchform {
		left: inherit;
		right: 0;
		width: 150px;
	}
	#header #searchform #s {
		float: right;
		width: 50px;
	}
	#header #searchform input#s:focus {
		width: 150px;
	}
	
	/* nav bar */
	#nav-bar {
		display: none;
	}

	/*
	MAIN NAV
	****************************************/
	#main-nav { display:block;
		height: auto;
		margin: 10px;
	}
	/*
	OWL CAROUSEL
	****************************************/
	.owl-center-two {margin:12px 0;
	}
}

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

	/* disable webkit text size adjust (for iPhone) */
	html {
		-webkit-text-size-adjust: none;
	}

	/*
	GRID
	****************************************/
	.col4-1,
	.col4-2, .col2-1,
	.col4-3,
	.col3-1,
	.col3-2	 {
		margin-left: 0;
		width: 100%;
		max-width: 100%;
	}

	/*
	MOBILE NAV BUTTON
	****************************************/
	#mobile-toggle {display:block; height:34px;}
	
	.mobile-button {
		position: static;
	top: 100px;
		width: 32px;
		height: 30px;
		margin-left:8px;
		display: block;
		float: right;
		cursor: pointer;
	}
	.mobile-button:after {
		padding: 1px;
		content: "";
		width: 100%;
		height: 100%;
		position: absolute;
		top: -2px; /*-1px;*/
		left: -1px;
		z-index: -1;
	}

	/*
	MAIN NAV (MOBILE)
	****************************************/
	#main-nav-wrap { background:#fff;
		z-index: 1000;
	}
	
	/* menu icon */
	#menu-icon {
		background: url(images/menu-icon.png) no-repeat center center;
		z-index:1000 !important;
		height:30px;
	}
	
	/* main nav */
	#main-nav {
		clear: both;
		position: static;
		display: none; /* visibility will be toggled with jquery */
	margin-top:0px;
		z-index: 1000;
		padding:0;
	}
	#main-nav li li {font-size:100%; text-transform: none;letter-spacing:1px;}
	#main-nav li li {margin:4px 0 2px 10px; padding:4px 0 2px 10px;}
	#main-nav .current-menu-item {background:#ddd;}
	#main-nav li { background: #eee; /*v test*/
		clear: both;
		float: none;
		position: static !important;
		margin: 1px 0 0 !important;
		padding: 3px 6px;

cursor:pointer;
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
		box-shadow: none;
	} 	
	#main-nav a, 
	#main-nav ul a {
		font: inherit;
		background: none !important;
		width: auto;
		display: block !important;
		padding: 8px !important;
		color: #666 !important;
		border: none;
		text-shadow: none;

		-webkit-box-shadow: none;
		-moz-box-shadow: none;
		box-shadow: none;
	}
	#main-nav a:hover, 
	#main-nav ul a:hover {
		background: none;
		color: #000 !important;
	}
	
	/* dropdown */
	#main-nav ul {
		position: static;
		display: block;
		margin: 0;
		padding: 0;
		background: none;
		border: none;
		
		-webkit-border-radius: 0;
		-moz-border-radius: 0;
		border-radius: 0;
		
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
		box-shadow: none;
	}
	
	/*
	SEARCH FORM
	****************************************/
	#searchform-wrap {
		position: absolute;
		top: 98px;
		right: 40px;
		z-index: 1000;
	}
	#search-icon {
		background: url(images/search-icon.png) no-repeat center center;
	}
	
	#header #searchform {
		clear: both;
		width: auto; margin-top:0;
		position: static;
		overflow: hidden;

		display: none; /* visibility will be toggled with jquery */
	}
	#header #searchform #s { 
		background: #eee;
		color: #444;
		padding-left: 8px;
	}
	.social-widget {
		position: absolute;
		top: 107px;
		left:0;
		max-width:200px;
		height:30px;
	}
	/*
	LAYOUT
	****************************************/
	/* post */
	.post {
		width: 100%;
		margin-left: 0;
		float: none;
	}
	
	/*
	POST NAV
	****************************************/
	.post-nav .prev, .post-nav .next {
		display: block;
		width: 100%;
		clear: both;
		margin-bottom: 10px;
	}
	
	/*
	COMMENTS
	****************************************/
	.commentlist {
		padding-left: 0;
	}
	.commentlist .commententry {
		clear: left;
	}
	.commentlist .avatar {
		float: left;
		width: 40px;
		height: 40px;
		margin: 0 10px 10px 0;
	}
	.loop-style .post-title { font-size:24px; line-height:24px;
	}
}