/* Akash Project Showcase v3 – frontend styles */

.aps-wrap {
	--aps-accent: #0b2a4a;
	--aps-on: #ffffff;
	--aps-card: #ffffff;
	--aps-tx: #0f1b2d;
	--aps-mut: #66758b;
	--aps-bd: #e1e8f1;
	--aps-chip: #f3f6fb;
	position: relative;
	width: 100%;
	color: var(--aps-tx);
	font-family: inherit;
}
.aps-wrap.aps-theme-dark {
	--aps-card: #131c2e;
	--aps-tx: #e8eef8;
	--aps-mut: #8b9ab0;
	--aps-bd: #223049;
	--aps-chip: #0b1220;
}
@media (prefers-color-scheme: dark) {
	.aps-wrap.aps-theme-auto {
		--aps-card: #131c2e;
		--aps-tx: #e8eef8;
		--aps-mut: #8b9ab0;
		--aps-bd: #223049;
		--aps-chip: #0b1220;
	}
}
.aps-wrap *,
.aps-wrap *::before,
.aps-wrap *::after {
	box-sizing: border-box;
}
.aps-wrap button {
	font-family: inherit;
}

/* ---------- Tabs ---------- */
.aps-wrap .aps-tabs-wrap {
	overflow-x: auto;
	scrollbar-width: none;
	padding: 6px 4px 20px;
}
.aps-wrap .aps-tabs-wrap::-webkit-scrollbar {
	display: none;
}
.aps-wrap .aps-tabs {
	--aps-t-tx: var(--aps-tx);
	--aps-t-bg: var(--aps-card);
	--aps-t-bd: var(--aps-bd);
	--aps-t-on: var(--aps-on);
	position: relative;
	display: flex;
	gap: 10px;
	width: max-content;
	margin: 0 auto;
}
.aps-wrap .aps-tabs.aps-ts-seg {
	--aps-t-bg: transparent;
	--aps-t-bd: transparent;
	gap: 0;
	padding: 5px;
	border-radius: 999px;
	background: var(--aps-bd);
}
.aps-wrap .aps-tabs.aps-ts-line {
	--aps-t-tx: var(--aps-mut);
	--aps-t-bg: transparent;
	--aps-t-bd: transparent;
	--aps-t-on: var(--aps-tx);
	gap: 26px;
	border-bottom: 1px solid var(--aps-bd);
}

