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

	/************************************************************************************
	STRUCTURE
	*************************************************************************************/
	#pagewrap {
		max-width: 100%;
	}

	.pagewidth,
	.sidebar-none .loops-wrapper.list-post .section-inner,
	.single .section-inner {
		max-width: 94%;
	}
	.full_width.sidebar-none .loops-wrapper .section-inner {
		max-width: 100% !important;
	}
	#header.pagewidth {
		max-width: 100%;
		width: 100%;
	}
	
	/* IE navigation fix */
	.pagewidth #nav-bar {
		padding: 0 3% \9;
		left: -3% \9;
	}		
		
	/* content */
	#content {
		padding: 7% 0 5%;
		width: 67.8%;
	}
	
	/* sidebar */
	#sidebar {
		padding: 7% 0 5%;
		width: 26.2%;
	}
	#sidebar .secondary {
		width: 47.4%;
	}
	
	/************************************************************************************
	SECTION
	*************************************************************************************/
	/* section video */
	.section-post.video {
		min-height: 0;
	}
		
}


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

	/************************************************************************************
	HIGHTLIGH POST TYPE
	*************************************************************************************/
	/* grid4 */
	.loops-wrapper.highlight.grid4 .post {
		width: auto;
		margin-left: 0;
		float: none;
	}
}

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

	/************************************************************************************
	STRUCTURE
	*************************************************************************************/
	#content {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
	}
	
	/* sidebar */
	#sidebar {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
	}
	
	/************************************************************************************
	HEADER
	*************************************************************************************/
	/* reset absolute elements to static */
	#header .social-widget, 
	#site-logo, 
	#site-description  {
		position: static !important;
		float: none;
		clear: both;
	}
	
	#headerwrap #site-logo {
		font-size: 2.8em;
	}
			
	/************************************************************************************
	MOBILE NAV BUTTON
	*************************************************************************************/
	.mobile-button {
		position: relative;
		height: 20px;
		margin: auto;
		display: inline-block;
		cursor: pointer;
		padding: 20px 0;
		white-space: nowrap;
		text-align: left;
	}
	.mobile-button:after {
		padding: 1px;
		content: "";
		width: 100%;
		height: 100%;
		position: absolute;
		top: -1px;
		left: -1px;
		z-index: -1;
	}
	.mobile-button {
		color: #fff;
		text-transform: uppercase;
	}

	/************************************************************************************
	MAIN NAV (MOBILE)
	*************************************************************************************/
	#pagewrap #main-nav-wrap {
		position: absolute;
		top: 5px;
		right: 95px;
		z-index: 1000;
	}
	#pagewrap nav {
		text-align: center;
	}

	/* menu icon */
	#menu-icon:before {
		content: "\f0c9";
		font: normal 21px/1em FontAwesome;
		width: 1em;
		height: 1em;
		vertical-align: middle;
		display: inline-block;
		margin: -4px 5px 0 0;
	}
	
	/* main nav */
	#pagewrap #main-nav {
		clear: both;
		position: absolute;
		width: 180px;
		height: auto;
		z-index: 1000;
		padding: 10px 12px;
		background: #fff;
		display: none;
		left: 50%;
		margin-left: -100px;
		border: solid 1px #ccc;
	}
	#pagewrap #main-nav li {
		clear: both;
		float: none;
		padding: 5px 0;
		position: static;
		display: block;
		border-top: 1px solid #e5e5e5;
	}
	#pagewrap #main-nav li:first-child {
		border: none;
	}
	#pagewrap #main-nav a, 
	#pagewrap #main-nav ul a {
		font: inherit;
		font-size: .85em;
		text-transform: inherit;
		background: none;
		width: auto;
		display: block;
		padding: 0;
		color: #666;
		border: none;
	}
	#pagewrap #main-nav a:hover, 
	#pagewrap #main-nav ul a:hover {
		background: none;
		color: #000;
	}
	
	/* dropdown */
	#pagewrap #main-nav ul {
		position: static;
		display: block;
		margin: 0;
		padding: 0;
		background: none;
		border: none;
	}
	#pagewrap #main-nav ul ul {
		margin: 0;
		text-align: center;
	}
	#pagewrap #main-nav ul ul:before {
		display: none;
	}
	
	/* home navigation */
	#pagewrap #main-nav {
	    top: auto;
	    bottom: 60px;
		max-height: 420px;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}
	.no-header #pagewrap #main-nav,
	.fixed-header-on #pagewrap #main-nav {
		position: absolute;
	    top: 60px;
	    bottom: auto;
	}
	
	/************************************************************************************
	SECTION
	*************************************************************************************/
	/* section */
	.section-inner {
		padding-top: 100px; /* padding space for fixed header */
	}
	
	/* section message content */
	.section-post.message {
		font-size: 1em;
	}
	
	/************************************************************************************
	POST
	*************************************************************************************/
	/* grid4 & grid3 */
	.loops-wrapper.grid4 .post,
	.loops-wrapper.grid3 .post {
		width: auto;
		margin-left: 0;
		float: none;
	}

}

