/*Desktop Layout+

-----------------------------------------------*/

@media only screen and (min-width: 1024px) and (max-width: 1199px){

	/*common
	----------------------------*/
	#header-wrapper #header-inner,
	.mobile-widget-box-inner,
	#section-title,
	#content-wrapper section.homepage,
	.sub-section-title,
	.portfolio-button,
	#content-wrapper section.latest-posts-grid,
	#content-wrapper section.latest-posts-grid,
	#content-wrapper section.portfolio-fixed-width-grid,
	#content-wrapper section.portfolio,
	#folio-navigation,
	#content-wrapper section.pages,
	#footer-wrapper #footer-top, 
	#footer-wrapper #footer-bottom{max-width:734px;}
	#content-wrapper,#footer-wrapper{margin-left:210px;}

	/*header
	----------------------------*/
	#header-wrapper{width:210px;padding: 0 0 0 20px;}
	
		/*sub menu*/
		header nav#primary-nav ul li ul.sub-menu,header nav#primary-nav ul li ul.children{left:190px;}

	/*tablet*/
	.is_tablet #header-inner{margin-bottom: 20px;}
	.is_tablet #header-inner{width: 170px;}
	.is_tablet header nav#primary-nav ul.mobile-navigation{text-align: left;}
	.is_tablet header nav#primary-nav ul.mobile-navigation li a{padding: 8px 0;}
	.is_tablet header nav#primary-nav ul.mobile-navigation li ul.sub-menu li a, .is_tablet header nav#primary-nav ul.mobile-navigation li ul.children li a{padding-left:15px;}
	.is_tablet #header-inner .mobile-menu-toggle {border-top:1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6;margin-top:0;margin-bottom: 20px;}
	.is_tablet header nav#primary-nav ul.mobile-navigation{border-bottom: 1px solid #e6e6e6;margin-bottom: 20px;}
	.is_tablet header nav#primary-nav ul.mobile-navigation li:first-child.current-menu-item,.is_tablet header nav#primary-nav ul.mobile-navigation li:first-child.current_page_item {margin-top: 0px;}
	.is_tablet header nav#primary-nav .menu ul li ul.sub-menu,.is_tablet header nav#primary-nav .menu ul li ul.children{display: block !important;}

	/*homepage
	----------------------------*/
	#content-wrapper section.latest-posts-grid #content-inner-blog-grid article.blog-post{margin-bottom: 50px;}
	#content-wrapper section.latest-posts-grid #content-inner-blog-grid article.blog-post:last-child{margin-bottom:0;}

	/*portfolio index grid
	----------------------------*/
	.portfolio-fixed-width-grid #grid{width:740px!important;}
	.portfolio-fixed-width-grid #grid .thumb{width:240px !important;height:auto !important;}
	.portfolio-full-width-grid #grid .thumb{width: 33.333%;height:auto;}

	/*portfolio
	----------------------------*/
	.featured-media-container{max-width:734px;height:auto !important; overflow:inherit!important;}
	.featured-media-container .full-width-featured-image{}

	/*blog
	----------------------------*/
	/*blog layout:grid*/
	.blog-post-grid-content{max-width:342px;}
	.blog-post-grid-content .blog-post-featured-media{width:342px; height:auto; float: none;}
	.blog-post-grid-content .blog-post-featured-media .thumb{width:342px;}
	section#comments ol.comment-list li ul.children li {width: 469px;}
	section#comments ol.comment-list li ul.children ul.children{margin-left:0;}
	section#comments ol.comment-list li.depth-1>div,ol.comment-list li ul.children li{padding:15px !important;}
	section#comments ol.comment-list li ul.children{margin-left:40px !important;}
	section#comments ol.comment-list li.comment .commentary {padding-left: 85px !important;}
	
	/*blog layout:regular*/
	.content-inner-left{width:509px;}
	.content-inner-right{width:509px;}
	aside.sidebar{width:180px !important;}
	.blog-post-content .blog-post-featured-media{width:509px; height:auto; float:left;margin-bottom:30px; overflow:hidden;position:relative;}
	.blog-post-content .blog-post-featured-media .thumb{width:509px;}
	.blog-post-content .video{width:509px !important;height:286px !important;}
	section#blog-post-comments ol.comment-list li ul.children li{width:100%;}
	.sticky .blog-post-content .blog-post-featured-media,.sticky .blog-post-content .blog-post-featured-media .thumb{width:459px;}
	.sticky .blog-post-content .blog-post-featured-media .video,.sticky .blog-post-content .blog-post-featured-media .flexslider{width: 459px !important;height:auto;}

	/*form elements
	----------------------------*/	
	textarea {width:509px;}

	/*media
	----------------------------*/
	.display-image{max-width:734px;height:auto !important;}
	
	/*video*/
	.video{ max-width:734px !important; height:auto;}
	.featured-media-container.full-width-video-wrapper .video{max-width:100% !important;}
	
	/*thumbs*/
	.thumb{max-width:734px !important;height:auto;}
	
	/*wp native gallery*/
	.gallery-columns-8 .gallery-item{ width: 25% !important;}
	.gallery-columns-3 .gallery-item,.gallery-columns-5 .gallery-item,.gallery-columns-6 .gallery-item,.gallery-columns-7 .gallery-item,.gallery-columns-9 .gallery-item{ width: 33.3% !important;}
	.gallery br{display:none;}
	
	/*flexslider*/
	.flexslider{max-width: 734px;height: auto !important;}

}

/*Mobile Layout: Tablet Landscape

-----------------------------------------------*/