.aps-wrap .aps-tab {
	position: relative;
	z-index: 1;
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 11px 22px;
	border: 1px solid var(--aps-t-bd);
	border-radius: 999px;
	background: var(--aps-t-bg);
	color: var(--aps-t-tx);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.aps-wrap .aps-tab:hover,
.aps-wrap .aps-tab:focus {
	background: var(--aps-t-bg);
	color: var(--aps-t-tx);
	border-color: var(--aps-t-bd);
	box-shadow: none;
}
.aps-wrap .aps-tab:focus-visible {
	outline: 2px solid var(--aps-accent);
	outline-offset: 2px;
}
.aps-wrap .aps-tab .aps-count {
	font-style: normal;
	font-size: 11px;
	opacity: 0.55;
}
.aps-wrap .aps-tab.is-active,
.aps-wrap .aps-tab.is-active:hover,
.aps-wrap .aps-tab.is-active:focus {
	background: transparent;
	color: var(--aps-t-on);
	border-color: transparent;
}
.aps-wrap .aps-ts-seg .aps-tab {
	border: 0;
}
.aps-wrap .aps-ts-line .aps-tab {
	padding: 12px 2px;
	border: 0;
	border-radius: 0;
}

.aps-wrap .aps-ind {
	position: absolute;
	z-index: 0;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0;
	border-radius: 999px;
	background: var(--aps-accent);
	box-shadow: 0 10px 22px -10px var(--aps-accent);
	transition: transform 0.5s cubic-bezier(0.65, 0, 0.25, 1), width 0.5s cubic-bezier(0.65, 0, 0.25, 1);
}
.aps-wrap .aps-ts-seg .aps-ind {
	top: 5px;
	bottom: 5px;
}
.aps-wrap .aps-ts-line .aps-ind {
	top: auto;
	bottom: -1px;
	height: 3px;
	border-radius: 3px;
	box-shadow: none;
}

/* ---------- Grid: one row-group per tab ---------- */
.aps-wrap .aps-stage {
	position: relative;
}
.aps-wrap .aps-grid {
	position: relative;
	display: flex;
	flex-direction: column;
	row-gap: 44px;
}
.aps-wrap .aps-group {
	display: grid;
	grid-template-columns: repeat(var(--c-d, 3), minmax(0, 1fr));
	column-gap: 22px;
	row-gap: 22px;
	align-items: start;
}
@media (max-width: 1024px) {
	.aps-wrap .aps-group {
		grid-template-columns: repeat(var(--c-t, 2), minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.aps-wrap .aps-group {
		grid-template-columns: repeat(var(--c-m, 1), minmax(0, 1fr));
	}
}
.aps-wrap .aps-group.aps-hidden {
	display: none !important;
}

.aps-wrap .aps-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--aps-bd);
	border-radius: 18px;
	background: var(--aps-card);
	transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.6s ease;
}
.aps-wrap .aps-card[data-action="lightbox"],
.aps-wrap .aps-card[data-action="link"] {
	cursor: pointer;
}
.aps-wrap .aps-card.aps-hidden {
	display: none;
}
.aps-wrap .aps-card.aps-pop {
	animation: apsPop 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
	animation-delay: calc(var(--aps-i, 0) * 70ms);
}
@keyframes apsPop {
	from { opacity: 0; transform: translateY(26px) scale(0.97); }
}

/* ---------- Image window ---------- */
.aps-wrap .aps-preview-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #0d1117;
}
.aps-wrap .aps-t-website .aps-preview-wrap {
	height: var(--h-d, 260px);
}
@media (max-width: 1024px) {
	.aps-wrap .aps-t-website .aps-preview-wrap { height: var(--h-t, var(--h-d, 240px)); }
}
@media (max-width: 767px) {
	.aps-wrap .aps-t-website .aps-preview-wrap { height: var(--h-m, var(--h-t, var(--h-d, 200px))); }
}
.aps-wrap .aps-t-image .aps-preview-wrap,
.aps-wrap .aps-t-video .aps-preview-wrap {
	aspect-ratio: var(--aps-r, 4 / 5);
	background: var(--aps-chip);
}
.aps-wrap .aps-t-video .aps-preview-wrap {
	background: #0d1117;
}
.aps-wrap .aps-r-auto .aps-preview-wrap {
	aspect-ratio: auto;
}
.aps-wrap .aps-preview-wrap:focus-visible {
	outline: 2px solid var(--aps-accent);
	outline-offset: -2px;
}
.aps-wrap.has-glow .aps-t-website .aps-preview-wrap::before {
	content: "";
	position: absolute;
	top: -180px;
	left: -18px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		color-mix(in srgb, var(--aps-glow, var(--aps-accent)) 22%, transparent) 0%,
		color-mix(in srgb, var(--aps-glow, var(--aps-accent)) 12%, transparent) 20%,
		color-mix(in srgb, var(--aps-glow, var(--aps-accent)) 6%, transparent) 40%,
		transparent 80%
	);
	animation: apsGlow 6s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
}
@keyframes apsGlow {
	0%   { transform: translate(0, 0);       opacity: 0.75; }
	50%  { transform: translate(50px, 35px); opacity: 1; }
	100% { transform: translate(0, 0);       opacity: 0.75; }
}

