/* ==========================================================================
   Logo Showcase — Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Wrapper
   -------------------------------------------------------------------------- */
.ls-wrapper {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	margin: 1em 0;
}

/* --------------------------------------------------------------------------
   SLIDER layout
   -------------------------------------------------------------------------- */
.ls-layout-slider {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ls-viewport {
	flex: 1;
	overflow: hidden;
	min-width: 0; /* prevent flex blowout */
}

.ls-track {
	display: flex;
	gap: 0.5em;
	transition: transform var(--ls-speed, 600ms) ease;
	will-change: transform;
}

.ls-layout-slider .ls-item {
	flex: 0 0 calc((100% - (var(--ls-columns, 5) - 1) * 0.5em) / var(--ls-columns, 5));
	box-sizing: border-box;
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border-radius: 4px;
}

/* --------------------------------------------------------------------------
   GRID layout
   -------------------------------------------------------------------------- */
.ls-grid {
	display: grid;
	grid-template-columns: repeat(var(--ls-columns, 5), 1fr);
	gap: 0.5em;
}

.ls-layout-grid .ls-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	background: #ffffff;
	border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Logo image
   -------------------------------------------------------------------------- */
.ls-item img {
	display: block;
	width: 100%;
	height: var(--ls-img-max-height, 80px);
	object-fit: contain;
	object-position: center;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.ls-item a:hover img,
.ls-item a:focus img {
	opacity: 0.8;
	transform: scale(1.04);
}

.ls-item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Title
   -------------------------------------------------------------------------- */
.ls-title {
	display: block;
	margin-top: 8px;
	font-size: 0.8em;
	text-align: center;
	color: inherit;
	opacity: 0.75;
}

/* --------------------------------------------------------------------------
   No-image fallback
   -------------------------------------------------------------------------- */
.ls-no-image {
	display: inline-block;
	padding: 10px 14px;
	background: #f0f0f0;
	border-radius: 4px;
	font-size: 0.85em;
	color: #555;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Navigation buttons
   -------------------------------------------------------------------------- */
.ls-btn {
	flex-shrink: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	color: #333;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.ls-btn:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

/* Hide buttons entirely when slider has no overflow */
.ls-wrapper.ls-no-scroll .ls-btn {
	display: none;
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.ls-layout-slider  { --ls-columns: 3 !important; }
	.ls-grid           { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 600px) {
	.ls-layout-slider  { --ls-columns: 2 !important; }
	.ls-grid           { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 380px) {
	.ls-layout-slider  { --ls-columns: 1 !important; }
	.ls-grid           { grid-template-columns: 1fr !important; }
}
