@media (max-width: 979px) { 
	
	.overlay { display: none }
	
	.logo h1 {
	    font-size: 23px;
	    position: static;
	    max-height: 95px;
	    overflow: hidden;
	    max-width: none;
	}

	.primary-menu { margin-top: 77px }

	.primary-menu .dropdown-menu a { padding: 0 5px }

	.primary-menu .nav-tabs.nav-stacked > li > a { padding: 5px 10px 4px 10px }

	.page-select {
	    width: 100%;
	    font-size: 12px;
	}

	.home-slider {
	    height: 565px;
	    margin: -155px 0 0 0;
	}

	.home-slider .slider { margin-top: 46px }

	.home-slider .jcarousel-clip-vertical { height: 660px }

	.home-slider .jcarousel-item { height: 230px }

	.home-slider .engine-video iframe,
	.home-slider .engine-video .mejs-video,
	.home-slider .mejs-poster img { height: 230px }

	.home-slider .bg-top,
	.home-slider .bg-bottom {
	    width: 414px;
	    height: 115px;
	    top: 151px;
	}

	.home-slider .bg-bottom {
	    bottom: 0;
	    top: auto;
	    height: 79px;
	}

	.home-slider .jcarousel-prev,
	.home-slider .jcarousel-next {
	    bottom: 220px;
	    right: 414px;
	}

	.home-slider .jcarousel-prev { bottom: 240px }

	.home-slider .featured-image a:hover { opacity: 1 }

	.welcome,
	.blog-preview,
	.home-content { margin-left: -104px }

	.blog-preview .entry-title {
	    font-size: 14px;
	    line-height: 2em;
	}
}

@media (max-width: 767px) { 
	body { padding: 0 }
	
	.sidebar_left .content { float: none; }
	
	.portfolio-content { padding-top: 0 }

	.portfolio-content .post-nav {
	    margin-left: 0;
	    margin-right: 0;
	    width: auto;
	}

	.portfolio-content .post-nav .prev-post { margin: 0 }

	.main-inner,
	.content-inner,
	.sidebar-inner {
	    border: none !important;
	    padding-left: 0 !important;
	    padding-right: 0 !important;
	    padding-top: 0 !important;
	    margin: 0 !important;
	}

	.header {
	    border: none;
	    float: none;
	    padding: 40px 20px 0 20px;
	}

	.header .logo { text-align: center }

	.header .logo h1 { position: static }

	.main { padding: 0 20px }

	.content {
	    border: none;
	    margin: 0;
	    padding-left: 0;
	}

	.sidebar_right .content { float: none !important }

	.welcome { font-size: 20px }

	.welcome,
	.blog-preview,
	.home-content { margin-left: 0 }

	.slider-content { padding-top: 20px }

	.footer {
	    padding: 0 20px;
	    box-sizing: border-box;
	    -moz-box-sizing: border-box;
	}

	.footer .logo { text-align: left }

	.post-nav {
	    margin-left: 0 !important;
	    margin-right: 0 !important;
	    padding-left: 0 !important;
	    padding-right: 0 !important;
	}

	.post-nav .prev-post { margin-right: 0 !important }

	.post-nav .next-post { margin-left: 0 !important }

	#respond,
	.comments {
	    margin-left: 0 !important;
	    margin-right: 0 !important;
	    padding-left: 0 !important;
	    padding-right: 0 !important;
	}

	#respond #reply-title,
	.comments .comments-title { margin: 0 }
}