/*
* 	Owl Carousel - BrockU Theme
*	by S.M.
*/


/* Carousel
----------------------- */

#carousel-container {
	position: relative;
	}

#carousel {
	margin: 0 auto;
	width: 100%;
	height: 800px;
	}
#carousel .slide {
	position: relative;
	height: 800px;
	overflow: hidden;
	z-index: 100;
	}
	#carousel .slide .slide-overlay {
		padding: 3em 4em 4em 4em;
		position: absolute;
		top: 27%;
		max-width: 480px; min-width: 400px;
		max-width: 400px\9; /* IE8 and below */	
		height: auto;
		z-index: 101;
		opacity: 1 !important;
		background-color: rgba(204, 0, 0, .80);
		}
		#carousel .slide .slide-overlay.left { left: 12%; }
		#carousel .slide .slide-overlay.right { right: 12%; }
				
		#carousel .slide .slide-overlay h2 {
			margin: 0 0 .4em 0;
			font-size: 3em;
			line-height: 100%;
			font-family: "Bliss Light", "Trebuchet MS", sans-serif;
			font-weight: 200;
			font-family: "BLiss Bold", "Trebuchet MS", sans-serif;
			font-weight: bold;
			}
		#carousel .slide .slide-overlay p {
			margin: 0 0 1em 0;
			font-size: 1.3em;
			line-height: 120%;
			}
		#carousel .slide .slide-overlay a {
			margin: .5em 0 0 0; padding: 10px 13px;
			display: inline-block;
			color: #585858 !important;
			font-size: .8em;
			text-transform: uppercase;
			letter-spacing: .05em;
			text-decoration: none;
			background: #fff;
			-webkit-transition: background-color .1s ease-out;
				-ms-transition: background-color .1s ease-out;
			   -moz-transition: background-color .1s ease-out;
			     -o-transition: background-color .1s ease-out;
		    		transition: background-color .1s ease-out;
			}
			#carousel .slide .slide-overlay a:hover {
				background: #000;
				color: #fff !important;
				}
			#carousel .slide .slide-overlay a.grey:hover {
				background: #000;
				color: #fff;
				}
			#carousel .slide .slide-overlay a span {
				margin-left: 8px;
				}
	
	#carousel .slide a.image:hover { cursor: -webkit-grab; cursor: -moz-grab; }
	#carousel .slide a.image:active { cursor: -webkit-grabbing; cursor: -moz-grabbing; }
	#carousel .slide a.image:focus {
		outline: solid;
		}
		#carousel .slide img {
			width: 100%;
			height: auto !important;
			}
			
	/* Emergencies */
	#carousel .slide .slide-overlay.top { left: 0; top: 50px; bottom: auto; width: 100%; height: auto; background: #cc0000 !important; color: #fff !important; }

/* 	#carousel .slide .slide-overlay.dark { background: rgba(255, 255, 255, 0.95) !important; } */
	#carousel .slide .slide-overlay.dark h2 { color: #cc0000 !important; }
	#carousel .slide .slide-overlay.dark p { color: #585858 !important; }
	#carousel .slide .slide-overlay.dark a { color: #fff !important; background: #cc0000 !important; }
	#carousel .slide .slide-overlay.dark a:hover { color: #fff !important; background: #585858 !important; }
	
/* 	#carousel .slide .slide-overlay.light { background: rgba(204, 0, 0, 0.9) !important; } */
	#carousel .slide .slide-overlay.light h2 { color: #fff !important; }
	#carousel .slide .slide-overlay.light p { color: #fff !important; }
	#carousel .slide .slide-overlay.light a { color: #cc0000 !important; background: #fff !important; }
	#carousel .slide .slide-overlay.light a:hover { color: #fff !important; background: #000 !important; }


/* Custom Controls
----------------------- */

#play_pause_wrapper {
	/* Carousel's margin is 20px */
	}

/* Prev / Next
----------------------- */

#custom_prev_button:focus,
#custom_next_button:focus,
#custom_prev_button:hover,
#custom_next_button:hover {
	outline: none;
	background-color: rgba(0,0,0,0.2);
	}
