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

/*
HEADER
================================================ */
/* reset absolute elements to static */
.mobile_menu_active .social-widget,
.mobile_menu_active #site-logo,
.mobile_menu_active #site-description  {
	position: static !important;
	float: none;
	clear: both;
}
.mobile_menu_active #site-logo {
	font-size: 2.8em;
}

/*
MOBILE NAV BUTTON
================================================ */
.mobile_menu_active .mobile-button {
	position: relative;
	height: 20px;
	margin: auto;
	display: inline-block;
	cursor: pointer;
	padding: 20px 0;
	white-space: nowrap;
	text-align: left;
}
.mobile_menu_active.mobile-button:after {
	padding: 1px;
	content: "";
	width: 100%;
	height: 100%;
	position: absolute;
	top: -1px;
	left: -1px;
	z-index: -1;
}
.mobile_menu_active .mobile-button {
	color: #fff;
	text-transform: uppercase;
}
/* slide menu close */
.mobile_menu_active #menu-icon-close {
	position: absolute;
	display: block;
	text-decoration: none;
	top: 10px;
	right: 20px;
	font-family: serif;
	font-size: 3em;
	color: inherit;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	transition: all 0.3s ease;
}
.mobile_menu_active #menu-icon-close:after {
	content: "\00d7";
}
.mobile_menu_active #menu-icon-close:hover {
	-webkit-transform: rotate(90deg) scale(1.1);
	-moz-transform: rotate(90deg) scale(1.1);
	transform: rotate(90deg) scale(1.1);
}

/*
MAIN NAV (MOBILE)
================================================ */
/* Mobile Menu Styles */
.mobile_menu_active .sidemenu {
	height: 100%;
	width: 300px;
	padding: 50px 25px 20px;
	background-color: #000;
	color: #fff;
	display: block;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	position: fixed;
	top: 0;
	z-index: 11111;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-transition: all .2s ease-in-out;
	-moz-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
}
.mobile_menu_active.admin-bar .sidemenu {
	top: 32px;
}
.mobile_menu_active #mobile-menu {
	right: -300px;
}
.mobile_menu_active #mobile-menu.sidemenu-on {
	right: 0;
}
.mobile_menu_active.sidemenu-active {
	position: relative;
}
.mobile_menu_active.sidemenu-active,
.mobile_menu_active.sidemenu-active #headerwrap {
	left: 0;
	-webkit-transition: left .2s ease-in-out;
	-moz-transition: left .2s ease-in-out;
	transition: left .2s ease-in-out;
}
.mobile_menu_active.sidemenu-right,
.mobile_menu_active.sidemenu-right #headerwrap.fixed-header {
	left: -300px;
}
.mobile_menu_active.sidemenu-left,
.mobile_menu_active.sidemenu-left #headerwrap.fixed-header {
	left: 300px;
}
.mobile_menu_active.sidemenu-left #mobile-menu.sidemenu-on {
	left: 0;
}

.mobile_menu_active #pagewrap #main-nav-wrap {
	position: absolute;
	top: 5px;
	right: 95px;
	z-index: 1000;
}
.mobile_menu_active #pagewrap nav {
	text-align: center;
}

/* menu icon */
.mobile_menu_active #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 */
.mobile_menu_active #main-nav {
	clear: both;
	text-align: left;
	width: auto;
	max-width: none;
	margin: 0 0 15px;
}
.mobile_menu_active #main-nav li {
	clear: both;
	float: none;
	padding: 0;
	position: static;
	display: block;
}
.mobile_menu_active #main-nav a,
.mobile_menu_active #main-nav ul a {
	font: inherit;
	font-size: 1.1em;
	text-transform: inherit;
	background: none;
	width: auto;
	display: block;
	padding: 0.5em 0;
	margin: 0;
	color: #fff;
	border: none;
	letter-spacing: normal;
}
.mobile_menu_active #main-nav a:hover,
.mobile_menu_active #main-nav ul a:hover {
	background: none;
	color: #ffcc03;
}

/* dropdown */
.mobile_menu_active #main-nav ul {
	position: static;
	display: block;
	margin: 0;
	padding: 0 0 0 1em;
	background: none;
	border: none;
	opacity: 1;
	visibility: visible;
	-webkit-transform: none;
	transform: none;
}
.mobile_menu_active #main-nav ul:before,
.mobile_menu_active #main-nav ul ul:before {
	display: none;
}
.mobile_menu_active #main-nav ul ul {
	-webkit-transform: none;
	transform: none;
}

