/* ==================================================
    RESPONSIVE    
   ================================================== */

/* ---------- All non mobile devices (when the desktop navigation is showing) ---------- */
@media only screen and ( min-width: 1121px ) {

	.no-padding-top-desktop { padding-top: 0; }
	.no-padding-bottom-desktop { padding-bottom: 0; }
	.no-margin-top-desktop { margin-top: 0; }
	.no-margin-bottom-desktop { margin-bottom: 0; }
	
	
	.header-animate .wrapper > .hentry:first-child > .rev_slider_wrapper:first-child,
	.header-animate .wrapper > .hentry:first-child > .hidden + .rev_slider_wrapper,
	.header-animate .wrapper > .hentry:first-child > .google-map:first-child,
	.header-animate .wrapper > .hentry:first-child > .hidden + .google-map {    margin-top: 80px !important; }
	
}

/* Large Desktop */
@media only screen and ( max-width: 1440px ) {
	
}

/* Small Desktop */
@media only screen and ( max-width: 1280px ) {
	
}

/* ---------- All non desktop devices (when the mobile navigation is showing) ---------- */
@media only screen and ( max-width: 1120px ) { 
	
	.nav-open { overflow: hidden !important;	}
		
		.header-animate .header-bg {
			-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
			opacity: 1;
		}
			
		.js .site-header-wrapper,
		.js .header-fixed .site-header-wrapper {
			height: 100%;
			overflow-y: scroll;
			position: fixed;
			-moz-transform: translate(0,-110%);
			-ms-transform: translate(0,-110%);
			-o-transform: translate(0,-110%);
			-webkit-transform: translate(0,-110%);
			transform: translate(0,-110%);
			transition: all 0.5s;			
		}
		
		.js .nav-open .site-header-wrapper,
		.js  .header-fixed.nav-open .site-header-wrapper {
			-moz-transform: translate(0,0);
			-ms-transform: translate(0,0);
			-o-transform: translate(0,0);
			-webkit-transform: translate(0,0);
			transform: translate(0,0);
			-webkit-overflow-scrolling: touch;
		}
	
		.site-header-wrapper,
		.header-fixed .site-header-wrapper { position: relative; }
		
			.site-header { 
				height: auto;
				min-height: 100%;
			}
				
				.js .logo { display: none; }
				
				.mobile-logo .logo { display: block; }
				
				.site-header > div,
				.site-header > div.site-width { padding: 0 40px 60px; }
				
				.site-header nav {
					float: none;
					max-width: 999px;					
				}
					
					.js .mobile-nav-close { display: block; }
					
					#primary-nav {
						clear: both;
						float: none;
						max-width: 100%;
						padding: 0;
					}
						
						#primary-nav > li {}
						
						#primary-nav li {
							border: none !important;
							margin: 0;
							display: block;
						}
						
							#primary-nav > li > a {
								font-size: 14px;
								padding: 10px 0;
							}

							#primary-nav > .menu-item-has-children > a:after {
								right: 0;
								top: 10px;
							}
							
								#primary-nav li li li a { padding-left: 40px; }
							
						#primary-nav ul,
						#primary-nav > li > ul,
						#primary-nav li li,
						#primary-nav li:hover ul ul,
						#primary-nav li:hover ul ul ul,
						#primary-nav li:hover ul ul ul ul,
						#primary-nav > li.float-left > ul,
						#primary-nav > li > ul ul,
						#primary-nav > li li.float-left ul {
							background: none;
							display: block;
							left: auto;
							position: relative;
							right: auto;
							top: auto;
							width: auto;
						}
						
						#primary-nav > li:hover > a { background: none; }
						
						#primary-nav li:hover > a,
						#primary-nav > li a:hover {
							-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
							opacity: 0.5;
						}
						
						#primary-nav li a:hover {
							-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
							opacity: 1;
						}
						
		.js .mobile-logo { display: block; }
	
	.header-fixed .wrapper { padding-top: 0; }

	.header-animate .wrapper > div:first-child > .entry-body:first-child,
	.header-animate .wrapper > section:first-child > .entry-body:first-child,
	.header-animate .wrapper > div:first-child > .hidden + .entry-body,
	.header-animate .wrapper > section:first-child > .hidden + .entry-body { padding-top: 120px; }	

		.background-video { display: none!important; }
	
		.background-image { display: block !important; }
		
		.background-image.parallax {
			background-attachment: scroll !important;
			background-position: 50% 50% !important;
			}

		.header-animate .wrapper > div:first-child .entry-header,
		.header-animate .wrapper > section:first-child .entry-header{ padding-top: 200px; }
	
		.wrapper > .hentry:first-child > .hero-scroll-link { bottom: 20px; }
	
	
	
	/* ---------- Footer ---------- */	
	
	.site-footer { position: relative; }


	/* ---------- Portfolio Grid ---------- */
	
	.portfolio-ajax-wrapper .hentry .entry-body:first-child { padding-top: 120px; }
	
		#portfolio-ajax-close {
			top: auto;
			bottom: 40px;
			left: 50%;
			margin-left: -21px;
		}
	.portfolio-grid.site-width {
		margin-bottom: 60px;
		margin-top: 60px;
		padding: 0;
	}
	
	.portfolio-grid .hentry { width: 50%; }
		
		.portfolio-grid .blank { display: none; }
		
	
	/* ---------- Gallery Shortcode ---------- */
	
	.gallery-columns-2 .gallery-item,
    .gallery-columns-3 .gallery-item,
    .gallery-columns-4 .gallery-item,
    .gallery-columns-5 .gallery-item,
    .gallery-columns-6 .gallery-item,
    .gallery-columns-7 .gallery-item,
    .gallery-columns-8 .gallery-item,
    .gallery-columns-9 .gallery-item {
        height: auto;        
        width: 50%;
    }
	
	/* ---------- Styling ---------- */
	
	.no-padding-top-mobile { padding-top: 0; }
	.no-padding-bottom-mobile { padding-bottom: 0; }
	.no-marign-top-mobile { margin-top: 0; }
	.no-margin-bottom-mobile { margin-bottom: 0; }
	
}

