.ishowcase {
	--ishowcase-accent: #0d9488;
	--ishowcase-transition: 600ms;
	display: flex;
	width: 100%;
	position: relative;
	font-family: inherit;
	background: transparent;
	gap: 24px;
	align-items: stretch;
}

/* ---------- LEFT: Showcase area ---------- */
.ishowcase-left {
	position: relative;
	flex: 0 0 66%;
	max-width: 66%;
	overflow: hidden;
	background: #111;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ishowcase-slides {
	position: absolute;
	inset: 0;
}

.ishowcase-slide-group {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--ishowcase-transition) ease;
	z-index: 1;
}

.ishowcase-slide-group.active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.ishowcase-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity var(--ishowcase-transition) ease-in-out, transform var(--ishowcase-transition) ease-in-out;
}

.ishowcase-slide.active {
	opacity: 1;
}

/* Slide animation variant */
.ishowcase[data-animation="slide"] .ishowcase-slide {
	transform: translateX(100%);
	transition: transform var(--ishowcase-transition) ease-in-out, opacity var(--ishowcase-transition) ease;
}

.ishowcase[data-animation="slide"] .ishowcase-slide.active {
	transform: translateX(0);
	opacity: 1;
}

.ishowcase-overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: rgba(0, 0, 0, 0.15);
	pointer-events: none;
}

/* Pagination dots (per slide-group) */
.ishowcase-dots {
	position: absolute;
	bottom: 16px;
	right: 16px;
	display: flex;
	gap: 8px;
	z-index: 5;
}

.ishowcase[data-show-dots="0"] .ishowcase-dots {
	display: none;
}

.ishowcase-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: background 0.3s ease, transform 0.3s ease;
}

.ishowcase-dot.active {
	background: #fff;
	transform: scale(1.2);
}

/* Slider nav arrows */
.ishowcase-nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	z-index: 6;
	display: none;
	align-items: center;
	justify-content: center;
}

.ishowcase[data-show-nav="1"] .ishowcase-nav-arrow {
	display: flex;
}

.ishowcase-nav-prev {
	left: 16px;
}

.ishowcase-nav-next {
	right: 16px;
}

.ishowcase-nav-arrow:hover {
	background: rgba(0, 0, 0, 0.65);
}

/* Content overlay (badges / title / subtitle / button) */
.ishowcase-content {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	text-align: left;
	padding: 32px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 55%);
	pointer-events: none;
}

.ishowcase-content-panel {
	display: none;
	flex-direction: column;
	align-items: inherit;
	gap: 10px;
	pointer-events: auto;
	width: 100%;
}

/* Content Horizontal Position (set via prefix_class on content_position_h) */
.ishowcase-align-left .ishowcase-content {
	align-items: flex-start;
}

.ishowcase-align-center .ishowcase-content {
	align-items: center;
}

.ishowcase-align-right .ishowcase-content {
	align-items: flex-end;
}

.ishowcase-content-panel.active {
	display: flex;
	animation: ishowcase-fade-up 0.5s ease;
}

@keyframes ishowcase-fade-up {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Badges: positioned at the top corners of the showcase image */
.ishowcase-badge {
	position: absolute;
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.3;
	padding: 8px 14px;
	pointer-events: none;
}

.ishowcase-badge-left {
	top: 20px;
	left: 20px;
	background: rgba(17, 17, 17, 0.55);
	color: #fff;
	border-radius: 4px;
}

.ishowcase-badge-right {
	top: 20px;
	right: 20px;
	background: var(--ishowcase-accent);
	color: #fff;
	border-radius: 8px;
	text-align: center;
}

.ishowcase-title {
	font-size: 30px;
	line-height: 1.2;
	margin: 0;
	color: #fff;
	font-weight: 700;
}

.ishowcase-subtitle {
	font-size: 15px;
	margin: 0;
	color: #eee;
	opacity: 0.95;
	max-width: 480px;
}

.ishowcase-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 26px;
	background: var(--ishowcase-accent);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	border-radius: 6px;
	transition-property: background, color, transform, box-shadow;
	transition-duration: 0.3s;
	width: fit-content;
}

.ishowcase-button:hover {
	filter: brightness(1.1);
	color: #fff;
}

