/*
*
* Owl Carousel
*/

.owl-carousel .animated {
	animation-duration: 1000ms;
	animation-fill-mode: both;
}

.owl-carousel .owl-animated-in {
	z-index: 0;
}

.owl-carousel .owl-animated-out {
	z-index: 1;
}

.owl-carousel .fadeOut {
	animation-name: fadeOut;
}

@keyframes fadeOut {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

/* 
 * 	Owl Carousel - Auto Height Plugin
 */
.owl-height {
	transition: height 500ms ease-in-out;
}

/* 
 *  Core Owl Carousel CSS File
 */
.owl-carousel {
	display: none;
	width: 100%;
	-webkit-tap-highlight-color: transparent;
	/* position relative and z-index fix webkit rendering fonts issue */
	position: relative;
	z-index: 1;
}

.owl-carousel .owl-stage {
	position: relative;
	-ms-touch-action: pan-Y;
}

.owl-carousel .owl-stage:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}

.owl-carousel .owl-stage-outer {
	position: relative;
	overflow: hidden;
	/* fix for flashing background */
	-webkit-transform: translate3d(0px, 0px, 0px);
}

.owl-carousel .owl-controls .owl-nav .owl-prev,
.owl-carousel .owl-controls .owl-nav .owl-next,
.owl-carousel .owl-controls .owl-dot {
	cursor: pointer;
	user-select: none;
}

.owl-carousel.owl-loaded {
	display: block;
}

.owl-carousel.owl-loading {
	opacity: 0;
	display: block;
}

.owl-carousel.owl-hidden {
	opacity: 0;
}

.owl-carousel .owl-refresh .owl-item {
	display: none;
}

.owl-carousel .owl-item {
	position: relative;
	min-height: 1px;
	float: left;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
}

.owl-carousel .owl-grab {
	cursor: move;
	cursor: -webkit-grab;
	cursor: grab;
}

.owl-carousel.owl-rtl {
	direction: rtl;
}

.owl-carousel.owl-rtl .owl-item {
	float: right;
}

/* No Js */
.no-js .owl-carousel {
	display: block;
}

/* 
 * 	Owl Carousel - Lazy Load Plugin
 */
.owl-carousel .owl-item .owl-lazy {
	opacity: 0;
	transition: opacity 400ms ease;
}

/* 
 * 	Owl Carousel - Video Plugin
 */
.owl-carousel .owl-video-wrapper {
	position: relative;
	height: 100%;
	background: #000000;
}

.owl-carousel .owl-video-play-icon {
	position: absolute;
	height: 80px;
	width: 80px;
	left: 50%;
	top: 50%;
	margin-left: -40px;
	margin-top: -40px;
	font: 400 40px/80px 'FontAwesome';
	cursor: pointer;
	z-index: 1;
	transition: scale 100ms ease;
	&::before {
		content: '\f144';
	}
}

.owl-carousel .owl-video-play-icon:hover {
	transform: scale(1.3);
}

.owl-carousel .owl-video-playing .owl-video-tn,
.owl-carousel .owl-video-playing .owl-video-play-icon {
	display: none;
}

.owl-carousel .owl-video-tn {
	opacity: 0;
	height: 100%;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	transition: opacity 400ms ease;
}

.owl-carousel .owl-video-frame {
	position: relative;
	z-index: 1;
}

/*
 * Owl Navigation
 */

.owl-nav {
	&.disabled {
		display: none !important;
	}
}

.owl-prev,
.owl-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	font: 400 20px/50px 'fl-budicons-free';
	color: $gray-3;
	background: $secondary;
	cursor: pointer;
	transition: .25s;
	border: none;

	&:hover {
		color: $white;
		background: $primary;
	}
}

.owl-prev {
	left: 0;

	&::before {
		content: '\e016';
	}
}

.owl-next {
	right: 0;

	&::before {
		content: '\e025';
	}
}

.owl-nav-1 {
	.owl-prev {
		left: -25px;
	}

	.owl-next {
		right: -25px;
	}
}

/*
 * Owl Pagination
 */

.owl-dots {
	text-align: center;
	margin-top: 30px;

	&.disabled {
		display: none !important;
	}
}

.owl-dot {
	position: relative;
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid $gray-400;
	border-radius: 50%;
	margin: 0 5px;
	padding: 0;
	text-align: center;
	outline: none;
	cursor: pointer;
	background-color: transparent;
	transition: .22s;

	&::before {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate3d(-50%, -50%, 0);
		background: $gray-400;
		width: 6px;
		height: 6px;
		border-radius: inherit;
		transition: .22s;
		opacity: 0;
	}

	&:only-child { display: none; }

	&:hover,
	&.active {
		border-color: $primary;
	}

	&.active {
		&::before {
			opacity: 1;
			background: $primary;
		}
	}
}

%context-dark {
	.owl-dot {
		&:not(:hover):not(.active) {
			border: 2px solid $white;
		}
	}
}

//
// Owl Carousel Stretch
//
.owl-carousel-stretch {
	.owl-stage,
	.owl-item {
		display: flex;
	}

	.owl-item > * {
		width: 100%;
	}
}

//
// Owl Carousel Spacing
//
.owl-carousel-spacing {
	.owl-stage-outer {
		margin: -30px;
		padding: 30px;
	}

	.owl-item:not(.active) > * {
		box-shadow: none;
	}
}

//
// Owl Outer Nav
//
.owl-outer-nav {
	.owl-arrow {
		@include reset-button;
		display: inline-flex;
		vertical-align: middle;
		padding: 10px 30px;
		height: 43px;
		align-items: center;
		font-family: $font-family-sec;
		font-weight: 500;
		text-transform: uppercase;
		letter-spacing: .2em;
		color: #9ea9bb;
		transition: .22s;

		&:hover {
			color: $primary;
		}

		> * + * {
			margin-left: 5px;
		}
	}

	.owl-arrow-prev {
		padding-left: 0;
	}

	.owl-arrow-next {
		padding-right: 0;
	}

	.owl-arrow + .owl-arrow {
		border-left: 1px solid #c8d1e1;
	}
}

.box-2-footer {
	@media (min-width: map-get($grid-breakpoints, lg)) and (max-width: map-get($grid-breakpoints, xl) - 1px) {

		.owl-arrow {
			font-size: 0;
		}

		.owl-arrow-prev {
			padding-left: 5px;
		}

		.owl-arrow-next {
			padding-right: 5px;
		}
	}
}

//
// Owl Style 1
//
.owl-style-1 {
	.owl-item {
		position: relative;
		display: flex;
		align-items: center;
		padding: 0 15px;
		&::before {
			content: '';
			position: absolute;
			top: 50%;
			transform: translate3d(0, -50%, 0);
			left: 0;
			width: 1px;
			height: 50px;
			background: $gray-10;
			opacity: 0;
		}
	}

	.owl-item.active + .owl-item.active {
		&::before {
			opacity: 1;
		}
	}

	.owl-link {
		display: block;
		text-align: center;

		img {
			max-width: 90%;
		}

		&:hover {
			opacity: .66;
		}
	}
}

@include media-breakpoint-down(xs) {
	.owl-style-1 {
		max-width: 370px;
		margin-left: auto;
		margin-right: auto;
	}
}

.owl-carousel[data-animation-in='fadeIn'][data-animation-out='fadeOut'] {
	.owl-animated-in {
		animation-duration: 1s;
	}

	.owl-animated-out {
		animation-duration: .4s;
	}
}
