/* MWD Slider v1.0.0 */
.mwd-slider {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	margin: 0 auto;
	background: #000;
	line-height: 0;
}

.mwd-slider__track {
	position: relative;
	width: 100%;
	height: var(--mwd-slider-height, 480px);
	max-height: 80vh;
}

.mwd-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--mwd-transition, 600ms) ease-in-out,
		visibility var(--mwd-transition, 600ms) ease-in-out;
	z-index: 1;
}

.mwd-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.mwd-slide__link,
.mwd-slide__link--plain {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

.mwd-slide__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mwd-slide__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 20px 20px;
	color: #fff;
	font-size: clamp(16px, 2.5vw, 24px);
	line-height: 1.3;
	font-weight: 600;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
	z-index: 3;
}

/* Sageti */
.mwd-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.mwd-slider__arrow:hover,
.mwd-slider__arrow:focus-visible {
	background: rgba(0, 0, 0, 0.7);
	outline: none;
}

.mwd-slider__arrow--prev { left: 14px; }
.mwd-slider__arrow--next { right: 14px; }

/* Dots */
.mwd-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 5;
	display: flex;
	justify-content: center;
	gap: 8px;
	line-height: 0;
}

.mwd-slider__dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.mwd-slider__dot:hover { background: rgba(255, 255, 255, 0.8); }

.mwd-slider__dot.is-active {
	background: #fff;
	transform: scale(1.2);
}

/* Responsive */
@media (max-width: 782px) {
	.mwd-slider__track { height: calc(var(--mwd-slider-height, 480px) * 0.7); }
	.mwd-slider__arrow { width: 38px; height: 38px; font-size: 16px; }
	.mwd-slider__arrow--prev { left: 8px; }
	.mwd-slider__arrow--next { right: 8px; }
}

@media (max-width: 480px) {
	.mwd-slider__track { height: calc(var(--mwd-slider-height, 480px) * 0.55); }
}

/* Respecta preferinta de reducere a miscarii */
@media (prefers-reduced-motion: reduce) {
	.mwd-slide { transition: opacity 0.01ms; }
}
