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

/* hide other header elements on fixed */
body:not(.mobile_menu_active) #headerwrap.fixed-header #site-logo,
body:not(.mobile_menu_active) #headerwrap.fixed-header #site-description,
body:not(.mobile_menu_active) #headerwrap.fixed-header .social-widget {
	display: none !important;
}

/************************************************************************************
HEADER
*************************************************************************************/
.mobile_menu_active #header {
	text-align: left;
	padding: 10px 0 5px;
	position: relative;
}

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

/* site logo */
.mobile_menu_active #site-logo {
	font-size: 30px;
	padding: 0;
}

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

/************************************************************************************
MENU PANEL
*************************************************************************************/
body.mobile-menu-visible.mobile_menu_active {
	overflow-y: hidden;
}
/* Mobile Menu Styles */
.mobile_menu_active .sidemenu {
	background-color: #fc0;
	color: #000;
	width: 300px;
	height: 100%;
	padding: 50px 25px 20px;
	display: block;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
	position: fixed;
	top: 0;
	z-index: 11111;
	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;
	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;
}

/* searchform */
.mobile_menu_active #headerwrap.fixed-header #header #searchform {
	float: none;
}
.mobile_menu_active #header #searchform #s:focus,
.mobile_menu_active #header #searchform #s {
	width: 100%;
}

.mobile_menu_active .social-widget .widget {
	padding-bottom: 0;
}

/* menu icon */
.mobile_menu_active #menu-icon {
	position: absolute;
	display: block;
	top: 50%;
	right: 0;
	text-decoration: none;
	color: #000;
	font-size: 1.2em;
	line-height: normal;
	transform: translateY(-50%);
}

/* slide menu close */
.mobile_menu_active #menu-icon-close {
	position: absolute;
	display: block;
	text-decoration: none;
	top: 10px;
	right: 10px;
	font-size: 25px;
	color: inherit;
}
.mobile_menu_active #menu-icon-close:after {
	content: "\e801"; /* ti-close */
	font-family: 'themify_theme_icon';
}

/* main nav */
.mobile_menu_active #main-nav {
	padding: 0;
	margin: 15px 0;
	background: none;
}
.mobile_menu_active #main-nav li {
	display: block;
}

/* sub level */
.mobile_menu_active #main-nav ul {
	position: static;
	display: block;
	margin: 0;
	padding: 0 0 0 1em;
	background: none;
	text-align: left;
}
.mobile_menu_active #main-nav ul li {
	border: none;
	background: none;
	padding: 0;
	margin: 0;
}

/* menu link */
.mobile_menu_active #main-nav a,
.mobile_menu_active #main-nav ul a {
	padding: .6em 0;
	color: inherit;
	font-size: 100%;
	line-height: 1.5em;
	text-decoration: none;
}

/* sub level menu link */
.mobile_menu_active #main-nav ul a {
	font-weight: normal;
	font-size: .95em;
}

/* menu hover */
.mobile_menu_active #main-nav a:hover,
.mobile_menu_active #main-nav ul a:hover {
	color: #fff;
}

/* sub-menu icon */
.mobile_menu_active #main-nav ul:before {
	display: none;
}
.mobile_menu_active #headerwrap #main-nav .page_item_has_children > a .sub-arrow,
.mobile_menu_active #headerwrap #main-nav .menu-item-has-children > a .sub-arrow {
	display: none !important;
}

/* first level menu current item */
.mobile_menu_active #main-nav .current_page_item a,
.mobile_menu_active #main-nav .current-menu-item a {
	background: none;
	color: #fff;
}

/* Navigation */
.mobile_menu_active #headerwrap.fixed-header #main-nav {
	padding: 12px;
}
.mobile_menu_active #headerwrap.fixed-header #header #searchform {
	margin-top: 10px !important;
	display: block !important;
}
@media screen and (max-width: 1200px) {
	#headerwrap #site-logo a img{
		height: auto;
	}
}
@media screen and (max-width: 1100px) {

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

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

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

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

	/*
	PORTFOLIO SINGLE
	================================================ */
	.sidebar-none.single-portfolio div.post-image,
	.sidebar-none.single-portfolio figure.post-image	{
		width: auto;
		float: none;
	}

}

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

	/* HEADINGS
	================================================ */
	h2 {
		font-size: 2.1em;
	}
	h3 {
		font-size: 1.4em;
	}

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

	/* sidebar */
	#sidebar {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
	}
	.widget {
		margin-bottom: 10%;
	}

	/************************************************************************************
	CONTENT
	*************************************************************************************/
	/* section title */
	.section-title {
		font-size: 4em;
	}

	/*
	TIMELINE
	================================================ */
	.timeline .timeline-dot {
		left: 20.1%;
		margin-top: 2%;
	}
	.timeline .timeline-year {
		margin-top: .3em;
	}

	/*
	PORTFOLIO SINGLE
	================================================ */
	.sidbar-none .portfolio .post-image {
		margin-bottom: 30px;
	}

	/*
	SECTION
	================================================ */
	.section-inner {
		padding-top: 80px; /* padding space for fixed header */
	}

}

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

