/* Referencje — karuzela (inc/referencje.php, assets/js/referencje.js).
   Karta to ten sam .cb-referencja co w strony.css; tu tylko tor przewijania i sterowanie. */

.cb-ref__okno { margin: 0; }
.cb-ref__tor {
	--cb-ref-na-rzad: 3;
	--cb-ref-odstep: 24px;
	margin: 0; padding: 4px 2px 12px; list-style: none;
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--cb-ref-na-rzad) - 1) * var(--cb-ref-odstep)) / var(--cb-ref-na-rzad));
	gap: var(--cb-ref-odstep);
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none;
}
.cb-ref__tor::-webkit-scrollbar { display: none; }
.cb-ref__tor:focus-visible { outline: 2px solid var(--wp--preset--color--accent-teal); outline-offset: 4px; border-radius: var(--wp--custom--radius--md); }
.cb-ref__karta { scroll-snap-align: start; margin: 0 !important; }
.cb-referencja__tresc { margin: 0; padding: 0; border: 0; }
.cb-referencja__tresc p { margin: 0; }
.cb-referencja__osoba a { color: inherit; text-decoration-color: var(--wp--preset--color--line); text-underline-offset: 3px; }
.cb-referencja__osoba a:hover { text-decoration-color: currentColor; }

.cb-ref__sterowanie { display: flex; align-items: center; justify-content: center; gap: 16px; }
.cb-ref__sterowanie[hidden] { display: none; }
.cb-ref__strzalka {
	width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; cursor: pointer;
	color: var(--wp--preset--color--ink); background: transparent;
	border: 1px solid var(--wp--preset--color--line); border-radius: 50%;
}
.cb-ref__strzalka:hover { border-color: var(--wp--preset--color--ink); }
.cb-ref__strzalka:focus-visible { outline: 2px solid var(--wp--preset--color--accent-teal); outline-offset: 2px; }
.cb-ref__strzalka--wstecz .cb-ikona { transform: rotate(180deg); }
.cb-ref__kropki { display: flex; gap: 4px; }
.cb-ref__kropka {
	width: 24px; height: 24px; padding: 0; cursor: pointer; border: 0; background: transparent;
	display: inline-grid; place-items: center;
}
.cb-ref__kropka::before {
	content: ""; width: 8px; height: 8px; transform: rotate(45deg);
	background: var(--wp--preset--color--line); transition: background .2s;
}
.cb-ref__kropka[aria-current="true"]::before { background: var(--wp--preset--color--accent-amber); }
.cb-ref__kropka:focus-visible { outline: 2px solid var(--wp--preset--color--accent-teal); }

@media (max-width: 1100px) { .cb-ref__tor { --cb-ref-na-rzad: 2; } }
@media (max-width: 700px) { .cb-ref__tor { --cb-ref-na-rzad: 1; --cb-ref-odstep: 16px; } }
@media (prefers-reduced-motion: reduce) { .cb-ref__tor { scroll-behavior: auto; } }
