.hm-hero {
	position: relative;
	width: 100%;
	height: var(--hm-h, 100vh);
	overflow: hidden;
	background: #000;
	color: #fff;
	isolation: isolate;
	touch-action: pan-y;
	box-sizing: border-box;
}

.hm-hero:focus-visible {
	outline: 2px solid var(--hm-ui, #fff);
	outline-offset: -2px;
}

@media (max-width: 680px) {
	.hm-hero {
		height: var(--hm-h-m, var(--hm-h, 100vh));
	}
}

.hm-hero .hm-poster,
.hm-hero .hm-poster img,
.hm-hero .hm-canvas,
.hm-hero .hm-overlay,
.hm-hero .hm-slides,
.hm-hero .hm-slide,
.hm-hero .hm-arrows {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	box-sizing: border-box;
}

.hm-hero .hm-poster img {
	object-fit: cover;
}

.hm-hero .hm-canvas {
	opacity: 0;
	transition: opacity 0.3s ease-out;
}

.hm-hero.is-ready .hm-canvas {
	opacity: 1;
}

.hm-hero .hm-overlay {
	background: var(--hm-overlay, #000);
	opacity: var(--hm-overlay-o, 0);
	pointer-events: none;
}

/* Slides hold only the HTML content; images are drawn on the canvas. */
.hm-hero .hm-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 50px 60px;
	text-align: center;
	pointer-events: none;
}

.hm-hero .hm-slide[data-contentposition='top'] {
	align-items: flex-start;
}

.hm-hero .hm-slide[data-contentposition='bottom'] {
	align-items: flex-end;
}

.hm-hero .hm-content {
	position: relative;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateY(2rem);
	transition:
		opacity var(--hm-ct, 0.4s) cubic-bezier(0.645, 0.045, 0.355, 1),
		transform var(--hm-ct, 0.4s) cubic-bezier(0.645, 0.045, 0.355, 1),
		visibility 0s linear var(--hm-ct, 0.4s);
}

.hm-hero .hm-content > :last-child {
	margin-bottom: 0;
}

.hm-hero .hm-slide.is-active .hm-content {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
	transition-delay: 0s;
}

/* Arrows */
.hm-hero .hm-arrows {
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
}

.hm-hero .hm-arrow {
	width: 22px;
	height: 28px;
	margin: 1.5rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	pointer-events: auto;
	transition: opacity 0.2s ease-out;
	-webkit-tap-highlight-color: transparent;
}

.hm-hero .hm-arrow svg {
	display: block;
	width: auto;
	height: 100%;
	margin: 0 auto;
}

.hm-hero .hm-arrow .arrow_path {
	fill: var(--hm-ui, #fff);
}

.hm-hero .hm-arrow:hover {
	opacity: 0.4;
}

.hm-hero .hm-arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

/* Pagination */
.hm-hero .hm-pagination {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
}

.hm-hero .hm-pagination ul {
	display: flex;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hm-hero .hm-dot {
	position: relative;
	width: 28px;
	margin: 0 5px;
	padding: 20px 0;
	opacity: 0.6;
	cursor: pointer;
	transition: opacity 0.2s ease-out;
	-webkit-tap-highlight-color: transparent;
}

.hm-hero .hm-dot::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 3px;
	border-radius: 3px;
	background: var(--hm-ui, #fff);
	transform: translateY(-50%);
}

.hm-hero .hm-dot.active,
.hm-hero .hm-dot:hover {
	opacity: 1;
}

@media (max-width: 680px) {
	.hm-hero .hm-slide {
		padding: 50px;
	}

	.hm-hero .hm-arrow {
		width: 15px;
		height: 20px;
	}

	.hm-hero .hm-dot {
		width: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-hero .hm-content {
		transform: none;
	}
}
