/*
FlexSlider 2.2.2 (WooThemes, GPLv2): the slider's own styles, from the LESS version
that was in less/flexslider.less, without IE hacks and vendor prefixes.
The site's adjustments are at the end, in the same layer. Goes away with
FlexSlider in Phase 3.
*/

@layer vendor {
	@font-face {
		font-family: 'flexslider-icon';
		src: url('/webfonts/flexslider-icon.woff') format('woff'),
			url('/webfonts/flexslider-icon.ttf') format('truetype');
		font-weight: normal;
		font-style: normal;
	}

	.flex-container a:hover,
	.flex-slider a:hover,
	.flex-container a:focus,
	.flex-slider a:focus {
		outline: none;
	}

	.slides,
	.flex-control-nav,
	.flex-direction-nav {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.flex-pauseplay span {
		text-transform: capitalize;
	}

	.flexslider {
		margin: 0 0 60px;
		padding: 0;
		background: #fff;
		border: 4px solid #fff;
		position: relative;
		border-radius: 4px;
		background-clip: padding-box;

		.slides > li {
			display: none;
			backface-visibility: hidden;
		}

		.slides img {
			width: 100%;
			display: block;
		}

		.slides::after {
			content: "\0020";
			display: block;
			clear: both;
			visibility: hidden;
			line-height: 0;
			height: 0;
		}
	}

	.no-js .flexslider .slides > li:first-child {
		display: block;
	}

	.flex-viewport {
		max-height: 2000px;
		transition: all 1s ease;
	}

	.loading .flex-viewport {
		max-height: 300px;
	}

	.carousel li {
		margin-right: 5px;
	}

	.flex-direction-nav {
		a {
			text-decoration: none;
			display: block;
			width: 40px;
			height: 40px;
			margin: -20px 0 0;
			position: absolute;
			top: 50%;
			z-index: 10;
			overflow: hidden;
			opacity: 0;
			cursor: pointer;
			color: rgba(0, 0, 0, 0.8);
			text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
			transition: all 0.3s ease-in-out;
		}

		a::before {
			font-family: "flexslider-icon";
			font-size: 40px;
			display: inline-block;
			content: '\f001';
		}

		a.flex-next::before {
			content: '\f002';
		}

		.flex-prev {
			left: -50px;
		}

		.flex-next {
			right: -50px;
			text-align: right;
		}

		.flex-disabled {
			opacity: 0 !important;
			cursor: default;
		}
	}

	.flexslider:hover .flex-direction-nav {
		.flex-prev {
			opacity: 0.7;
			left: 10px;
		}
		.flex-next {
			opacity: 0.7;
			right: 10px;
		}
		.flex-prev:hover,
		.flex-next:hover {
			opacity: 1;
		}
	}

	.flex-pauseplay a {
		display: block;
		width: 20px;
		height: 20px;
		position: absolute;
		bottom: 5px;
		left: 10px;
		opacity: 0.8;
		z-index: 10;
		overflow: hidden;
		cursor: pointer;
		color: #000;

		&::before {
			font-family: "flexslider-icon";
			font-size: 20px;
			display: inline-block;
			content: '\f004';
		}

		&:hover {
			opacity: 1;
		}

		.flex-play::before {
			content: '\f003';
		}
	}

	.flex-control-nav {
		width: 100%;
		position: absolute;
		bottom: -40px;
		text-align: center;

		li {
			margin: 0 6px;
			display: inline-block;
		}
	}

	.flex-control-paging li a {
		width: 11px;
		height: 11px;
		display: block;
		background: rgba(0, 0, 0, 0.5);
		cursor: pointer;
		text-indent: -9999px;
		box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
		border-radius: 20px;
		background-clip: padding-box;

		&:hover {
			background: rgba(0, 0, 0, 0.7);
		}

		&.flex-active {
			background: rgba(0, 0, 0, 0.9);
			cursor: default;
		}
	}

	.flex-control-thumbs {
		margin: 5px 0 0;
		position: static;
		overflow: hidden;

		li {
			width: 25%;
			float: left;
			margin: 0;
		}

		img {
			width: 100%;
			display: block;
			opacity: 0.7;
			cursor: pointer;
			transition: all 1s ease;

			&:hover {
				opacity: 1;
			}
		}

		.flex-active {
			opacity: 1;
			cursor: default;
		}
	}

	@media screen and (width <= 860px) {
		.flex-direction-nav .flex-prev {
			opacity: 1;
			left: 10px;
		}
		.flex-direction-nav .flex-next {
			opacity: 1;
			right: 10px;
		}
	}

	/* Site adjustments: full width of the section on mobile, white arrows and dots.
	   (The slider's place in the section columns, div.flexslider, is in layout.css.) */
	.flexslider {
		margin: 0 -24px 60px -24px;
		border: 0;

		@media (width >= 48em) {
			margin: 0;
			margin-bottom: 60px;
			border-radius: 0;
		}
	}

	.flex-direction-nav a {
		padding-top: 8px;
		height: 30px;
		color: rgba(255, 255, 255, 0.8);
	}

	.flex-control-paging li a {
		background-color: rgba(255, 255, 255, 0.9);
	}
}
