.swiper-slide {
	position: relative;
	height: 100%;
	z-index: 1;
	display: flex;
	transition-property: transform;
	box-sizing: content-box;
	justify-content: center;
	flex-shrink: 0;
	width: -webkit-max-content !important;
	width: max-content !important;
}

.series-slider-item__img {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.series-slider-item__img img {
    height: auto;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain; /* Сохраняем пропорции */
}

.swiper-slide img {
	height: auto;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	object-fit: contain; /* Добавлено для сохранения пропорций */
}

.slider--collections--pagination {
	position: absolute;
	z-index: 2;
	bottom: auto !important;
	display: -webkit-box;
	display: flex;
	left: 0;
	right: 0;
	margin: auto;
	background: rgba(68, 68, 68, 0.4);
	border-radius: 30px;
	padding: 3px 8px;
	width: -webkit-min-content !important;
	width: -moz-min-content !important;
	width: min-content !important;
	bottom: 40px !important;
}

.slider--collections--pagination .swiper-pagination-bullet {
	display: block;
	background: #fff;
}

.slider--collections--pagination .swiper-pagination-bullet:hover {
	opacity: 0.8;
}

.swiper-button-prev {
	color: #000;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	background-color: #f0f2f2;
}

.swiper-button-prev:after {
	content: "prev";
	font-size: 18px;
}

.swiper-button-next:after {
	content: "next";
	font-size: 18px;
}

.swiper-button-next {
	color: #000;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	background-color: #f0f2f2;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	color: #00b4d8;
	background-color: #f0f2f2;
}

@media (max-width: 1024px) {
	.swiper {
		position: relative;
		left: 0;
		margin-left: 0;
	}
}

@media (min-width: 1366px) {
	.swiper {
		position: relative;
		left: 0;
		margin-left: 0;
	}
}

@media (min-width: 1440px) {
	.swiper {
		position: relative;
		left: 0;
		margin-left: 0;
	}
}

.kerama-swiper_bl {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.swiper {
    height: auto; /* Высота автоматическая */
}

/* Для квадратных изображений добавьте */
.square-image .series-slider-item__img {
    aspect-ratio: 1/1;
    height: auto !important;
    max-width: 300px;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 60%; /* Центрируем по вертикали */
    transform: translateY(-60%); /* Точное центрирование */
    z-index: 10;
    width: 30px;
    height: 30px;
    background-color: rgba(240, 242, 242, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-prev {
    left: 10px; /* Отступ от левого края */
}

.swiper-button-next {
    right: 10px; /* Отступ от правого края */
}

/* Скрываем стрелки, если они отключены */
.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 767px) {
    .swiper-slide {
        width: 100% !important; /* Слайд всегда на 100% ширины */
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-sizing: border-box;
    }

    .series-slider-item__img {
        width: 100%; /* Контейнер изображения на 100% ширины слайда */
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .series-slider-item__img img {
        max-width: 100%; /* Ограничиваем ширину изображения */
        max-height: 70vh; /* Ограничиваем высоту изображения */
        width: auto; /* Ширина подстраивается под пропорции */
        height: auto; /* Высота подстраивается под пропорции */
        object-fit: contain; /* Сохраняем пропорции */
    }
	.swiper-button-prev,
	.swiper-button-next {
		position: absolute;
		top: 50%; /* Центрируем по вертикали */
		transform: translateY(-50%); /* Точное центрирование */
		z-index: 10;
		width: 30px;
		height: 30px;
		background-color: rgba(240, 242, 242, 0.8);
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}