.aps-wrap .aps-browser {
	position: relative;
	z-index: 4;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 12px;
	background: #1a1a1a;
}
.aps-wrap .aps-browser i {
	display: block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ff5f57;
}
.aps-wrap .aps-browser i:nth-child(2) { background: #febc2e; }
.aps-wrap .aps-browser i:nth-child(3) { background: #28c840; }

.aps-wrap .aps-preview {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}
.aps-wrap .aps-preview img {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	user-select: none;
	-webkit-user-drag: none;
}
.aps-wrap .aps-t-website .aps-preview img {
	height: auto;
	transform: translateY(0);
	transition: transform 5s linear;
}
.aps-wrap .aps-t-website:hover .aps-preview img {
	will-change: transform;
}
.aps-wrap .aps-t-image .aps-preview,
.aps-wrap .aps-t-video .aps-preview {
	position: absolute;
	inset: 0;
}
.aps-wrap .aps-r-auto .aps-preview {
	position: relative;
}
.aps-wrap .aps-t-image .aps-preview img,
.aps-wrap .aps-t-video .aps-preview img {
	width: 100%;
	height: 100%;
	object-fit: var(--aps-fit, cover);
	object-position: center top;
}
.aps-wrap .aps-r-auto .aps-preview img {
	height: auto;
}
.aps-wrap .aps-vid {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: var(--aps-fit, cover);
	opacity: 0;
	transition: opacity 0.45s ease;
	pointer-events: none;
}
.aps-wrap .aps-preview-wrap.is-playing .aps-vid {
	opacity: 1;
}

/* Reel extras */
.aps-wrap .aps-reel-tag {
	position: absolute;
	z-index: 5;
	top: 12px;
	left: 12px;
	padding: 4px 9px;
	border-radius: 99px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	pointer-events: none;
}
.aps-wrap .aps-play {
	position: absolute;
	z-index: 5;
	inset: 0;
	width: 58px;
	height: 58px;
	margin: auto;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.93);
	pointer-events: none;
	transition: transform 0.3s ease;
}
.aps-wrap .aps-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-35%, -50%);
	border-left: 16px solid #111;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
}
.aps-wrap .aps-card:hover .aps-play {
	transform: scale(1.12);
}
.aps-wrap .aps-card[data-auto="1"] .aps-play {
	display: none;
}
/* ---------- Info ---------- */
.aps-wrap .aps-info {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 14px 16px 16px;
}
.aps-wrap .aps-badge {
	align-self: flex-start;
	padding: 4px 11px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--aps-accent) 11%, transparent);
	color: var(--aps-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}
.aps-wrap.aps-theme-dark .aps-badge {
	color: var(--aps-tx);
}
@media (prefers-color-scheme: dark) {
	.aps-wrap.aps-theme-auto .aps-badge {
		color: var(--aps-tx);
	}
}
.aps-wrap .aps-info-top {
	display: flex;
	align-items: center;
	gap: 12px;
}
.aps-wrap .aps-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1.5px solid color-mix(in srgb, var(--aps-accent) 20%, transparent);
	border-radius: 8px;
	background: color-mix(in srgb, var(--aps-accent) 9%, transparent);
	color: var(--aps-accent);
}
.aps-wrap .aps-icon i {
	font-size: 18px;
	line-height: 1;
}
.aps-wrap .aps-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.aps-wrap .aps-title {
	margin: 0;
	padding: 0;
	color: var(--aps-tx);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}
.aps-wrap .aps-sub {
	color: var(--aps-mut);
	font-size: 13px;
	line-height: 1.45;
}
.aps-wrap .aps-metrics {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.aps-wrap .aps-metrics span {
	padding: 3px 9px;
	border: 1px solid var(--aps-bd);
	border-radius: 7px;
	background: var(--aps-chip);
	color: var(--aps-tx);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}
.aps-wrap .aps-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
.aps-wrap .aps-tag {
	color: var(--aps-mut);
	font-size: 12px;
}
.aps-wrap .aps-tag-sep {
	color: var(--aps-bd);
	font-size: 12px;
}
.aps-wrap.aps-tags-pills .aps-tag {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--aps-chip);
}

.aps-wrap .aps-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
}
.aps-wrap .aps-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	width: fit-content;
	color: var(--aps-accent);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: none;
	transition: gap 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.aps-wrap.aps-theme-dark .aps-link:not(.aps-link-demo) {
	color: var(--aps-tx);
}
.aps-wrap .aps-link-demo {
	color: var(--aps-mut);
}
.aps-wrap .aps-link:hover {
	gap: 8px;
	opacity: 0.85;
}
.aps-wrap .aps-link svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Result & testimonial cards ---------- */
.aps-wrap .aps-t-result .aps-info,
.aps-wrap .aps-t-testimonial .aps-info {
	gap: 10px;
	padding: 22px;
}
.aps-wrap .aps-stat {
	color: var(--aps-accent);
	font-size: 44px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}
.aps-wrap.aps-theme-dark .aps-stat {
	color: var(--aps-tx);
}
@media (prefers-color-scheme: dark) {
	.aps-wrap.aps-theme-auto .aps-stat {
		color: var(--aps-tx);
	}
}
.aps-wrap .aps-quote {
	color: var(--aps-tx);
	font-size: 15px;
	line-height: 1.65;
}
.aps-wrap .aps-quote::before {
	content: "\201C";
	display: block;
	height: 28px;
	color: var(--aps-accent);
	font-size: 54px;
	font-weight: 800;
	line-height: 1;
	opacity: 0.35;
}
.aps-wrap .aps-person {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}
.aps-wrap .aps-avatar {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--aps-chip);
}
.aps-wrap .aps-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.aps-wrap .aps-person-txt {
	min-width: 0;
}

