.card-slider {
	position: relative;
	box-shadow: 0 4px 30px 0 rgba(0, 0, 0, 0.1);
	background: var(--belyy);
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 210px;
	aspect-ratio: 1 / 1;
}

.card-slider__swiper {
	min-height: 190px;
	height: auto;
	width: 100%;
}

.card-slider .swiper-slide {
	height: auto;
}

.card-slider__view {
	min-height: 190px;
	height: 100%;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.card-slider__view img {
	max-height: 114px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.card-slider .swiper-pagination-bullet {
	width: 4px;
	height: 4px;
	background: var(--chernyy);
	border-radius: 4px;
	opacity: 1 !important;
	margin: 0 !important;
}

.card-slider .swiper-pagination-bullet-active {
	width: 13px;
	opacity: 1 !important;
}

.card-slider .swiper-pagination {
	display: none;
}

@media (min-width: 768px) {
	.card-slider {
		padding: 15px;
		aspect-ratio: 1/1;
	}
	.card-slider__view {
		min-height: 190px;
	}
	.card-slider__view img {
		max-height: 150px;
		max-width: 100%;
		width: auto;
		height: auto;
	}
	.card-slider .swiper-pagination {
		position: absolute;
		bottom: 15px !important;
		left: 15px !important;
		display: flex;
		gap: 3.7px;
		width: auto;
		z-index: 2;
	}
}

@media (min-width: 1500px) {
	.card-slider__view {
		max-height: 330px;
	}
	.card-slider__view img {
		max-height: 230px;
		max-width: 100%;
		width: auto;
		height: auto;
	}
}

/* Mobile (Figma card): image frame is 190px high with 15px padding at any card width */
@media (max-width: 767px) {
	.card-slider {
		min-height: 0;
		height: 190px;
		aspect-ratio: auto;
		padding: 15px;
	}
	.card-slider__swiper,
	.card-slider__view {
		min-height: 0;
		height: 100%;
	}
}

/* The link is a flex item of .card-slider; without an explicit width a multi-slide swiper sizes itself from its slides (no upper bound). */
.card-slider .card__media-link {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
}

.card-slider__swiper {
	min-width: 0;
	overflow: hidden;
}
