/*
Theme Name: Aquatic Facility Design
Theme URI: http://www.aquaticfacilitydesign.com/
Version: 1.0
Description: A custom theme for Aquatic Facility Design
Author: The Snowberry Team
Author URI: https://snowberrymedia.com
template: bb-theme
*/

/*************************************************************************
 * GENERAL
 * **********************************************************************/

.fl-page {
	overflow: hidden;
}

@media (min-width:1100px) {
	
	.skew-layout--left .fl-row-content {
		margin-left: calc( ( 100vw - 1120px ) / 2 );
	}
	
	.skew-layout--right .fl-row-content {
		margin-right: calc( ( 100vw - 1120px ) / 2 );
	}
	
}

.skew-layout--left .fl-row-content-wrap
.skew-layout--right .fl-row-content-wrap {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.overlap > div {
	position: relative;
    z-index: 2;
}

.underlap > div {
    position: relative;
    z-index: 0;
}

.mw-300 .uabb-infobox-content {
	max-width: 350px;
}

.expanded-bg--left .fl-col-content,
.expanded-bg--right .fl-col-content {
	position: relative;
}

.expanded-bg--left .fl-col-content:before,
.expanded-bg--right .fl-col-content:before {
	content: '';
    position: absolute;
    display: block;
    background-color: inherit;
	top: 0;
    width: 200%;
    height: 100%;
	left: -200%;
    z-index: 0;
}

.expanded-bg--right .fl-col-content:before {
	left: auto;
	right: -200%;
}

#top a {
	width: 70px;
    height: 70px;
    line-height: 40px !important;
    padding: 12px 0;
    margin: 0;
	position: relative;
}

#top a:after {
    content: '';
    position: absolute;
    bottom: -700px;
    height: 700px;
    background: inherit;
    width: 10px;
    left: 50%;
    margin-left: -4px;
}

#top a > i {
    margin: 0;
}

#top .fl-button-text {
	display: none;
}

/*************************************************************************
 * HEADER
 * **********************************************************************/

@media (min-width: 768px) {
	#header-top,
	.admin-bar #header-top,
	#header-fixed,
	.admin-bar #header-fixed {
		position: fixed;
		width: 100%;
		top: -115px;
		
		-moz-transition: all .3s ease;
		-webkit-transition: all .3s ease;
		-ms-transition: all .3s ease;
		-o-transition: all .3s ease;
		transition: all .3s ease;
		backface-visibility: hidden;
	}

	#header-fixed,
	.admin-bar #header-fixed {
		top: -66px;
	}

	.scrolled #header-top {
		top: 0;
	}

	.scrolled #header-fixed {
		top: 49px;
	}

	.scrolled.admin-bar #header-top {
		top: 32px;
	}

	.scrolled.admin-bar #header-fixed {
		top: 81px;
	}

	.fl-builder-edit #header-top,
	.fl-builder-edit.admin-bar #header-top,
	.fl-builder-edit #header-fixed,
	.fl-builder-edit.admin-bar #header-fixed {
		position: static;
		top: auto;
	}
}

@media (max-width: 600px) {
	.header-phone-email a{
		font-size: 12px;
	}
}


/*************************************************************************
 * HOME
 * **********************************************************************/

#home-services .services-title .fl-col-content {
	position: relative;
	height: 90%;
	height: calc(100% - 60px);
}

#home-services .services-title .fl-col-content:before {
	content: '';
	position: absolute;
	background: inherit;
	width: 300%;
	left: -200%;
	top: -60px;
	bottom: 0;
	z-index: 0;
}

#home-services .services-title .fl-col-content:after {
	content: '';
	position: absolute;
	background: inherit;
	width: 80%;
	right: -80%;
	top: -60px;
	bottom: 0;
	z-index: 0;
}

#home-services .services-title .fl-module {
	position: relative;
	z-index: 2;
}

#home-services .services-grid {
	position: relative;
	z-index: 1;
}

#home-services .services-grid .uabb-infobox:hover {
	background-color: #3881a2;
}

#home-clients .uabb-photo-gallery-item:nth-child(odd) {
    padding-top: 80px;
}