/* Projects carousel */
.projects-body {
	--pb-gap: 45px;
	--pb-visible: 5;
	--pb-overlay: rgba(36, 44, 110, 0.55);
	width: 100%;
	/* max-width: 1780px; */
	margin: 0 auto;
	padding: 100px;
    padding-bottom: 200px;
	box-sizing: border-box;
	background: #fff;
    position: relative;
}

.projects-body__viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.projects-body__viewport::-webkit-scrollbar {
	display: none;
}

.projects-body__track {
	display: flex;
	gap: var(--pb-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.projects-body__item {
	flex: 0 0 calc((100% - (var(--pb-visible) - 1) * var(--pb-gap)) / var(--pb-visible));
	scroll-snap-align: start;
	margin: 0;
}

.projects-body__card {
	position: relative;
	display: block;
	aspect-ratio: 309 / 357;
	overflow: hidden;
	text-decoration: none;
}

.projects-body__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}
.projects-body__card:hover .projects-body__img {
	transform: scale(1.05);
}

.projects-body__overlay {
	position: absolute;
	inset: 0;
	background: var(--pb-overlay);
	transition: background 0.3s ease;
}
.projects-body__card:hover .projects-body__overlay {
	background: rgba(36, 44, 110, 0.35);
}

.projects-body__title {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	text-align: center;
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: -0.5px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* Arrows */
.projects-body__nav {
	display: flex;
	justify-content: center;
	gap: 36px;
	margin-top: 25px;
}

.projects-body__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	color: #111;
	cursor: pointer;
	transition: opacity 0.2s ease;
    z-index: 100;
}
.projects-body__arrow:disabled {
	color: #aaa;
	cursor: default;
}

/* Responsive */
@media (max-width: 1200px) {
	.projects-body { --pb-visible: 3; --pb-gap: 30px; }
	.projects-body__title { font-size: 19px; }
}
@media (max-width: 767px) {
	.projects-body { --pb-visible: 1; --pb-gap: 16px; padding: 32px 16px; }
}