/*
 * Swiper - Mobile Touch Slider CSS
 * http://www.idangero.us/sliders/swiper
 *
 * Vladimir Kharlampidi, The iDangero.us
 * http://www.idangero.us/
 *
 * Copyright 2012-2013, Vladimir Kharlampidi
 * The iDangero.us
 * http://www.idangero.us
 *
 * Licensed under GPL & MIT
 *
*/

/* ===============================================================
Basic Swiper Styles
================================================================*/
.swiper-container {
	margin: 0 -10px .7em -10px;
	width: auto;
	position:relative;
	overflow:hidden;
	-webkit-backface-visibility:hidden;
	-moz-backface-visibility:hidden;
	-ms-backface-visibility:hidden;
	-o-backface-visibility:hidden;
	backface-visibility:hidden;
	/* Fix of Webkit flickering */
	z-index:1;
	opacity: 0;
}

.page .swiper-container {
	margin-top: -15px;
}
.swiper-container.showit {
	opacity: 1;
}
.swiper-slider {
	margin-top: -15px; // makes it flush with the top. negative top margin will be a problem if the slider is not at the top of the page
}
.swiper-wrapper {
	position:relative;
	width:100%;
	-webkit-transition-property:-webkit-transform, left, top;
	-webkit-transition-duration:0s;
	-webkit-transform:translate3d(0px,0,0);
	-webkit-transition-timing-function:ease;

	-moz-transition-property:-moz-transform, left, top;
	-moz-transition-duration:0s;
	-moz-transform:translate3d(0px,0,0);
	-moz-transition-timing-function:ease;

	-o-transition-property:-o-transform, left, top;
	-o-transition-duration:0s;
	-o-transform:translate3d(0px,0,0);
	-o-transition-timing-function:ease;
	-o-transform:translate(0px,0px);

	-ms-transition-property:-ms-transform, left, top;
	-ms-transition-duration:0s;
	-ms-transform:translate3d(0px,0,0);
	-ms-transition-timing-function:ease;

	transition-property:transform, left, top;
	transition-duration:0s;
	transform:translate3d(0px,0,0);
	transition-timing-function:ease;
}
.swiper-free-mode > .swiper-wrapper {
	-webkit-transition-timing-function: ease-out;
	-moz-transition-timing-function: ease-out;
	-ms-transition-timing-function: ease-out;
	-o-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
	margin: 0 auto;
}
.swiper-slide {
	float: left;
	position: relative;
	overflow: hidden;
	h2 {
		margin-top: 2rem;
	}
	img {
		margin-bottom: 0;
	}
	.swiper-slide-content {
		padding: 0 1em 2em;
		width: 100%;
		max-width: 1024px;
		margin: 0 auto;
		background: #fafafa;
	}
	&.single {
		float: none;
		display: block;
		margin: 0 auto;
	}
}

@include breakpoint(large) {
	.swiper-slider img {
		display: block;
		margin: 0 auto;
	}
}

/* IE10 Windows Phone 8 Fixes */
.swiper-wp8-horizontal {
	-ms-touch-action: pan-y;
}
.swiper-wp8-vertical {
	-ms-touch-action: pan-x;
}

/* ===============================================================
Your custom styles, here you need to specify container's and slide's
sizes, pagination, etc.
================================================================*/
.swiper-container, .swiper-slide {
	//width: 100%;
	height: auto;
}
.swiper-slide {
	/* Specify Slides's Size: */

	/*width: 100%;
	height: 100%;*/
}
.swiper-slide-active {
	/* Specific active slide styling: */

}
.swiper-slide-visible {
	/* Specific visible slide styling: */

}
/* ===============================================================
Pagination Styles
================================================================*/
.pagination {
	position: absolute;
	left: 0;
	text-align: center;
	bottom: 1rem;
	width: 100%;
	@include breakpoint(large) {
		bottom: 0;
	}
}
.swiper-pagination-switch {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 8px;
	background: #222;
	margin-right: 5px;
	opacity: 0.8;
	border: 1px solid #fff;
	cursor: pointer;
}
.swiper-active-switch {
	background: #fff;
}
.swiper-visible-switch {
	background: #aaa;
}

/* ===============================================================
Orientation fixes
================================================================*/

.swiper-container.swiper-slider, .swiper-slider .swiper-slide {
	height: 190px;
  }

@media only screen
	and (min-device-width : 768px)
	and (max-device-width : 1024px)
	and (orientation : portrait) {
		.swiper-container.swiper-slider, .swiper-slider .swiper-slide {
			height: 250px;
		}
}

 @media only screen
 	and (min-device-width : 768px)
 	and (max-device-width : 1024px)
 	and (orientation : landscape) {
		.swiper-container.swiper-slider, .swiper-slider .swiper-slide {
			height: 325px;
		}
}

/* ===============================================================
Carousel updates
================================================================*/

.post-carousel .swiper-slide {
	height: 220px;
}
@include breakpoint(small) {
	.post-carousel .swiper-slide {
		height: 250px;
	}
}
@include breakpoint(medium) {
	.post-carousel .swiper-slide {
		height: 270px;
	}
}
@include breakpoint(large) {
	.post-carousel .swiper-slide {
		height: 330px;
	}
}

.swiper-carousel .swiper-slide .swiper-slide-content {
	padding-bottom: 1em;
	height: 100%;
	position: static;
}
#main .swiper-carousel .swiper-slide-content h3.carousel-title {
	font-size: 1.4rem;
	font-weight: 400;
}
@include breakpoint(small) {
	#main .swiper-carousel .swiper-slide-content h3.carousel-title, .carousel-excerpt p {
		font-size: 1.6rem;
		font-weight: normal;
	}
}
.carousel-excerpt p {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #333;
	font-size: 1.4rem;
	font-weight: 300;
}