/* Miodowice front-page slider — replaces NextGen NivoSlider.
   Arrow controls intentionally mirror the lightbox (.mlb-prev/.mlb-next). */

.miodo-slider {
	position: relative;
	margin: 0 auto;
	width: 100%;
	outline: none;
}

.miodo-slider__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #000;
}

.miodo-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 0.6s ease-in-out; /* cross-fade, like the old effect="fade" */
	pointer-events: none;
}

.miodo-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.miodo-slide__img,
.miodo-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.miodo-slide__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 10px 16px;
	background: rgba( 0, 0, 0, 0.55 );
	color: #fff;
	font-size: 14px;
	text-shadow: 0 1px 2px rgba( 0, 0, 0, 0.8 );
}

/* --- Controls: arrows match the lightbox (.mlb-prev / .mlb-next) --- */

.miodo-slider__prev,
.miodo-slider__next {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	width: 48px;
	height: 64px;
	font-size: 26px;
	line-height: 1;
	color: #fff;
	background: rgba( 0, 0, 0, 0.45 );
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s ease;
}

.miodo-slider__prev:hover,
.miodo-slider__next:hover {
	background: rgba( 0, 0, 0, 0.8 );
}

.miodo-slider__prev {
	left: 16px;
}

.miodo-slider__next {
	right: 16px;
}

/* --- Control-nav dots (matches the old controlnav="true") --- */

.miodo-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 2;
}

.miodo-dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.35 );
	cursor: pointer;
	transition: background 0.2s ease;
}

.miodo-dot.is-active,
.miodo-dot:hover {
	background: #fff;
}

@media ( max-width: 480px ) {
	.miodo-slider__prev,
	.miodo-slider__next {
		width: 38px;
		height: 52px;
		font-size: 20px;
	}
}
