.tab-showcase {
	--tab-layout-gap: 24px;
	--tab-nav-width: 42%;
	--tab-cards-gap: 14px;
	--tab-min-height: 520px;
	--tab-card-blur: 14px;
	--tab-transition: 550ms;
	--tab-easing: cubic-bezier(.22, 1, .36, 1);
	--tab-card-border-normal: rgba(255,255,255,.62);
	--tab-card-border-hover: #aeb8c6;
	--tab-card-border-active: #14213d;
	--tab-card-border-width: 1px;
	--tab-card-state-border-width: 2px;
	display: grid;
	grid-template-columns: minmax(0, var(--tab-nav-width)) minmax(0, 1fr);
	grid-template-areas: "navigation detail";
	gap: var(--tab-layout-gap);
	min-height: var(--tab-min-height);
	width: 100%;
	direction: rtl;
	isolation: isolate;
}

.tab-showcase,
.tab-showcase * {
	box-sizing: border-box;
}

.tab-showcase button,
.tab-showcase a {
	-webkit-tap-highlight-color: transparent;
}

.tab-showcase__navigation {
	grid-area: navigation;
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
}

.tab-showcase__carousel {
	display: block;
	min-width: 0;
	width: 100%;
}

.tab-showcase__carousel.has-navigation {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 10px;
}

.tab-showcase__viewport {
	position: relative;
	min-width: 0;
	overflow: hidden;
	touch-action: pan-y;
	contain: layout paint;
}

.tab-showcase__pages {
	position: relative;
	min-width: 0;
}

.tab-showcase__page {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--tab-cards-gap);
	width: 100%;
	will-change: opacity, transform;
}

.tab-showcase__page[hidden],
.tab-showcase__detail-link[hidden] {
	display: none !important;
}

.tab-showcase__tab {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-width: 0;
	border: 0;
	background: rgba(255,255,255,.34);
	backdrop-filter: blur(var(--tab-card-blur));
	-webkit-backdrop-filter: blur(var(--tab-card-blur));
	box-shadow: none;
	cursor: pointer;
	text-align: right;
	font: inherit;
	isolation: isolate;
	transform: translateZ(0);
	transition:
		background-color 360ms var(--tab-easing),
		box-shadow 360ms var(--tab-easing),
		transform 360ms var(--tab-easing);
}

.tab-showcase__tab::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 5;
	border: var(--tab-card-border-width) solid var(--tab-card-border-normal);
	border-radius: inherit;
	pointer-events: none;
	transition:
		border-color 360ms var(--tab-easing),
		border-width 360ms var(--tab-easing),
		opacity 360ms var(--tab-easing);
}

.tab-showcase__tab:hover::after {
	border-width: var(--tab-card-state-border-width);
	border-color: var(--tab-card-border-hover);
}

.tab-showcase__tab.is-active::after {
	border-width: var(--tab-card-state-border-width);
	border-color: var(--tab-card-border-active);
}

.tab-showcase__tab:hover {
	z-index: 2;
	box-shadow: 0 10px 28px rgba(17,24,39,.06);
}

.tab-showcase__tab.is-active {
	z-index: 3;
	background: #fff;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: 0 12px 32px rgba(17,24,39,.08);
}

.tab-showcase__tab:focus-visible,
.tab-showcase__arrow:focus-visible,
.tab-showcase__detail-link:focus-visible {
	outline: 3px solid rgba(20,33,61,.28);
	outline-offset: 3px;
}

.tab-showcase__thumb {
	position: relative;
	z-index: 1;
	display: block;
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	overflow: hidden;
	background: rgba(255,255,255,.65);
}

.tab-showcase__thumb img,
.tab-showcase__detail-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tab-showcase__thumb img {
	transition: transform 560ms var(--tab-easing);
}

.tab-showcase__tab:hover .tab-showcase__thumb img,
.tab-showcase__tab.is-active .tab-showcase__thumb img {
	transform: scale(1.035);
}

.tab-showcase__tab-title {
	position: relative;
	z-index: 1;
	display: -webkit-box;
	min-width: 0;
	overflow: hidden;
	color: #25272c;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.75;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	transition: color 360ms var(--tab-easing);
}

.tab-showcase__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	background: #fff;
	color: #14213d;
	cursor: pointer;
	flex: 0 0 auto;
	transition:
		color 320ms var(--tab-easing),
		background-color 320ms var(--tab-easing),
		border-color 320ms var(--tab-easing),
		box-shadow 320ms var(--tab-easing),
		transform 320ms var(--tab-easing);
}

.tab-showcase__arrow:hover {
	transform: scale(1.055);
	box-shadow: 0 8px 24px rgba(17,24,39,.08);
}

.tab-showcase__arrow:active {
	transform: scale(.96);
}

.tab-showcase__arrow svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.tab-showcase__detail {
	grid-area: detail;
	position: relative;
	min-width: 0;
	height: 520px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 24px 70px rgba(17,24,39,.10);
	transform: translateZ(0);
}

.tab-showcase__detail-link,
.tab-showcase__detail-image {
	display: block;
	width: 100%;
	height: 100%;
}

.tab-showcase__detail-link {
	color: inherit;
	text-decoration: none !important;
	will-change: opacity, transform;
}

.tab-showcase__detail-image {
	overflow: hidden;
	background: #f3f4f6;
}

.tab-showcase__detail-image img {
	transition: transform 900ms var(--tab-easing), opacity 280ms ease;
}

.tab-showcase__detail-link:hover .tab-showcase__detail-image img {
	transform: scale(1.02);
}

.tab-showcase.is-page-animating .tab-showcase__arrow,
.tab-showcase.is-panel-animating .tab-showcase__tab {
	pointer-events: none;
}

@media (max-width: 1024px) {
	.tab-showcase {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas:
			"detail"
			"navigation";
		min-height: 0 !important;
	}

	.tab-showcase__detail {
		height: 390px;
	}

	.tab-showcase__navigation {
		justify-content: flex-start;
	}

	.tab-showcase__tab-title {
		-webkit-line-clamp: 2;
	}
}

@media (max-width: 767px) {
	.tab-showcase__detail {
		height: 250px;
		box-shadow: 0 14px 40px rgba(17,24,39,.08);
	}

	.tab-showcase__carousel.has-navigation {
		grid-template-columns: 36px minmax(0, 1fr) 36px;
		column-gap: 6px;
	}

	.tab-showcase__page {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.tab-showcase__tab {
		min-height: 78px;
	}

	.tab-showcase__thumb {
		flex-basis: 46px;
		width: 46px;
		height: 46px;
	}

	.tab-showcase__tab-title {
		font-size: 13px;
		line-height: 1.65;
		-webkit-line-clamp: 2;
	}

	.tab-showcase__arrow {
		width: 36px;
		height: 36px;
		font-size: 13px;
	}

	.tab-showcase__tab:hover {
		box-shadow: none;
	}

	.tab-showcase__detail-link:hover .tab-showcase__detail-image img {
		transform: none;
	}
}

@media (max-width: 420px) {
	.tab-showcase__carousel.has-navigation {
		grid-template-columns: 32px minmax(0, 1fr) 32px;
		column-gap: 4px;
	}

	.tab-showcase__arrow {
		width: 32px;
		height: 32px;
	}

	.tab-showcase__tab {
		min-height: 72px;
	}

	.tab-showcase__thumb {
		flex-basis: 42px;
		width: 42px;
		height: 42px;
	}

	.tab-showcase__tab-title {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tab-showcase *,
	.tab-showcase *::before,
	.tab-showcase *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