/* CSS 3 Animation menu elements */
.mobile_menu_active #main-nav li {
	-webkit-transition: all 400ms ease-in-out;
	-o-transition: all 400ms ease-in-out;
	transition: all 400ms ease-in-out;
	-webkit-transform: translate(40px, 0) !important;
	-ms-transform: translate(40px, 0) !important;
	-o-transform: translate(40px, 0) !important;
	transform: translate(40px, 0) !important;
	margin-left: 0;
	opacity: 0;
}
.mobile_menu_active.mobile-menu-visible #main-nav li {
	opacity: 1;
	-webkit-transform: translate(0, 0) !important;
	-ms-transform: translate(0, 0) !important;
	-o-transform: translate(0, 0) !important;
	transform: translate(0, 0) !important;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(1) {
  -webkit-transition-delay: 100ms;
  transition-delay: 100ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(2) {
  -webkit-transition-delay: 200ms;
  transition-delay: 200ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(3) {
  -webkit-transition-delay: 300ms;
  transition-delay: 300ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(4) {
  -webkit-transition-delay: 400ms;
  transition-delay: 400ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(5) {
  -webkit-transition-delay: 500ms;
  transition-delay: 500ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(6) {
  -webkit-transition-delay: 600ms;
  transition-delay: 600ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(7) {
  -webkit-transition-delay: 700ms;
  transition-delay: 700ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(8) {
  -webkit-transition-delay: 800ms;
  transition-delay: 800ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(9) {
  -webkit-transition-delay: 900ms;
  transition-delay: 900ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(10) {
  -webkit-transition-delay: 1000ms;
  transition-delay: 1000ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(11) {
  -webkit-transition-delay: 1100ms;
  transition-delay: 1100ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(12) {
  -webkit-transition-delay: 1200ms;
  transition-delay: 1200ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(13) {
  -webkit-transition-delay: 1300ms;
  transition-delay: 1300ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(14) {
  -webkit-transition-delay: 1400ms;
  transition-delay: 1400ms;
}
.mobile_menu_active.mobile-menu-visible #main-nav > li:nth-child(15) {
  -webkit-transition-delay: 1500ms;
  transition-delay: 1500ms;
}

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

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

	.pagewidth,
	.sidebar-none .loops-wrapper.list-post .section-inner,
	.single .section-inner,
	.full_width .post-nav,
	.full_width .commentwrap	{
		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
	*************************************************************************************/

	body.full_width .themify_builder_row .row_inner {
		max-width: 90%;
	}

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

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


	/************************************************************************************
	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: 680px) {

	/************************************************************************************
	HEADING
	*************************************************************************************/
	h1 {
		font-size: 1.8em;
	}
	h2 {
		font-size: 1.6em;
	}
	h3 {
		font-size: 1.3em;
	}
	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;
	}

	/* site logo */
	#headerwrap #site-logo {
		font-size: 2em;
	}

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

	/* header slider */
	#gallery-controller .carousel-nav-wrap a {
		margin: -18px 0 0;
		width: 30px;
		height: 30px;
	}
	#gallery-controller .carousel-nav-wrap a:before {
		font: normal 20px/1em Themify;
	}
	#gallery-controller .carousel-nav-wrap a:hover:before {
		font-size: 24px;
	}

	/************************************************************************************
	MAIN NAV (MOBILE)
	*************************************************************************************/
	.admin-bar.no-header #nav-bar,
	.admin-bar #nav-bar.fixed-nav-bar {
		top: 0;
	}
	
	#gallery-controller .slider-dot {
		width: 6px;
		height: 6px;
	}

	/************************************************************************************
	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 1em 1em 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: 1001px) {

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

}

/* WordPress Breaking Points */
@media screen and (max-width: 782px) {
	.admin-bar .sidemenu,
	.admin-bar.no-header #nav-bar,
	.admin-bar.no-header #nav-bar.fixed-nav-bar {
		top: 46px;
	}
	.admin-bar.no-header #nav-bar {
		top: 0;
	}
}
@media screen and (max-width: 600px) {
	.admin-bar.sidemenu-active {
		position: static;
	}
	.admin-bar.sidemenu-active.mobile-menu-visible {
		position: relative;
		top: -46px;
	}
	.admin-bar .sidemenu,
	.admin-bar .fixed-nav-bar .sidemenu,
	.admin-bar.no-header #nav-bar.fixed-nav-bar,
	.admin-bar #nav-bar.fixed-nav-bar {
		top: 0;
	}
}
