/* ── Sticky Arc to Horizontal Carousel ── */

/*
 * The wrapper is the scroll spacer (JS sets minHeight = vh + scrollDistance).
 * The sticky-container fills the wrapper and is position:relative always.
 * The scene inside gets position:fixed / position:absolute set by JS:
 *   - fixed  : during the sticky scroll window (triggerStart → triggerEnd)
 *   - absolute: after triggerEnd, pinned at the bottom of the wrapper
 *   - relative: before triggerStart (natural scroll)
 * The is-sticky / is-done classes are kept for external CSS hooks if needed,
 * but layout is driven entirely by JS inline styles on .pretpot-sa2hc-scene.
 */

.pretpot-sa2hc-wrapper {
	position: relative;
	width: 100%;
}

.pretpot-sa2hc-sticky-container {
	position: relative;
	width: 100%;
	min-height: 100vh;
}

.pretpot-sa2hc-scene {
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* ── Arc Tiles ── */
.pretpot-sa2hc-arc {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	pointer-events: none;
}

.pretpot-sa2hc-tile {
	position: absolute;
	will-change: transform;
	cursor: pointer;
	overflow: hidden;
}

.pretpot-sa2hc-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pretpot-sa2hc-tile.is-link {
	cursor: pointer;
}

.pretpot-sa2hc-tile.is-popup {
	cursor: pointer;
}

/* ── Carousel Track ── */
.pretpot-sa2hc-carousel-track {
	position: absolute;
	display: flex;
	align-items: center;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
}

.pretpot-sa2hc-carousel-track.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.pretpot-sa2hc-carousel-item {
	flex-shrink: 0;
	will-change: transform;
	overflow: hidden;
	cursor: default;
}

.pretpot-sa2hc-carousel-item.is-link {
	cursor: pointer;
}

.pretpot-sa2hc-carousel-item.is-popup {
	cursor: pointer;
}

.pretpot-sa2hc-carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Caption ── */
.pretpot-sa2hc-caption {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	z-index: 2;
	pointer-events: none;
	white-space: nowrap;
	transition: bottom 0.3s ease;
}

/* ── Popup ── */
.pretpot-sa2hc-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pretpot-sa2hc-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	cursor: pointer;
}

.pretpot-sa2hc-popup-content {
	position: relative;
	z-index: 1;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 30px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pretpot-sa2hc-popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 36px;
	height: 36px;
	border: none;
	background: rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	z-index: 2;
}

.pretpot-sa2hc-popup-close:hover {
	background: rgba(0, 0, 0, 0.2);
}

.pretpot-sa2hc-popup-image {
	margin-bottom: 20px;
}

.pretpot-sa2hc-popup-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.pretpot-sa2hc-popup-title {
	margin: 0 0 15px;
	font-size: 24px;
	font-weight: 700;
}

.pretpot-sa2hc-popup-body {
	font-size: 16px;
	line-height: 1.6;
}

.pretpot-sa2hc-popup-body p:last-child {
	margin-bottom: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.pretpot-sa2hc-popup-content {
		padding: 24px;
	}
	.pretpot-sa2hc-popup-title {
		font-size: 20px;
	}
}

@media (max-width: 767px) {
	.pretpot-sa2hc-popup-content {
		padding: 20px;
		width: 95%;
	}
	.pretpot-sa2hc-popup-title {
		font-size: 18px;
	}
	.pretpot-sa2hc-popup-body {
		font-size: 14px;
	}
}
/* ── Arc tile pointer events (arc container is none, tiles are auto) ── */
.pretpot-sa2hc-tile {
	pointer-events: auto;
}

/* ── Video items ── */
.pretpot-sa2hc-tile video,
.pretpot-sa2hc-carousel-item video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}