#custom_prev_button:focus span.fa,
#custom_next_button:focus span.fa {
	color: #fff;
	}
#play_pause_wrapper #custom_prev_button {
	padding: 0 40px 0 20px;
	position: absolute;
	left: 0; top: 0;
	height: 100%;
	width: 100px;
	display: inline-block;
	*display: inline;/*IE7 life-saver */
	display: inline;
	text-align: center;
	z-index: 101;
	text-decoration: none;
	-webkit-transition: background-color .1s ease-out;
		-ms-transition: background-color .1s ease-out;
	   -moz-transition: background-color .1s ease-out;
	     -o-transition: background-color .1s ease-out;
		    transition: background-color .1s ease-out;
	}
#play_pause_wrapper #custom_next_button {
	padding: 0 20px 0 40px;
	position: absolute;
	right: 0; top: 0;
	height: 100%;
	width: 100px;
	display: inline-block;
	*display: inline;/*IE7 life-saver */
	display: inline;
	text-align: center;
	z-index: 101;
	text-decoration: none;
	-webkit-transition: background-color .1s ease-out;
		-ms-transition: background-color .1s ease-out;
	   -moz-transition: background-color .1s ease-out;
	     -o-transition: background-color .1s ease-out;
		    transition: background-color .1s ease-out;
	}
	#custom_prev_button span,
	#custom_next_button span { display: none; }
	
#custom_prev_button span.fa,
#custom_next_button span.fa {
	position: relative;
	display: inherit;
	top: 43%;
	color: #fff;
	font-size: 5em;
	-webkit-transition: color .2s ease-out;
		 -o-transition: color .2s ease-out;
		-ms-transition: color .2s ease-out;
	   -moz-transition: color .2s ease-out;
	    	transition: color .2s ease-out;
	}
#custom_prev_button:hover span.fa,
#custom_next_button:hover span.fa { color: #cc0000; }


/* Read More
----------------------- */
/* This link will be used via keyboard only. Therefore it behaves like the accessibility skipnav links */
#custom_readmore_button {
	position: absolute;
	left: 0; bottom: 0;
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px; height: 1px;
	overflow: hidden;
	}
#custom_readmore_button:focus {
	left: 100px; bottom: 0;
	width: auto; height: auto;
	padding: 8px 20px 2px 20px;
	text-align: left;
	background: #fff;
	color: #585858 !important;
	font-size: 1em;
	text-decoration: none;
	}
	#custom_readmore_button .fa {
		margin-left: 3px;
		}

/* Play / Pause
----------------------- */

#play_pause_button {
	padding: 10px 10px 2px 20px;
	position: absolute;
	display: block;
	left: 0; bottom: 0;
	width: 100px;
	background: #fff;
	z-index: 102;
	text-transform: uppercase;
	letter-spacing: .05em;
	text-decoration: none !important;
	color: #585858 !important;
	font-size: .9em;
	
	/* floating style */
	width: auto;
	color: #fff !important;
	background: transparent;
	left: 15px; top: 15px; bottom: auto;
	padding: 10px 10px 10px 10px;
	}
	#play_pause_button:hover { 
		color: #cc0000 !important;
		
		/* floating style */
		color: #fff !important;
		background: #282828;
		}
	#play_pause_button .fa {
		margin-left: 3px;
		}

/* Pagination
----------------------- */

.owl-controls .owl-pagination {
	padding: 5px 10px 0 10px;
	position: absolute;
	bottom: 0; right: 0;
	background: #fff;
	z-index: 102;
	
	/* floating style */
	top: 15px; right: 10px; bottom: auto;
	background: transparent;
	}
.owl-controls .owl-dots .owl-dot,
.owl-controls .owl-page {
	display: inline-block;
	zoom: 1;
	*display: inline;/*IE7 life-saver */
	}
.owl-controls .owl-dots .owl-dot span,
.owl-controls .owl-page span {
	display: block;
	width: 15px;
	height: 15px;
	margin: 5px 7px 0 7px;
	border-radius: 0;
	background: #fff;
	}

