/* SLIDER WITH OVERFLOW TEXT */

.full-width-image-slider,
.full-width-image-slider .et_pb_slide {
	height: 500px;
}

.full-width-image-slider .et_pb_text_overlay_wrapper {
	display: none !important;
}

.full-width-image-slider .et_pb_slider .et_pb_slide {
	background-size: contain !important;
}

.home-slider-text-box {
	position: relative;
	top: -490px;
	width: 100%;
}

.home-slider-text-box .header-content .et_pb_header_content_wrapper div {
	width: 55%;
	background: rgba(255,255,255, 0.8);
	margin: auto;
	padding: 15px 30px;
}

.home-slider-text-box .header-content .et_pb_header_content_wrapper div h3 {
	margin-top: 20px;
}


/* THREE COLUMNS COMPACT */

.three-columns-compact .et_pb_row {
	padding-bottom: 1.3% !important;
}

.three-columns-compact .et_pb_row .et_pb_column_1_3 {
	width: 32% !important;
	margin-right: 2%;
}

.three-columns-compact .et_pb_row .et_pb_column_1_3 .et_pb_module .et_pb_slide {
	background-size: cover;
	min-height: 170px;
	cursor: pointer;
}

.three-columns-compact .et_pb_row .et_pb_column_1_3 .et_pb_module .et_pb_slide .et_pb_container {
	height: 140px !important;
}

.three-columns-compact .et_pb_row .et_pb_column_1_3 .et_pb_module .et_pb_slide:hover {
	opacity: 1;
}

.three-columns-compact .et_pb_row .et_pb_column_1_3 .et_pb_slide_description {
	padding: 0 !important;
}

.three-columns-compact .et_pb_row .et_pb_column_1_3 .et_pb_slide_description .et_pb_text_overlay_wrapper {
	padding: 10px 30px 10px !important;
}

/* TWO COLUMNS COMPACT */

.two-columns-compact .et_pb_row:nth-child(3),
.two-columns-compact .et_pb_row:nth-child(4),
.two-columns-compact .et_pb_row:nth-child(5) {
	padding-top: 0px;
	margin-top: -5px;
}

.two-columns-compact .et_pb_row .et_pb_column_1_2 {
	width: 49%;
	margin-right: 2%;
}

.two-columns-compact .et_pb_row .et_pb_column_1_2 .et_pb_module {
	margin-bottom: 4%;
}

.two-columns-compact .et_pb_row .et_pb_column_1_2 .et_pb_module .et_pb_slide {
	background-position: top center;
	cursor: pointer;
	opacity: 0.9;	
}

.two-columns-compact .et_pb_row .et_pb_column_1_2 .et_pb_module .et_pb_slide:hover {
	opacity: 1;
}

.two-columns-compact .et_pb_row .et_pb_column_1_2 .et_pb_text_overlay_wrapper {
	padding: 15px 30px;
}

/* BIG IMAGE ON TWO ROWS */

.box-on-two-rows .et_pb_slides .et_pb_slide {
	min-height: 559px;
} 

.box-on-two-rows .et_pb_slides .et_pb_slide .et_pb_slider_container_inner {
	vertical-align: top; 
}

.box-on-two-rows .et_pb_bg_layout_light.et_pb_slider_with_text_overlay .et_pb_slide_description {
	padding-left: 0px;
	padding-right: 0px;
	background: unset !important;
}

.box-on-two-rows .et_pb_bg_layout_light.et_pb_slider_with_text_overlay .et_pb_text_overlay_wrapper {
	background: unset;
}

#et-main-area #main-content .box-on-two-rows .et_pb_bg_layout_light.et_pb_slider_with_text_overlay .et_pb_text_overlay_wrapper a,
#et-main-area #main-content .box-on-two-rows .et_pb_bg_layout_light.et_pb_slider_with_text_overlay .et_pb_text_overlay_wrapper p {
	color: #fff !important;
	font-size: 20px !important;
	margin-top: 10%;
}


/* SMALL 4-BOXES */

.double-box-container .et_pb_column .et_pb_module {
	text-align: center;
}

