.mtg-carousel,
.mtg-carousel *,
.mtg-carousel *::before,
.mtg-carousel *::after {
	box-sizing: border-box;
}

.mtg-carousel {
	--mtg-carousel-dot-size: 8px;
	--mtg-carousel-active-dot-width: 24px;
	--mtg-carousel-dot-gap: 8px;
	--mtg-carousel-dot-color: #d6d6d6;
	--mtg-carousel-active-dot-color: #9a1f24;
	--mtg-carousel-dots-margin-top: 20px;

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

.mtg-carousel__viewport {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	list-style: none;
	padding: 0;
}

.mtg-carousel__viewport.swiper {
	display: block;
}

.mtg-carousel__track {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	transition-property: transform;
	z-index: 1;
}

.mtg-carousel__slide {
	position: relative;
	display: block;
	flex-shrink: 0;
	min-width: 0;
	width: 100%;
	height: auto;
	transition-property: transform;
}

.mtg-carousel__slide > * {
	width: 100%;
	min-width: 0;
}

.mtg-carousel .mtg-video-card {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.mtg-carousel--equal-height .mtg-carousel__slide {
	display: flex;
	height: auto;
}

.mtg-carousel--equal-height .mtg-video-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.mtg-carousel--equal-height .mtg-video-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.mtg-carousel--equal-height .mtg-video-card__tags {
	margin-top: auto;
}

.mtg-carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: #9a1f24;
	cursor: pointer;
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.1);
	border-radius: 999px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
	transform: translateY(-50%);
	transition:
		opacity 180ms ease,
		transform 180ms ease,
		box-shadow 180ms ease;
	appearance: none;
}

.mtg-carousel__arrow:hover {
	transform: translateY(-50%) scale(1.04);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.mtg-carousel__arrow:focus-visible {
	outline: 3px solid rgba(154, 31, 36, 0.32);
	outline-offset: 3px;
}

.mtg-carousel__arrow::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
}

.mtg-carousel__arrow--prev {
	left: -21px;
}

.mtg-carousel__arrow--prev::before {
	margin-left: 4px;
	transform: rotate(-45deg);
}

.mtg-carousel__arrow--next {
	right: -21px;
}

.mtg-carousel__arrow--next::before {
	margin-right: 4px;
	transform: rotate(135deg);
}

.mtg-carousel__arrow.swiper-button-disabled,
.mtg-carousel__arrow[disabled] {
	cursor: default;
	opacity: 0.35;
	pointer-events: none;
}

.mtg-carousel__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--mtg-carousel-dot-gap);
	width: 100%;
	min-height: var(--mtg-carousel-active-dot-width);
	margin-top: var(--mtg-carousel-dots-margin-top);
}

.mtg-carousel__pagination .swiper-pagination-bullet {
	display: block;
	width: var(--mtg-carousel-dot-size);
	height: var(--mtg-carousel-dot-size);
	margin: 0;
	padding: 0;
	cursor: pointer;
	background: var(--mtg-carousel-dot-color);
	border: 0;
	border-radius: 999px;
	opacity: 1;
	transition:
		width 180ms ease,
		background-color 180ms ease,
		opacity 180ms ease;
}

.mtg-carousel__pagination .swiper-pagination-bullet-active {
	width: var(--mtg-carousel-active-dot-width);
	background: var(--mtg-carousel-active-dot-color);
}

.mtg-carousel--hide-arrows .mtg-carousel__arrow,
.mtg-carousel--hide-dots .mtg-carousel__pagination {
	display: none;
}

@media (max-width: 767px) {
	.mtg-carousel__arrow {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mtg-carousel__arrow,
	.mtg-carousel__pagination .swiper-pagination-bullet {
		transition: none;
	}
}
