/* Main /project-gallery Page */
.no-gallery-results {
	padding-top:25px;
}

.tunerworks-project-gallery {
	padding: 25px;
	background: rgba(255,255,255,0.7);
}
.tunerworks-project-gallery .search-fields > select, 
.tunerworks-project-gallery .search-fields > input {
    display: inline-block;
    width: 190px;
    margin-right: 15px;
}

.tunerworks-project-gallery .search-fields button {
    height: 29px;
    position: relative;
    top: 1px;
    font-weight: bold;
}

.gallery-thumb-wrapper {
    width: 360px;
    height: 260px;
    background-size: cover !important;
    background-position: center center !important;
	display: table;
	float:left;
	margin-right: 15px;
	margin-top: 15px;
}

.gallery-thumb-overlay {
    display: table-cell;
	background: rgba(0,0,0,0);
    height: 100%;
    vertical-align: middle;
    text-align: center;
    color: white;
	transition:0.4s all ease-in-out;
	padding:5px 20px 0 20px;
	transition:0.4s all ease-in-out;
}

.gallery-thumb-wrapper:hover .gallery-thumb-overlay{
    background: rgba(0,0,0,0.8);
	transition:0.4s all ease-in-out;	
}

.gallery-thumb-overlay h2 {
	color:white !important;
	opacity:0;
	transition:0.3s all ease-in-out;	
}
.gallery-thumb-overlay p {
    font-size: 13px;
	opacity:0;
	transition:0.4s all ease-in-out;	
}

.gallery-thumb-overlay:hover h2 {
	opacity:1;
	transition:0.4s all ease-in-out;	
}
.gallery-thumb-overlay:hover p {
	opacity:1;
	transition:0.4s all ease-in-out;	
}


/* Foobox icons were broken, use avada's? */
.fbx-close::before {
    content: "\f00d";
	font-family: "FontAwesome";
}
.fbx-next::before {
	content: "\f105";
	font-family: "FontAwesome";
}
.fbx-prev::before {
	content: "\f104";
	font-family: "FontAwesome";
}


/* Single Project Gallery Template */
.single-project #main {
    padding-top: 25px;
}

.project-archive-header {
	background:url('img/project-gallery-header.jpg') center center no-repeat;
	background-size:cover;
	padding: 190px 25px 110px 25px;
	text-align:center;
	color:white;
}

.foobox_font_preload {position:absolute; top:-100px; left:-100px;}
.project-gallery-overlay {
	padding: 190px 25px 110px 25px;
	text-align:center;
	color:white;
}

.project-gallery-overlay h1 {
    font-size: 50px;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: normal;
}
.project-gallery-overlay h3 { font-weight: bold; font-size:20px; text-align:center; margin-bottom:0; }
.project-gallery-overlay .features { font-size:20px; text-align:center; max-width:70%; margin:0 auto; }
.project-gallery-overlay h4 { margin: 25px; font-weight: normal; }
.project-gallery-overlay .red-separator { 
	margin: 0 auto;
	height: 3px;
	width: 50px;
	background: #e00;
}

.project-gallery-images {
   list-style: none;
   padding:0;
}

.project-gallery-images li {
    float: left;
    border: 5px solid white;
    margin: 5px;
    width: 24%;
}

.project-gallery-red-callout {
	background: #c4001c; 
	padding:50px; 
	margin-left:calc( (100vw - 100% ) / -2  );
	margin-right:calc( (100vw - 100% ) / -2   );
	text-align:center;
	color:white;
}

.project-gallery-red-callout h2 { color:white; }
.cta-round-white {
	color:#c4001c; 
	background:white;
	margin-top:15px; 
	margin-bottom:15px; 
	padding:15px 2rem 15px 2rem; 
	text-align:center; 
	border:2px solid white; 
	border-radius:50px;	
	display: inline-block;
}
.cta-round-white:hover {
	color:white;
	background:none;
}



/* Single Gallery Navigation */
.project-navigation {
    display:grid;
    grid-template-columns:1fr 1fr;
    align-content:center;
    padding: 25px 0;
}


.project-navigation a {
   font-weight:bold;
   color:white;
}
.project-navigation a:hover {
   color:#c4001c;
}

.project-navigation .nav-prev i,
.project-navigation .nav-prev i {
    position:relative; 
    top:2px;
}
.project-navigation .nav-next {
    text-align:right;
}

@media screen and (max-width:1190px) {
    .project-navigation {
        padding: 15px 2em;
    }
}
@media screen and (max-width:799px) {
    .project-navigation {
        grid-template-columns: 1fr;
        grid-gap:1em;
    }
    
    .project-navigation .nav-prev,
    .project-navigation .nav-next {
        text-align:center;
    }
    
}


@media screen and (max-width:800px) {
	
	.gallery-thumb-wrapper {
		width: 100%;
		height: 260px;
		margin-right: 10px;
		margin-top: 15px;
	}
	
	
}


@media screen and (max-width:799px) {
	
	.project-gallery-overlay {
		padding-bottom: 80px;
		padding-top: 155px;
	}
	
	.project-gallery-overlay h1 {  font-size: 35px; }	
	.project-gallery-images li {   width: 48%; }
	.project-gallery-images li img {  width: 100% !important; height:auto; }
	
}

@media screen and (max-width:580px) {
	.project-gallery-images li {  width: 100%; margin:0 0 10px 0 ;}
	.project-gallery-overlay .features { font-size:18px; max-width:90%; }

}




@media screen and (max-width:480px) {
	
	.tunerworks-project-gallery .search-fields > select, 
	.tunerworks-project-gallery .search-fields > input {
		display: block;
		width: 100%;
		margin-right: 0;
		margin-bottom: 11px;
	}
	
	.gallery-thumb-wrapper {
		width: 100%;
		height: 220px;
		margin-right:0;
		margin-top: 15px;
	}
		
	
	
	
}

@media screen and (max-width:360px) {
		
	.project-gallery-header {
		padding-bottom: 100px;
		padding-top: 155px;
	}
	
	
}






