/* Tooto Carousel Widget - RAF Marquee */

.tooto-carousel-wrapper {
	width: 100%;
	overflow: hidden;
}

.tooto-carousel-wrapper.tooto-carousel-fullwidth {
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	position: relative;
}

/* Track: flex row, gap from Elementor, GPU-accelerated transform */
.tooto-carousel-track {
	display: flex;
	gap: 20px;
	will-change: transform;
}

.tooto-carousel-item {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	transition: transform 0.3s ease;
	border-radius: 8px;
	cursor: pointer;
}

.tooto-carousel-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-decoration: none;
	z-index: 1;
}

.tooto-carousel-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
	pointer-events: none;
}

.tooto-carousel-title {
	position: relative;
	z-index: 2;
	word-break: break-word;
	white-space: normal;
}

.tooto-carousel-title-top {
	order: -1;
}

.tooto-carousel-title-bottom {
	order: 1;
}

.tooto-carousel-title-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	color: #ffffff;
	z-index: 2;
}

/* Responsive - Mobile */
@media (max-width: 767px) {
	.tooto-carousel-track {
		gap: 15px;
	}
}

/* Accessibility */
.tooto-carousel-wrapper .tooto-carousel-item:focus-visible {
	outline: 2px solid #4a90e2;
	outline-offset: 2px;
}
