/* Speaker Carousel — front-end styles.
   Values that come from the settings screen (fonts, colors, gap, arrow size)
   are injected as CSS variables / inline rules by the plugin. */

.sc-carousel {
	position: relative;
	width: 100%;
	--sc-gap: 18px;
	--sc-arrow-size: 28px;
	--sc-arrow-offset: -40px;
}

.sc-carousel .swiper {
	width: 100%;
	overflow: hidden;
}

.sc-carousel .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

.sc-carousel .sc-card {
	display: block;
	color: inherit;
	text-decoration: none;
	line-height: 1.3;
}

.sc-carousel a.sc-card:hover .sc-photo img {
	transform: scale(1.03);
}

.sc-carousel .sc-photo {
	width: 100%;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.15);
	margin-bottom: 14px;
}

.sc-carousel .sc-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.25s ease;
}

.sc-carousel .sc-name {
	margin-bottom: 8px;
}

.sc-carousel .sc-title {
	margin-bottom: 2px;
}

/* Arrows */
.sc-carousel .sc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: var(--sc-arrow-size);
	height: var(--sc-arrow-size);
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	line-height: 0;
	transition: opacity 0.15s ease;
}

.sc-carousel .sc-arrow:hover { opacity: 0.85; }
.sc-carousel .sc-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sc-carousel .sc-arrow-prev { left: var(--sc-arrow-offset); }
.sc-carousel .sc-arrow-next { right: var(--sc-arrow-offset); }

/* When everything fits on screen (no need to scroll), hide arrows */
.sc-carousel.sc-static .sc-arrow { display: none; }

/* On narrow screens, keep arrows inside the row so they're never clipped */
@media (max-width: 767px) {
	.sc-carousel.sc-arrows-outside .sc-arrow-prev { left: 0; }
	.sc-carousel.sc-arrows-outside .sc-arrow-next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.sc-carousel .sc-photo img { transition: none; }
}
