/* ==========================================================================
   AMG Logo Carousel — style (mobile first)
   Prefiks .amg-lc, aby nie kolidować z motywem Wexico / innymi wtyczkami.
   ========================================================================== */

.amg-lc {
	--amg-lc-accent: #dfa85e;
	--amg-lc-nav-bg: #0d1730;
	--amg-lc-gap: 48px;
	--amg-lc-height: 48px;
	--amg-lc-cols-mobile: 2;
	--amg-lc-cols-tablet: 4;
	--amg-lc-cols-desktop: 6;

	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}
.amg-lc *{ box-sizing: border-box; }

.amg-lc__viewport {
	overflow: hidden;
	flex: 1 1 auto;
	min-width: 0;
}

.amg-lc__track {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	will-change: transform;
	transition: transform .5s ease;
}

.amg-lc__slide {
	flex: 0 0 calc(100% / var(--amg-lc-cols-mobile));
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 calc(var(--amg-lc-gap) / 2);
}

.amg-lc__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.amg-lc__img {
	max-height: var(--amg-lc-height);
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
	transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

/* --- grayscale -> kolor na hover --- */
.amg-lc--grayscale .amg-lc__img {
	filter: grayscale(100%);
	opacity: .6;
}
.amg-lc--grayscale .amg-lc__slide:hover .amg-lc__img {
	filter: grayscale(0%);
	opacity: 1;
	transform: translateY(-2px);
}

/* --- opcjonalna ramka wokół logo --- */
.amg-lc--bordered .amg-lc__slide {
	border-right: 1px solid #e9e5da;
}
.amg-lc--bordered .amg-lc__slide:last-child {
	border-right: none;
}

/* --- nawigacja: strzałki --- */
.amg-lc__nav {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--amg-lc-accent);
	background: #fff;
	color: var(--amg-lc-nav-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .15s ease;
	padding: 0;
}
.amg-lc__nav:hover {
	background: var(--amg-lc-accent);
	color: #fff;
	transform: translateY(-1px);
}
.amg-lc__nav:disabled {
	opacity: .35;
	cursor: default;
	transform: none;
}

/* --- paginacja: kropki --- */
.amg-lc__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -26px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.amg-lc__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e0dcd0;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.amg-lc__dot:hover {
	background: var(--amg-lc-accent);
}
.amg-lc__dot.is-active {
	background: var(--amg-lc-nav-bg);
	transform: scale(1.2);
}

/* --- ukrywanie nawigacji na mobile (checkbox hide_nav_mobile) --- */
.amg-lc--hide-nav-mobile .amg-lc__nav,
.amg-lc--hide-nav-mobile .amg-lc__dots {
	display: none;
}

/* ==========================================================================
   Tablet — od 600px w górę: liczba kolumn z data-cols-tablet, nawigacja wraca
   ========================================================================== */
@media (min-width: 600px) {
	.amg-lc__slide {
		flex-basis: calc(100% / var(--amg-lc-cols-tablet));
	}
	.amg-lc--hide-nav-mobile .amg-lc__nav,
	.amg-lc--hide-nav-mobile .amg-lc__dots {
		display: flex;
	}
}

/* ==========================================================================
   Desktop — od 1024px w górę: liczba kolumn z data-cols-desktop
   ========================================================================== */
@media (min-width: 1024px) {
	.amg-lc__slide {
		flex-basis: calc(100% / var(--amg-lc-cols-desktop));
	}
}

@media (prefers-reduced-motion: reduce) {
	.amg-lc__track {
		transition: none;
	}
}
