.bluegam-home-hero-carousel {
	background: var(--wp--preset--color--surface-soft, #f5fafe);
	direction: rtl;
	inline-size: 100%;
	isolation: isolate;
	margin-block: 0;
	overflow: clip;
	padding-block: 16px 44px;
}

.bluegam-home-hero-carousel__shell {
	inline-size: min(calc(100% - 48px), 1320px);
	margin-inline: auto;
}

.bluegam-home-hero-carousel__frame {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border, #d8eaf6);
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(11, 45, 91, 0.07);
	overflow: hidden;
	position: relative;
}

.bluegam-home-hero-carousel__viewport {
	aspect-ratio: 16 / 5;
	inline-size: 100%;
	overflow: hidden;
	touch-action: pan-y pinch-zoom;
}

.bluegam-home-hero-carousel__track {
	backface-visibility: hidden;
	block-size: 100%;
	direction: ltr;
	display: flex;
	inline-size: 100%;
	transform: translate3d(0, 0, 0);
	will-change: transform;
}

.bluegam-home-hero-carousel__track.is-animated {
	transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bluegam-home-hero-carousel__slide {
	block-size: 100%;
	direction: rtl;
	flex: 0 0 100%;
	inline-size: 100%;
	min-inline-size: 0;
	overflow: hidden;
}

.bluegam-home-hero-carousel__link,
.bluegam-home-hero-carousel__media,
.bluegam-home-hero-carousel picture,
.bluegam-home-hero-carousel img {
	block-size: 100%;
	display: block;
	inline-size: 100%;
}

.bluegam-home-hero-carousel__link:focus-visible {
	box-shadow: inset 0 0 0 4px var(--wp--preset--color--primary, #1b689d);
	outline: 0;
}

.bluegam-home-hero-carousel img {
	max-inline-size: none;
	object-fit: cover;
	object-position: center;
	user-select: none;
	-webkit-user-drag: none;
}

.bluegam-home-hero-carousel__arrow {
	align-items: center;
	background: rgba(255, 255, 255, 0.96);
	block-size: 46px;
	border: 1px solid var(--wp--preset--color--border-strong, #b7d6ea);
	border-radius: 50%;
	box-shadow: 0 3px 12px rgba(11, 45, 91, 0.10);
	color: var(--wp--preset--color--deep-navy, #0b2d5b);
	cursor: pointer;
	display: flex;
	inline-size: 46px;
	justify-content: center;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
}

.bluegam-home-hero-carousel__arrow:hover {
	background: #fff;
	border-color: var(--wp--preset--color--primary, #1b689d);
	color: var(--wp--preset--color--primary, #1b689d);
}

.bluegam-home-hero-carousel__arrow:focus-visible,
.bluegam-home-hero-carousel__dot:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary, #1b689d);
	outline-offset: 3px;
}

.bluegam-home-hero-carousel__arrow svg {
	block-size: 22px;
	fill: none;
	inline-size: 22px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.bluegam-home-hero-carousel__arrow--previous {
	inset-inline-start: 18px;
}

.bluegam-home-hero-carousel__arrow--next {
	inset-inline-end: 18px;
}

.bluegam-home-hero-carousel__progress {
	background: transparent;
	display: flex;
	direction: rtl;
	gap: 0;
	block-size: 44px;
	inline-size: min(132px, calc(100% - 32px));
	margin: -5px auto -25px;
	overflow: visible;
}

.bluegam-home-hero-carousel__dot {
	appearance: none;
	background: transparent;
	block-size: 100%;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	flex: 1 1 0;
	min-block-size: 44px;
	min-inline-size: 0;
	padding: 0;
	position: relative;
}

.bluegam-home-hero-carousel__dot::before {
	background: var(--wp--preset--color--blue-100, #ddf1ff);
	block-size: 4px;
	content: "";
	inset-inline: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.bluegam-home-hero-carousel__dot:first-child::before {
	border-radius: 0 999px 999px 0;
}

.bluegam-home-hero-carousel__dot:last-child::before {
	border-radius: 999px 0 0 999px;
}

.bluegam-home-hero-carousel__dot[aria-current="true"]::before {
	background: var(--wp--preset--color--primary, #1b689d);
}

@media (max-width: 767px) {
	.bluegam-home-hero-carousel {
		padding-block: 12px 32px;
	}

	.bluegam-home-hero-carousel__shell {
		inline-size: calc(100% - 24px);
	}

	.bluegam-home-hero-carousel__frame {
		border-radius: 10px;
	}

	.bluegam-home-hero-carousel__viewport {
		aspect-ratio: 16 / 15;
	}

	.bluegam-home-hero-carousel__slide--shared-artwork img {
		object-position: 76% center;
	}

	.bluegam-home-hero-carousel__arrow {
		display: none;
	}

	.bluegam-home-hero-carousel__progress {
		margin-block-start: -7px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bluegam-home-hero-carousel__track.is-animated {
		transition: none;
	}
}
