/**
 * Bricksify: Circular Slider.
 *
 * The base state is a real, usable horizontal scroller. `is-ready` is added by
 * the script only once GSAP and Draggable are confirmed, and that is what
 * switches the layout to the circle. A visitor without JavaScript keeps a
 * working slider.
 */

.bxc-circ {
	position: relative;
	width: 100%;
}

/* Fallback: a scroll-snap row. */
.bxc-circ__ring {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
}

.bxc-circ .bxc-circ__card {
	flex: 0 0 auto;
	width: 260px;
	scroll-snap-align: center;
	border-radius: 20px;
	overflow: hidden;
	background: var(--color-surface, #fff);
	border: 1px solid var(--color-border, #dfe3ef);
}

.bxc-circ__card img,
.bxc-circ .bxc-circ__media {
	display: block;
	width: 100%;
	height: 340px;
	object-fit: cover;
}

.bxc-circ__caption {
	display: block;
	padding: 16px 18px;
	font-family: Satoshi, sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--color-ink, #171c3d);
}

/* Enhanced: the crest of a very large circle. */
\/*
 * Clip sideways only. `overflow: hidden` would also clip vertically and turn
 * the stage into a scroll container; the cards need to curve away past the
 * bottom edge instead, the way they do in the reference.
 *
 * `clip` is exempt from the rule that forces the other axis to `auto`, so the
 * vertical axis really does stay visible with no scrollbar. The shorthand above
 * is the fallback for browsers too old to know `clip`.
 *\/
.bxc-circ.is-ready {
	overflow: hidden;
	overflow: clip visible;
	touch-action: pan-y;
}

.bxc-circ.is-ready .bxc-circ__ring {
	position: absolute;
	inset: 0 0 auto 0;
	display: block;
	gap: 0;
	overflow: visible;
	scroll-snap-type: none;
	padding: 0;
	cursor: grab;
}

.bxc-circ.is-ready .bxc-circ__ring:active {
	cursor: grabbing;
}

.bxc-circ.is-ready .bxc-circ__card {
	width: 260px;
	user-select: none;
}

.bxc-circ.is-ready .bxc-circ__card img {
	pointer-events: none;
}

/* Controls */
.bxc-circ-wrap .bxc-circ__nav {
	display: flex;
	flex-direction: row;
	gap: 10px;
	justify-content: center;
	margin-top: 32px;
}

.bxc-circ__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--color-border, #dfe3ef);
	border-radius: 999px;
	background: var(--color-surface, #fff);
	color: var(--color-ink, #171c3d);
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.bxc-circ__btn:hover {
	background: var(--color-accent, #3456f5);
	border-color: transparent;
	color: #fff;
}

.bxc-circ__btn:focus-visible {
	outline: 2px solid var(--color-accent, #3456f5);
	outline-offset: 2px;
}

.bxc-circ__btn svg {
	width: 18px;
	height: 18px;
}

@media (max-width: 767px) {
	.bxc-circ .bxc-circ__card {
		width: 200px;
	}

	.bxc-circ__card img,
	.bxc-circ .bxc-circ__media {
		height: 260px;
	}
}