.owl-controls .owl-page.active span {
	background: #cc0000 !important;
	}

.owl-controls.clickable .owl-page span:hover {
	background: #cc0000 !important;
	}

/* If PaginationNumbers is true */

.owl-controls .owl-dots .owl-dot span.owl-numbers,
.owl-controls .owl-page span.owl-numbers {
	height: auto;
	width: auto;
	color: #FFF;
	padding: 2px 10px;
	font-size: 12px;
	-webkit-border-radius: 30px;
	-moz-border-radius: 30px;
	border-radius: 30px;
	}


/* preloading images */

.owl-item.loading {
	min-height: 150px;
	background: url(AjaxLoader.gif) no-repeat center center;
}


/* All screens except
   mobile
----------------------- */
@media only screen 
and (min-width : 841px) {
	
#carousel {
	display: block !important; background: #fff !important; overflow: hidden !important; /* ensure that carousel shows the first picture instantly on page load */
	}
	
}

/* Large Screen desktops
----------------------- */

@media only screen 
and (min-width : 1701px) {
	
	/* Default. */
			
}

/* Small Screen desktop
----------------------- */

@media only screen 
and (min-width : 1115px) and (max-width: 1700px) { /*  */
	
	#carousel .slide .slide-overlay {
		padding: 3.5em 3.5em 3.5em 3.5em;
		top: 23%;
		max-width: 400px; min-width: 320px;
		}
		
	#carousel, #carousel .slide { height: 600px; }
	#carousel .slide .slide-overlay h2 { font-size: 2.5em; }
	#carousel .slide .slide-overlay p { font-size: 1.1em; }
		
}

/* Tablet
----------------------- */

@media only screen 
and (min-width : 841px) and (max-width: 1114px) { /* previously 691px min */

	#carousel .slide .slide-overlay {
		padding: 3em 3em 3em 3em;
		top: 20%;
		max-width: 320px; min-width: 280px;
		}
	
	#carousel, #carousel .slide { height: 500px; }
	#carousel .slide .slide-overlay h2 { font-size: 2em; }
	#carousel .slide .slide-overlay p { font-size: 1em }

}


/* Mobile
----------------------- */

@media only screen 
and (max-width: 840px) { /*  */

	#carousel { height: auto !important; }
	
	#carousel .owl-item,
	#carousel .owl-item .slide,
	#carousel .owl-item .slide a { height: auto !important; }
	#carousel .owl-item .slide { margin-bottom: -4px !important; }
	
	#custom_prev_button, #custom_next_button, #play_pause_button { display: none !important; }
	
	#carousel .slide .slide-overlay {
		padding: 15px 20px 20px 20px; margin-top: -4px !important;
		position: inherit;
		bottom: 0;
		max-width: none; min-width: inherit;
		width: 100%; height: auto;
		z-index: 101;
		opacity: 1 !important;
		font-size: 1.3em;
		background-color: #cc0000;
		}
		#carousel .slide .slide-overlay.left { left: auto; }
		#carousel .slide .slide-overlay.right { right: auto; }
		
		#carousel .slide .slide-overlay h2 { margin: 0; font-size: 1.5em; }
		#carousel .slide .slide-overlay p { margin: 10px 0 0 0; font-size: .8em; }
		#carousel .slide .slide-overlay h2,
		#carousel .slide .slide-overlay p { width: 80%; }
		#carousel .slide .slide-overlay a,
		#carousel .slide .slide-overlay a:hover { padding: 8px 8px 7px 8px; margin: 1em 0 .3em 0; font-size: .6em; }
	
	.owl-controls .owl-pagination { top: 8px; right: 2px; height: 40px; background: transparent; }
	
	.owl-controls .owl-dots .owl-dot span,
	.owl-controls .owl-page span {
		display: block;
		width: 10px;
		height: 10px;
		margin: 5px 6px 0 6px;
		border-radius: 0;
		background: #fff;
		}
	
	
	.owl-controls .owl-page span { background: #fff; }
	
	#carousel .slide .slide-overlay.dark { background: #f8f8f8 !important; }
	
}