/**
 * MK Hero Slider.
 */

.mk-hero-slider {
	--mk-homepage-hero-bg: var(--mk-site-home-bg, var(--mk-color-bg, #0f1115));
	--mk-homepage-hero-text: #ffffff;
	--mk-homepage-hero-muted: rgba(255, 255, 255, 0.6);
	--mk-homepage-hero-accent: var(--mk-site-accent, var(--mk-movie-accent, #f5c518));
	position: relative;
	left: 50%;
	width: calc(100vw - 20px);
	max-width: calc(100vw - 20px);
	margin-left: calc(-50vw + 10px);
	margin-right: calc(-50vw + 10px);
}

.mk-hero-slider__viewport {
	position: relative;
	overflow: hidden;
}

.mk-hero-slider__track {
	position: relative;
	min-height: 420px;
}

.mk-hero-slider__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 240ms ease;
}

.mk-hero-slider__slide.is-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
}

.mk-hero-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 72px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.72);
	cursor: pointer;
	font-size: 0;
	line-height: 1;
	transform: translateY(-50%);
	transition: color 160ms ease, opacity 160ms ease;
}

.mk-hero-slider__arrow span {
	display: block;
	width: 18px;
	height: 18px;
	border-right: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	transform: rotate(-45deg);
	transition: border-color 160ms ease, transform 160ms ease;
}

.mk-hero-slider__arrow--prev span {
	transform: rotate(135deg);
}

.mk-hero-slider__arrow:hover,
.mk-hero-slider__arrow:focus-visible {
	color: rgba(255, 255, 255, 0.95);
	opacity: 1;
}

.mk-hero-slider__arrow:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.46);
	outline-offset: -8px;
}

.mk-hero-slider__arrow--prev {
	left: 20px;
}

.mk-hero-slider__arrow--next {
	right: 20px;
}

.mk-hero-slider__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.mk-hero-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.55);
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease;
}

.mk-hero-slider__dot.is-active {
	background: var(--mk-homepage-hero-accent, #f5c518);
	transform: scale(1.1);
}

@media (max-width: 700px) {
	.mk-hero-slider__arrow {
		width: 44px;
		height: 58px;
	}

	.mk-hero-slider__arrow span {
		width: 15px;
		height: 15px;
		border-width: 2px;
	}

	.mk-hero-slider__arrow--prev {
		left: 8px;
	}

	.mk-hero-slider__arrow--next {
		right: 8px;
	}
}

/* Fit the slider to its content column in posts, pages and sidebar layouts. */
:is(.mk-layout--sidebar-left, .mk-layout--sidebar-right) .mk-layout__main .mk-hero-slider,
:is(.mk-reading-frame, :where(.single-post, .page):not(.home) .elementor-widget) .mk-hero-slider {
	left: auto;
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	row-gap: 4px;
}

:is(.mk-layout--sidebar-left, .mk-layout--sidebar-right) .mk-layout__main .mk-hero-slider__viewport,
:is(.mk-reading-frame, :where(.single-post, .page):not(.home) .elementor-widget) .mk-hero-slider__viewport {
	display: contents;
}

:is(.mk-layout--sidebar-left, .mk-layout--sidebar-right) .mk-layout__main .mk-hero-slider__track,
:is(.mk-reading-frame, :where(.single-post, .page):not(.home) .elementor-widget) .mk-hero-slider__track {
	grid-column: 1 / -1;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	border-radius: var(--mk-radius, 8px);
}

:is(.mk-layout--sidebar-left, .mk-layout--sidebar-right) .mk-layout__main .mk-hero-slider__arrow,
:is(.mk-reading-frame, :where(.single-post, .page):not(.home) .elementor-widget) .mk-hero-slider__arrow {
	position: static;
	grid-row: 2;
	width: min(40px, 100%);
	height: 44px;
	transform: none;
	color: var(--mk-color-text);
}

:is(.mk-layout--sidebar-left, .mk-layout--sidebar-right) .mk-layout__main .mk-hero-slider__arrow--prev,
:is(.mk-reading-frame, :where(.single-post, .page):not(.home) .elementor-widget) .mk-hero-slider__arrow--prev {
	grid-column: 1;
	justify-self: end;
}

:is(.mk-layout--sidebar-left, .mk-layout--sidebar-right) .mk-layout__main .mk-hero-slider__arrow--next,
:is(.mk-reading-frame, :where(.single-post, .page):not(.home) .elementor-widget) .mk-hero-slider__arrow--next {
	grid-column: 3;
	justify-self: start;
}

:is(.mk-layout--sidebar-left, .mk-layout--sidebar-right) .mk-layout__main .mk-hero-slider__dots,
:is(.mk-reading-frame, :where(.single-post, .page):not(.home) .elementor-widget) .mk-hero-slider__dots {
	grid-area: 2 / 2;
	gap: 0;
	margin: 0;
}

:is(.mk-layout--sidebar-left, .mk-layout--sidebar-right) .mk-layout__main .mk-hero-slider__dot,
:is(.mk-reading-frame, :where(.single-post, .page):not(.home) .elementor-widget) .mk-hero-slider__dot {
	display: grid;
	place-items: center;
	width: 24px;
	height: 32px;
	background: transparent;
	transform: none;
}

:is(.mk-layout--sidebar-left, .mk-layout--sidebar-right) .mk-layout__main .mk-hero-slider__dot::after,
:is(.mk-reading-frame, :where(.single-post, .page):not(.home) .elementor-widget) .mk-hero-slider__dot::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #8891a0;
}

:is(.mk-layout--sidebar-left, .mk-layout--sidebar-right) .mk-layout__main .mk-hero-slider__dot.is-active::after,
:is(.mk-reading-frame, :where(.single-post, .page):not(.home) .elementor-widget) .mk-hero-slider__dot.is-active::after {
	background: var(--mk-homepage-hero-accent, #f5c518);
}
