/* carousel css snap points carousel */
.carousel {
	display: block;
	border: solid 24px #fff;
	position: relative;
}
.carousel * {
	box-sizing: border-box;
}
.carousel_nav {
	order: 2;
}
.carousel a:focus-visible, .carousel button:focus-visible, .carousel_pane:focus-visible {
	outline: 2px solid #026d7e;
}

.carousel,
.carousel_nextprev_contain {
	position: relative;
}

.carousel_item {
	height: 350px;
	position: relative;
	overflow: hidden;
}

.carousel_item:focus {
	/* carousel div receives a tabindex to allow focus for keyboard arrow control */
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

@supports (scroll-snap-type: mandatory) {
	.carousel_pane {
		/* IE and edge */
		-ms-overflow-style: none;
		/* Firefox */
		scrollbar-width: none;
	}
}
.carousel_pane {
	scroll-behavior: smooth;
}

.carousel_pane::-webkit-scrollbar {
	display: none;
}

.carousel_pane {
	overflow: auto;
	scroll-behavior: smooth;
	width: 100%;
	/* keep old API for iOS older than 13, then use new API */
	-webkit-overflow-scrolling: touch;
	/* snap to points */
	scroll-snap-type: mandatory;
	scroll-snap-type: x mandatory;
	/* x interval for snapping (100% of container width) */
	scroll-snap-points-x: repeat(100%);
	scroll-snap-stop: always;
	position: relative;
	z-index: 0;
}

.carousel-sliding .carousel_pane {
	scroll-snap-type: none;
}

.carousel_items {
	display: flex;
	flex-flow: row nowrap;
}

.carousel_items > *,
.carousel_item {
	position: relative;
	white-space: normal;
	scroll-snap-align: start;
	box-sizing: border-box;
	padding-right: 1px;
	padding-left: 1px;
	flex: 1 0 auto;
	width: 100%;
}

.carousel_items img {
	width: 100%;
	height: 100%; 
	object-fit: cover;
	display: block;
}

/* next prev arrow selectors */
.carousel_nextprev-disabled,
.carousel-hide-nav .carousel_nextprev,
.carousel-hide-nav .carousel_nav {
	opacity: 0.3;
	cursor: default;
}

.carousel_nav,
.carousel_nav_inner {
	position: relative;
	margin: 1em 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	display: flex;
	justify-content: flex-start;
	width: 100%;
	gap: 10px;
}

.carousel_nav a {
	overflow: hidden;
	border: 5px solid #fff;
	white-space: normal;
	flex: 0 0 auto;
	display: block;
	vertical-align: middle;
	height: 50px;
	width: auto;
	margin: 0;
}
/* disabled state comes from pagination mode */
.carousel_nav a[disabled="true"] {
	display: none !important;
}
.carousel_nav a.carousel_nav_item-selected {
	/* selected styles here */
	border-color: lightblue;
}

.carousel_nav img {
	display: block;
	height: 100%;
	width: auto;
	max-width: 100%;
}

/* features */

/* next prev arrow selectors */
.carousel_nextprev,
.carousel_nextprev_item {
	list-style: none;
	margin: 0;
	padding: 0;
}
.carousel_nextprev_next,
.carousel_nextprev_prev {
	position: absolute;
	top: 50%;
	width: 46px;
	height: 46px;
	line-height: 46px;
	margin-top: -23px;
	background-color: #fff;
	border-radius: 100%;
	overflow: hidden;
	text-align: center;
	font-size: 0.7em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid #eee;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.carousel_nextprev_next:before,
.carousel_nextprev_prev:before {
	content: "";
	position: absolute;
	width: 1em;
	height: 1em;
	border-right: 4px solid currentColor;
	border-bottom: 4px solid currentColor;
	transform: rotate(-45deg);
	transform-origin: 0 0;
	margin-left: calc(-1em + -2px);
}
.carousel_nextprev_prev:before {
	transform: rotate(135deg);
	margin-left:calc( 1em + 2px);
}
.carousel_nextprev_next:not(.carousel_nextprev-disabled),
.carousel_nextprev_prev:not(.carousel_nextprev-disabled) {
	opacity: 0.8;
	cursor: pointer;
}
.carousel_nextprev_next:not(.carousel_nextprev-disabled):hover,
.carousel_nextprev_next:not(.carousel_nextprev-disabled):focus,
.carousel_nextprev_prev:not(.carousel_nextprev-disabled):hover,
.carousel_nextprev_prev:not(.carousel_nextprev-disabled):focus {
	opacity: 1;
}
.carousel_nextprev_next {
	right: -23px;
}
.carousel_nextprev_prev {
	left: -23px;
}

@media (min-width: 40em) {
	.carousel_nextprev_next,
	.carousel_nextprev_prev {
		width: 50px;
		height: 50px;
		line-height: 50px;
		margin-top: -25px;
	}
	.carousel_nextprev_next {
		right: -25px;
	}
	.carousel_nextprev_prev {
		left: -25px;
	}
}

/* Pause / Play */
.carousel_pauseplay,
.carousel_pauseplay_item {
	list-style: none;
	margin: 0;
	padding: 0;
}
.carousel_pauseplay_button {
	position: absolute;
	bottom: 10px;
	right: 10px;
	width: 46px;
	height: 46px;
	line-height: 46px;
	background-color: #fff;
	border-radius: 100%;
	overflow: hidden;
	text-align: center;
	font-size: 0.7em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid #eee;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	opacity: 0.8;
	cursor: pointer;
}
.carousel_pauseplay_button.carousel_pause {
	background: center / contain no-repeat url('pause.svg') #fff;
}
.carousel_pauseplay_button.carousel_play {
	background: center / contain no-repeat url('play.svg') #fff;
}
.carousel_pauseplay_button:hover,
.carousel_pauseplay_button:focus {
	opacity: 1;
}
@media (min-width: 40em) {
	.carousel_pauseplay_button {
		width: 50px;
		height: 50px;
		line-height: 50px;
	}
}

/* dots nav */
.carousel_nav-dots {
	position: absolute;
	top: 305px;
	background-color: #fff;
	width: auto;
	display: block;
	text-align: center;
	left: 50%;
	transform: translateX(-50%);
	padding: 10px 0px 15px 15px;
	border-radius: 25px 25px 0px 0px;
}
.carousel_nav.carousel_nav-dots a {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-right: 15px;
	background: #ccc;
	border: 0;
	border-radius: 100%;
	overflow: hidden;
	text-indent: -9999px;
	cursor: pointer;
}
.carousel_nav-dots a.carousel_nav_item-selected {
	background: #58b13f;
	border: none;
	box-shadow: none;
}
