.slider { position: relative; }
.slider .slides li { position: relative; }
.slider.small-controls .flex-direction-nav a { margin-top: -20px; }
.slider.small-controls .flex-control-nav { display: none; }
.hero-slider {
	padding: 0px;
	position: relative;
	margin-bottom:0px;
	margin-top:0px;
	height:650px;
}
.hero-slider.nosearch {	margin-top:-20px;height:550px;}
#header-image, .subpage #main #header-image {	height:350px !important;margin-bottom:1em;}
section.hero-slider > .flex-direction-nav {display: none}
section.hero-slider:hover > .flex-direction-nav {display: block}

.hero-slider .slides { overflow: hidden; }
.hero-slider .slides li {
	height: 650px;
	position: relative;
	background-size: cover !important;
}
.hero-slider.nosearch .slides li {	height:550px;background-position: 50% 50% !important;}
#header-image .slides li {	height: 350px;}
li.parallax.kenburns.flex-active-slide {background-position:center bottom !important;}

/* .hero-slider .slides .container {padding: 0 !important;} */

.hero-slider .slides li .row {
	position: relative;
	z-index: 2;
	margin-top:-600px;
}
.hero-slider.nosearch .slides li .row {
	margin-top:-500px;
}
@media all and (max-width: 767px) {
	.hero-slider.nosearch .slides li .row {
	margin-top:-320px;
}
}

#header-image .slides li .row {margin-top:0em;}

.hero-slider .slides video {
    min-width: 100%;
    min-height: 100%;
    background-size: cover;
    width: auto;
    height: auto;
    position:absolute;
    top:0; }




.hero-slider .slides li h3 { font-size: 30px; }
.hero-slider .slides li h2, .hero-slider .slides li .slideh2 {
	line-height: 1;
	margin-bottom: 33px;
	padding-bottom: 7px;
}

.hero-slider .slides li h1 {
	line-height: 1;
	    line-height: 2.6em;
    font-size: 2em;
}


.hero-slider .slides li h2,  .hero-slider .slides li .slideh2 {
    line-height: 1;
    margin-bottom: 33px;
    color: white;
    display: inline;
      -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-size:3.5em;
  font-weight:700;
}
.hero-slider .slides li h2.bigh,  .hero-slider .slides li .slideh2.bigh{font-size: 7em;}

#header-image .slides li h2,  #header-image .slides li slideh2 {font-size: 2.75em;  font-weight:500;}


@media all and (max-width: 470px) {
	.hero-slider .slides li h2,  .hero-slider .slides li .slideh2 {  font-size:2.5em; }
}



