/* =========================================================
   Congregate Recent Sermons Carousel
   ========================================================= */

/* Outer wrapper — full width, no overflow clipping here */
.cong-carousel-wrapper {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding-bottom: 8px;
}

/* ---- Viewport: clips the scrolling track ---- */
.cong-carousel-viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* Track: single horizontal row, never wraps */
.cong-carousel-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	transition: transform 0.35s ease;
	will-change: transform;
	width: 100%;
}

/* ---- Slides ---- */
.cong-carousel-slide {
	flex: 0 0 auto;
	box-sizing: border-box;
	padding: 0 8px;
	min-width: 0;
}

/* Inner wrapper — needed for text-align to work predictably */
.cong-carousel-slide-inner {
	width: 100%;
}

/* Thumbnail link — 16:9 ratio, rounded corners */
.cong-carousel-thumb-link {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 12px;
	background: #e0e0e0;
}

.cong-carousel-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.cong-carousel-thumb-link:hover .cong-carousel-thumb {
	transform: scale(1.03);
}

/* ---- Meta text — centered under thumbnail ---- */
.cong-carousel-meta {
	padding: 8px 2px 0;
	text-align: center;
}

.cong-carousel-meta p {
	margin: 0 0 2px;
	line-height: 1.35;
}

.cong-carousel-title {
	font-weight: 700;
	font-size: 0.88em;
	color: inherit;
}

.cong-carousel-speaker {
	font-size: 0.82em;
	color: #555;
}

.cong-carousel-date {
	font-size: 0.78em;
	color: #888;
}

/* ---- Dots ---- */
.cong-carousel-dots {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

/* Dot button: transparent hit target; circle drawn via ::after */
.cong-carousel-wrapper .cong-carousel-dot {
	width: 20px;
	height: 20px;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
	margin: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

.cong-carousel-wrapper .cong-carousel-dot:hover,
.cong-carousel-wrapper .cong-carousel-dot:focus {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}

.cong-carousel-wrapper .cong-carousel-dot::after {
	content: '';
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ccc !important;
	transition: background 0.2s ease, transform 0.2s ease;
}

.cong-carousel-wrapper .cong-carousel-dot.is-active::after {
	background: #888 !important;
	transform: scale(1.3);
}

/* ---- Error state ---- */
.cong-carousel-error {
	color: #c00;
	padding: 8px 0;
}
