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

	body {
		font-size: 1em;
	}

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

	.pagewidth,
	.full_width .themify_builder_row .row_inner,
	.full_width .related-posts,
	.full_width .post-nav,
	.full_width .commentwrap	{
		max-width: 96%;
	}

	body {
		font-size: 1em;
	}

}

/************************************************************************************
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;
		padding: 10px 0 5px;
		text-align: inherit;
	}
	#headerwrap.fixed-header #header {
		padding-top: 5px;
		padding-bottom: 5px;
	}

	/* 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;
		margin: 5px 0 5px;
		padding: 0;
	}

	/* site description */
	#headerwrap #site-description {
		margin: 0 0 .5em;
	}

	/* header widget */
	#headerwrap .header-widget {
		position: static;
		float: none;
		clear: both;
		margin: 0;
		text-align: inherit;
	}
	#headerwrap .header-widget .widget {
		margin: 0 0 10px;
		padding-top: 1.1em;
	}

	/* menu icon */
	#headerwrap #menu-icon {
		position: absolute;
		display: block;
		top: 15px;
		right: 2%;
		text-decoration: none;
		font-size: 1.2em;
		z-index: 1999;
	}
	#headerwrap.fixed-header #menu-icon {
		top: 10px;
	}

	/************************************************************************************
	MENU PANEL
	*************************************************************************************/
	body.mobile-menu-visible {
		overflow-y: hidden;
	}
	/* Mobile Menu Styles */
	.sidemenu {
		transition: all .2s ease-in-out;
		height: 100%;
		width: 300px;
		padding: 50px 25px 20px;
		background-color: #f4f4f4;
		color: #000;
		display: block;
		overflow-y: scroll;
		-webkit-overflow-scrolling: touch;
		position: fixed;
		top: 0;
		z-index: 11111;
	}
	.admin-bar .sidemenu {
		top: 32px;
	}
	#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.fixed-header {
		left: -300px;
	}
	.sidemenu-left, .sidemenu-left #headerwrap.fixed-header {
		left: 300px;
	}
	.sidemenu-left #mobile-menu.sidemenu-on {
		left: 0;
	}

	/* 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: 10px;
		font-size: 20px;
		color: inherit;
	}
	#headerwrap #menu-icon-close:after {
		content: "\e646";
		font-family: 'themify';
	}

	/* main nav */
	#headerwrap #main-nav {
		position: static;
		width: auto;
		height: auto;
		padding: 0;
		margin: 15px 0;
		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;
		width: 100%;
	}
	#headerwrap.fixed-header #header {
		padding-top: 5px;
		padding-bottom: 5px;
	}
	#headerwrap.fixed-header #main-nav li {
		padding-top: 0;
		padding-bottom: 0;
	}

	/* 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;
		clear: both;
		opacity: 1;
		-webkit-transform: none;
		-moz-transform: none;
		transform: none;
		color: inherit;
	}
	#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: inherit;
		line-height: 1.5em;
		background: none;
		text-decoration: none;
	}
	#headerwrap #main-nav > li:last-child a {
		border: none;
	}

	/* sub level menu link */
	#headerwrap #main-nav ul a {
		font-weight: normal;
	}

	/* menu hover */
	#headerwrap #main-nav a:hover,
	#headerwrap #main-nav ul a:hover {
		color: #ed1e24;
	}

	/* 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: #ed1e24;
	}

	/* mega menu */
	#headerwrap #main-nav .has-mega-sub-menu .mega-sub-menu,
	#headerwrap #main-nav .has-mega-column > .sub-menu {
		background: none;
		box-shadow: none;
		opacity: 1;
		-webkit-transform: none;
		-moz-transform: none;
		transform: none;
	}
	#headerwrap #main-nav .has-mega-column > .sub-menu {
		max-height: inherit;
	}
	#headerwrap #main-nav .has-mega-sub-menu .mega-sub-menu,
	#headerwrap #main-nav .has-mega-column > ul.sub-menu {
		position: static;
		display: block;
		border: none;
		min-height: 0;
		max-height: none;
		margin: 0;
		width: auto;
		color: inherit;
	}
	#headerwrap #main-nav .has-mega-sub-menu .mega-sub-menu ul {
		height: auto;
		width: auto;
		float: none;
	}
	#headerwrap #main-nav .has-mega-column > .sub-menu > li {
		width: auto;
		float: none;
		margin-left: 0;
	}
	#headerwrap #main-nav .has-mega-column .sub-menu > li > a {
		text-transform: none;
		margin: 0;
	}
	#headerwrap #main-nav .mega-sub-menu li:after {
		content: '';
	}
	#main-nav li.mega-link.loading:before,
	#headerwrap #main-nav .has-sub-menu > a:after,
	#headerwrap #main-nav .has-mega-sub-menu > a:after,
	#headerwrap #main-nav .mega-sub-menu li a:after,
	#headerwrap #main-nav .mega-menu-posts {
		display: none;
	}

	/* SEARCH FORM */
	#headerwrap #searchform-wrap {
		display: block;
	}
	
	#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;
		margin: auto;
		color: #000;
		padding: 5px 15px 5px 35px;
		background-color: #fff;
		position: static;
		height: auto;
	}
	#headerwrap #searchform #s:focus,
	#headerwrap #searchform #s:hover,
	#headerwrap #searchform .icon-search:hover + #s {
		width: 100%;
		background-color: #fff;
	}	
	#headerwrap #searchform .icon-search:before {
		left: 7px;
		top: 3px;
		position: absolute;
		background: transparent;
		color: #000;
		width: 16px;
		height: 16px;
		font-size: 18px;
		padding: 3px;
		margin: 0;
	}

	/* SOCIAL LINKS */
	#headerwrap .social-widget {
		position: static;
		float: none;
	}

	/* widget twitter */
	.widget .twitter-list .twitter-timestamp {
		opacity: 1;
	}

	#headerwrap .header-widget .col3-1 {
		margin-left: 0;
		width: 100%;
		max-width: 100%;
	}

	#headerwrap .sidemenu .header-widget {
		height: auto;
		margin-bottom: 1em;
	}

	/* fixed header */
	#headerwrap.fixed-header .header-bar,
	#headerwrap.fixed-header .social-widget,
	#headerwrap.fixed-header #searchform-wrap,
	#headerwrap.fixed-header .header-widget {
		display: block;
	}
	
	/*
	HEADER FULL HEIGHT
	================================================ */
	.header-full-height #headerwrap {
		height: auto;
		display: block;
	}
	.header-full-height #header {
		vertical-align: middle;
		display: block;
	}
	
	/************************************************************************************
	ANNOUNCEMENT BAR PLUGIN
	*************************************************************************************/
	.announcement-bar-showing.announcement-top.admin-bar #headerwrap {
		top: 0 !important;
	}
	.announcement-bar-showing.admin-bar .themify_announcement.top {
		top: 0; /* @todo */
	}
	
}

