/*
	Slider hero na telefonie: kropki, dwie male strzalki i przewijanie palcem.
	Elementy sterujace dokleja skrypt, wiec bez JavaScriptu nic martwego nie zostaje.
	Na komputerze zostaje dotychczasowy pasek z numeracja.
*/

.hero-ster {
	display: none;
}

@media (max-width: 900px) {
	/* Pionowe przewijanie strony zostaje przegladarce, poziomy gest bierze slider. */
	.hero {
		touch-action: pan-y;
	}

	.hero.ma-sterowanie .pager {
		display: none;
	}

	.hero-ster {
		position: absolute;
		left: 50%;
		bottom: 14px;
		transform: translateX(-50%);
		z-index: 4;
		display: flex;
		align-items: center;
		gap: 4px;
	}

	.hero-strzalka,
	.hero-kropka {
		-webkit-appearance: none;
		appearance: none;
		margin: 0;
		padding: 0;
		font: inherit;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.hero-strzalka {
		width: 30px;
		height: 30px;
		border-radius: 50%;
		border: 1px solid rgba(255, 255, 255, .32);
		background: rgba(9, 9, 10, .35);
		color: rgba(255, 255, 255, .9);
		display: flex;
		align-items: center;
		justify-content: center;
		-webkit-backdrop-filter: blur(4px);
		backdrop-filter: blur(4px);
		transition: background .2s ease, border-color .2s ease;
	}

	.hero-strzalka svg {
		width: 14px;
		height: 14px;
		display: block;
	}

	.hero-strzalka:active {
		background: rgba(255, 255, 255, .18);
		border-color: rgba(255, 255, 255, .6);
	}

	.hero-kropki {
		display: flex;
		align-items: center;
		margin: 0 4px;
	}

	.hero-kropka {
		width: 22px;
		height: 30px;
		border: 0;
		background: none;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.hero-kropka::before {
		content: "";
		display: block;
		width: 6px;
		height: 6px;
		border-radius: 3px;
		background: rgba(255, 255, 255, .45);
		transition: width .3s ease, background .3s ease;
	}

	.hero-kropka.jest-aktywna::before {
		width: 18px;
		background: #fff;
	}

	.hero-strzalka:focus-visible,
	.hero-kropka:focus-visible {
		outline: 2px solid #fff;
		outline-offset: 2px;
	}
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
	.hero-kropka::before,
	.hero-strzalka {
		transition: none;
	}
}
