.net5s-projects {
	--n5p-height: 360px;
	--n5p-gap: 24px;
	width: 100%;
}

.net5s-projects,
.net5s-projects * {
	box-sizing: border-box;
}

.net5s-projects__grid {
	display: grid;
	grid-template-columns: repeat(var(--n5p-columns, 4), minmax(0, 1fr));
	gap: var(--n5p-gap);
}

.net5s-projects__card {
	min-width: 0;
	margin: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 5px 22px rgba(21, 35, 60, 0.055);
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.net5s-projects__card:hover {
	border-color: #d7dce5;
	box-shadow: 0 10px 28px rgba(21, 35, 60, 0.11);
}

.net5s-projects__viewport {
	position: relative;
	height: var(--n5p-height);
	width: 100%;
	background: #f4f6f9;
	overflow: hidden;
	cursor: default;
}

.net5s-projects__image,
.net5s-projects__viewport img.net5s-projects__image {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	max-width: none;
	max-height: none;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	transform: translate3d(0, 0, 0);
	transition: transform 0.8s ease-out;
	pointer-events: none;
	user-select: none;
}

@media (hover: hover) and (pointer: fine) {
	.net5s-projects__viewport:hover .net5s-projects__image {
		transform: translate3d(0, var(--n5p-distance, 0px), 0);
		transition-duration: var(--n5p-duration, 8s);
		transition-timing-function: linear;
	}
}

.net5s-projects__name,
.net5s-projects h3.net5s-projects__name {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0;
	color: #182b45;
	margin: 0;
	padding: 18px 18px 20px;
	text-align: center;
	text-transform: none;
}

@media (max-width: 900px) {
	.net5s-projects__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

@media (max-width: 600px) {
	.net5s-projects__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.net5s-projects__viewport {
		height: min(var(--n5p-height), 250px);
	}

	.net5s-projects__card {
		border-radius: 10px;
	}

	.net5s-projects__name,
	.net5s-projects h3.net5s-projects__name {
		font-size: 14px;
		line-height: 1.4;
		padding: 12px 7px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.net5s-projects__image,
	.net5s-projects__card {
		transition: none !important;
	}

	.net5s-projects__viewport:hover .net5s-projects__image {
		transform: none !important;
	}
}
