.xghs-slider {
	--xghs-viewport-width: 100vw;
	--xghs-half-viewport-width: 50vw;
	position: relative;
	width: var(--xghs-viewport-width);
	max-width: var(--xghs-viewport-width);
	margin-left: calc(50% - var(--xghs-half-viewport-width));
	margin-right: calc(50% - var(--xghs-half-viewport-width));
	color: #fff;
	background: #f2f2f2;
	overflow: hidden;
	font-family: inherit;
}

.xghs-slider,
.xghs-slider * {
	box-sizing: border-box;
}

.xghs-stage {
	position: relative;
	height: clamp(420px, 34.5vw, 720px);
	min-height: 420px;
	background: #05070d;
	overflow: hidden;
}

.xghs-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 420ms ease, visibility 420ms ease;
}

.xghs-slide.is-active {
	opacity: 1;
	visibility: visible;
}

.xghs-slide-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.xghs-slide-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.42) 34%, rgba(0, 0, 0, 0.08) 70%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 45%);
	pointer-events: none;
}

.xghs-content {
	position: absolute;
	top: 52%;
	left: max(24px, calc((100vw - 1200px) / 2));
	z-index: 2;
	width: min(560px, calc(100vw - 48px));
	transform: translateY(-50%);
}

.xghs-title {
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp(28px, 2.2vw, 44px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: 0;
	text-transform: uppercase;
}

.xghs-subtitle {
	max-width: 560px;
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(15px, 1.05vw, 18px);
	font-weight: 600;
	line-height: 1.55;
}

.xghs-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 22px;
}

.xghs-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.xghs-button:hover,
.xghs-button:focus {
	transform: translateY(-1px);
	text-decoration: none;
}

.xghs-button-primary {
	background: #0084df;
	color: #fff;
}

.xghs-button-primary:hover,
.xghs-button-primary:focus {
	background: #0797ff;
	color: #fff;
}

.xghs-button-secondary {
	background: #fff;
	color: #15171d;
}

.xghs-button-secondary:hover,
.xghs-button-secondary:focus {
	background: #eaf5ff;
	color: #07090d;
}

.xghs-arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 72px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, 0);
	color: #fff;
	cursor: pointer;
	font-size: 58px;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-50%);
	transition: background-color 180ms ease, opacity 180ms ease;
}

.xghs-arrow:hover,
.xghs-arrow:focus {
	background: rgba(0, 0, 0, 0.22);
	outline: none;
}

.xghs-arrow-prev {
	left: 0;
}

.xghs-arrow-next {
	right: 0;
}

.xghs-thumbnails {
	display: flex;
	justify-content: center;
	gap: 20px;
	width: 100%;
	padding: 12px 20px 34px;
	background: #f2f2f2;
	overflow-x: auto;
	scrollbar-width: thin;
}

.xghs-thumbnail {
	flex: 0 0 auto;
	width: clamp(96px, 8.4vw, 162px);
	aspect-ratio: 4 / 3;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	opacity: 0.78;
	overflow: hidden;
	transform: translateY(0);
	transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.xghs-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xghs-thumbnail.is-active,
.xghs-thumbnail:hover,
.xghs-thumbnail:focus {
	opacity: 1;
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
	outline: none;
}

@media (max-width: 782px) {
	.xghs-stage {
		height: 560px;
		min-height: 560px;
	}

	.xghs-slide-shade {
		background:
			linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.36) 54%, rgba(0, 0, 0, 0.08) 100%),
			linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.04) 100%);
	}

	.xghs-content {
		top: auto;
		right: 24px;
		bottom: 42px;
		left: 24px;
		width: auto;
		transform: none;
	}

	.xghs-title {
		font-size: 28px;
	}

	.xghs-subtitle {
		font-size: 15px;
		line-height: 1.48;
	}

	.xghs-actions {
		gap: 10px;
	}

	.xghs-button {
		width: 100%;
		min-width: 0;
	}

	.xghs-arrow {
		width: 40px;
		height: 56px;
		font-size: 44px;
	}

	.xghs-thumbnails {
		justify-content: flex-start;
		gap: 12px;
		padding: 12px 16px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.xghs-slide,
	.xghs-button,
	.xghs-arrow,
	.xghs-thumbnail {
		transition: none;
	}
}