@media only screen and ( max-width: 1000px ) { 
	.portfolio-grid.site-width { 
		margin-bottom: 0;
		margin-top: 0;
	}
}


/* Not one column layout */
@media only screen and ( min-width: 768px ) {
	
	/* Hide mobile only content */
	.show-mobile { display: none; }
	
	/**
	 * Adjust top margin of first item in columns
	 * if row of columns is first content in section
	 **/
	 
	.entry-content > .fourth:first-child > *:first-child,
	.entry-content > .fourth:first-child + .fourth > *:first-child,
	.entry-content > .fourth:first-child + .fourth  + .fourth > *:first-child,
	.entry-content > .fourth:first-child + .fourth  + .fourth + .fourth > *:first-child,	
	.entry-content > .fourth:first-child + .half > *:first-child,
	.entry-content > .fourth:first-child + .fourth  + .half > *:first-child,
	.entry-content > .fourth:first-child + .half + .fourth > *:first-child,
	.entry-content > .fourth:first-child + .three-fourths > *:first-child,	
	
	.entry-content > .third:first-child > *:first-child,
	.entry-content > .third:first-child + .third > *:first-child,
	.entry-content > .third:first-child + .third  + .third > *:first-child,	
	.entry-content > .third:first-child + .two-thirds > *:first-child, 
	
	.entry-content > .two-third:first-child > *:first-child,
	.entry-content > .two-third:first-child + .third > *:first-child,
	
	.entry-content > .half:first-child > *:first-child,
	.entry-content > .half:first-child + .half > *:first-child,
	.entry-content > .half:first-child + .fourth > *:first-child, 
	.entry-content > .half:first-child + .fourth + .fourth > *:first-child,
	
	.entry-content > .three-fourths:first-child  > *:first-child,
	.entry-content > .three-fourths:first-child + .fourth > *:first-child  { margin-top: 0; }
	
	/* ----- */
	
	.entry-content > .fourth:first-child  > .post-subtitle:first-child:before,
	.entry-content > .fourth:first-child + .foruth > .post-subtitle:first-child:before,
	.entry-content > .fourth:first-child + .fourth + .fourth > .post-subtitle:first-child:before,
	.entry-content > .fourth:first-child + .fourth + .fourth + .fourth > .post-subtitle:first-child:before,
	.entry-content > .fourth:first-child + .half > .post-subtitle:first-child:before,	
	.entry-content > .fourth:first-child + .fourth + .half > .post-subtitle:first-child:before,
	.entry-content > .fourth:first-child + .half + .fourth > .post-subtitle:first-child:before,
	.entry-content > .fourth:first-child + .three-fourths > .post-subtitle:first-child:before,
	
	.entry-content > .third:first-child > .post-subtitle:first-child:before,
	.entry-content > .third:first-child + .third > .post-subtitle:first-child:before,
	.entry-content > .third:first-child + .third + .third > .post-subtitle:first-child:before,
	.entry-content > .third:first-child + .two-thirds > .post-subtitle:first-child:before,
	
	.entry-content > .two-thirds:first-child > .post-subtitle:first-child:before,
	.entry-content > .two-thirds:first-child + .third > .post-subtitle:first-child:before,
	
	.entry-content > .half:first-child > .post-subtitle:first-child:before,
	.entry-content > .half:first-child + .half > .post-subtitle:first-child:before,
	.entry-content > .half:first-child + .fourth > .post-subtitle:first-child:before,
	.entry-content > .half:first-child + .fourth + .fourth > .post-subtitle:first-child:before,
	
	.entry-content > .three-fourths:first-child  > .post-subtitle:first-child:before,
	.entry-content > .three-fourths:first-child + .fourth > .post-subtitle:first-child:before { margin-top: 0; }

}

