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

.gph-slider {
	--gph-accent: #2563eb;
	--gph-border: rgba(15, 23, 42, 0.14);
	--gph-button-bg: #ffffff;
	--gph-button-color: #111827;
	--gph-muted: rgba(17, 24, 39, 0.46);
	margin: 8px auto 24px;
	max-width: 70vw;
	width: 70vw;
}

.gph-slider__viewport {
	aspect-ratio: 16 / 9;
	background: #0f172a;
	border-radius: 12px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
	overflow: hidden;
	width: 100%;
}

.gph-slider__track {
	display: flex;
	height: 100%;
	transform: translate3d(0, 0, 0);
	transition: transform 360ms ease;
	width: 100%;
}

.gph-slide {
	flex: 0 0 100%;
	height: 100%;
	min-width: 100%;
}

.gph-slide__media {
	display: block;
	height: 100%;
	text-decoration: none;
	width: 100%;
}

.gph-slide__media:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: -6px;
}

.gph-slide__image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.gph-slider__timer {
	background: rgba(15, 23, 42, 0.12);
	border-radius: 999px;
	height: 4px;
	margin: 10px auto 0;
	max-width: min(420px, 70%);
	overflow: hidden;
	width: 100%;
}

.gph-slider__timer span {
	background: var(--gph-accent);
	display: block;
	height: 100%;
	transform: scaleX(0);
	transform-origin: left center;
	width: 100%;
}

.gph-slider__controls {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: center;
	margin-top: 14px;
	min-height: 46px;
	width: 100%;
}

.gph-slider__button {
	align-items: center;
	appearance: none;
	background: var(--gph-button-bg);
	border: 1px solid var(--gph-border);
	border-radius: 999px;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
	color: var(--gph-button-color);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 30px;
	font-weight: 700;
	height: 44px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
	width: 44px;
}

.gph-slider__button:hover,
.gph-slider__button:focus-visible {
	background: var(--gph-accent);
	border-color: var(--gph-accent);
	color: #ffffff;
	outline: none;
	transform: translateY(-1px);
}

.gph-slider__button:disabled {
	background: #f3f4f6;
	box-shadow: none;
	color: rgba(17, 24, 39, 0.32);
	cursor: not-allowed;
	transform: none;
}

.gph-slider__dots {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	max-width: min(520px, calc(100% - 116px));
}

.gph-slider__dot {
	appearance: none;
	background: var(--gph-muted);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	height: 10px;
	padding: 0;
	transition: background 160ms ease, transform 160ms ease, width 160ms ease;
	width: 10px;
}

.gph-slider__dot.is-active {
	background: var(--gph-accent);
	width: 28px;
}

.gph-slider__dot:focus-visible {
	outline: 2px solid var(--gph-accent);
	outline-offset: 3px;
}

@media (max-width: 782px) {
	body .gph-slider {
		margin: 0 auto !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	.gph-slider__viewport {
		border-radius: 8px;
	}

	.gph-slider__controls {
		gap: 10px;
		margin-top: 12px;
	}

	.gph-slider__button {
		font-size: 26px;
		height: 40px;
		width: 40px;
	}

	.gph-slider__dots {
		gap: 7px;
		max-width: calc(100% - 100px);
	}

	.wp-block-shortcode:has(.gph-slider),
	.wp-block-group:has(> .gph-slider:first-child),
	.wp-block-post-content:has(> .gph-slider:first-child),
	.entry-content:has(> .gph-slider:first-child) {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
}
