/* Velectronics Projects Showcase v1.1.0
   Clean editorial portfolio layout.
*/

.vsps,
.vsps * {
	box-sizing: border-box;
}

.vsps {
	--vsps-blue: #108AC4;
	--vsps-dark-blue: #1F4F80;
	--vsps-heading: #10283D;
	--vsps-text: #3F566B;
	--vsps-muted: #667B8F;
	--vsps-border: #B8D7E8;
	--vsps-soft: #F7FBFE;
	--vsps-soft-blue: #EAF5FC;
	--vsps-white: #FFFFFF;

	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--vsps-text);
	font-family: inherit;
	overflow: visible !important;
}

.vsps__inner {
	width: min(100%, 1480px);
	margin-inline: auto;
	padding-inline: clamp(20px, 3vw, 46px);
}

/* FILTERS */
.vsps__filters-wrap {
	width: 100%;
	margin: 0 0 42px;
	overflow: visible;
}

.vsps__filters {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 12px;
	width: 100%;
	padding: 0;
}

.vsps__filter {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	border: 1px solid rgba(16, 40, 61, .12);
	background: rgba(255,255,255,.72);
	color: var(--vsps-muted);
	border-radius: 999px;
	padding: 9px 10px 9px 15px;
	margin: 0;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: none !important;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition:
		color .2s ease,
		background .2s ease,
		border-color .2s ease,
		transform .2s ease;
}

.vsps__filter-label {
	display: block;
	min-width: 0;
}

.vsps__filter-count {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	padding: 0 7px;
	border-radius: 999px;
	background: rgba(16, 40, 61, .07);
	color: var(--vsps-heading);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	transition: background .2s ease, color .2s ease;
}

.vsps__filter:hover,
.vsps__filter:focus-visible {
	color: var(--vsps-heading);
	border-color: rgba(16, 138, 196, .35);
	background: var(--vsps-white);
}

.vsps__filter.is-active {
	color: var(--vsps-white);
	background: var(--vsps-blue);
	border-color: var(--vsps-blue);
}

.vsps__filter.is-active .vsps__filter-count {
	background: rgba(255,255,255,.18);
	color: var(--vsps-white);
}

.vsps__filter:focus-visible,
.vsps-card a:focus-visible,
.vsps__all-link:focus-visible {
	outline: 2px solid var(--vsps-blue);
	outline-offset: 3px;
}

/* RESULTS */
.vsps__results {
	min-height: 140px;
	transition: opacity .18s ease;
}

.vsps.is-loading .vsps__results {
	opacity: .42;
	pointer-events: none;
}

.vsps__grid {
	display: grid;
	width: 100%;
	gap: clamp(36px, 4vw, 60px) clamp(22px, 2.4vw, 34px);
	align-items: start;
}

.vsps__grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vsps__grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vsps__grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* CARDS */
.vsps-card {
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 0 0 22px;
	border: 0;
	border-bottom: 1px solid rgba(16, 40, 61, .13);
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.vsps-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10.6;
	overflow: hidden;
	border-radius: 2px;
	background: #edf4f8;
	text-decoration: none;
}

.vsps-card__image {
	display: block;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: contain;
	object-position: center;
	background: #eef5f8;
	border: 0;
	border-radius: 0;
	transform: scale(1.001);
	transition: transform .42s cubic-bezier(.2,.7,.2,1);
}

.vsps-card:hover .vsps-card__image {
	transform: scale(1.025);
}

.vsps-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, rgba(16,138,196,.08), rgba(31,79,128,.03));
}

.vsps-card__placeholder span {
	color: rgba(16,138,196,.30);
	font-size: clamp(34px, 5vw, 62px);
	font-weight: 750;
	letter-spacing: -.05em;
}

.vsps-card__body {
	padding-top: 16px;
}

.vsps-card__category {
	margin: 0 0 8px;
	color: var(--vsps-blue);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: .085em;
	text-transform: uppercase;
}

.vsps-card__title-row {
	display: flex;
	align-items: center;
	gap: 15px;
	min-width: 0;
}

.vsps-card__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--vsps-heading);
	font-size: clamp(20px, 1.55vw, 27px) !important;
	font-weight: 700 !important;
	line-height: 1.12 !important;
	letter-spacing: -.03em;
	text-transform: none !important;
}

.vsps-card__title a {
	color: inherit !important;
	text-decoration: none !important;
	text-transform: none !important;
}

