/**
 * Bridge909 carousel — CSS-only scroll-snap strip.
 * Card counts use Beaver Builder breakpoints (992 / 768).
 */

.bridge-carousel {
	--cards: 4;          /* desktop and larger */
	--gap: 20px;
	position: relative;
}

/* Tablet */
@media (max-width: 992px) {
	.bridge-carousel { --cards: 3; }
}

/* Mobile */
@media (max-width: 768px) {
	.bridge-carousel { --cards: 2; }
}

.bridge-carousel-track {
	list-style: none;
	margin: 0;
	padding: 0 0 10px;
	display: flex;
	align-items: stretch;          /* equal-height cards */
	gap: var(--gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;         /* Firefox */
}
.bridge-carousel-track::-webkit-scrollbar {
	display: none;                 /* WebKit */
}

.bridge-carousel-card {
	flex: 0 0 calc((100% - (var(--cards) - 1) * var(--gap)) / var(--cards));
	scroll-snap-align: start;
}

.bridge-carousel-card > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	color: inherit;
	text-decoration: none;
}

.bridge-carousel-img {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
.bridge-carousel-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bridge-carousel-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;                /* fill the stretched height */
	padding: 20px;
}

.bridge-carousel-title {
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 10px;
}

.bridge-carousel-date {
	font-size: 14px;
	margin: 0 0 10px;
	opacity: 0.85;
}

.bridge-carousel-excerpt {
	font-size: 14px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 5;         /* clamp so one long story can't blow out heights */
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* No-image fallback */
.bridge-carousel-card.is-no-image .bridge-carousel-img {
	display: none;
}

/* Navigation dots */
.bridge-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
}
.bridge-carousel-dots .bridge-carousel-dot {
	-webkit-appearance: none;
	appearance: none;
	width: 10px;
	height: 10px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.35);
	box-shadow: none;
	cursor: pointer;
	transition: background 0.2s ease;
}
.bridge-carousel-dots .bridge-carousel-dot:hover {
	background: rgba(255, 255, 255, 0.6);
}
.bridge-carousel-dots .bridge-carousel-dot[aria-current="true"] {
	background: #fff;
}
