/************************************************************************************
MOBILE MENU ACTIVE
*************************************************************************************/
/* ensure #main-nav is visible on desktop version */
body:not(.mobile_menu_active) #main-nav {
	display: block !important;
}

/* SITE DESCRIPTION
================================================ */
.mobile_menu_active #site-description,
.mobile_menu_active .fixed-header #site-description {
	display: none;
}

/* MOBILE NAV BUTTON
================================================ */
.mobile_menu_active .mobile-button {
	background-color: #eee;
	position: relative;
	width: 36px;
	height: 32px;
	display: block;
	float: right;
	cursor: pointer;
	border-radius: 5px;
}
.mobile_menu_active .mobile-button:before {
	content: "\f0c9";
	font: normal 21px/1em FontAwesome;
	color: #000;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -.5em 0 0 -.5em;
	width: 1em;
	height: 1em;
	text-align: center;
}
.mobile_menu_active .mobile-button.active:before {
	color: #555;
}

/* MAIN NAV (MOBILE)
================================================ */
/* main navigation */
.mobile_menu_active #main-nav-wrap {
	max-width: 100%;
}

/* main nav */
.mobile_menu_active #headerwrap #main-nav {
	clear: both;
	position: absolute;
	top: 32px;
	right: 0;
	bottom: auto;
	left: auto;
	width: 160px;
	height: auto;
	z-index: 1000;
	margin: 0;
	padding: 10px 5px;
	background-color: #fff;
	border: solid 1px #999;
	float: none;
	display: none; /* visibility will be toggled with jquery */
	box-shadow: 1px 2px 0 rgba(0,0,0,.2);
	border-radius: 5px;
}
/* make fixed menu scroll on mobile */
.mobile_menu_active #headerwrap #main-nav {
	max-height: 320px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
.mobile_menu_active #headerwrap #main-nav li {
	clear: both;
	float: none;
	margin: 5px 0 5px 10px;
	padding: 0;
	border: none;
	box-shadow: none;
}
.mobile_menu_active #headerwrap #main-nav a,
.mobile_menu_active #headerwrap #main-nav ul a {
	font: inherit;
	text-transform: inherit;
	background: none;
	width: auto;
	display: inline;
	padding: 0;
	color: #666;
	border: none;
	text-shadow: none;
	box-shadow: none;
}
.mobile_menu_active #headerwrap #main-nav a:hover,
.mobile_menu_active #headerwrap #main-nav ul a:hover {
	background: none;
	color: #000;
}

/* dropdown */
.mobile_menu_active #headerwrap #main-nav ul {
	position: static;
	display: block;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
}
.mobile_menu_active #headerwrap #main-nav .sub-arrow {
	display: none !important;
}

/* SOCIAL WIDGET
================================================ */
.mobile_menu_active .social-widget {
	position: static;
	float: none;
	margin: 0;
	padding: 15px 0 0;
}

/* SEARCHFORM
================================================ */
.mobile_menu_active #header #searchform {
	top: 15px;
}

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

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

	.pagewidth,
	.full_width .themify_builder_row .row_inner {
		max-width: 94%;
	}

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

	/************************************************************************************
	SLIDER
	*************************************************************************************/
	#slider {
		font-size: 100%;
	}
	/* default slide */
	.slider-default .slide-image {
		float: none;
		margin: 0 0 10px;
	}
	.slider-default .slide-content {
		position: static;
		padding-top: 0;
	}
	.slider-default .post-video {
		max-width: 100%;
		width: 100%;
	}

	/* image caption slide */
	.slider-image-caption .slide-content {
		position: static;
		font-size: 100%;
	}

	/************************************************************************************
	POST
	*************************************************************************************/
	/* list large image */
	.list-large-image .post-image {
		float: none;
		margin-right: 0;
	}
	.list-large-image .post-content {
		overflow: visible;
		-webkit-overflow-scrolling: touch;
		float: none;
	}

}

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

	/************************************************************************************
	POST
	*************************************************************************************/
	/* grid4 */
	.loops-wrapper.grid4 .post,
	.loops-wrapper.grid3 .post {
		width: 100%;
		margin-left: 0;
		float: none;
	}

	/************************************************************************************
	SLIDER
	*************************************************************************************/
	/* hide slider direction nav on mobile */
	.flex-direction-nav {
		display: none;
	}

	/************************************************************************************
	PORTFOLIO
	*************************************************************************************/
	.single .portfolio .post-image {
		margin-right: 0;
		float: none;
	}

	/************************************************************************************
	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 .avatar {
		float: left;
		width: 40px;
		height: 40px;
		margin: 0 10px 10px 0;
	}

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