.vsps-card__arrow {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(16, 138, 196, .35);
	border-radius: 50%;
	color: var(--vsps-blue) !important;
	background: transparent;
	text-decoration: none !important;
	transition:
		background .2s ease,
		color .2s ease,
		border-color .2s ease,
		transform .2s ease;
}

.vsps-card__arrow svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.vsps-card:hover .vsps-card__arrow {
	background: var(--vsps-blue);
	border-color: var(--vsps-blue);
	color: var(--vsps-white) !important;
	transform: translate(2px, -2px);
}

.vsps-card__excerpt {
	margin: 12px 54px 0 0;
	color: var(--vsps-muted);
	font-size: 14px;
	line-height: 1.65;
}

.vsps__empty {
	display: grid;
	place-items: center;
	min-height: 180px;
	border-top: 1px solid rgba(16, 40, 61, .10);
	border-bottom: 1px solid rgba(16, 40, 61, .10);
	text-align: center;
}

.vsps__empty p {
	margin: 0;
	color: var(--vsps-muted);
}

.vsps__footer {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.vsps__all-link {
	display: inline-flex;
	align-items: center;
	gap: 13px;
	color: var(--vsps-blue) !important;
	font-size: 15px;
	font-weight: 750;
	text-decoration: none !important;
}

.vsps__all-link:hover {
	color: var(--vsps-dark-blue) !important;
}

.vsps__all-arrow {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--vsps-blue);
	color: #fff;
	transition: transform .2s ease, background .2s ease;
}

.vsps__all-arrow svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.vsps__all-link:hover .vsps__all-arrow {
	background: var(--vsps-dark-blue);
	transform: translateX(3px);
}

/* TABLET */
@media (max-width: 1100px) {
	.vsps__grid--3,
	.vsps__grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vsps__filters {
		justify-content: flex-start;
	}
}

/* MOBILE */
@media (max-width: 680px) {
	.vsps__inner {
		padding-inline: 18px;
	}

	
	.vsps__filters-wrap {
		margin-bottom: 30px;
		overflow: visible;
	}

	.vsps__filters {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
		gap: 8px;
		width: 100%;
		overflow: visible;
		padding: 0;
	}

	.vsps__filter {
		flex: 0 0 auto;
		width: auto;
		max-width: 100%;
		min-height: 40px;
		justify-content: center;
		text-align: center;
		font-size: 12px;
		padding: 7px 9px 7px 13px;
		border-radius: 999px;
	}

	.vsps__filter-label {
		white-space: nowrap;
	}

	.vsps__filter-count {
		flex: 0 0 auto;
		min-width: 25px;
		height: 25px;
		padding-inline: 6px;
	}
.vsps__grid,
	.vsps__grid--2,
	.vsps__grid--3,
	.vsps__grid--4 {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.vsps-card {
		padding-bottom: 19px;
	}

	.vsps-card__media {
		aspect-ratio: 16 / 10.6;
	}

	.vsps-card__title {
		font-size: clamp(21px, 6vw, 27px) !important;
	}

	.vsps-card__arrow {
		flex-basis: 38px;
		width: 38px;
		height: 38px;
	}

	.vsps-card__excerpt {
		margin-right: 0;
	}

	.vsps__footer {
		justify-content: flex-start;
		margin-top: 36px;
	}
}

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


/* NUMBERED AJAX PAGINATION */
.vsps__pagination-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 46px;
}

.vsps-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.vsps-pagination__number {
	appearance: none;
	-webkit-appearance: none;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(16, 40, 61, .16);
	border-radius: 50%;
	background: #fff;
	color: var(--vsps-heading);
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.vsps-pagination__number:hover,
.vsps-pagination__number:focus-visible {
	border-color: var(--vsps-blue);
	color: var(--vsps-blue);
	transform: translateY(-1px);
}

.vsps-pagination__number.is-active {
	background: var(--vsps-blue);
	border-color: var(--vsps-blue);
	color: #fff;
}

.vsps-pagination__number:focus-visible {
	outline: 2px solid var(--vsps-blue);
	outline-offset: 3px;
}

@media (max-width: 680px) {
	.vsps__pagination-wrap {
		margin-top: 34px;
	}

	.vsps-pagination__number {
		width: 38px;
		height: 38px;
		font-size: 13px;
	}
}


@media (max-width: 390px) {
	.vsps__filters {
		gap: 7px;
	}

	.vsps__filter {
		font-size: 11.4px;
		padding: 7px 8px 7px 11px;
	}

	.vsps__filter-count {
		min-width: 24px;
		height: 24px;
		font-size: 10.5px;
	}
}
