/* Client Showcase
 * Replicates the "scrollable website preview" frame: a fixed-height
 * box with a long screenshot inside that the visitor scrolls natively
 * (mouse wheel / trackpad / touch swipe) — exactly like the original
 * .showcase / .showcase__sites markup on adibobaid.com.
 *
 * Height is driven by a per-instance CSS custom property set inline by
 * the shortcode, so multiple showcases can coexist on one page.
 */

.lqd-showcase {
	--lqd-showcase-h: 640px;          /* desktop frame height (matches original) */
	--lqd-showcase-radius: 15px;

	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto 50px;               /* mirrors the original .marbot50 */
	border-radius: var(--lqd-showcase-radius);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
	background: #fff;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

/* Optional browser top bar */
.lqd-showcase__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	border-top-left-radius: var(--lqd-showcase-radius);
	border-top-right-radius: var(--lqd-showcase-radius);
}

.lqd-showcase__dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #d6d9dc;
}

.lqd-showcase__dot:nth-child(1) { background: #ff5f57; }
.lqd-showcase__dot:nth-child(2) { background: #febc2e; }
.lqd-showcase__dot:nth-child(3) { background: #28c840; }

/* "Scroll to view" hint, pushed to the right of the bar */
.lqd-showcase__hint {
	margin-left: auto;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.02em;
	color: rgba(0, 0, 0, 0.45);
	white-space: nowrap;
}

/* The scrollable viewport — this is what makes it scroll like the example */
.lqd-showcase__sites {
	position: relative;
	width: 100%;
	height: var(--lqd-showcase-h);
	overflow: hidden;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	border-bottom-left-radius: var(--lqd-showcase-radius);
	border-bottom-right-radius: var(--lqd-showcase-radius);
}

/* When the browser bar is hidden, the screenshot rounds the top too */
.lqd-showcase:not(.has-browser) .lqd-showcase__sites {
	border-top-left-radius: var(--lqd-showcase-radius);
	border-top-right-radius: var(--lqd-showcase-radius);
}

.lqd-showcase__img {
	display: block;
	width: 100%;
	height: auto;
}

/* Static mode: no scrolling, just a cropped top-of-page preview */
.lqd-showcase.is-static .lqd-showcase__sites {
	overflow: hidden;
}

/* Tidy, slim scrollbar so the frame stays clean */
.lqd-showcase__sites {
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.lqd-showcase__sites::-webkit-scrollbar {
	width: 8px;
}

.lqd-showcase__sites::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.25);
	border-radius: 8px;
}

.lqd-showcase__sites::-webkit-scrollbar-track {
	background: transparent;
}

/* ---------- Mobile optimisation ---------- */
@media (max-width: 830px) {
	.lqd-showcase {
		--lqd-showcase-h: 300px;       /* matches original mobile height */
		--lqd-showcase-radius: 10px;
		max-width: 100%;
	}

	.lqd-showcase__bar {
		height: 32px;
		padding: 0 12px;
		gap: 6px;
	}

	.lqd-showcase__dot {
		width: 9px;
		height: 9px;
	}

	.lqd-showcase__hint {
		font-size: 10px;
	}
}

@media (max-width: 480px) {
	.lqd-showcase {
		--lqd-showcase-h: 60vh;        /* scales with small screens */
		margin-bottom: 30px;
	}
}