/* One Column Layout */
@media only screen and ( max-width: 767px ) {
	
	/* Hide all desktop only content */
	.show-desktop { display: none; }
	
	h1,
	.post-title,
	.page-latest-posts-template h2,
	.entry-header .post-title,
	.page-hero-template .post-title	{	
		font-size: 26px;
		letter-spacing: 0;
		line-height: 36px;
	}
	
	h2 {
		font-size: 18px;
		line-height: 28px;
	}
	
	h3 {
		font-size: 16px;
		line-height: 26px;
	}
	
	h4,
	blockquote p {
		font-size: 14px;
		letter-spacing: 0;
		line-height: 24px;
	}

	blockquote,
	blockquote.alignleft,
	blockquote.alignright {
		padding: 0 20px;
		text-align: center;
		width: auto;
	}
	
	.entry-header { padding: 120px 0 !important; }
	
	.header-animate .wrapper > div:first-child > .entry-body:first-child,
	.header-animate .wrapper > section:first-child > .entry-body:first-child,
	.header-animate .wrapper > div:first-child > .hidden + .entry-body,
	.header-animate .wrapper > section:first-child > .hidden + .entry-body,
	.hentry > .entry-body { padding: 60px 0; }
	
	.wrapper .page-hero-template > .entry-body,
	.header-animate .wrapper > .page-hero-template:first-child > .entry-body:first-child,
	.header-animate .wrapper > .page-hero-template:first-child > .hidden + .entry-body { padding: 120px 0; }
	
	.hentry.page-latest-posts-template > .entry-body { padding-top: 0; }
		
		.hero-scroll-link { display: none !important; }
		
			.page-latest-posts-template h2 {
				float: none;
				width: 100%;
			}

			.page-latest-posts-template .post-date {
				clear: both;
				float: none;
				margin: 16px 0 0;
				text-align: left;
				width: 100%;
			}

	.main,
	.secondary {
		clear: both;
		float: none;
		margin: 0;
		width: 100%;
	}
		
		.main article { margin-right: 0; }
		
		.main .post-header span[class*='icon-'] { display: none; }
		
		.show-post-format-icons article.type-post { padding-left: 0; }
		
		.mobile-pagination { display: block; }
		
		.pagination { display: none; }
		
	.secondary {
		border-top: 1px solid #DDD;
		border-color: rgba( 0, 0, 0, 0.1 );
		padding-top: 60px;
		margin-top: 60px;
	}
	
	.text-color-light .secondary { border-color: rgba( 255, 255, 255, 0.1 ) }
		
		.sidebar { margin: 0; }
	
	
	/* ----- Footer ----- */
	
	.site-footer .widget { width: 50%; }
		
		.widget:nth-of-type(3) { clear: both; }
		
			.site-footer .widget:nth-of-type(5) .widget-inner { margin: 0 10px 40px; }
			
			.site-footer .widget:first-of-type .widget-inner,
			.site-footer .widget:nth-of-type(3) .widget-inner {						
				margin-left: 0;
				margin-right: 10px; 
			}
			
			.site-footer .widget:nth-of-type(2) .widget-inner {
				margin-left: 10px;
				margin-right: 0;
			}
	
	.copyright .half {
		float: none;
		text-align: center;
		width: 100%;
	}
	
		.social-buttons + div { margin-top: 64px; }
		
	
	/* ----- Tables ----- */

    table, thead, tbody,
    th, td, tr {
		display: block;
		text-align: center;
	}

	tr {  margin-top: 2px; }
	
		td {
			border-left: none;
			min-height: 19px;
			position: relative;
		}

		td:before {
			position: absolute;
			top: 6px;
			left: 6px;
			width: 45%;
			padding-right: 10px;
			white-space: nowrap;
		}
	
	
	/* ----- Columns ----- */
	
	.fourth,
	.third,
	.half,
	.two-thirds,
	.three-fourths {
		clear: both;
		float: none;
		margin: 0;
		overflow: hidden;
		width: auto; 
	}
	
	.fourth:before,
	.fourth:after,
	.third:before,
	.third:after,
	.half:before,
	.half:after,
	.two-thirds :before,
	.two-thirds :afte,
	.three-fourths:before,
	.three-fourths:after {
		content: " "; /* 1 */
		display: table; /* 2 */
	}

	.fourth:after,
	.third:after,
	.half:after,
	.two-thirds :after,
	.three-fourths:after {    clear: both }
	
	.portfolio .entry-meta,
	.portfolio .entry-meta + .entry-content {
		float: none;
		margin-right: 0;
		width: auto;
	}
	
	.portfolio-media-holder,
	.portfolio-content-holder { 
		margin-left: 0;
		margin-right: 0;
		width: 100%;
	}
	
	.portfolio-align-right .portfolio-media-holder,
	.portfolio-align-left .portfolio-media-holder,
	.portfolio-item-gallery-v.portfolio-align-right .portfolio-media-holder,
	.portfolio-item-gallery-v.portfolio-align-left .portfolio-media-holder {
		margin-left: 0;
		margin-right: 0;
	}

	.portfolio-item-gallery-v.portfolio-align-right .portfolio-content-holder + .portfolio-media-holder,
	.portfolio-item-gallery-v.portfolio-align-left  .portfolio-content-holder + .portfolio-media-holder,
	.portfolio-media-holder + .portfolio-content-holder { margin-top: 40px; }
	
	.portfolio .entry-content + .entry-meta,
	.portfolio .entry-meta +	.entry-content { margin-top: 40px; }
	
}