@media screen and (max-width: 768px) and (max-height: 600px) {

	/* make fixed menu scroll on mobile */
	#pagewrap #main-nav {
		max-height: 320px;
	}
}

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

	/************************************************************************************
	HEADING
	*************************************************************************************/
	h1 {
		font-size: 1.8em;
	}
	h2 {
		font-size: 1.6em;
	}
	h3 {
		font-size: 1.4em;
	}
	h4 {
		font-size: 1.2em;
	}

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

	/************************************************************************************
	HEADER
	*************************************************************************************/
	#headerwrap {
		z-index: 998;
	}

	/* social widget */
	.social-widget {
		position: static;
		float: none;
		padding: 0;
	}

	/************************************************************************************
	MAIN NAV (MOBILE)
	*************************************************************************************/
	.admin-bar.no-header #nav-bar,
	.admin-bar #nav-bar.fixed-nav-bar {
		top: 0;
	}
	
	/************************************************************************************
	LOOPS WRAPPER
	*************************************************************************************/
	.loops-wrapper {
		margin-left: 0 !important;
	}

	/************************************************************************************
	POST
	*************************************************************************************/
	.post {
		width: auto !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		float: none !important;
	}

	.loops-wrapper.list-post .post-content {
		overflow: visible;
	}

	.single-portfolio-expanded .post-image,
	.single-portfolio .post-image,
	.loops-wrapper.list-post .post-image {
		 max-width: 100%;
		 width: 100%;
		 float: none;
		 margin-right: 0%;
	}

	/* grid2-thumb */
	.loops-wrapper.grid2-thumb .post-image {
		width: auto;
		max-width: auto;
		min-width: 0;
	}
	.loops-wrapper.grid2-thumb .post-content {
		overflow: visible;
	}

	/************************************************************************************
	SECTION
	*************************************************************************************/
	/* section title */
	.section-title,
	.section-post.message .section-title {
		font-size: 2.2em;
	}
	.section-subhead,
	.section-post.message .section-subhead {
		font-size: 1.2em;
	}
	
	/************************************************************************************
	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 ul,
	.commentlist ol {
		margin: 0 0 0 5%;
	}
	.commentlist .avatar {
		float: left;
		width: 40px;
		height: 40px;
		margin: 0 10px 10px 0;
	}

	/************************************************************************************
	GALLERY
	*************************************************************************************/
	#body .gallery-columns-1 img {
		max-width: 50px;
		padding: 3px;
	}

	/************************************************************************************
	FOOTER
	*************************************************************************************/
	#footer-logo {
		position: static;
	}
	.footer-nav {
		padding: 0;
	}
	#footer .widget {
		margin: 0;
	}

	/************************************************************************************
	WOOCOMMERCE SUPPORT
	*************************************************************************************/
	.woocommerce #content div.product div.images,
	.woocommerce #content div.product div.summary {
		float: none !important;
		width: 100% !important;
	}

}

@media screen and (min-width: 769px) {

	/* ensure #nav is visible on desktop version */
	#main-nav {
		display: block !important;
	}
	#menu-icon span {
		display: none;
	}

}