.hero-slider .slides li h1 {
    background-color: #732780;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, .7);
    padding: .25em 1em;
    color: white;
    display: inline;
      -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-slider .slides li h1 span {

}

.hero-slider .slides li h1 span {

}



.work-slider { margin-top: 28px; }
.work-slider .slides li { height: 400px; }
.slides li .fadeUp { opacity: 0; }
.slides li {
	position: relative;
	color: #fff;
}

.slides li p, .slides li a { color: #fff;}
.slides li .slide-content {
	position: relative;
	z-index: 3;
}

.slides li p {padding: 0 !important; font-weight: 400;/*text-shadow: 2px 2px 4px rgba(0, 0, 0, .7)*/;margin-top:1em;font-size:1.75em;font-family: "Ubuntu", sans-serif;}
.slides li p.bigh {font-size:2.5em;}

@media (max-width: 1140px) {
.hero-slider .slides li h2.bigh {font-size: 5.75em;}
.slides li p.bigh {font-size:2.25em;}
}
@media (max-width: 990px) {
.hero-slider .slides li h2.bigh {font-size: 4.75em;}
.slides li p.bigh {font-size:1.85em;}
}
@media (max-width: 767px) {
.hero-slider .slides li h2.bigh {font-size: 3.5em;}
.slides li p.bigh {font-size:1.5em;}
.hero-slider.nosearch, .hero-slider.nosearch .slides li {height:350px;}
}
@media (max-width: 567px) {
.hero-slider .slides li h2.bigh {font-size: 2.75em;}
.slides li p.bigh {font-size:1.25em;}
}


.slides li .overlay {
	background-color: #333;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.4;
	z-index: 2;
}
.slides li .overlay.darkbg {background-color:#006a8a !important;opacity: 0.6 !important;}
.slides li .overlay.mdarkbg {background-color:#006a8a !important;opacity: 0.3 !important;}

.slides li a.btn-theme {
	border: none;
	color: #000;
	background-color: #ffd900;
	font-weight: 700;
	font-size: 1.1em;
	padding:.75em 2.5em;
	border-radius: 0px !important;
	text-transform: uppercase;
letter-spacing: .15em;
font-family: "Ubuntu", sans-serif;
font-weight: 400;
letter-spacing: .15em;
	
}

.slides li .btn-theme:hover, .slides li .btn-theme:focus, .slides li .btn-theme:active, .slides li .btn-theme.active {
	background-color: #009fde;
	color: #fff;
}

.hero-slider .slides li .slide-content img { max-height: 500px; }
.hero-slider .flex-direction-nav a {
	height: 60px;
	width: 60px;
	font-size: 0;
}

.hero-slider .flex-direction-nav a:before {
	position: absolute;
	font-size: 40px;
	display: block;
	top: 0px;
	left: 23px !important;
	right: auto !important;
}

.hero-slider .flex-direction-nav a.flex-prev:before { left: 20px !important; }
@media all and (max-width: 1100px) {
	.hero-slider .slides li .slide-content img { max-height: 300px; }
}
.background-breathe .slide-content {
	-webkit-animation: burnsOut 16s ease infinite alternate;
	animation: burnsOut 16s ease infinite alternate;
	-moz-animation: burnsOut 16s ease infinite alternate;
	position: relative;
	top: 30px;
}

@-webkit-keyframes burnsIn {
	from {
		-webkit-transform: scale(1,1);
		transform: scale(1,1);
		-ms-transform: scale(1,1);
	}

	to {
		-webkit-transform: scale(1.2,1.2);
		transform: scale(1.2,1.2);
		-ms-transform: scale(1.2,1.2);
	}

}

@-webkit-keyframes burnsOut {
	from {
		-webkit-transform: scale(1,1);
		transform: scale(1,1);
		-ms-transform: scale(1,1);
	}

	to {
		-webkit-transform: scale(0.8,0.8);
		transform: scale(0.8,0.8);
		-ms-transform: scale(0.8,0.8);
	}

}

@-moz-keyframes burnsIn {
	from {
		-webkit-transform: scale(1,1);
		transform: scale(1,1);
		-ms-transform: scale(1,1);
	}

	to {
		-webkit-transform: scale(1.2,1.2);
		transform: scale(1.2,1.2);
		-ms-transform: scale(1.2,1.2);
	}

}

@-moz-keyframes burnsOut {
	from {
		-webkit-transform: scale(1,1);
		transform: scale(1,1);
		-ms-transform: scale(1,1);
	}

	to {
		-webkit-transform: scale(0.8,0.8);
		transform: scale(0.8,0.8);
		-ms-transform: scale(0.8,0.8);
	}

}

@keyframes burnsIn {
	from {
		-webkit-transform: scale(1,1);
		transform: scale(1,1);
		-ms-transform: scale(1,1);
	}

	to {
		-webkit-transform: scale(1.2,1.2);
		transform: scale(1.2,1.2);
		-ms-transform: scale(1.2,1.2);
	}

}

@keyframes burnsOut {
	from {
		-webkit-transform: scale(1,1);
		transform: scale(1,1);
		-ms-transform: scale(1,1);
	}

	to {
		-webkit-transform: scale(0.8,0.8);
		transform: scale(0.8,0.8);
		-ms-transform: scale(0.8,0.8);
	}

}

#headerpic {
	position: relative;
	background: #16aa9e;
	background-repeat: no-repeat;
	background-position: center top;
	background-attachment: relative;
	background-position: center center;
	margin-top: 60px;
	margin-bottom: 60px;
	padding-top: 100px;
	padding-bottom: 100px;
	-webkit-background-size: 100%;
	-moz-background-size: 100%;
	-o-background-size: 100%;
	background-size: 100%;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	z-index: 1;
}

#headerpic .layer {
	background-color: #16aa9e;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.2;
	z-index: 2;
}

#headerpic h3 {
	position: relative;
	text-transform: uppercase;
	z-index: 3;
	color: white;
	display: inline;
	font-weight: 300;
	letter-spacing: 0.3em;
	border-bottom: 2px solid #fff;
}


a#scrolldown {
    text-transform: uppercase;
    display: block;
    position: absolute;
    text-align: center;
    width: 100px;
    height: 80px;
    left: 50%;
    margin-left: -50px;
    bottom: 6px;
    z-index: 9999;
    opacity: 1;
    -moz-transition: all 0.8s ease-out;
    -webkit-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
    color:white;
}

a#scrolldown i {
    font-size: 4em;
    margin-top: .2em;
}

a.arrow {text-align:center;margin-bottom:30px;left:50%;bottom:20px;z-index:99999999;color:#fff!important;  
}
body.scroll a#scrolldown {opacity:0;height:1px; -moz-transition:all 0.8s ease-out; -webkit-transition:all 0.5s ease-out; transition:all 0.5s ease-out}


@-moz-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -moz-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -moz-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -moz-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
@-webkit-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -moz-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -moz-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}


.bounce {
  -moz-animation: bounce 2s infinite;
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}

.bounce {
  -moz-animation: bounce 2s infinite;
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}
a#content {margin-top: -80px;position: absolute;}
a#scrolldown.white {color:white !important;}

.hero-slider .slides li h2, .hero-slider .slides li .slideh2, .hero-slider .slides li p {text-shadow: 3px 3px 7px rgba(0,0,0,.7)}