@media screen and (max-width: 700px) {
	/* easyPieChart Plugin */
	.easyPieChart img {
		width: 33%;
		margin-top: -25%;
	}
}

@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%;
	}

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

	/************************************************************************************
	POST
	*************************************************************************************/
	.loops-wrapper.list-post .post-content {
		overflow: visible;
	}
	.easyPieChart img {
		width: auto;
		margin-top: 0;
	}

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

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

	/* post content */
	.post-content {
		overflow: visible !important; /* prevent from hidden */
	}

	#content .portfolio-expanded .post-image,
	.single-portfolio .post-image,
	.loops-wrapper.list-post .post-image,
	.loops-wrapper.list-post .post.odd .post-image {
		 max-width: 100%;
		 width: 100%;
		 float: none;
		 margin-right: 0;
		 margin-left: 0;
		 text-align: center;
	}

	.sidebar-none .post .post-content {
		text-align: center;
	}

	/* list post */
	.loops-wrapper.list-post .post {
		text-align: center;
	}
	.loops-wrapper.list-post .post-image {
		float: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	/* grid2-thumb */
	.loops-wrapper.grid2-thumb .post-image {
		width: auto;
		max-width: none;
		min-width: 0;
	}
	.loops-wrapper.grid2-thumb .post-content {
		overflow: visible;
	}

	.shortcode.author-box .author-avatar {
		margin: 0 0 20px 0 !important;
	}
	.shortcode.author-box .author-avatar,
	.shortcode.author-box .author-bio {
		float: none;
		text-align: center;
	}

	/************************************************************************************
	SECTION
	*************************************************************************************/
	/* section title */
	.section-title {
		font-size: 2.2em;
	}
	.section-subhead {
		font-size: 1.2em;
	}

	/*
	HIGHLIHGT POST TYPE STYLES
	================================================ */
	.highlight.loops-wrapper.list-post .highlight-post .post-title {
		font-size: 2em !important;
	}

	/*
	TEAM POST TYPE STYLES
	================================================ */
	.team.loops-wrapper.list-post .team-post {
		text-align: center;
	}
	.team.loops-wrapper.list-post .team-content-wrap {
		width: 100%;
		float: none;
	}
	.team.loops-wrapper.list-post .skillset-wrap {
		width: 100%;
		clear: both;
		float: none;
	}

	/*
	TIMELINE POST TYPE STYLES
	================================================ */
	.timeline .timeline-date {
		margin-top: .3em;
	}
	.timeline .timeline-dot {
		left: 19%;
	}

	/************************************************************************************
	POST NAV
	*************************************************************************************/
	.post-nav .prev,
	.post-nav .next {
		display: block;
		width: 100%;
		clear: both;
		margin-bottom: 10px;
	}

	/*
	CAROUSEL STYLES
	================================================ */
	.post .carousel-prev,
	.post .carousel-next,
	.slider .carousel-prev,
	.slider .carousel-next {
		display: none !important;
	}

	/************************************************************************************
	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;
	}
	#respond #cancel-comment-reply-link {
		top: 35px;
	}

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

}

@media screen and (max-width: 600px) {
	.admin-bar.sidemenu-active.mobile-menu-visible {
		position: relative;
		top: -46px;
	}
	.admin-bar .sidemenu,
	.admin-bar #headerwrap.fixed-header,
	.admin-bar #headerwrap.fixed-header .sidemenu,
	.admin-bar.sidemenu-active.mobile-menu-visible.fixed-header-on,
	.admin-bar.sidemenu-active.mobile-menu-visible.fixed-header-on #headerwrap {
		top: 0;
	}
}

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

	/* Timeline */
	.timeline .timeline-date {
		font-size: 1.5em;
	}
	.timeline .timeline-dot {
		font-size: 4em;
		margin-top: .5%;
	}

	/* Comment reply link */
	#respond #cancel-comment-reply-link {
		top: 30px;
	}

}