/**
 * Dual Row Carousel styles.
 *
 * Kept deliberately light so the widget inherits the host theme's look. The
 * only opinionated rule is the linear easing on .swiper-wrapper, which is what
 * turns Swiper's stepped autoplay into a smooth, continuous scroll.
 */

.drc-carousel {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.drc-row {
	position: relative;
	width: 100%;
}

.drc-row .drc-swiper {
	width: 100%;
	overflow: hidden;
}

/* The key to continuous motion: even, non-easing movement. Applied only when
   auto slide is on, so manual navigation keeps its natural easing. */
.drc-carousel--autoplay .swiper-wrapper {
	-webkit-transition-timing-function: linear;
	transition-timing-function: linear;
}

.drc-slide {
	display: block;
	height: auto;
	box-sizing: border-box;
	    background: #fff;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #dfdfdf;
}

/* Every image fills a box of the same shape, so all slides are equal in size.
   object-fit keeps the image's own proportions (it is never stretched). The
   --drc-ratio variable is set per instance from the Image Ratio setting. */
.drc-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var( --drc-ratio, 4 / 3 );
	object-fit: contain;
	object-position: center;
	border-radius: 8px;
}

/* "Show the whole image": fit it inside the box instead of cropping. */
.drc-fit-contain .drc-img {
	object-fit: contain;
}

/* --- Navigation buttons --- */
.drc-row .swiper-button-prev,
.drc-row .swiper-button-next {
	width: 38px;
	height: 38px;
	margin-top: -19px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.55 );
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.drc-row .swiper-button-prev:hover,
.drc-row .swiper-button-next:hover {
	background: rgba( 0, 0, 0, 0.8 );
}

.drc-row .swiper-button-prev::after,
.drc-row .swiper-button-next::after {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.drc-row .swiper-button-prev:focus-visible,
.drc-row .swiper-button-next:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* --- Pagination --- */
.drc-row .swiper-pagination.drc-pagination {
	position: static;
	margin-top: 10px;
	text-align: center;
}

/* --- Editor hint --- */
.drc-empty {
	padding: 12px 16px;
	border: 1px dashed currentColor;
	opacity: 0.7;
	font-size: 14px;
}

/* --- Smaller screens --- */
@media ( max-width: 767px ) {
	.drc-img {
		border-radius: 6px;
	}

	.drc-row .swiper-button-prev,
	.drc-row .swiper-button-next {
		width: 32px;
		height: 32px;
		margin-top: -16px;
	}

	.drc-row .swiper-button-prev::after,
	.drc-row .swiper-button-next::after {
		font-size: 13px;
	}
}

/* Reduced-motion handling lives in the JS: auto slide is simply not started
   for visitors who prefer reduced motion. Zeroing the transition here would
   speed up a zero-delay marquee instead of stopping it. */
