/* =========================================================
   SHARED MORAWAY CAROUSEL MECHANICS
   ========================================================= */

.moraway-carousel {
	--moraway-carousel-gap: 24px;

	position: relative;

	width: 100%;
	max-width: 100%;
	min-width: 0;
}


/* =========================================================
   VIEWPORT
   ========================================================= */

.moraway-carousel-viewport {
	position: relative;

	width: 100%;
	max-width: 100%;
	min-width: 0;

	overflow: hidden;

	cursor: grab;

	touch-action: pan-y;
	overscroll-behavior-x: contain;
}

.moraway-carousel-viewport.is-dragging {
	cursor: grabbing;

	user-select: none;
	-webkit-user-select: none;
}


/* =========================================================
   TRACK
   ========================================================= */

.moraway-carousel-track {
	position: relative;

	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch;

	width: 100%;
	min-width: 100%;

	gap: var(--moraway-carousel-gap);

	margin: 0;
	padding: 0;

	/*
	 * Viewport clips;
	 * track itself remains visible.
	 */
	overflow: visible;

	will-change: transform;
}


/* =========================================================
   SLIDES
   ========================================================= */

.moraway-carousel-slide {
	position: relative;

	box-sizing: border-box;

	margin: 0;

	opacity: 1;
	visibility: visible;
}


/* =========================================================
   MEDIA
   ========================================================= */

.moraway-carousel-viewport img {
	-webkit-user-drag: none;

	user-select: none;
	-webkit-user-select: none;
}


/* =========================================================
   LINKS / CONTROLS
   ========================================================= */

.moraway-carousel-slide a,
.moraway-carousel-slide button,
.moraway-carousel-slide input,
.moraway-carousel-slide select,
.moraway-carousel-slide textarea {
	pointer-events: auto;
}


/* =========================================================
   SHARED PREV / NEXT ARROWS
   ========================================================= */

.moraway-carousel-arrow {
	position: absolute;
	top: 50%;
	z-index: 20;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 44px;
	height: 44px;

	margin: 0;
	padding: 0;

	border: 0;
	border-radius: 50%;

	background: #ffffff;
	color: #1b1b1b;

	font-size: 32px;
	font-weight: 400;
	line-height: 1;

	cursor: pointer;

	transform: translateY(-50%);

	box-shadow:
		0 2px 8px
		rgba(0, 0, 0, 0.16);

	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		opacity 0.2s ease;
}

.moraway-carousel-arrow:hover {
	transform:
		translateY(-50%)
		scale(1.06);

	box-shadow:
		0 3px 10px
		rgba(0, 0, 0, 0.22);
}

.moraway-carousel-arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.moraway-carousel-arrow--prev {
	left: -22px;
}

.moraway-carousel-arrow--next {
	right: -22px;
}

.moraway-carousel-arrow[hidden] {
	display: none !important;
}


/* =========================================================
   TRAVEL INSIGHTS OLD GRID CLEANUP
   ========================================================= */

.moraway-carousel-track.moraway-travel-insights__grid {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;

	grid-template-columns: none !important;
	grid-auto-columns: auto !important;
	grid-auto-flow: initial !important;

	width: 100% !important;
	min-width: 100% !important;
	max-width: none !important;

	overflow: visible !important;

	scroll-snap-type: none !important;
	scroll-behavior: auto !important;
}

.moraway-travel-insights__card.moraway-carousel-slide {
	margin: 0;
	overflow: visible;
}

.moraway-travel-insights__card-link {
	display: block;

	width: 100%;
	height: 100%;
}

.moraway-travel-insights__card-media {
	width: 100%;
}


/* =========================================================
   OLD TRAVEL INSIGHTS ARROWS
   ========================================================= */

.moraway-travel-insights__arrow {
	display: none !important;
}


/* =========================================================
   HIDDEN CONTROLS
   ========================================================= */

.moraway-carousel-dot[hidden],
.moraway-testimonial-dot[hidden],
.moraway-carousel-dots[hidden],
.moraway-testimonial-dots[hidden],
.moraway-carousel-arrow[hidden] {
	display: none !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

	.moraway-carousel {
		--moraway-carousel-gap: 18px;
	}

	.moraway-carousel-arrow {
		width: 40px;
		height: 40px;

		font-size: 28px;
	}

	.moraway-carousel-arrow--prev {
		left: -14px;
	}

	.moraway-carousel-arrow--next {
		right: -14px;
	}
}


@media (max-width: 768px) {

	.moraway-carousel-arrow {
		display: none !important;
	}

	.moraway-carousel-arrow--prev {
		display: none !important;
	}

	.moraway-carousel-arrow--next {
		display: none !important;
	}
}


@media (max-width: 560px) {

	.moraway-carousel {
		--moraway-carousel-gap: 14px;
	}
}