/* ---------- Load more ---------- */
.aps-wrap .aps-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}
.aps-wrap .aps-more-wrap.is-hidden {
	display: none;
}
.aps-wrap .aps-more {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	margin: 0;
	padding: 12px 32px;
	border: 0;
	border-radius: 40px;
	background: var(--aps-accent);
	color: var(--aps-on);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none;
	transition: transform 0.2s ease;
}
.aps-wrap .aps-more:hover,
.aps-wrap .aps-more:focus {
	background: var(--aps-accent);
	color: var(--aps-on);
	transform: translateY(-2px);
}

/* ---------- Scroll reveal ---------- */
.aps-wrap.aps-js.aps-reveal .aps-card:not(.is-visible) {
	opacity: 0;
	transform: translateY(28px);
}

/* ---------- Slider (class toggled by JS) ---------- */
.aps-wrap .aps-arrow,
.aps-wrap .aps-dots {
	display: none;
}
.aps-wrap.is-slider .aps-grid {
	display: flex;
	gap: 14px;
	padding: 6px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.aps-wrap.is-slider .aps-grid::-webkit-scrollbar {
	display: none;
}
/* groups dissolve so all cards form one sequence: tab 1 cards, tab 2 cards, ... */
.aps-wrap.is-slider .aps-group {
	display: contents;
}
.aps-wrap.is-slider.aps-dir-h .aps-grid {
	flex-direction: row;
	align-items: flex-start;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
}
.aps-wrap.is-slider.aps-dir-h .aps-card {
	flex: 0 0 84%;
	scroll-snap-align: center;
}
.aps-wrap.is-slider.aps-dir-v .aps-grid {
	flex-direction: column;
	overflow-y: auto;
	overflow-x: hidden;
	max-height: 640px;
	scroll-snap-type: y mandatory;
}
.aps-wrap.is-slider.aps-dir-v .aps-card {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.aps-wrap.is-slider.has-arrows .aps-arrow {
	position: absolute;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--aps-accent);
	color: var(--aps-on);
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.aps-wrap.is-slider.has-arrows .aps-arrow:hover,
.aps-wrap.is-slider.has-arrows .aps-arrow:focus {
	background: var(--aps-accent);
	color: var(--aps-on);
	opacity: 0.9;
}
.aps-wrap.is-slider.aps-dir-h.has-arrows .aps-arrow {
	top: 50%;
	transform: translateY(-50%);
}
.aps-wrap.is-slider.aps-dir-h.has-arrows .aps-prev { left: 6px; }
.aps-wrap.is-slider.aps-dir-h.has-arrows .aps-next { right: 6px; }
.aps-wrap.is-slider.aps-dir-v.has-arrows .aps-arrow {
	left: 50%;
	transform: translateX(-50%);
}
.aps-wrap.is-slider.aps-dir-v.has-arrows .aps-arrow svg {
	transform: rotate(90deg);
}
.aps-wrap.is-slider.aps-dir-v.has-arrows .aps-prev { top: 10px; }
.aps-wrap.is-slider.aps-dir-v.has-arrows .aps-next { bottom: 10px; }

.aps-wrap.is-slider.has-dots .aps-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
	margin-top: 10px;
}
.aps-wrap.is-slider.aps-dir-v.has-dots .aps-dots {
	position: absolute;
	top: 50%;
	right: 4px;
	z-index: 5;
	flex-direction: column;
	margin: 0;
	transform: translateY(-50%);
}
.aps-wrap .aps-dot {
	width: 7px;
	height: 7px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--aps-bd);
	cursor: pointer;
	box-shadow: none;
	transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease;
}
.aps-wrap .aps-dot:hover,
.aps-wrap .aps-dot:focus {
	background: var(--aps-bd);
}
.aps-wrap .aps-dot.is-active,
.aps-wrap .aps-dot.is-active:hover {
	width: 20px;
	border-radius: 7px;
	background: var(--aps-accent);
}
.aps-wrap.aps-dir-v .aps-dot.is-active {
	width: 7px;
	height: 20px;
}