@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) {

	/************************************************************************************
	GENERAL
	*************************************************************************************/
	body {
		font-size: .95em;
	}

	/* heading */
	.page-title,
	h1 {
		font-size: 1.95em;
	}
	h2 {
		font-size: 1.75em;
	}
	h3 {
		font-size: 1.3em;
	}
	h4 {
		font-size: 1.25em;
	}

	/************************************************************************************
	STRUCTURE
	*************************************************************************************/
	body .pagewidth,
	body.full_width .themify_builder_row .row_inner,
	body.full_width .related-posts,
	.full_width .post-nav,
	.full_width .commentwrap	{
		max-width: 90%;
	}
	body #content {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
		padding-top: 10%;
	}

	/* sidebar */
	body #sidebar {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
		padding-top: 10%;
	}
	
}

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

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

	/************************************************************************************
	HEADER
	*************************************************************************************/
	/* prevent logo img extend the fixed header on mobile */
	.fixed-header #headerwrap #site-logo img {
		width: auto;
		max-height: 40px;
	}

	/* mega menu */
	#main-nav .has-mega-column > .sub-menu {
		overflow: inherit; /* prevent scrollbar */
	}

	/* menu icon */
	#headerwrap #menu-icon { 
		right: 5%;
	}

	/************************************************************************************
	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,
        .loops-wrapper.no-gutter.grid2 .post,
	.loops-wrapper.no-gutter.grid3 .post,
	.loops-wrapper.no-gutter.grid4 .post {
		width: 100%;
		margin-left: 0;
		float: none;
	}

	/* 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.8em;
}

	/* all post image */
	.loops-wrapper.list-post .post-image,
	.loops-wrapper.grid4 .post-image,
	.loops-wrapper.grid3 .post-image,
	.loops-wrapper.grid2 .post-image,
	.loops-wrapper.list-large-image .post-image {
		float: none;
		position: static;
		width: auto;
		overflow: visible;
	}

	/* all post content */
	.loops-wrapper.grid2-thumb .post-content,
	.loops-wrapper.list-thumb-image .post-content {
		overflow: visible;
	}

	/* post meta */
	.loops-wrapper.list-post .post-meta, .single .post-meta {
		font-size: .9em;
	}
	
	/* all post date */
	.loops-wrapper.list-post .post-date-wrap,
	.single .post-content .post-date-wrap,
	.loops-wrapper.list-post .post-date,
	.single .post-content .post-date {
		width: 80px;
		height: 80px;
	}
	.loops-wrapper.list-post .has-post-thumbnail .post-date-wrap,
	.single .has-post-thumbnail .post-date-wrap {
		margin-top: -65px;
	}
	.loops-wrapper.list-post .post-date .day,
	.single .post-date .day {
    font-size: 23px;
    padding-top: 10px;
    margin-bottom: 0;
}
	.loops-wrapper.list-post .post-date .month,
	.single .post-date .month {
		font-size: 13px;
	}
	.loops-wrapper.list-post .post-date .year,
	.single .post-date .year {
		font-size: 10px;
	}

	/* slider post */
	.loops-wrapper.slider .post-meta {
		position: static;
	}
	#gallery-controller .slider .carousel-nav-wrap,
	#gallery-controller .slider-dot {
		display: none;
	}
	
	/* related post */
	.related-posts .post {
		width: auto;
		float: none;
	}
	.related-posts .post img {
		width: 100%;
	}

	/************************************************************************************
	COMMENT FORM
	*************************************************************************************/
	#commentform input[type=text], 
	#contactform input[type=text] {
		max-width: 50%;
	}

	/************************************************************************************
	COMMENTS
	*************************************************************************************/
	.commentlist .reply {
		position: static;
	}
	#respond #cancel-comment-reply-link {
		position: static;
		display: table;
	}
	.commentwrap .pagenav.top {
		position: static;
	}
	
	/*
	SINGLE SPLIT LAYOUT
	================================================ */
	.single.single-split-layout .featured-area,
	.single.single-split-layout #footerwrap,
	.single.single-split-layout #layout,
	.single.single-split-layout .post-nav {
		position: relative;
		width: 100%;
		float: none;
	}
	.single.single-split-layout #layout {
		max-width: 90%;
	}
	.single.single-split-layout #content,
	.single.single-split-layout #footerwrap {
		padding-left: inherit;
		padding-right: inherit;
	}
	.single.single-split-layout .featured-area .post-image {
		margin-bottom: 0;
	}
	.single.single-split-layout .related-posts .post-image img,
	.single.single-split-layout .post-image img {
		height: auto;
		min-height: initial;
	}
	.single.single-split-layout .post-nav {
		background-color: transparent;
		margin-bottom: 1em;
	}
	.single.single-split-layout .post-nav .prev,
	.single.single-split-layout .post-nav .next {
		clear: none;
	}
	.single.single-split-layout .featured-area .post-content {
		padding-top: 1.7em;
	}
	.single.single-split-layout .post-image + .post-content .post-meta,
	.single.single-split-layout .post-meta {
		margin-bottom: 0.5em;
	}
	
	/*
	SINGLE POST LAYOUTS
	================================================ */
	.single.single-fullwidth-layout .featured-area .post-image + .post-content .post-date-wrap {
		margin-top: -65px;
	}
	.single.single-slider-layout .featured-area .post-content .post-date-wrap {
		margin-top: -65px;
	}
	.single.single-slider-layout .featured-area .carousel-pager {
		bottom: 55px;
	}
	.single.single-slider-layout .featured-area .carousel-next,
	.single.single-slider-layout .featured-area .carousel-prev {
		max-height: 50px;
		font-size: 14px;
	}
	.single.single-slider-layout .featured-area .carousel-next:before,
	.single.single-slider-layout .featured-area .carousel-prev:before {
		padding: 16px 8px 16px 5px;
	}
	.single.single-gallery-layout .featured-area .gallery-wrapper + .post-content .post-date-wrap {
		margin-top: -40px;
	}

	/* FOOTER LEFT COL, FOOTER RIGHT COL, FOOTER HORIZONTAL LEFT, FOOTER HORIZONTAL RIGHT
	================================================ */
	.footer-horizontal-left .footer-left-wrap,
	.footer-horizontal-right .footer-left-wrap,
	.footer-horizontal-left .footer-right-wrap,
	.footer-horizontal-right .footer-right-wrap,
	.footer-left-col .main-col,
	.footer-right-col .main-col,
	.footer-left-col .section-col,
	.footer-right-col .section-col {
		margin-left: 0;
		margin-right: 0;
		width: 100%;
		max-width: 100%;
	}

	/************************************************************************************
	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 1em 1em 0;
	}

}

/************************************************************************************
HEADER WIDGETS
*************************************************************************************/
@media screen and (max-height:900px) {
	.full-section-scrolling #headerwrap .header-widget,
	.header-horizontal #headerwrap .header-widget,
	.header-top-bar #headerwrap .header-widget,
	.boxed-compact #headerwrap .header-widget {
		max-height: 300px;
	}
}
@media screen and (max-height:750px) {
	.full-section-scrolling #headerwrap .header-widget,
	.header-horizontal #headerwrap .header-widget,
	.header-top-bar #headerwrap .header-widget,
	.boxed-compact #headerwrap .header-widget {
		max-height: 300px;
	}
}