#et-main-area #main-content .double-box {
	width: 41%;
	margin: 3.5%;
	margin-bottom: 3.5%;
	display: inline-block;
	margin-bottom: 0px;
	vertical-align: top;
	line-height: 1.4em;
}

#et-main-area #main-content .double-box img {
	opacity: 1;
	width: unset !important;
	display: block;
	margin: auto;
	transition: all .2s ease-in-out;
}

#et-main-area #main-content .double-box img:hover {
	opacity: 0.8;
}

#et-main-area #main-content .double-box a:hover {
	font-weight: bold;
}

/* MOUSE OVER FADEIN-FADEOUT BOX*/

.fade-in-out-boxes .et_pb_row .custom_box_container .container_dafault {
	background-color: #f6f6f6;
	text-align: center;
}

#et-main-area .fade-in-out-boxes .et_pb_row .custom_box_container .container_dafault img {
	width: unset !important;
	display: block;
	margin: auto;
}

.fade-in-out-boxes .et_pb_row .custom_box_container .container_dafault {
	font-weight: bold;
	padding-bottom: 5%;
}

.fade-in-out-boxes .et_pb_row .custom_box_container {
  position: relative;
  height: 100%;
  width: 100%;
  cursor: pointer;
}

.fade-in-out-boxes .et_pb_row .custom_box_container img {
	display: block;
}
 
.fade-in-out-boxes .et_pb_row .container_hover_layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 159, 227, 1);
  color: #fff;
  visibility: hidden;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s, visibility .4s;
}

.fade-in-out-boxes .et_pb_row .container_hover_layer.beforeAppear-1, 
.fade-in-out-boxes .et_pb_row .container_hover_layer.beforeAppear-2 {
	visibility: visible;
	opacity: 1;
}

.fade-in-out-boxes .et_pb_row .container_hover_layer.beforeAppear-1 .container_hover_image_description {
 	transform: translateY(0);
}

.fade-in-out-boxes .custom_box_container:hover .container_hover_layer {
	visibility: visible;
	opacity: 1;
}

.fade-in-out-boxes .container_hover_image_description {
	transition: .4s;
	transform: translateY(1em);
}

.fade-in-out-boxes .custom_box_container:hover .container_hover_image_description {
  transform: translateY(0);
}


/* FLIP CSS BOXES */


/* entire container, keeps perspective */
.fade-in-out-boxes .et_pb_row .flip-container {
	/*perspective: 1000px;*/
}
/* flip the pane when hovered */
/*
.fade-in-out-boxes .et_pb_row .flip-container:hover .flipper, 
.fade-in-out-boxes .et_pb_row .flip-container.hover .flipper,
.fade-in-out-boxes .et_pb_row .flip-container.before-appear .flipper {
	transform: rotateY(180deg);
}*/

.fade-in-out-boxes .et_pb_row .flip-container {
	width: 100% !important;
	min-height: 178px;
	/*cursor: pointer;*/
	text-align: center;
}

#et-main-area .fade-in-out-boxes.three-columns-compact .et_pb_row .flip-container .front img {
	width: unset !important;
	display: block;
	margin: auto;
}

#et-main-area .fade-in-out-boxes.three-columns-compact .et_pb_row .flip-container .front img:hover {
	opacity: 0.8;
}

/* flip speed goes here */
.fade-in-out-boxes .et_pb_row .flipper {
	transition: 0.4s;
	transform-style: preserve-3d;
	position: relative;
}

/* hide back of pane during swap */
.fade-in-out-boxes .et_pb_row .flip-container .front, 
.fade-in-out-boxes .et_pb_row .flip-container .back {
	backface-visibility: hidden;
	/*position: absolute;*/
	top: 0;
	left: 0;
}

/* front pane, placed above back */
.fade-in-out-boxes .et_pb_row .flip-container .front {
	width: 100%;
	z-index: 2;
	background-color: transparent !important;
	/* for firefox 31 */
	transform: rotateY(0deg);
	min-height: 178px;
}

.fade-in-out-boxes .et_pb_row .flip-container .front.front-description {
	min-height: 360px;
	padding: 15px;
}

