/* Shared carousel + lightbox. Items per view: --ct-pv (set per widget, per breakpoint). */
.ct-car { position: relative; --ct-pv: var(--ct-pv-d, 3); --ct-gap: 20px; }
.ct-car__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--ct-pv) - 1) * var(--ct-gap)) / var(--ct-pv));
	gap: var(--ct-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.ct-car__track::-webkit-scrollbar { display: none; }
.ct-car__item { scroll-snap-align: start; min-width: 0; }
.ct-car__item img { display: block; width: 100%; height: auto; }
.ct-car__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 42px;
	height: 42px;
	margin-top: -21px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--ct-ink);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	cursor: pointer;
	transition: opacity .2s, background-color .2s, color .2s;
}
.ct-car__nav:hover { background: var(--ct-primary); color: #fff; }
.ct-car__nav:disabled { opacity: 0; pointer-events: none; }
.ct-car__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ct-car__nav--prev { left: -10px; }
.ct-car__nav--next { right: -10px; }
.ct-car__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.ct-car__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .18); cursor: pointer; transition: background-color .2s, transform .2s; }
.ct-car__dots button.is-on { background: var(--ct-sky); transform: scale(1.25); }
.ct-car.is-static .ct-car__nav, .ct-car.is-static .ct-car__dots { display: none; }
.ct-car--hide-dots .ct-car__dots { display: none; }
@media (max-width: 1024px) { .ct-car { --ct-pv: var(--ct-pv-t, 2); } }
@media (max-width: 767px) {
	.ct-car { --ct-pv: var(--ct-pv-m, 1.1); }
	.ct-car__nav { display: none; }
}

/* Lightbox */
.ct-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .88); }
.ct-lb[hidden] { display: none; }
.ct-lb__img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.ct-lb button { position: absolute; border: 0; background: none; color: #fff; cursor: pointer; font-size: 44px; line-height: 1; padding: 10px 16px; }
.ct-lb button:hover { color: var(--ct-sky); background: none; }
.ct-lb__x { top: 8px; right: 12px; }
.ct-lb__n { top: 50%; margin-top: -30px; }
.ct-lb__n--p { left: 8px; }
.ct-lb__n--n { right: 8px; }
.ct-lb.is-single .ct-lb__n { display: none; }
html.ct-lb-open { overflow: hidden; }
