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

	/************************************************************************************
	STRUCTURE
	*************************************************************************************/
	#pagewrap {
		max-width: 100%;
	}
	
	#layout,
	.pagewidth,
	.full_width .themify_builder_row .row_inner {
		max-width: 96%;
	}
	.split-scroll .themify_builder_row .row_inner,
	.split-scroll-off .themify_builder_row .row_inner {	
		max-width: 100%;
	}

}

/************************************************************************************
MOBILE NAVIGATION
*************************************************************************************/
/* change max-width to trigger mobile menu (#headerwrap added to override Themify Customize output css) */
@media screen and (max-width: 1000px) { 

	/************************************************************************************
	HEADER
	*************************************************************************************/
	#headerwrap #header {
		height: auto;
	}

	/* reset absolute elements to static */
	#headerwrap #site-logo, 
	#headerwrap #site-description  {
		position: static;
		float: none;
		clear: both;
		margin: 0;
		padding: 0;
	}
	
	/* site logo */
	#headerwrap #site-logo {
		font-size: 30px;
	}

	/* header widget */
	#headerwrap .header-widget {
		position: static;
		float: none;
		text-align: left;
		clear: both;
		margin: 0;
	}
	#headerwrap .header-widget .widget {
		margin: 0 0 10px;
	}
	
	/* menu icon */
	#headerwrap #menu-icon {
		position: absolute;
		display: block;
		top: 50%;
		right: 10px;
		text-decoration: none;
		font-size: 1.2em;
		-webkit-transform:	translateY(-50%);
		-moz-transform:		translateY(-50%);
		transform:			translateY(-50%);
	}
	
	/************************************************************************************
	MENU PANEL
	*************************************************************************************/
	/* Mobile Menu Styles */
	.sidemenu {
		transition: all .2s ease-in-out;
		height: 100%;
		width: 250px;
		padding: 50px 25px 20px;
		background: #00be8a;
		display: block;
		overflow-y: scroll;
		position: fixed;
		top: 0;
		z-index: 111;
	}
	#mobile-menu {
		right: -300px;
	}
	#mobile-menu.sidemenu-on {
		right: 0;
	}
	.sidemenu-active {
		position: relative;
	}
	.sidemenu-active, .sidemenu-active #headerwrap {
		left: 0;
		transition: left .2s ease-in-out;
	}
	.sidemenu-right, .sidemenu-right #headerwrap {
		left: -250px;
	}
	.sidemenu-left, .sidemenu-left #headerwrap {
		left: 250px;
	}

	/* mobile menu panel link */
	#headerwrap #mobile-menu-panel a {
		color: #fff;
		text-decoration: none;
	}

	/* slide menu close */
	#headerwrap #menu-icon-close {
		position: absolute;
		display: block;
		text-decoration: none;
		top: 10px;
		right: 20px;
		font-size: 1.4em;
	}
	#headerwrap #menu-icon-close:after {
		content: "\f00d";
		font-family: FontAwesome;
	}
	#headerwrap #menu-icon-close:hover {
		color: #000;
	}

	/* main nav */
	#headerwrap #main-nav-wrap {
		display: block;
	}
	#headerwrap #main-nav {
		position: static;
		width: auto;
		height: auto;
		padding: 0;
		margin: 15px 0 50px;
		background: none;
		border: none;
		text-align: left;
		float: none;
		clear: both;
	}
	#headerwrap #main-nav li {
		float: none;
		display: block;
		border: none;
		background: none;
		padding: 0;
		margin: 0;
		clear: both;
	}

	/* sub level */
	#headerwrap #main-nav ul {
		position: static;
		width: auto;
		height: auto;		
		display: block;
		border: none;
		margin: 0;
		padding: 0 0 0 1em;
		background: none;
		visibility: visible;
		opacity: 1;
		clear: both;
	}
	#headerwrap #main-nav ul li {
		border: none;
		background: none;
		padding: 0;
		margin: 0;
	}
	
	/* menu link */
	#headerwrap #main-nav a, 
	#headerwrap #main-nav ul a {
		width: auto;
		display: block;
		border: none;
		padding: .6em 0;
		margin: 0;
		color: #fff;
		font-size: 100%;
		font-weight: bold;
		line-height: 1.5em;
		background: none;
		text-decoration: none;
		border-bottom: solid 1px rgba(255,255,255,.3);
	}
	#headerwrap #main-nav li a:after {
		display: none;
	}
	
	/* sub level menu link */
	#headerwrap #main-nav ul a {
		font-weight: normal;
		font-size: .95em;
		text-align: left;
	}
	
	/* menu hover */
	#header #main-nav a:hover,
	#header #main-nav ul a:hover {
		color: #fff;
	}

	/* sub-menu icon */
	#headerwrap #main-nav .menu-item-has-children > a:after,
	#headerwrap #main-nav ul .menu-item-has-children > a:after {
	    display: none;
	}

	/* current link */
	#headerwrap #main-nav .current_page_item > a, 
	#headerwrap #main-nav .current-menu-item > a {
		color: #fff;
	}
	#main-nav ul:after,
	#main-nav ul:before {
		display: none;
	}
	.admin-bar .sidemenu {
		top: 32px;
	}

	/* 
	SEARCH FORM
	================================================ */
	#searchform-wrap {
		float: none;
	}
	#headerwrap #searchform {
		position: relative;
		left: auto;
		right: auto;
		top: auto;
		bottom: auto;
		float: none;
		clear: both;
		margin: 0 0 1em;
		padding: 0;
		width: auto;
	}
	#headerwrap #searchform #s  {
		width: 100%;
		float: none;
		-webkit-transition: none;
		-moz-transition: none;
		transition: none;
		background: #fff;
		opacity: 1;
	}
	#headerwrap #searchform #s:focus,
	#headerwrap #searchform #s:hover,
	#headerwrap #searchform .icon-search:hover + #s {
		width: 100%;
		color: #000;
	}

	#headerwrap #searchform .icon-search:before {
		padding: 0;
		color: #000;
	}

	/* 
	SOCIAL WIDGET
	================================================ */
	#headerwrap .social-widget {
		margin: 0 0 1em;
		position: static;
		float: none;
	}
	#headerwrap .social-widget .widgettitle {
		display: block;
		margin: 0 0 .4em;
	}
	
	/* window width resize nicescroll */
	.single-post.sidebar-none .post-content,
	.single-portfolio.sidebar-none .post-content {
		max-height: none;
	}
	.single-post.sidebar-none .post-nav .prev,
	.single-post.sidebar-none .post-nav .next,
	.single-portfolio.sidebar-none .post-nav .prev,
	.single-portfolio.sidebar-none .post-nav .next {
		display: block;
		float: left;
	}
	.single-post.sidebar-none .post-nav a,
	.single-portfolio.sidebar-none .post-nav a {
		max-width: 100%;
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
	}

}

