.mimotic-rpc {
	--mimotic-rpc-card-height: 465px;
	--mimotic-rpc-image-height: 225px;
	position: relative;
	width: 100%;
}

.mimotic-rpc__track {
	--mimotic-rpc-gap: 25px;
	align-items: stretch;
	display: grid;
	grid-auto-columns: clamp(401px, calc(20.75vw + 21px), 451px);
	grid-auto-flow: column;
	grid-auto-rows: var(--mimotic-rpc-card-height);
	gap: var(--mimotic-rpc-gap);
	cursor: grab;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding: 0 13px 18px;
	scroll-behavior: smooth;
	scroll-snap-type: inline mandatory;
	scrollbar-width: none;
	/*
	 * No `touch-action` restriction on purpose. It used to be `pan-y`, which
	 * tells the browser that a touch starting here may only pan vertically, so
	 * the track could not be swiped with a finger: the carousel was frozen on
	 * phones and tablets. Horizontal panning is now handled natively by the
	 * browser (overflow-x + scroll-snap), which also gives momentum and snapping
	 * for free; the pointer drag in carousel.js is limited to the mouse.
	 */
}

.mimotic-rpc__track::-webkit-scrollbar {
	display: none;
}

.mimotic-rpc__slide {
	background: #fff;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: var(--mimotic-rpc-card-height);
	min-width: 0;
	overflow: hidden;
	padding: 0 !important;
	scroll-snap-align: start;
}

.mimotic-rpc__image {
	background: #fff;
	flex: 0 0 var(--mimotic-rpc-image-height);
	height: var(--mimotic-rpc-image-height);
	line-height: 0;
	margin-bottom: 14px;
	overflow: hidden;
}

.mimotic-rpc__image a,
.mimotic-rpc__image img {
	display: block;
	height: 100%;
	width: 100%;
}

.mimotic-rpc__image img {
	-webkit-user-drag: none;
	object-fit: cover;
	object-position: center center;
}

.mimotic-rpc--is-dragging .mimotic-rpc__track {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
}

.mimotic-rpc--is-dragging .mimotic-rpc__track * {
	cursor: grabbing !important;
	user-select: none;
}

.mimotic-rpc--post-type-proyectos {
	--mimotic-rpc-card-height: clamp(570px, calc(20.75vw + 170px), 625px);
}

.mimotic-rpc--post-type-proyectos .mimotic-rpc__image {
	aspect-ratio: 1 / 1;
	flex: 0 0 auto;
	height: auto;
}

.mimotic-rpc__content {
	color: inherit;
	flex: 1 1 auto;
	overflow: hidden;
}

.mimotic-rpc__categories,
.mimotic-rpc__meta {
	color: #5f6b73;
	font-size: 13px;
	line-height: 1.35;
	margin-bottom: 8px;
}

.mimotic-rpc__categories a {
	color: inherit;
	text-decoration: none;
}

.mimotic-rpc__title {
	display: -webkit-box;
	font-size: 22px;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	line-height: 26px;
	margin: 5px 0 14px;
	overflow: hidden;
}

.mimotic-rpc__title a {
	color: inherit;
	text-decoration: none;
}

.mimotic-rpc__title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.mimotic-rpc__excerpt {
	color: #8a8f92;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.65;
	/* Hard stop at exactly two line boxes (2 x 1.65em). The line clamp below
	   still adds the ellipsis, but on its own it left the box a few pixels
	   taller than two lines and a sliver of the third line showed through. */
	max-height: 3.3em;
	overflow: hidden;
}

/*
 * The shortcode wraps the excerpt text in an inner <div class="wppsac-sub-content">.
 * A line clamp on the outer element therefore sees a single block child instead
 * of text lines and never trims at a line boundary: the card cut the third line
 * in half. The clamp goes on whatever holds the text, with the outer element as
 * a fallback for markup without that wrapper.
 */
.mimotic-rpc__excerpt,
.mimotic-rpc__excerpt > * {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	/* Required: without it the clamp does not trim anything. */
	overflow: hidden;
}

.mimotic-rpc__readmore {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	margin-top: 10px;
	text-decoration: none;
}

.mimotic-rpc__button {
	align-items: center;
	background: rgba(0, 0, 0, 0.62) !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none;
	box-sizing: border-box;
	color: #fff !important;
	cursor: pointer;
	display: flex;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 45px !important;
	font-weight: 300;
	height: 53px;
	justify-content: center;
	line-height: 1 !important;
	margin-top: -0.5em;
	min-width: 0;
	opacity: 0.95;
	padding: 0 !important;
	position: absolute;
	top: 50%;
	transition: background-color 160ms ease, opacity 160ms ease;
	transform: translateY(-50%);
	width: 53px;
	z-index: 2;
}

.mimotic-rpc__button span {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	line-height: 1;
	transform: none;
	width: 100%;
}
.mimotic-rpc__content h2.mimotic-rpc__title {
	padding-bottom:3px;
}

.mimotic-rpc__button:hover,
.mimotic-rpc__button:focus-visible {
	background: #016e06 !important;
	opacity: 1;
}

.mimotic-rpc__button:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.9);
	outline-offset: 2px;
}

.mimotic-rpc__button--prev {
	left: 12px;
}

.mimotic-rpc__button--next {
	right: 12px;
}

.mimotic-rpc__button:disabled {
	cursor: default;
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.mimotic-rpc {
		--mimotic-rpc-card-height: 450px;
		--mimotic-rpc-image-height: 215px;
	}

	.mimotic-rpc__track {
		grid-auto-columns: calc((100% - var(--mimotic-rpc-gap)) / 2);
	}
}

@media (max-width: 640px) {
	.mimotic-rpc {
		--mimotic-rpc-card-height: 430px;
		--mimotic-rpc-image-height: 205px;
	}

	.mimotic-rpc__track {
		--mimotic-rpc-gap: 18px;
		grid-auto-columns: 82%;
		padding-bottom: 6px;
	}

	/* The side arrows would sit on top of a card that already takes 82% of the
	   screen, so on phones the carousel is driven by the finger and reports its
	   position with the dots below the track. */
	.mimotic-rpc__button {
		display: none;
	}

	/* Project cards are a square image plus a one-line title: the fixed
	   570-625px card left ~200px of empty white below the title on a phone. */
	.mimotic-rpc--post-type-proyectos,
	.mimotic-rpc--post-type-proyectos .mimotic-rpc__slide {
		--mimotic-rpc-card-height: auto;
		height: auto;
	}

	.mimotic-rpc--post-type-proyectos .mimotic-rpc__track {
		grid-auto-rows: auto;
	}
}

/*
 * Pagination dots. Built by carousel.js (not by the shortcode) so they also
 * appear on pages whose markup is served from Elementor's element cache.
 */
.mimotic-rpc__dots {
	display: none;
	gap: 8px;
	justify-content: center;
	margin: 14px 0 18px;
}

.mimotic-rpc__dot {
	background: #C7CDD1 !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none;
	cursor: pointer;
	flex: 0 0 auto;
	height: 8px;
	min-width: 0;
	padding: 0 !important;
	transition: background-color 160ms ease, width 160ms ease;
	width: 8px;
}

.mimotic-rpc__dot[aria-current="true"] {
	background: #016E06 !important;
	width: 22px;
	border-radius: 4px !important;
}

.mimotic-rpc__dot:focus-visible {
	outline: 2px solid #016E06;
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.mimotic-rpc__dots {
		display: flex;
	}
}
