/* ==========================================================================
   Hochueli Scroll Image Carousel
   Pin target = .hoc-sic-container (same pattern as Featured Projects)
   ========================================================================== */

.hoc-sic-container {
	width: 100%;
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	/* overflow on the PINNED element is OK; never on Elementor parents above it */
	overflow: hidden;
	z-index: 2;
}

.hoc-sic-container.hoc-sic-valign-top {
	justify-content: flex-start;
}

.hoc-sic-container.hoc-sic-valign-center {
	justify-content: center;
}

.hoc-sic-container.hoc-sic-valign-bottom {
	justify-content: flex-end;
}

.hoc-sic-carousel-title,
.unsere-title {
	width: 100%;
	margin: 0 0 32px;
	padding: 0;
	color: #4a2c2a;
	transform-origin: center center;
	will-change: transform;
	box-sizing: border-box;
}

.hoc-sic-viewport {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

.hoc-sic-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	width: max-content;
	max-width: none;
	will-change: transform;
	box-sizing: border-box;
}

.hoc-sic-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	box-sizing: border-box;
	min-width: 0;
}

.hoc-sic-link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.hoc-sic-link:hover .hoc-sic-title,
.hoc-sic-link:focus .hoc-sic-title {
	text-decoration: underline;
}

.hoc-sic-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.hoc-sic-media {
	position: relative;
	width: 100%;
	margin: 0;
	overflow: hidden;
	background-color: #e8e4df;
}

.hoc-sic-media--ratio {
	height: auto !important;
}

.hoc-sic-media img,
.hoc-sic-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hoc-sic-media--ratio img,
.hoc-sic-media--ratio .hoc-sic-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hoc-sic-location {
	margin: 16px 0 4px;
	padding: 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.4;
	color: #9a8f86;
}

.hoc-sic-title {
	margin: 0;
	padding: 0;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: #4a2c2a;
}

/* Reduced motion / editor / mobile: native horizontal scroll, no pin */
.hoc-sic-container.hoc-sic--reduced-motion .hoc-sic-viewport,
.hoc-sic-container.hoc-sic--static .hoc-sic-viewport,
.elementor-editor-active .hoc-sic-container .hoc-sic-viewport {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Hide scrollbar on Firefox */
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
}

.hoc-sic-container.hoc-sic--reduced-motion .hoc-sic-viewport::-webkit-scrollbar,
.hoc-sic-container.hoc-sic--static .hoc-sic-viewport::-webkit-scrollbar,
.elementor-editor-active .hoc-sic-container .hoc-sic-viewport::-webkit-scrollbar {
	display: none; /* Hide scrollbar on Chrome/Safari/Edge */
}

.hoc-sic-container.hoc-sic--reduced-motion .hoc-sic-track,
.hoc-sic-container.hoc-sic--static .hoc-sic-track,
.elementor-editor-active .hoc-sic-container .hoc-sic-track {
	will-change: auto;
	transform: none !important;
}

.hoc-sic-container.hoc-sic--reduced-motion .hoc-sic-item,
.hoc-sic-container.hoc-sic--static .hoc-sic-item,
.elementor-editor-active .hoc-sic-container .hoc-sic-item {
	scroll-snap-align: center;
}

@media (max-width: 1024px) {
	.hoc-sic-title {
		font-size: 22px;
	}

	/* Optimize carousel items to take 80% screen width and snap perfectly to center */
	.hoc-sic-container.hoc-sic--static .hoc-sic-item {
		flex: 0 0 80vw !important;
		width: 80vw !important;
		max-width: 80vw !important;
	}

	/* Virtual padding at start/end of the track to center the first and last slides */
	.hoc-sic-container.hoc-sic--static .hoc-sic-track::before,
	.hoc-sic-container.hoc-sic--static .hoc-sic-track::after {
		content: '';
		flex: 0 0 10vw;
		pointer-events: none;
	}
}

@media (max-width: 767px) {
	.hoc-sic-title {
		font-size: 18px;
	}

	.hoc-sic-location {
		font-size: 11px;
	}
}