@media only screen and (min-width: 960px) and (max-width: 1023px){

	/*common
	----------------------------*/
	#header-wrapper #header-inner,
	#section-title,
	#content-wrapper section.homepage,
	.sub-section-title,
	.portfolio-button,
	#content-wrapper section.latest-posts-grid,
	#content-wrapper section.latest-posts-grid,
	#content-wrapper section.portfolio-fixed-width-grid,
	#content-wrapper section.portfolio,
	#folio-navigation,
	#content-wrapper section.pages,
	#footer-wrapper #footer-top, 
	#footer-wrapper #footer-bottom{max-width:640px;}
	#content-wrapper,#footer-wrapper{margin-left:210px;}

	/*header
	----------------------------*/
	#header-wrapper{width:210px;padding: 0 0 0 20px;}
	
		/*sub menu*/
		header nav#primary-nav ul li ul.sub-menu,header nav#primary-nav ul li ul.children{left:190px;}

	/*tablet*/
	.is_tablet #header-inner{margin-bottom: 20px;}
	.is_tablet #header-inner{width: 170px;}
	.is_tablet header nav#primary-nav ul.mobile-navigation{text-align: left;}
	.is_tablet header nav#primary-nav ul.mobile-navigation li a{padding: 8px 0;}
	.is_tablet header nav#primary-nav ul.mobile-navigation li ul.sub-menu li a, .is_tablet header nav#primary-nav ul.mobile-navigation li ul.children li a{padding-left:15px;}
	.is_tablet #header-inner .mobile-menu-toggle {border-top:1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6;margin-top:0;margin-bottom: 20px;}
	.is_tablet header nav#primary-nav ul.mobile-navigation{border-bottom: 1px solid #e6e6e6;margin-bottom: 20px;}
	.is_tablet header nav#primary-nav ul.mobile-navigation li:first-child.current-menu-item,.is_tablet header nav#primary-nav ul.mobile-navigation li:first-child.current_page_item {margin-top: 0px;}
	.is_tablet header nav#primary-nav .menu ul li ul.sub-menu,.is_tablet header nav#primary-nav .menu ul li ul.children{display: block !important;}

	/*homepage
	----------------------------*/
	#content-wrapper section.latest-posts-grid #content-inner-blog-grid article.blog-post{margin-bottom: 50px;}
	#content-wrapper section.latest-posts-grid #content-inner-blog-grid article.blog-post:last-child{margin-bottom:0;}

	/*portfolio index grid
	----------------------------*/
	.portfolio-fixed-width-grid #grid{width:646px!important;}
	.portfolio-fixed-width-grid #grid .thumb{width:209px !important;height:143px !important; margin-bottom: 5px;}
	.portfolio-full-width-grid #grid .thumb{width: 33.333%;height:auto;}

	/*portfolio
	----------------------------*/
	.featured-media-container{max-width:640px;height:auto !important; overflow:inherit!important;}

	/*blog
	----------------------------*/
	/*blog layout:grid*/
	.blog-post-grid-content{max-width:295px;}
	.blog-post-grid-content .blog-post-featured-media{width:295px; height:auto; float: none;}
	.blog-post-grid-content .blog-post-featured-media .thumb{width:295px;}
	section#comments ol.comment-list li ul.children li {width: 375px;}
	section#comments ol.comment-list li ul.children ul.children{margin-left:0;}
	section#comments ol.comment-list li.depth-1>div,ol.comment-list li ul.children li{padding:15px !important;}
	section#comments ol.comment-list li ul.children{margin-left:40px !important;}
	section#comments ol.comment-list li.comment .commentary {padding-left: 85px !important;}
	
	/*blog layout:regular*/
	.content-inner-left{width:415px;}
	.content-inner-right{width:415px;}
	aside.sidebar{width:180px !important;}
	.blog-post-content .blog-post-featured-media{width:415px; height:auto; float:left;margin-bottom:30px; overflow:hidden;position:relative;}
	.blog-post-content .blog-post-featured-media .thumb{width:415px;}
	.blog-post-content .video{width:415px !important;height:233px !important;}
	section#blog-post-comments ol.comment-list li ul.children li{width:100%;}
	.sticky .blog-post-content .blog-post-featured-media,.sticky .blog-post-content .blog-post-featured-media .thumb{width:365px;}
	.sticky .blog-post-content .blog-post-featured-media .video,.sticky .blog-post-content .blog-post-featured-media .flexslider{width: 365px !important;height:auto;}

	/*form elements
	----------------------------*/	
	textarea {width:415px;}

	/*media
	----------------------------*/
	.display-image{max-width:640px;height:auto !important;}
	
	/*video*/
	.video{ max-width:640px !important; height:auto;}
	.featured-media-container.full-width-video-wrapper .video{max-width:100% !important;}
	
	/*thumbs*/
	.thumb{max-width:640px !important;height:auto;}
	
	/*wp native gallery*/
	.gallery-columns-8 .gallery-item{ width: 25% !important;}
	.gallery-columns-3 .gallery-item,.gallery-columns-5 .gallery-item,.gallery-columns-6 .gallery-item,.gallery-columns-7 .gallery-item,.gallery-columns-9 .gallery-item{ width: 33.3% !important;}
	.gallery br{display:none;}
	
	/*flexslider*/
	.flexslider{max-width: 640px;height: auto !important;}

}

@media only screen and (min-width: 960px)  {

	/*header
	----------------------------*/
	#header-wrapper #header-inner header .mobile-menu-toggle{display:none;}
	#header-wrapper #header-inner header .mobile-nav{display:none;}
	#header-wrapper #header-inner header ul.navigation{display:table;}
	
	/*portfolio
	----------------------------*/
	#content-wrapper section.pages #grid-folio .thumb{width:286px !important;height:196px !important;}

}

