/************************************************************************************
MOBILE MENU ACTIVE
*************************************************************************************/
/* change max-width to trigger mobile menu active class */

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

/************************************************************************************
HEADER
*************************************************************************************/
/* reset absolute elements to static */
.mobile_menu_active .social-widget,
.mobile_menu_active #site-logo,
.mobile_menu_active #site-description {
	position: static;
	float: none;
	clear: both;
}

/* header widget */
.mobile_menu_active .header-widget {
	position: static !important;
	float: none;
	text-align: left;
	clear: both;
	margin: 0;
}
.mobile_menu_active .header-widget .widget {
	margin: 0 0 10px;
}

/* social widget */
.mobile_menu_active .social-widget {
	padding: 5px 0 0;
}

/************************************************************************************
MOBILE NAV BUTTON
*************************************************************************************/
.mobile_menu_active .mobile-button {
	font: normal 1em/1em 'Old Standard TT', serif;
	position: relative;
	margin: 20px auto 0;
	display: block;
	cursor: pointer;
	padding: 0;
}
.mobile_menu_active .mobile-button span {
	font: normal .93em/1.4em 'Oswald', sans-serif;
	color: #585858;
	text-transform: uppercase;
	vertical-align: middle;
}
.mobile_menu_active .mobile-button span:before {
	content: "\f0c9";
	font: normal 21px/1em 'themify_theme_icons';
	width: 1em;
	height: 1em;
	vertical-align: top;
	display: inline-block;
	margin: -1px 5px 0 0;
}
.mobile_menu_active .mobile-button.active span:before {
	color: #555;
}
.mobile_menu_active .fixed-header .mobile-button span,
.mobile_menu_active .fixed-header .mobile-button.active span:before {
	color: inherit;
}

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

/* main nav */
.mobile_menu_active #main-nav {
	clear: both;
	position: absolute;
	width: 180px;
	height: auto;
	z-index: 1000;
	padding: 10px 12px;
	background-color: #fff;
	border: solid 1px #000;
	display: none;
	left: 50%;
	margin-left: -100px;
	margin-top: 21px;
}
.mobile_menu_active #main-nav li {
	clear: both;
	float: none;
	padding: 5px 0;
	position: static;
	display: block;
	border-top: 1px solid #e5e5e5;
}
.mobile_menu_active #main-nav li:first-child {
	border: none;
}
.mobile_menu_active #main-nav a,
.mobile_menu_active #main-nav ul a {
	font: inherit;
	font-size: .85em;
	text-transform: inherit;
	background: none;
	width: auto;
	display: block;
	padding: 0;
	color: #666;
	border: none;
}
.mobile_menu_active #main-nav a:hover,
.mobile_menu_active #main-nav ul a:hover {
	background: none;
	color: #000;
}

/* dropdown */
.mobile_menu_active #main-nav ul {
	position: static;
	display: block;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
}
.mobile_menu_active #main-nav ul ul {
	margin: 0;
	text-align: center;
}
.mobile_menu_active #main-nav ul ul:before {
	display: none;
}
.mobile_menu_active #main-nav .sub-arrow {
	display: none !important;
}

/*
FIXED HEADER
================================================ */
.mobile_menu_active .header-on-scroll {
	height: 53px !important;
}
.mobile_menu_active .fixed-header #header #searchform {
	margin-top: 10px;
}
.mobile_menu_active .fixed-header .mobile-button {
	float: left;
	margin-left: 8px;
	margin-top: 18px;
}
.mobile_menu_active #headerwrap.fixed-header #main-nav {
	left: 0;
	top: 100%;
	margin: 0;
}
.mobile_menu_active #headerwrap.fixed-header #main-nav ul:before {
	left: 10px;
	margin-left: 0;
}
.mobile_menu_active #headerwrap.fixed-header #main-nav ul {
	text-align: left;
}
.mobile_menu_active #headerwrap.fixed-header #main-nav ul a {
	margin-left: 20px;
}
.mobile_menu_active #headerwrap.fixed-header #main-nav ul ul a {
	padding-left: 10px;
}

@media screen and (max-width: 1200px) {
	#headerwrap #site-logo a img{
		height: auto;
	}
}
@media screen and (max-width: 980px) {

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

	.pagewidth,
	.sidebar-none .loops-wrapper.list-post .post-inner,
	.full_width .module_row > .row_inner,
	.single .post-inner {
		max-width: 94%;
	}
	.full_width .module-layout-part .module_row.fullwidth > .row_inner,
	.full_width .module_row.fullwidth > .row_inner {
		max-width:100%;
	}

	/* content */
	#content {
		padding: 7% 0 5%;
		width: 67.8%;
	}

	/* sidebar */
	#sidebar {
		padding: 7% 0 5%;
		width: 26.2%;
	}
	#sidebar .secondary {
		width: 47.4%;
	}

}

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

	/************************************************************************************
	STRUCTURE
	*************************************************************************************/
	#content {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
	}

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

}

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

	/* make fixed menu scroll on mobile */
	#headerwrap #main-nav {
		max-height: 320px;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

}

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

	/************************************************************************************
	LOOPS WRAPPER
	*************************************************************************************/
	.loops-wrapper {
		margin-left: 0 !important;
	}

	/************************************************************************************
	POST
	*************************************************************************************/
	.post-media {
		margin-bottom: 10px;
	}
	.media-left .post-media,
	.media-right .post-media {
		float: none !important;
		margin-right: 0;
		margin-left: 0;
		width: 100% !important;
		max-width: 100% !important;
	}
	/* grid4 */
	.loops-wrapper.grid4 .post,
	.loops-wrapper.grid3 .post {
		width: 100%;
		margin-left: 0;
		float: none;
	}

	/* list post */
	.sidebar-none .loops-wrapper.list-post .post {
		padding: 6% 0 5%;
	}

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

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

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

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

}

/* WordPress Breaking Points */
@media screen and (max-width: 782px) {
	.admin-bar .fixed-header {
		top: 46px;
	}
}
@media screen and (max-width: 600px) {
	.admin-bar .fixed-header {
		top: 0;
	}
}