/*! RD Logo Showcase v1.0.0 */

.rdls {
	--rdls-cols: var(--rdls-cols-d, 5);
	--rdls-gap: 16px;
	--rdls-ratio: 11 / 6;
	--rdls-arrow-size: 30px;
	--rdls-arrow-bg: rgba(0, 0, 0, 0.5);
	--rdls-arrow-bg-hover: rgba(0, 0, 0, 0.75);
	--rdls-arrow-fg: #fff;
	--rdls-dot: rgba(0, 0, 0, 0.25);
	--rdls-dot-active: rgba(0, 0, 0, 0.7);
	position: relative;
	width: 100%;
	margin: 0 auto;
}

@media (max-width: 980px) {
	.rdls { --rdls-cols: var(--rdls-cols-t, 3); }
}

@media (max-width: 640px) {
	.rdls { --rdls-cols: var(--rdls-cols-m, 2); }
}

.rdls,
.rdls *,
.rdls *::before,
.rdls *::after {
	box-sizing: border-box;
}

.rdls-heading {
	margin: 0 0 0.75em;
}

.rdls .rdls-viewport {
	overflow: hidden;
	touch-action: pan-y;
}

/* Before the script runs (or if it never does), the row can still be scrolled sideways. */
.rdls--slider:not(.is-ready) .rdls-viewport {
	overflow-x: auto;
	scrollbar-width: thin;
}

.rdls .rdls-track,
.rdls .rdls-marquee-track {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.rdls .rdls-track {
	will-change: transform;
}

.rdls .rdls-slide {
	flex: 0 0 calc(100% / var(--rdls-cols));
	min-width: 0;
	margin: 0;
	padding: 0 calc(var(--rdls-gap) / 2);
	text-align: center;
	user-select: none;
	-webkit-user-select: none;
}

.rdls .rdls-link {
	display: block;
	color: inherit;
	text-decoration: none;
	border: 0;
	box-shadow: none;
}

.rdls a.rdls-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.rdls .rdls-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: var(--rdls-ratio);
	overflow: hidden;
}

.rdls .rdls-tile img,
.rdls img.rdls-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
	-webkit-user-drag: none;
}

.rdls--natural .rdls-tile {
	aspect-ratio: auto;
}

.rdls--natural .rdls-tile img,
.rdls--natural img.rdls-img {
	height: auto;
}

.rdls .rdls-title {
	display: block;
	margin-top: 0.5em;
	font-size: 0.875em;
	line-height: 1.3;
}

/* Static: every logo fits, so nothing moves. */
.rdls.is-static .rdls-track {
	justify-content: center;
	transform: none !important;
}

.rdls.is-static .rdls-clone {
	display: none;
}

/* Arrows: tucked outside and invisible until the slider is hovered or focused. */
.rdls .rdls-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--rdls-arrow-size);
	height: var(--rdls-arrow-size);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rdls-arrow-bg);
	color: var(--rdls-arrow-fg);
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-50%);
	transition: opacity 0.3s ease, left 0.3s ease, right 0.3s ease, background-color 0.2s ease;
}

.rdls .rdls-arrow[hidden] {
	display: none;
}

.rdls .rdls-arrow svg {
	display: block;
	width: 20px;
	height: 20px;
}

.rdls .rdls-arrow--prev { left: -26px; }
.rdls .rdls-arrow--next { right: -26px; }

.rdls:hover .rdls-arrow,
.rdls:focus-within .rdls-arrow {
	opacity: 1;
	pointer-events: auto;
}

.rdls:hover .rdls-arrow--prev,
.rdls:focus-within .rdls-arrow--prev { left: 10px; }

.rdls:hover .rdls-arrow--next,
.rdls:focus-within .rdls-arrow--next { right: 10px; }

.rdls .rdls-arrow:hover {
	background: var(--rdls-arrow-bg-hover);
}

.rdls .rdls-arrow:focus-visible {
	outline: 2px solid var(--rdls-arrow-fg);
	outline-offset: 0;
	box-shadow: 0 0 0 4px var(--rdls-arrow-bg-hover);
}

/* Touch screens can't hover, so keep the arrows visible there. */
@media (hover: none) {
	.rdls .rdls-arrow {
		opacity: 1;
		pointer-events: auto;
	}
	.rdls .rdls-arrow--prev { left: 4px; }
	.rdls .rdls-arrow--next { right: 4px; }
}

.rdls .rdls-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.rdls .rdls-dots[hidden] {
	display: none;
}

.rdls .rdls-dot {
	width: 10px;
	height: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rdls-dot);
	cursor: pointer;
}

.rdls .rdls-dot[aria-current="true"] {
	background: var(--rdls-dot-active);
}

.rdls .rdls-dot:focus-visible {
	outline: 2px solid var(--rdls-dot-active);
	outline-offset: 2px;
}

/* Marquee mode: two identical halves slide left by exactly one half, so the loop is seamless. */
.rdls--marquee .rdls-marquee-track {
	width: max-content;
	animation: rdls-marquee var(--rdls-duration, 40s) linear infinite;
}

.rdls--marquee .rdls-slide {
	flex: 0 0 var(--rdls-tile-w, 200px);
	width: var(--rdls-tile-w, 200px);
}

.rdls--marquee:hover .rdls-marquee-track,
.rdls--marquee:focus-within .rdls-marquee-track,
.rdls--marquee.is-offscreen .rdls-marquee-track {
	animation-play-state: paused;
}

@media (max-width: 640px) {
	.rdls--marquee .rdls-slide {
		flex-basis: calc(var(--rdls-tile-w, 200px) * 0.75);
		width: calc(var(--rdls-tile-w, 200px) * 0.75);
	}
}

@keyframes rdls-marquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.rdls--marquee .rdls-marquee-track {
		width: auto;
		flex-wrap: wrap;
		justify-content: center;
		row-gap: var(--rdls-gap);
		animation: none;
	}
	.rdls--marquee .rdls-dup {
		display: none;
	}
	.rdls .rdls-track {
		transition: none !important;
	}
}
