/* Tooto Image Carousel */

.tooto-image-carousel.swiper {
	width: 100%;
	height: 400px;
	position: relative;
	overflow: visible;
	padding: 0;
}

.tooto-image-carousel .swiper-wrapper {
	align-items: center;
	height: 100%;
}

.tooto-carousel-slide.swiper-slide {
	height: 83%;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tooto-carousel-slide.swiper-slide-active {
	height: 100%;
	z-index: 2;
}

div.tooto-carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

/* Navigation Buttons */
.tooto-image-carousel .swiper-button-prev,
.tooto-image-carousel .swiper-button-next {
	width: 48px;
	height: 48px;
	background: #ECE7D8;
	border-radius: 50%;
	transition: all 0.3s ease;
	z-index: 10;
	margin-top: 0;
	top: 50%;
	transform: translateY(-50%);
}

.tooto-image-carousel .swiper-button-prev {
	left: calc(50% - 27.7% - 24px); /* 50% - (中心图片宽度一半) - 按钮宽度一半 */
}

.tooto-image-carousel .swiper-button-next {
	right: calc(50% - 27.7% - 24px);
}

.tooto-image-carousel .swiper-button-prev:after,
.tooto-image-carousel .swiper-button-next:after {
	font-size: 18px;
	color: #1a1a1a;
}

/* Mobile Adjustments (Below 768px) */
@media (max-width: 767px) {
	.tooto-image-carousel .swiper-button-prev,
	.tooto-image-carousel .swiper-button-next {
		top: 10px;
		transform: none;
		width: 36px;
		height: 36px;
	}

	.tooto-image-carousel .swiper-button-prev {
		right: 56px;
		left: auto;
	}

	.tooto-image-carousel .swiper-button-next {
		right: 10px;
	}

	.tooto-image-carousel .swiper-button-prev:after,
	.tooto-image-carousel .swiper-button-next:after {
		font-size: 14px;
	}
}

.tooto-image-carousel .swiper-button-prev:hover,
.tooto-image-carousel .swiper-button-next:hover {
	background: var(--theme-palette-color-1);
}

.tooto-image-carousel .swiper-button-prev::after,
.tooto-image-carousel .swiper-button-next::after {
	font-size: 20px;
	color: #333;
	font-weight: bold;
}

/* 响应式 */
@media (max-width: 768px) {
	.tooto-image-carousel {
		height: 300px;
	}

	.tooto-image-carousel .swiper-button-prev,
	.tooto-image-carousel .swiper-button-next {
		width: 32px;
		height: 32px;
		top: -54px;
		right: 8px;
		left: auto;
	}

	.tooto-image-carousel .swiper-button-prev::after,
	.tooto-image-carousel .swiper-button-next::after {
		font-size: 12px;
	}

	.tooto-image-carousel .swiper-button-prev {
		right: 54px;
	}

	.tooto-image-carousel .swiper-button-next {
		right: 8px;
	}
}

.swiper {
	display: none;
}

.swiper-initialized.swiper{
	display: block;
}