@media screen and (max-width: 800px) {
	
	/************************************************************************************
	POST LAYOUTS
	*************************************************************************************/
	.loops-wrapper.grid4 .post {
		width: 48.4%; /* change grid4 to 2 columns */
	}
	.loops-wrapper.grid4 .post:nth-of-type(2n+1) {
		margin-left: 0;
		clear: left;
	}

}

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

	/************************************************************************************
	STRUCTURE
	*************************************************************************************/
	#layout,
	.pagewidth,
	.full_width .themify_builder_row .row_inner {
		max-width: 90%;
	}
	.split-scroll .themify_builder_row .row_inner,
	.split-scroll-off .themify_builder_row .row_inner {	
		max-width: 100%;
	}	
	#layout {
		max-width: 90%;
	}
	#content {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
		display: block !important;
		padding: 6.2% 0;
	}
	
	/* sidebar */
	#sidebar {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
		display: block;
	}
	
	.single-post.sidebar-none .featured-area,
	.single-post.sidebar-none #layout,
	.single-post.sidebar-none .post-nav,
	.single-post.sidebar-none #footerwrap,
	.single-portfolio.sidebar-none .featured-area,
	.single-portfolio.sidebar-none #layout,
	.single-portfolio.sidebar-none .post-nav,
	.single-portfolio.sidebar-none #footerwrap {
		width: 100%;
		position: relative !important;
		float: none;
	}
	.single-post.sidebar-none #footerwrap,
	.single-portfolio.sidebar-none #footerwrap {
		margin: 0;
	}
	.single-post .featured-area,
	.single-portfolio .featured-area {
		position: relative;
	}
	.single-post .post-content {
		overflow: hidden !important;
	}
	.post-nav {
		margin-bottom: 1.6em;
		display: block !important;
	}
	.post-nav .prev,
	.post-nav .next {
		width: 100%;
		display: block;
		margin-bottom: 10px;
		clear: both;
	}
	.post-nav a {
		max-width: 100%;
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
		padding-top: 2.3%;
		padding-bottom: 2.3%;
		font-size: .7em;
	}
	.single-post.sidebar-none .post-nav,
	.single-portfolio.sidebar-none .post-nav {
		padding-right: 11.1%;
	}
	.single-post.sidebar-none .post-nav .prev,
	.single-post.sidebar-none .post-nav .next,
	.single-portfolio.sidebar-none .post-nav .prev,
	.single-portfolio.sidebar-none .post-nav .next {
		margin: 0;
		border-right: none;
	}
	
	.top-excerpt-wrap {
		max-width: none;
		font-size: .9em;
		line-height: normal;
		margin-top: 1em;
	}
	.post-meta {
		font-size: .75em;
		margin:  0 0 1em;
	}
	.post-author {
		margin-bottom: .95em;
	}
	.author-avatar .avatar {
		width: 26px;
	}
	.post-tag {
		margin-top: 1em;
	}

	/* all post title */
	.post-title,
	.loops-wrapper.list-post .post-title,
	.loops-wrapper.grid4 .post-title,
	.loops-wrapper.grid3 .post-title,
	.loops-wrapper.grid2 .post-title,
	.loops-wrapper.grid2-thumb .post-title,
	.loops-wrapper.list-thumb-image .post-title,
	.loops-wrapper.list-large-image .post-title,
	.loops-wrapper.slider .post-title {
		font-size: 1.7em;
	
		margin-bottom: .7em;
}

	/************************************************************************************
	 WOOCOMMERCE
	*************************************************************************************/
	.woocommerce .col2-set .col-1,
	.woocommerce .col2-set .col-2,
	.woocommerce-page .col2-set .col-1,
	.woocommerce-page .col2-set .col-2 {
		float:none;
		width:100%;
	}
	.woocommerce .cart-collaterals .cart_totals,
	.woocommerce .cart-collaterals .cross-sells,
	.woocommerce .cart-collaterals .shipping_calculator,
	.woocommerce-page .cart-collaterals .cart_totals,
	.woocommerce-page .cart-collaterals .cross-sells,
	.woocommerce-page .cart-collaterals .shipping_calculator {
		width:100%;
		float:none;
		text-align: left;
	}
	.woocommerce ul.products {
		width: 108%;
		margin-left: -8%;
	}
	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product {
		width: 42%;
		margin: 0 0 2.992em 8%;
		float: left;
		clear: both;
	}
	.woocommerce ul.products li.product:nth-child(2n),
	.woocommerce-page ul.products li.product:nth-child(2n) {
		float: right;
		clear: none!important;
	}
	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product {
		min-height: inherit;
	}
	
}

