/**
 * Horizontal Image Scroll Block Styles
 * Konvertiert von Tailwind CSS zu reinem CSS
 */

/* Block Container */
.horizontal-image-scroll-block {
	position: relative;
	width: 100%;
}

.horizontal-image-scroll-container {
	position: relative;
	width: 100%;
}

/* Swiper Container */
.horizontal-image-scroll-swiper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

/* Mobile: Fixed height container for dragging */
@media (max-width: 767px) {
	.horizontal-image-scroll-swiper {
		height: 70vh;
	}
}

/* Swiper Wrapper and Slides */
.horizontal-image-scroll-swiper .swiper-wrapper {
	display: flex;
}

.horizontal-image-scroll-swiper .swiper-slide {
	width: 100%;
	height: auto;
}

/* Mobile: Image takes natural width and can be dragged horizontally */
@media (max-width: 767px) {
	.horizontal-image-scroll-swiper .swiper-wrapper {
		height: 70vh;
		align-items: center;
	}

	.horizontal-image-scroll-swiper .swiper-slide {
		width: auto !important;
		height: 70vh;
		flex-shrink: 0;
		display: flex;
		align-items: center;
	}
}

/* Figure and Image Wrapper */
.horizontal-image-scroll-figure {
	position: relative;
	height: 100%;
	margin: 0;
	width: auto;
}

.horizontal-image-scroll-image-wrapper {
	position: relative;
	overflow: hidden;
	background-color: var(--color-quaternary);
	width: 100%;
	height: auto;
}

/* Image wrapper on mobile - natural dimensions */
@media (max-width: 767px) {
	.horizontal-image-scroll-image-wrapper {
		background-color: transparent;
		border-radius: 0;
		width: auto;
		height: 70vh;
		display: flex;
		align-items: center;
	}
}

/* Image Styles */
.horizontal-image-scroll-image {
	width: 100%;
	height: auto;
	vertical-align: bottom;
	transition: transform 0.3s ease;
}

/* On mobile, image keeps aspect ratio but height is fixed to 70vh */
@media (max-width: 767px) {
	.horizontal-image-scroll-image {
		width: auto;
		height: 70vh;
		max-width: none;
		object-fit: contain;
	}
}

/* Caption Styles */
.horizontal-image-scroll-caption {
	font-weight: 700;
	text-align: center;
}



/* Desktop Layout: Normal image display */
@media (min-width: 768px) {
	.horizontal-image-scroll-swiper {
		overflow: visible;
	}

	.horizontal-image-scroll-swiper .swiper-wrapper {
		display: block;
		transform: none !important;
	}

	.horizontal-image-scroll-swiper .swiper-slide {
		width: 100%;
	}

	.horizontal-image-scroll-image-wrapper {
		width: 100%;
	}
}

/* Swiper cursor on mobile */
@media (max-width: 767px) {
	.horizontal-image-scroll-swiper.swiper-initialized {
		cursor: grab;
	}

	.horizontal-image-scroll-swiper.swiper-initialized:active {
		cursor: grabbing;
	}
}

/* Loading state */
.horizontal-image-scroll-image-wrapper:empty::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: #e5e7eb;
	animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

/* Smooth scrolling enhancement */
.horizontal-image-scroll-swiper .swiper-wrapper {
	transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Editor Placeholder */
.horizontal-image-scroll-placeholder {
	position: relative;
	width: 100%;
	min-height: 400px;
	background-color: #f9fafb;
	border-radius: 0.5rem;
	border: 2px dashed #d1d5db;
	display: flex;
	align-items: center;
	justify-content: center;
}

.horizontal-image-scroll-editor-hint {
	text-align: center;
	max-width: 448px;
	padding: 2rem 1.5rem;
}

.horizontal-image-scroll-editor-icon {
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1rem;
	color: #9ca3af;
}

.horizontal-image-scroll-editor-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.5rem;
}

.horizontal-image-scroll-editor-text {
	font-size: 0.875rem;
	color: #4b5563;
	line-height: 1.5;
}

/* Editor specific styles */
.editor-styles-wrapper .horizontal-image-scroll-block {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

/* Custom CSS Variables - Update diese mit deinen Farben */
:root {
	--color-primary: #000000;
	--color-background: #ffffff;
	--color-quaternary: #f3f4f6;
}