@media screen and (max-height:600px) {
	.full-section-scrolling #headerwrap .header-widget,
	.header-horizontal #headerwrap .header-widget,
	.header-top-bar #headerwrap .header-widget,
	.boxed-compact #headerwrap .header-widget {
		max-height: 300px;
	}
}

@media screen and (max-height:480px) {
	.full-section-scrolling #headerwrap .header-widget,
	.header-horizontal #headerwrap .header-widget,
	.header-top-bar #headerwrap .header-widget,
	.boxed-compact #headerwrap .header-widget {
		max-height: 250px;
	}
}

@media screen and (max-height:400px) {
	.full-section-scrolling #headerwrap .header-widget,
	.header-horizontal #headerwrap .header-widget,
	.header-top-bar #headerwrap .header-widget,
	.boxed-compact #headerwrap .header-widget {
		max-height: 200px;
	}
}

@media screen and (max-height:320px) {
	.full-section-scrolling #headerwrap .header-widget,
	.header-horizontal #headerwrap .header-widget,
	.header-top-bar #headerwrap .header-widget,
	.boxed-compact #headerwrap .header-widget {
		max-height: 130px;
	}
}

@media screen and (max-height:280px) {
	.full-section-scrolling #headerwrap .header-widget,
	.header-horizontal #headerwrap .header-widget,
	.header-top-bar #headerwrap .header-widget,
	.boxed-compact #headerwrap .header-widget {
		max-height: 120px;
	}
}