/* set builder column 50vh when split-scroll is enabled */
@media (min-width: 600px) and (max-width: 959px) {
	.themify_builder_content .gutter-narrow.themify_builder_sub_row > .col4-1,
	.themify_builder_content .gutter-narrow .row_inner > .col4-1,
	.themify_builder_content .gutter-narrow.themify_builder_sub_row > .col6-1,
	.themify_builder_content .gutter-narrow .row_inner > .col6-1,
	.themify_builder_content .gutter-none.themify_builder_sub_row > .col4-1,
	.themify_builder_content .gutter-none .row_inner > .col4-1,
	.themify_builder_content .gutter-none.themify_builder_sub_row > .col6-1,
	.themify_builder_content .gutter-none .row_inner > .col6-1 {
		height: 50vh;
	}
}

@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;
		width: 100%;
		max-width: 100%;
	}

	/************************************************************************************
	POST LAYOUTS
	*************************************************************************************/
	/* all post */
	.shortcode.loops-wrapper.list-post .post,
	.shortcode.loops-wrapper.grid4 .post,
	.shortcode.loops-wrapper.grid3 .post,
	.shortcode.loops-wrapper.grid2 .post,
	.shortcode.grid2-thumb .post,
	.shortcode.list-thumb-image .post,
	.shortcode.list-large-image .post,
	.loops-wrapper.list-post .post,
	.loops-wrapper.grid4 .post,
	.loops-wrapper.grid3 .post,
	.loops-wrapper.grid2 .post,
	.loops-wrapper.grid2-thumb .post,
	.loops-wrapper.list-thumb-image .post,
	.loops-wrapper.list-large-image .post {
		width: 100%;
		margin-left: 0;
		float: none;
	}

	/* slider post */
	.loops-wrapper.slider .post-content {
		position: static;
		background: #000;
		padding-top: 10px;
		padding-bottom: 5px;
	}
	.loops-wrapper.slider .post-meta {
		position: static;
	}
	
	/************************************************************************************
	COMMENTS
	*************************************************************************************/
	.commentlist {
		padding-left: 0;
	}
	.commentlist .commententry {
		clear: left;
		max-width: none;
	}
	.commentlist .avatar {
		float: left;
		width: 40px;
		height: 40px;
		margin: 0 1em 1em 0;
	}
	.commentlist .reply {
		position: static;
	}

	/************************************************************************************
	PORTFOLIO
	*************************************************************************************/
	.project-date,
	.project-client,
	.project-services,
	.project-view {
		display: block;
		border-left: 1px solid #e5e5e5;
		padding: 0 1.5em .5em;
	}

	/************************************************************************************
	FOOTER
	*************************************************************************************/
	.footer-text .one,
	.footer-text .two {
		float: none;
		text-align: left;
	}
	
	/************************************************************************************
	 WOOCOMMERCE
	*************************************************************************************/
	.woocommerce #content table.cart .product-thumbnail,
	.woocommerce table.cart .product-thumbnail,
	.woocommerce-page #content table.cart .product-thumbnail,
	.woocommerce-page table.cart .product-thumbnail,
	.woocommerce table.cart .porduct-price,
	.woocommerce-page table.cart .product-price {
		display: none;
	}
	.woocommerce-cart table.cart td.actions .coupon .input-text {
		float: none;
	}
	.woocommerce-page table.cart td.actions .button,
	.woocommerce-page table.cart td.actions .coupon .input-text + .button {
		float: right;
	}
	.woocommerce div.product .woocommerce-tabs ul.tabs li a {
		padding: .4em 1em;
		font-size: .9em;
	}
	.woocommerce #content div.product div.images,
	.woocommerce #content div.product div.summary,
	.woocommerce div.product div.images,
	.woocommerce div.product div.summary,
	.woocommerce-page #content div.product div.images,
	.woocommerce-page #content div.product div.summary,
	.woocommerce-page div.product div.images,
	.woocommerce-page div.product div.summary {
		float: none;
		width: 100%;
	}
	.woocommerce #content table.cart td.actions .coupon,
	.woocommerce table.cart td.actions .coupon,
	.woocommerce-page #content table.cart td.actions .coupon,
	.woocommerce-page table.cart td.actions .coupon {
		margin-bottom: 1em;
	}
	.woocommerce-page table.cart td.actions .button,
	.woocommerce-page table.cart td.actions .coupon .input-text + .button {
		float: none;
		clear: both;
	}
	
	/************************************************************************************
	 BUILDER
	*************************************************************************************/
	/* custom fullheight map class */
	.fullheight-map .map-container {
		height: 300px !important;
	}
	
}

@media screen and (max-height: 860px) {
	.split-scroll .tb-column  {
		font-size: .9em;
	}
}
@media screen and (max-height: 570px) {
	.split-scroll .footer-widgets {
		max-height: 280px;
		overflow: auto;
	}
}