/* ---------- Lightbox (appended to <body>) ---------- */
.aps-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: var(--aps-overlay, rgba(5, 10, 18, 0.92));
}
.aps-modal *,
.aps-modal *::before,
.aps-modal *::after {
	box-sizing: border-box;
}
.aps-modal.is-open {
	display: flex;
	animation: apsFade 0.3s ease;
}
.aps-modal .aps-modal-content {
	position: relative;
	width: min(var(--aps-modal-width, 960px), 95vw);
	max-height: 92vh;
	overflow: auto;
	border-radius: var(--aps-modal-radius, 18px);
	background: transparent;
	scrollbar-width: thin;
}
.aps-modal .aps-modal-content img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: var(--aps-modal-radius, 18px);
	background: #000;
	transition: opacity 0.25s ease;
}
.aps-modal .aps-modal-content img.is-loading {
	opacity: 0.25;
}
.aps-modal .aps-modal-content.aps-lb-image {
	width: auto;
	max-width: 94vw;
	margin: 0 auto;
}
.aps-modal .aps-modal-content.aps-lb-image img {
	width: auto;
	max-width: 94vw;
	max-height: 88vh;
	margin: 0 auto;
	object-fit: contain;
}
.aps-modal .aps-modal-content.aps-lb-video {
	max-width: 94vw;
	max-height: 88vh;
	overflow: hidden;
	background: #000;
}
.aps-modal .aps-modal-content.aps-lb-video video,
.aps-modal .aps-modal-content.aps-lb-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--aps-modal-radius, 18px);
	background: #000;
	object-fit: contain;
}
.aps-modal.is-open.aps-anim-tilt  .aps-modal-content { animation: apsTilt 0.55s cubic-bezier(0.19, 1, 0.22, 1) both; }
.aps-modal.is-open.aps-anim-zoom  .aps-modal-content { animation: apsZoom 0.4s cubic-bezier(0.19, 1, 0.22, 1) both; }
.aps-modal.is-open.aps-anim-fade  .aps-modal-content { animation: apsFade 0.35s ease both; }
.aps-modal.is-open.aps-anim-slide .aps-modal-content { animation: apsSlide 0.5s cubic-bezier(0.19, 1, 0.22, 1) both; }

.aps-modal .aps-modal-close,
.aps-modal .aps-modal-nav {
	position: fixed;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--aps-close-bg, #fff);
	color: var(--aps-close-color, #000);
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.aps-modal .aps-modal-close {
	top: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	font-size: 28px;
	font-weight: 700;
}
.aps-modal .aps-modal-nav {
	top: calc(50% - 22px);
	width: 44px;
	height: 44px;
	opacity: 0.9;
}
.aps-modal .aps-modal-prev { left: 16px; }
.aps-modal .aps-modal-next { right: 16px; }
.aps-modal .aps-modal-nav svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.aps-modal .aps-modal-close:hover,
.aps-modal .aps-modal-nav:hover {
	transform: scale(0.94);
}
.aps-modal .aps-modal-nav[hidden] {
	display: none;
}
.aps-modal .aps-modal-caption {
	position: fixed;
	bottom: 14px;
	left: 50%;
	z-index: 3;
	max-width: 90vw;
	padding: 6px 16px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	transform: translateX(-50%);
	text-align: center;
}
.aps-modal .aps-modal-caption:empty {
	display: none;
}

@keyframes apsFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes apsTilt {
	0%   { opacity: 0; transform: perspective(1400px) rotateX(14deg) scale(0.78); }
	100% { opacity: 1; transform: perspective(1400px) rotateX(0) scale(1); }
}
@keyframes apsZoom {
	0%   { opacity: 0; transform: scale(0.85); }
	100% { opacity: 1; transform: scale(1); }
}
@keyframes apsSlide {
	0%   { opacity: 0; transform: translateY(60px); }
	100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
	.aps-wrap .aps-tab { padding: 10px 18px; font-size: 13px; }
	.aps-wrap .aps-ts-line .aps-tab { padding: 12px 2px; }
	.aps-modal { padding: 12px; }
	.aps-modal .aps-modal-content { width: 94vw; }
	.aps-modal .aps-modal-close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 26px; }
	.aps-modal .aps-modal-nav { width: 38px; height: 38px; top: auto; bottom: 16px; }
	.aps-modal .aps-modal-prev { left: 16px; }
	.aps-modal .aps-modal-next { right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.aps-wrap .aps-t-website .aps-preview img,
	.aps-wrap .aps-card,
	.aps-wrap .aps-ind { transition: none; }
	.aps-wrap .aps-card.aps-pop { animation: none; }
	.aps-wrap.has-glow .aps-preview-wrap::before { animation: none; }
	.aps-modal.is-open,
	.aps-modal.is-open .aps-modal-content { animation: none !important; }
}