@media only screen and ( max-width: 480px ) {

	.portfolio-grid .hentry,	
	.site-footer .widget { 
		margin-left: 0;
		margin-right: 0;
		width: 100%;
	}
	
		.portfolio-item-gallery-v.portfolio-align-center .portfolio-media-holder { padding-bottom: 60px; }
	
			.gallery-image .caption {
				background: none;
				color: #858585;
				font-size: 12px;
				line-height: 1em;
				margin: 16px 0;
				padding: 0;
				-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
				opacity: 0.75;
				position: relative;
				max-width: 100%;
				right: auto;
				top: auto;
			}
			
			.text-color-light .gallery-image .caption { color: #CCC; }
	
	.portfolio-grid .blank { display: none; }
	
	.gallery-horizontal img {
		float: none;
		height: auto;		
		width: 100%;
	}
	
	.gallery-horizontal img + img { margin: 4px 0 0; }
	
	.site-footer .widget .widget-inner,
	.site-footer .widget:first-of-type .widget-inner,
	.site-footer .widget:nth-of-type(2) .widget-inner,
	.site-footer .widget:nth-of-type(3) .widget-inner,
	.site-footer .widget:nth-of-type(4) .widget-inner,
	.site-footer .widget:nth-of-type(5) .widget-inner{ margin: 0 0 40px; }
	
	/* ---------- Gallery Shortcode ---------- */
	
	.gallery-columns-2 .gallery-item,
    .gallery-columns-3 .gallery-item,
    .gallery-columns-4 .gallery-item,
    .gallery-columns-5 .gallery-item,
    .gallery-columns-6 .gallery-item,
    .gallery-columns-7 .gallery-item,
    .gallery-columns-8 .gallery-item,
    .gallery-columns-9 .gallery-item {
        height: auto;
        width: 100%;
    }
	
}