/* ---------- RIGHT: Item list ---------- */
.ishowcase-right {
	flex: 0 0 34%;
	max-width: 34%;
	background: transparent;
	overflow-y: auto;
}

.ishowcase-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ishowcase-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	cursor: pointer;
	background: #f7f8f9;
	border: 1px solid transparent;
	border-radius: 10px;
	transition-property: background, border-color, transform, box-shadow;
	transition-duration: 0.3s;
	outline: none;
}

.ishowcase-item:hover {
	background: #f0f1f2;
}

.ishowcase-item.active {
	background: rgba(13, 148, 136, 0.08);
	border-color: var(--ishowcase-accent);
}

.ishowcase-thumb {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}

.ishowcase-item-text {
	flex: 1;
	min-width: 0;
}

.ishowcase-item-text h3 {
	margin: 0 0 3px;
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	transition: color 0.3s ease;
}

.ishowcase-item.active .ishowcase-item-text h3 {
	color: var(--ishowcase-accent);
}

.ishowcase-item-text p {
	margin: 0;
	font-size: 13px;
	color: #777;
}

.ishowcase-arrow {
	flex-shrink: 0;
	font-size: 16px;
	color: #bbb;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2em;
	height: 2em;
	aspect-ratio: 1;
	transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.ishowcase-item.active .ishowcase-arrow {
	color: var(--ishowcase-accent);
	transform: translateX(3px);
}

.ishowcase-item:hover .ishowcase-arrow {
	transform: translateX(3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.ishowcase {
		flex-direction: column;
		gap: 16px;
	}

	.ishowcase-left,
	.ishowcase-right {
		flex: 1 1 100%;
		max-width: 100%;
	}

	/* Use an aspect-ratio instead of a fixed min-height so the showcase
	   scales sensibly across phone widths instead of being fixed-tall
	   on narrow screens. min-height is kept only as a safety fallback. */
	.ishowcase-left {
		aspect-ratio: 4 / 3;
		min-height: 260px;
	}

	.ishowcase-right {
		max-height: none;
		overflow-y: visible;
	}

	.ishowcase-content {
		padding: 20px;
	}

	.ishowcase-title {
		font-size: 22px;
	}

	.ishowcase-subtitle {
		font-size: 13px;
		max-width: 100%;
	}

	.ishowcase-button {
		padding: 10px 20px;
		font-size: 13px;
	}

	.ishowcase-badge {
		font-size: 10px;
		padding: 6px 10px;
	}

	.ishowcase-badge-left {
		top: 12px;
		left: 12px;
	}

	.ishowcase-badge-right {
		top: 12px;
		right: 12px;
	}

	/* Nav arrows: slightly smaller and pulled in so they don't crowd
	   the edges of a narrow viewport, but kept large enough (>=32px)
	   to remain an easy touch target. */
	.ishowcase-nav-arrow {
		width: 32px;
		height: 32px;
		font-size: 12px;
	}

	.ishowcase-nav-prev {
		left: 10px;
	}

	.ishowcase-nav-next {
		right: 10px;
	}

	.ishowcase-dots {
		bottom: 10px;
		right: 10px;
	}

	.ishowcase-item {
		padding: 12px 14px;
		gap: 12px;
	}

	.ishowcase-thumb {
		width: 64px;
		height: 64px;
	}

	.ishowcase-item-text h3 {
		font-size: 14px;
	}

	.ishowcase-item-text p {
		font-size: 12px;
	}
}

/* Small phones */
@media (max-width: 380px) {
	.ishowcase-left {
		aspect-ratio: 1 / 1;
		min-height: 220px;
	}

	.ishowcase-content {
		padding: 16px;
	}

	.ishowcase-title {
		font-size: 19px;
	}

	.ishowcase-nav-arrow {
		width: 28px;
		height: 28px;
	}
}

/* Improve touch handling on the slider area: allow vertical page
   scrolling while still capturing horizontal swipe gestures in JS. */
.ishowcase-left {
	touch-action: pan-y;
	-webkit-tap-highlight-color: transparent;
}

.ishowcase-item {
	-webkit-tap-highlight-color: transparent;
}