/*Mobile Layout: Tablet Portrait

-----------------------------------------------*/

@media only screen and (min-width: 768px) and (max-width: 959px) {

	/*common
	----------------------------*/
	#header-wrapper #header-inner,
	#header-wrapper .header-widget-wrapper,
	#section-title,
	#content-wrapper section.homepage,
	.sub-section-title,
	.portfolio-full-width-grid .sub-section-title,
	.portfolio-button,
	.portfolio-full-width-grid .portfolio-button,
	#content-wrapper section.latest-posts-grid,
	#content-wrapper section.latest-posts-grid,
	#content-wrapper section.portfolio-fixed-width-grid,
	#content-wrapper section.portfolio,
	#folio-navigation,
	#content-wrapper section.pages,
	#footer-wrapper #footer-top, 
	#footer-wrapper #footer-bottom{max-width:640px;}

	/*header
	----------------------------*/
	#header-wrapper{width:100%;position:relative; padding-left: 0;}
	#header-wrapper #header-inner {height:auto;overflow:hidden;margin: 0 auto;padding-top: 30px;}
	#header-wrapper .header-widget-wrapper,#header-wrapper ul.connect{display: block;}
	#header-wrapper ul.connect li{float: none;}
	#header-wrapper .header-widget-box{max-width: 100%;}
	#header-wrapper .header-widget-wrapper{margin: 0 auto;}
	#header-wrapper .header-widget-wrapper.last-wrapper ul li:last-child{border: none;padding-bottom: 0;}

	/*Toggle Button*/
	#header-wrapper .mobile-widget-box-toggle-wrapper{display: block;}
	#header-wrapper .header-widget-box{position: absolute; top: 0px; left: 0px; width: 100%; overflow: hidden; height: 45px; -webkit-box-sizing: border-box;-moz-box-sizing: border-box; box-sizing: border-box;}
	#header-wrapper .header-widget-box .header-outer-widget-wrapper{float:left;padding: 25px 0 45px 0;}
	
	header #logo {margin:0 auto 30px auto;float:none;}
	header .mobile-menu-toggle{display:block;}

	/*menu*/
	header nav#primary-nav ul{text-align: center;margin-top:0px;display:none;}
	header nav#primary-nav ul li{position:static;}
	
		/*sub menu*/
		header nav#primary-nav .menu ul li ul.sub-menu,header nav#primary-nav .menu ul li ul.children{border-bottom: 1px solid #f6f6f6; border-top: 1px solid #f6f6f6;color: #ccc;margin-top:0;display: block !important;position: inherit;top: auto;white-space: normal;width: 100%;z-index: auto;}
		header nav#primary-nav .menu ul li:last-child ul.sub-menu,header nav#primary-nav .menu ul li:last-child ul.children{border-bottom:none;padding-bottom:0;}
		header nav#primary-nav .menu ul li ul.sub-menu li,header nav#primary-nav .menu ul li ul.children li{float:none;position:auto;z-index:auto;padding:0;width:100%;line-height:15px;}
	
	/*content
	----------------------------*/
	#content-wrapper{margin-left: 0;}
	#content-wrapper section.pages{margin:auto;}

	/*homepage
	----------------------------*/
	.epic-slider{height: 520px !important;}
	#content-wrapper section.homepage{margin: auto;}
	#content-wrapper section.latest-posts-grid{margin:0 auto;}
	#content-wrapper section.latest-posts-below-content{margin:50px auto 0 auto;}
	#content-wrapper section.latest-posts-grid #content-inner-blog-grid article.blog-post{margin-bottom: 50px;}
	#content-wrapper section.latest-posts-grid #content-inner-blog-grid article.blog-post:last-child{margin-bottom: 0;}
	.portfolio-full-width-grid .sub-section-title{margin: 20px auto 50px auto;}
	.portfolio-full-width-grid .portfolio-button{margin: 50px auto 0 auto;}

	/*portfolio index grid
	----------------------------*/
	.portfolio-fixed-width-grid #grid{width:646px!important;}
	.portfolio-fixed-width-grid #grid .thumb{width:209px !important;height:143px !important; margin-bottom: 5px;}

	/*portfolio filter*/
	.portfolio-filter-wrapper{text-align: center;}
	
	/*portfolio
	----------------------------*/
	.featured-media-container{max-width:640px;height:auto !important;}
	.featured-media-container.full-width-video-wrapper{height: auto !important;}
	#content-wrapper section.slider-full-width #section-title{margin: 0 auto 50px auto;}
	#content-wrapper section.pages #grid-folio{width:646px !important;}
	#content-wrapper section.pages #grid-folio .thumb{width:209px !important;height:143px !important;}
	#content-wrapper section.portfolio-fixed-width-grid,#content-wrapper section.portfolio{margin: auto;}
	#folio-navigation{margin: auto;}
	
	/*blog
	----------------------------*/
	/*blog layout:grid*/
	.blog-post-grid-content{max-width:295px;}
	.blog-post-grid-content .blog-post-featured-media{width:295px; height:auto; float: none;}
	.blog-post-grid-content .blog-post-featured-media .thumb{width:295px;}
	section#comments ol.comment-list li ul.children li {width: 375px;}
	section#comments ol.comment-list li ul.children ul.children{margin-left:0;}
	section#comments ol.comment-list li.depth-1>div,ol.comment-list li ul.children li{padding:15px !important;}
	section#comments ol.comment-list li ul.children{margin-left:40px !important;}
	section#comments ol.comment-list li.comment .commentary {padding-left: 85px !important;}
	
	/*blog layout:regular*/
	.content-inner-left{width:415px;}
	.content-inner-right{width:415px;}
	aside.sidebar{width:180px !important;}
	.blog-post-content .blog-post-featured-media{width:420px; height:auto; float:left;margin-bottom:30px; overflow:hidden;position:relative;}
	.blog-post-content .blog-post-featured-media .thumb{width:415px;}
	.blog-post-content .video{width:415px !important;height:233px !important;}
	section#blog-post-comments ol.comment-list li ul.children li{width:100%;}
	.sticky .blog-post-content .blog-post-featured-media,.sticky .blog-post-content .blog-post-featured-media .thumb{width:365px;}
	.sticky .blog-post-content .blog-post-featured-media .video,.sticky .blog-post-content .blog-post-featured-media .flexslider{width: 365px !important;height:auto;}
	
	/*form elements
	----------------------------*/	
	textarea {width:415px;}

	/*footer
	----------------------------*/
	#footer-wrapper{margin-left: 0;}
	#footer-wrapper #footer-bottom ul.connect li {display: inline-block;}
	#footer-wrapper #footer-top,#footer-wrapper #footer-bottom {margin:auto;}
	
	/*media
	----------------------------*/
	.display-image{max-width:640px;height:auto !important;}
	
	/*video*/
	.video{ max-width:640px !important; height:auto;}
	.featured-media-container.full-width-video-wrapper .video{width:100% !important; max-width:100% !important;}
	
	/*thumbs*/
	.thumb{max-width:640px !important;height:auto;}
	
	/*wp native gallery*/
	.gallery-columns-8 .gallery-item{ width: 25% !important;}
	.gallery-columns-3 .gallery-item,.gallery-columns-5 .gallery-item,.gallery-columns-6 .gallery-item,.gallery-columns-7 .gallery-item,.gallery-columns-9 .gallery-item{ width: 33.3% !important;}
	.gallery br{display:none;}
	
	/*flexslider*/
	.flexslider{max-width: 640px;height: auto !important;}

	/*shortcodes
	----------------------------*/
	/*accordions and tabs*/
	.accordion div.video, .accordion div.video .featured_flowplayer,
	.tabs div.video, .tabs div.video .featured_flowplayer {clear:both; width:100% !important; height:340px !important; }
	div.video video, div.video iframe, div.video object, div.video embed, div.video div { width:100%; height:100% !important; max-width:100% !important; max-height:100% !important; }

}

