/*
 * jQuery Nivo Slider v3.1 (for Madison Template)
 * http://nivo.dev7studios.com
 *
 * Copyright 2012, Dev7studios
 * Free to use and abuse under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 */


.slider-wrapper{
	margin: 20px auto 0px auto;
	width: 970px;
}

/* The Nivo Slider styles */
.nivoSlider {
	position:relative;
	width:100%;
	height:auto;
	overflow: hidden;
	border: 5px solid #fff;
	margin-left: -5px; /* Adjust 5px because of the border width 5px*/

	-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
	-o-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.nivoSlider img {
	position:absolute;
	top:0px;
	left:0px;
	max-width: none;
}
.nivo-main-image {
	display: block !important;
	position: relative !important;
	width: 100% !important;
}

/* If an image is wrapped in a link */
.nivoSlider a.nivo-imageLink {
	position:absolute;
	top:0px;
	left:0px;
	width:100%;
	height:100%;
	border:0;
	padding:0;
	margin:0;
	z-index:6;
	display:none;
}
/* The slices and boxes in the Slider */
.nivo-slice {
	display:block;
	position:absolute;
	z-index:5;
	height:100%;
	top:0;
}
.nivo-box {
	display:block;
	position:absolute;
	z-index:5;
	overflow:hidden;
}
.nivo-box img { display:block; }

/* Caption styles */
.nivo-caption {
	position:absolute;
	left:0px;
	bottom:0px;
	background:#000;
	color:#fff;
	width:100%;
	z-index:8;
	padding: 5px 10px;
	opacity: 0.8;
	overflow: hidden;
	display: none;
	-moz-opacity: 0.8;
	filter:alpha(opacity=8);
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
}
.nivo-caption p {
	padding:5px;
	margin:0;
}
.nivo-caption a {
	display:inline !important;
}
.nivo-html-caption {
    display:none;
}
/* Direction nav styles (e.g. Next & Prev) */
.nivo-directionNav a {
	position:absolute;
	top:45%;
	z-index:9;
	cursor:pointer;
}
.nivo-prevNav {
	left:0px;
}
.nivo-nextNav {
	right:0px;
}
/* Control nav styles (e.g. 1,2,3...) */
.nivo-controlNav {
	text-align: center;
	padding: 10px 0 15px 0px;
}
.nivo-controlNav a {
	display: inline-block;
	cursor:pointer;
	background: #c7f0f9;
	width:  15px;
	height: 15px;
	text-indent: -9000px;
	margin-right: 50px;
}

.nivo-controlNav a.active {
	background: #009ce3;
}

/* Tablet Layout: 768px-991px. HEADER ----------------------------------------------------*/
@media only screen and (min-width: 768px) and (max-width: 991px) {
	.slider-wrapper {
		margin: 30px auto 0px auto;
		width: 702px;
	}
}
/* Mobile Layout: -767px. HEADER ----------------------------------------------------*/
@media only screen and (max-width: 767px) {
	.slider-wrapper {
		margin: 30px auto 0px auto;
		width: 100%;
	}
	.nivoSlider {
		position:relative;
		width:100%;
		height:auto;
		overflow: hidden;
		border: 0px;
		border-top: 1px solid #000;
		margin-left: 0px; /* Adjust 5px because of the border width 5px*/

		-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
		-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
		-o-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
		box-shadow: 0px 10px 5px -5px rgba(0, 0, 0, 0.5);
	}
  .nivo-controlNav a {
		margin-top: 10px;
  	width:  10px;
  	height: 10px;
  }

}