/* back, initially hidden pane */
.fade-in-out-boxes .et_pb_row .flip-container .back {
	transform: rotateY(180deg);
	background: rgba(0, 159, 227, 1);
	color: #fff;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 178px;
	padding: 15px;
}

#et-main-area .fade-in-out-boxes .et_pb_row .flip-container .back p {
	font-size: 14px;
	line-height: 22px;
}

#et-main-area #main-content .fade-in-out-boxes .et_pb_row .flip-container .back a {
	color: #fff !important;
	text-decoration: underline;
}

#et-main-area #main-content .fade-in-out-boxes .et_pb_row .flip-container .back a:hover {
	text-decoration: none;
}


/* WIDER COLUMNS FOR BIGGER IMAGES */
.wider-columns .et_pb_row .et_pb_column_1_4 {
	width: 24.3%;
}
.wider-columns .et_pb_row .et_pb_column {
	margin-right: 0.8%;
}

#et-main-area .fade-in-out-boxes.wider-columns h4 {
	text-align: center;
	margin-top: -20px;
}

#et-main-area .fade-in-out-boxes.wider-columns .et_pb_row .flip-container,
#et-main-area .fade-in-out-boxes.wider-columns .et_pb_row .flip-container .back {
	min-height: 258px;
}

#et-main-area .fade-in-out-boxes.wider-columns .et_pb_row .flip-container .front {
	background-color: #f5f9fc;
}

#et-main-area .fade-in-out-boxes.wider-columns .et_pb_row .flip-container .front img {
	width: 100%;
	display: block;
	margin: auto;
}



/* MEDIA QUERIES - Smaller resulutions */

@media only screen and ( max-width: 1450px ) {
	.full-width-image-slider .et_pb_slider .et_pb_slide {
		background-size: cover !important;
		background-position: top center;
	}
	
	.home-slider-text-box .header-content .et_pb_header_content_wrapper div {
		width: 75%;
	}

}

@media only screen and ( max-width: 979px ) {

	.home-slider-text-box .header-content {
		margin: 0px !important;
	}
		
	.home-slider-text-box .header-content .et_pb_header_content_wrapper div {
		width: 100%;
	}
	
	.two-columns-compact .et_pb_row .et_pb_column_1_2 .et_pb_module .et_pb_slide {
		background-size: cover;
		background-position: top center;
		opacity: 1;
	}
	
	.scroll-to-next-title {
		top: -90px;
	}
	
	#et-main-area .fade-in-out-boxes.wider-columns .et_pb_row .flip-container .front img {
		max-height: 258px;
		max-width: 258px !important;
	}
}


@media only screen and ( min-width: 769px ) and ( max-width: 980px ) {
	
	.home-slider-text-box .header-content .et_pb_header_content_wrapper div {
		width: 80%;
	}
	
	.double-box {
		width: 19%;
		margin: 1.5%;
	}
	
	#et-main-area .fade-in-out-boxes.wider-columns h4 {
		margin-top: 0px;
	}
}

@media only screen and ( min-width: 640px ) and ( max-width: 768px ) {
	
	.double-box {
		width: 19%;
		margin: 1.5%;
	}
	
	#et-main-area .fade-in-out-boxes.wider-columns h4 {
		margin-top: 0px;
	}	
}

@media only screen and ( max-width: 639px ) {
	
	.three-columns-compact .et_pb_row .et_pb_column_1_3 {
		width: 100% !important;
	}
	
	.double-box {
		width: 40%;
		margin: 2.5%;
	}
	
	.box-on-two-rows .et_pb_bg_layout_light.et_pb_slider_with_text_overlay .et_pb_slide_content p {
		margin-top: 20%;
	}
	
	#et-main-area .fade-in-out-boxes.wider-columns h4 {
		margin-top: 0px;
	}	
}

@media only screen and ( max-width: 361px ) {
	.scroll-to-next-title {
		top: -104px;
	}
	
	#et-main-area .fade-in-out-boxes.wider-columns h4 {
		margin-top: 0px;
	}	
}