@media only screen and (max-width: 768px) {
	
	/* responsive tabs */
	.tabs .tabs_nav, .tabs .tabs_nav li { width:100%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;}
	
	/* responsive pricing tables */
	.pricing_table .pricing_table_col,
	.pricing_table.pricing_table_two_cols .pricing_table_col,
	.pricing_table.pricing_table_three_cols .pricing_table_col,
	.pricing_table.pricing_table_four_cols .pricing_table_col,
	.pricing_table.pricing_table_five_cols .pricing_table_col {
		clear:both;
		width:100%;
		border-radius:3px;
		margin-bottom:16px;
	}
	.pricing_table .pricing_table_col:last-child {
		margin-bottom:0;
	}
}

/*Mobile Layout: Landscape

-----------------------------------------------*/
@media only screen and (min-width: 480px) and (max-width: 767px) {

	/*common
	----------------------------*/
	#header-wrapper #header-inner,
	#header-wrapper .header-widget-wrapper,
	#section-title,
	.portfolio-full-width-grid .sub-section-title,
	#content-wrapper section.homepage,
	.sub-section-title,
	.portfolio-button,
	.portfolio-full-width-grid .portfolio-button,
	#content-wrapper section.latest-posts-grid,
	#content-wrapper section.latest-posts-grid,
	#content-wrapper section.portfolio-fixed-width-grid,
	#content-wrapper section.portfolio,
	.featured-media-container.full-width-video-wrapper .video,
	#folio-navigation,
	#content-wrapper section.pages,
	#footer-wrapper #footer-top, 
	#footer-wrapper #footer-bottom{max-width:420px;}

	/*header
	----------------------------*/
	#header-wrapper{width:100%;position:relative; padding-left: 0;}
	#header-wrapper #header-inner {height:auto;overflow:hidden;margin: 0 auto;padding-top: 30px;}
	#header-wrapper .header-widget-wrapper,#header-wrapper ul.connect{display: block;}
	#header-wrapper ul.connect li{float: none;}
	#header-wrapper .header-widget-box{max-width: 100%;}
	#header-wrapper .header-widget-wrapper{margin: 0 auto;}
	#header-wrapper .header-widget-wrapper.last-wrapper ul li:last-child{border: none;padding-bottom: 0;}

	/*Toggle Button*/
	#header-wrapper .mobile-widget-box-toggle-wrapper{display: block;}
	#header-wrapper .header-widget-box{position: absolute; top: 0px; left: 0px; width: 100%; overflow: hidden; height: 45px; -webkit-box-sizing: border-box;-moz-box-sizing: border-box; box-sizing: border-box;}
	#header-wrapper .header-widget-box .header-outer-widget-wrapper{float:left;padding: 25px 0 45px 0;}

	header #logo {margin:0 auto 30px auto;float:none;}
	header .mobile-menu-toggle{display:block;}

	/*menu*/
	header nav#primary-nav ul{text-align: center;margin-top:0px;display:none;}
	header nav#primary-nav ul li{position:static;}
	
		/*sub menu*/
		header nav#primary-nav .menu ul li ul.sub-menu,header nav#primary-nav .menu ul li ul.children{border-bottom: 1px solid #f6f6f6; border-top: 1px solid #f6f6f6;color: #ccc;margin-top:0;display: block !important;position: inherit;top: auto;white-space: normal;width: 100%;z-index: auto;}
		header nav#primary-nav .menu ul li:last-child ul.sub-menu,header nav#primary-nav .menu ul li:last-child ul.children{border-bottom:none;padding-bottom:0;}
		header nav#primary-nav .menu ul li ul.sub-menu li,header nav#primary-nav .menu ul li ul.children li{float:none;position:auto;z-index:auto;padding:0;width:100%;line-height:15px;}
	
	/*content
	----------------------------*/
	#content-wrapper{margin-left: 0;padding-bottom: 0;}
	#content-wrapper section.pages{margin:auto;}

	/*homepage
	----------------------------*/
	.epic-slider{height: 300px !important;}
	#content-wrapper section.homepage{margin: auto;}
	#content-wrapper section.latest-posts-grid{margin:0 auto;}
	#content-wrapper section.latest-posts-below-content{margin:50px auto 0 auto;}
	#content-wrapper section.latest-posts-grid #content-inner-blog-grid article.blog-post{margin-bottom: 50px;}
	#content-wrapper section.latest-posts-grid #content-inner-blog-grid article.blog-post:last-child{margin-bottom:0;}
	.portfolio-full-width-grid .sub-section-title{margin: 20px auto 50px auto;}
	.portfolio-full-width-grid .portfolio-button{margin: 50px auto 0 auto;}

	/*portfolio index grid
	----------------------------*/
	.portfolio-fixed-width-grid #grid { width:423px!important; margin-left: -3px; margin-top: 1px;}
	.portfolio-fixed-width-grid #grid .thumb{ width:138px !important; height:94px !important; margin-bottom: 3px; margin-left: 3px;}
	.portfolio-full-width-grid #grid .thumb{width: 33.333%;height:auto;}

	/*portfolio filter*/
	.portfolio-filter-wrapper{text-align: center;padding-top:16px;}
	.portfolio-filter-wrapper a{margin-bottom: 6px;}
	
	/*portfolio
	----------------------------*/
	.featured-media-container{max-width:420px;height:auto !important; overflow:inherit!important;}
	.featured-media-container.full-width-video-wrapper{height: auto !important;}
	.featured-media-container.full-width-video-wrapper .video{margin: auto;}
	.featured-media-container .full-width-featured-image{height: 300px;}
	.featured-media-container .column-featured-half,.featured-media-container .column-featured-half.featured-info{width:100%;}
	#content-wrapper.portfolio-project .full-width-video-wrapper{margin-top: 0;}
	#content-wrapper section.slider-full-width #section-title{margin: 0 auto 50px auto;}
	#content-wrapper section.pages #grid-folio{width:426px !important;}
	#content-wrapper section.pages #grid-folio .thumb{width:207px !important;height:142px !important;}
	#content-wrapper section.portfolio-fixed-width-grid,#content-wrapper section.portfolio{margin: auto;}
	#folio-navigation{margin: auto;}
	.epic-slider.fullscreen{height: 100%;}
	
	/*blog
	----------------------------*/
	/*blog layout:grid*/
	.blog-post-grid-content{max-width:420px;}
	.blog-post-grid-content .blog-post-featured-media{width:420px; height:auto;}
	.blog-post-grid-content .blog-post-featured-media .thumb{width:420px;}
	.blog-pagination,.blog-post-navigation{border-bottom:1px solid #e2e2e2; padding-bottom:20px; overflow:hidden;}
	
	/*blog layout:regular*/
	.content-inner-left{width:100%;}
	.content-inner-right{width:100%;}
	aside.sidebar{width:100% !important;margin-top: 50px;padding-top: 50px;border-top:1px solid #e6e6e6;}
	.blog-post-content .blog-post-featured-media{width:420px; height:auto; float:left;margin-bottom:30px; overflow:hidden;position:relative;}
	.blog-post-content .blog-post-featured-media .thumb{width:100%;}
	.blog-post-content .video{width:415px !important;height:236px !important;}
	section#comments ol.comment-list li ul.children {margin-left:0;width:100%;}
	section#comments ol.comment-list li ul.children li{width: 100%;}
	section#comments ol.comment-list li ul.children li:after {position:absolute;content:''; top:-10px; left:0; width: 0px; height: 0px; border-top:0;border-right:10px solid transparent;border-bottom:10px solid #fff;border-left:0;border-style: inset;}
	section#comments ol.comment-list li ul.children li,#commentform ul, #commentform ul li,#commentform ul, #commentform ul li textarea {width: 100% !important;}
	.sticky .blog-post-content .blog-post-featured-media,.sticky .blog-post-content .blog-post-featured-media .thumb,.sticky .blog-post-content .blog-post-featured-media .video,.sticky .blog-post-content .blog-post-featured-media .flexslider{width:370px !important;}

	/*pagination*/
	.blog-pagination,.blog-post-navigation{border-bottom:1px solid #e2e2e2; padding-bottom:50px; overflow:hidden;}
	.pagination{float:left;width:100%;}
	#content-inner-blog-grid .pagination{float:left;width:100%;margin-bottom: 0;}
	
	/*form elements
	----------------------------*/	
	input[type=text].text-field,input[type=email].text-field,textarea{width:100%;}
	
	/*footer
	---------------------------*/
	#footer-wrapper {margin: 50px 0 0 0;}
	#footer-wrapper #footer-top footer .column-footer-widget.last{margin-bottom:0 !important;}
	#footer-wrapper #footer-bottom ul.connect li {display: inline-block;}
	#footer-wrapper #footer-top,#footer-wrapper #footer-bottom {margin:auto;}
	
	/*media
	----------------------------*/
	.display-image{max-width:420px;height:auto !important;}

	/*captions*/
	.caption,.centered-caption-wrapper,.caption-table{position: relative; overflow: hidden;height: auto;}
	.caption,.caption-table{position: relative; overflow: hidden;}
	.caption{width:100% !important; position:relative; height:auto; background:#333; border:1px solid #e6e6e6; padding:20px !important; height:auto !important; top:auto !important; left:auto !important; bottom:auto !important; right:auto !important; text-align:left !important; float:none !important; margin: 0 !important;}
	.display-image .caption .size-1,.display-image .caption .size-2,.display-image .caption .size-3,.display-image .caption .size-4,.display-image .caption .size-5,.display-image .caption .size-6{width:100%;color: #000;background:none; margin:0; float: none !important;font-size: 18px;line-height: 16px;border:none;padding: 0;}
	.display-image .caption p,.display-image .divider, .display-image .divider.thin, .display-image .divider.thick{background:none;color:#999;padding:0;border:none;font:12px/19px Arial, Helvetica, sans-serif !important; }
	.display-image .divider{display: none;}

	/*video*/	
	.video{ width:420px !important; height:236px !important; }

	/*thumbs*/
	.thumb{max-width:420px !important;;height:auto;}
	
	/*wp native gallery*/
	.gallery .gallery-item{display: block;}
	.gallery-columns-4 .gallery-item,.gallery-columns-6 .gallery-item,.gallery-columns-8 .gallery-item{width: 50% !important;}
	.gallery-columns-5 .gallery-item,.gallery-columns-7 .gallery-item,.gallery-columns-9 .gallery-item{width: 33.333% !important;}
	.gallery .gallery-caption{display:none;position: relative; bottom: auto;background:#333;color:#999;font:12px/19px Arial, Helvetica, sans-serif !important; text-align: left;padding: 20px;}
	.gallery br{display:none;}

	/*epic slider - theme specific*/
	.epic-slider .errorMsg{color: #EF644E !important;display: block;margin-top: 90px;text-align: center;}

	/*flexslider*/
	.flexslider{max-width: 420px;height: auto !important;}
	.flex-caption{left:82px;bottom:20px;}

	/*shortcodes
	----------------------------*/
	/*cols*/
	.column_one_half, .column_one_third,.column_one_fourth,.column_two_thirds, .column_three_fourths{width:100%; margin-right:0px;margin-left:0px;}
	#footer-wrapper #footer-top footer .column-footer-widget{margin-bottom:50px;}
	
	/*accordions and tabs*/
	.accordion div.video, .accordion div.video .featured_flowplayer,
	.tabs div.video, .tabs div.video .featured_flowplayer {  clear:both; width:380px !important; height:215px !important; }
	div.video video, div.video iframe, div.video object, div.video embed, div.video div { width:100%; height:100% !important; max-width:100% !important; max-height:100% !important; }
	.accordion .column_one_half, .accordion .column_one_third, .accordion .column_one_fourth, .accordion .column_two_thirds, .accordion .column_three_fourths,
	.tabs .column_one_half, .tabs .column_one_third, .tabs .column_one_fourth, .tabs .column_two_thirds, .tabs .column_three_fourths { width:380px !important; margin-right:0 !important; }
	.pricing_table .pricing_table_col.featured{margin-top:0;}

	blockquote { width:100% !important; margin-right:0 !important; }
	blockquote.quote-overlay-big{padding:0 !important;}
	blockquote.quote-boxed-border {width:373px !important;}
	.accordion blockquote, .tabs blockquote { width:380px !important; margin-right:0 !important; }
	
	/*typo
	----------------------------*/
	#section-title h1, #section-title, #section-title h1 span, #section-title span{font-size:60px;line-height:55px;}
	#teaser{font-size:20px;line-height: 24px;}
	h1, h1 span{font-size:40px;line-height:37px;}
	h2, h2 span{font-size:35px;line-height:33px;}
	h3, h3 span{font-size:30px;line-height:29px;}
	h4, h4 span{font-size:25px;line-height:25px;}
	h5, h5 span{font-size:20px;line-height:20px;}
	h6, h6 span{font-size:18px;line-height:19px;}

	/*misc
	----------------------------*/
	.last{margin-bottom:50px !important;}	

}

/*Mobile Layout: Portrait

-----------------------------------------------*/

@media only screen and (max-width: 479px){

	/*common
	----------------------------*/
	#header-wrapper #header-inner,
	#header-wrapper .header-widget-wrapper,
	#section-title,
	.portfolio-full-width-grid .sub-section-title,
	#content-wrapper section.homepage,
	.sub-section-title,
	.portfolio-button,
	.portfolio-full-width-grid .portfolio-button,
	#content-wrapper section.latest-posts-grid,
	#content-wrapper section.latest-posts-grid,
	#content-wrapper section.portfolio-fixed-width-grid,
	#content-wrapper section.portfolio,
	.featured-media-container.full-width-video-wrapper .video,
	#folio-navigation,
	#content-wrapper section.pages,
	#footer-wrapper #footer-top, 
	#footer-wrapper #footer-bottom{max-width:290px;}

	/*header
	----------------------------*/
	#header-wrapper{width:100%;position:relative; padding-left: 0;}
	#header-wrapper #header-inner {height:auto;overflow:hidden;margin: 0 auto;padding-top: 30px;}
	#header-wrapper .header-widget-wrapper,#header-wrapper ul.connect{display: block;}
	#header-wrapper ul.connect li{float: none;}
	#header-wrapper .header-widget-box{max-width: 100%;}
	#header-wrapper .header-widget-wrapper{margin: 0 auto;}
	#header-wrapper .header-widget-wrapper.last-wrapper ul li:last-child{border: none;padding-bottom: 0;}

	/*Toggle Button*/
	#header-wrapper .mobile-widget-box-toggle-wrapper{display: block;}
	#header-wrapper .header-widget-box{position: absolute; top: 0px; left: 0px; width: 100%; overflow: hidden; height: 45px; -webkit-box-sizing: border-box;-moz-box-sizing: border-box; box-sizing: border-box;}
	#header-wrapper .header-widget-box .header-outer-widget-wrapper{float:left;padding: 25px 0 45px 0;}

	header #logo {margin:0 auto 30px auto;float:none;}
	header .mobile-menu-toggle{display:block;}
	
	/*menu*/
	header nav#primary-nav ul{text-align: center;margin-top:0px;display:none;}
	header nav#primary-nav ul li{position:static;}
	
		/*sub menu*/
		header nav#primary-nav .menu ul li ul.sub-menu,header nav#primary-nav .menu ul li ul.children{border-bottom: 1px solid #f6f6f6; border-top: 1px solid #f6f6f6;color: #ccc;margin-top:0;display: block !important;position: inherit;top: auto;white-space: normal;width: 100%;z-index: auto;}
		header nav#primary-nav .menu ul li:last-child ul.sub-menu,header nav#primary-nav .menu ul li:last-child ul.children{border-bottom:none;padding-bottom:0;}
		header nav#primary-nav .menu ul li ul.sub-menu li,header nav#primary-nav .menu ul li ul.children li{float:none;position:auto;z-index:auto;padding:0;width:100%;line-height:15px;}

	/*content
	----------------------------*/
	#content-wrapper{margin-left: 0;padding-bottom: 0;}
	#content-wrapper section.pages{margin:auto;}

	/*homepage
	----------------------------*/
	.epic-slider{height: 300px !important;}
	#content-wrapper section.homepage{margin: auto;}
	#content-wrapper section.latest-posts-grid{margin:0 auto;}
	#content-wrapper section.latest-posts-below-content{margin:50px auto 0 auto;}
	#content-wrapper section.latest-posts-grid #content-inner-blog-grid article.blog-post{margin-bottom: 50px;}
	#content-wrapper section.latest-posts-grid #content-inner-blog-grid article.blog-post:last-child{margin-bottom:0;}
	.portfolio-full-width-grid .sub-section-title{margin: 20px auto 50px auto;}
	.portfolio-full-width-grid .portfolio-button{margin: 50px auto 0 auto;}

	/*portfolio index grid
	----------------------------*/
	.portfolio-fixed-width-grid #grid{width:290px!important; margin-left:0 !important;}
	.portfolio-fixed-width-grid #grid .thumb{width:290px !important;height:199px !important; margin-bottom: 4px;margin: 0 0 6px 0;}
	.portfolio-full-width-grid #grid .thumb{width: 50%;height:auto;}

	/*portfolio
	----------------------------*/
	.featured-media-container{max-width:290px;height:auto !important; overflow:inherit!important;}
	.featured-media-container.full-width-video-wrapper{height: auto !important;}
	.featured-media-container.full-width-video-wrapper .video{margin: auto;}
	.featured-media-container .full-width-featured-image{height: 300px;}
	.featured-media-container .column-featured-half,.featured-media-container .column-featured-half.featured-info{width:100%;}
	.featured-media-container .column-featured-half{width:100%;}
	#content-wrapper.portfolio-project .full-width-video-wrapper{margin-top: 0;}
	#content-wrapper section.slider-full-width #section-title{margin: 0 auto 50px auto;}
	#content-wrapper section.pages #grid-folio{width:290px !important; margin-left:0 !important;}
	#content-wrapper section.pages #grid-folio .thumb{width:290px !important;height:199px !important; margin:0 0 6px 0;}
	#content-wrapper section.portfolio-fixed-width-grid,#content-wrapper section.portfolio{margin: auto;}
	#folio-navigation{margin: auto;}
	.epic-slider.fullscreen{height: 100%;}

	/*portfolio filter*/
	.portfolio-filter-wrapper{text-align: center;padding-top:16px;}
	.portfolio-filter-wrapper a{margin-bottom: 6px;}
	
	/*blog
	----------------------------*/
	
	/*blog layout:grid*/
	.blog-post-grid-content{max-width:290px;}
	.blog-post-grid-content .blog-post-featured-media{width:290px; height:auto;}
	.blog-post-grid-content .blog-post-featured-media .thumb{width:290px;}
	
	/*blog layout:regular*/
	.content-inner-left{width:100%;}
	.content-inner-right{width:100%;}
	aside.sidebar{width:100% !important;margin-top: 50px;padding-top: 50px;border-top:1px solid #e6e6e6;}
	.blog-post-content .blog-post-featured-media{width:290px; height:auto; float:left;margin-bottom:30px; overflow:hidden;position:relative;}
	.blog-post-content .blog-post-featured-media .thumb{width:100%;}
	.blog-post-content .video{width:290px !important;height:163px !important;}
	section#comments ol.comment-list li ul.children{margin-left:0; width: 100%;}
	section#comments ol.comment-list li ul.children li{width: 100%;}
	section#comments ol.comment-list li ul.children li:after {position:absolute;content:''; top:-10px; left:0; width: 0px; height: 0px;border-top:0;border-right:10px solid transparent;border-bottom:10px solid #fff;border-left:0; border-style: inset;}
	section#comments ol.comment-list li ul.children li,#commentform ul, #commentform ul li,#commentform ul, #commentform ul li textarea {width: 100% !important;}
	.sticky .blog-post-content .blog-post-featured-media,.sticky .blog-post-content .blog-post-featured-media .thumb{width:240px;}
	.sticky .blog-post-content .blog-post-featured-media,.sticky .blog-post-content .blog-post-featured-media .thumb,.sticky .blog-post-content .blog-post-featured-media .video,.sticky .blog-post-content .blog-post-featured-media .flexslider{width:240px !important;}

	/*pagination*/
	.blog-pagination,.blog-post-navigation{border-bottom:1px solid #e2e2e2; padding-bottom:50px; overflow:hidden;}
	.pagination{float:left;width:100%;}
	#content-inner-blog-grid .pagination{float:left;width:100%;margin-bottom: 0;}

	/*form elements
	----------------------------*/
	input[type=text].text-field,input[type=email].text-field,textarea{width:100%;}
	
	/*footer
	---------------------------*/
	#footer-wrapper {margin: 50px 0 0 0;}
	#footer-wrapper #footer-top footer .column-footer-widget.last{margin-bottom:0 !important;}
	#footer-wrapper #footer-bottom ul.connect li {display: inline-block;}
	#footer-wrapper #footer-top,#footer-wrapper #footer-bottom {margin:auto;}
	
	/*media
	----------------------------*/
	.display-image{max-width:290px;height:auto !important;}
	
	/*captions*/
	.caption,.centered-caption-wrapper,.caption-table{position: relative; overflow: hidden;height: auto;}
	.caption{width:100% !important;position:relative;height:auto;background:#333; border:1px solid #e6e6e6; padding:20px  !important; height:auto !important;top:auto !important;left:auto !important;bottom:auto !important;right:auto !important; text-align:left !important; float:none !important;margin: 0 !important;}
	.display-image .caption .size-1,.display-image .caption .size-2,.display-image .caption .size-3,.display-image .caption .size-4,.display-image .caption .size-5,.display-image .caption .size-6{width:100%;color: #000;background:none; margin:0; float: none !important;font-size: 18px;line-height: 16px;border:none;padding: 0;}
	.display-image .caption p,.display-image .divider, .display-image .divider.thin, .display-image .divider.thick{background:none;color:#999;padding:0;border:none;font:12px/19px Arial, Helvetica, sans-serif !important; }
	.display-image .divider{display: none;}
	
	/*video*/	
	.video{width:290px !important;height:163px !important;}
	
	/*thumbs*/
	.thumb{max-width:290px !important;height:auto;}
	
	/*wp native gallery*/
	.gallery .gallery-item{display: block;}
	.gallery-columns-4 .gallery-item,.gallery-columns-5 .gallery-item,.gallery-columns-6 .gallery-item,.gallery-columns-8 .gallery-item{width:50% !important;}
	.gallery-columns-3 .gallery-item,.gallery-columns-7 .gallery-item,.gallery-columns-9 .gallery-item{width: 33.333% !important;}
	.gallery .gallery-caption{display:none;position: relative; bottom: auto;background:#333;color:#999;font:12px/19px Arial, Helvetica, sans-serif !important; text-align: left;padding: 20px;}
	.gallery br{display:none;}

	/*epic slider - theme specific*/
	.epic-slider .errorMsg{color: #EF644E !important;display: block;margin-top: 90px;text-align: center;}

	/*flexslider*/
	.flexslider{max-width: 290px;height: auto !important;}
	.flex-caption{left:82px;bottom:20px; font-size: 12px;}
	
	/*shortcodes
	----------------------------*/
	/*cols*/
	.column_one_half, .column_one_third,.column_one_fourth,.column_two_thirds, .column_three_fourths{width:100%; margin-right:0px;margin-left:0px;}
	#footer-wrapper #footer-top footer .column-footer-widget{margin-bottom:50px;}
		
	/*accordions and tabs*/
	.accordion div.video, .accordion div.video .featured_flowplayer,
	.tabs div.video, .tabs div.video .featured_flowplayer  { clear:both; width:250px !important; height:140px !important; }
	div.video video, div.video iframe, div.video object, div.video embed, div.video div { width:100%; height:100% !important; max-width:100% !important; max-height:100% !important; }
	.accordion .column_one_half, .accordion .column_one_third, .accordion .column_one_fourth, .accordion .column_two_thirds, .accordion .column_three_fourths,
	.tabs .column_one_half, .tabs .column_one_third, .tabs .column_one_fourth, .tabs .column_two_thirds, .tabs .column_three_fourths { width:250px !important; margin-right:0 !important; }
	.pricing_table .pricing_table_col.featured{margin-top:0;}
	blockquote { width:100% !important; margin-right:0 !important; }
	blockquote.quote-overlay-big{padding:0 !important;}
	blockquote.quote-boxed-border {width:243px !important;}
	blockquote.quote-single-border {width:250px !important;}
	.accordion blockquote, .tabs blockquote { width:250px !important; margin-right:0 !important; }

	/*typo
	----------------------------*/
	#section-title h1, #section-title, #section-title h1 span, #section-title span {font-size:50px;line-height:47px;}
	#teaser{font-size:18px;line-height: 22px;}
	h1, h1 span{font-size:40px;line-height:37px;}
	h2, h2 span{font-size:35px;line-height:33px;}
	h3, h3 span{font-size:30px;line-height:29px;}
	h4, h4 span{font-size:25px;line-height:25px;}
	h5, h5 span{font-size:20px;line-height:20px;}
	h6, h6 span{font-size:18px;line-height:19px;}

	/*misc
	----------------------------*/
	.last{margin-bottom:50px !important;}	

}