body.ypc-project-cases-active {
	--ypc-navy: #071d3d;
	--ypc-blue: #2a3478;
	--ypc-orange: #ff5518;
	--ypc-text: #17223b;
	--ypc-muted: #64728b;
	--ypc-line: #dde4ef;
	--ypc-soft: #f4f7fb;
}

body.ypc-project-cases-active .main-title-section-wrapper,
body.ypc-project-cases-active .breadcrumb {
	display: none !important;
}

body.ypc-project-cases-active #main {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.ypc-project-cases-active #main > .container,
body.ypc-project-cases-active #primary,
body.ypc-project-cases-active #primary.content-full-width,
body.ypc-project-cases-active .entry-content {
	box-sizing: border-box !important;
	float: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100% !important;
}

.ypc-project-cases,
.ypc-project-cases * {
	box-sizing: border-box;
	letter-spacing: 0;
}

.ypc-hero {
	align-items: center;
	background-color: var(--ypc-navy);
	background-image: linear-gradient(90deg, rgba(7, 29, 61, .92) 0%, rgba(42, 52, 120, .75) 58%, rgba(42, 52, 120, .6) 100%), var(--ypc-hero-image);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	min-height: 465px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.ypc-hero__inner {
	margin: 0 auto;
	max-width: 1240px;
	padding: 0 36px;
	width: 100%;
}

.ypc-hero__inner span,
.ypc-intro span,
.ypc-card__body span {
	color: var(--ypc-orange);
	display: block;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.ypc-hero__inner h1 {
	color: #fff;
	font-size: clamp(42px, 4vw, 64px);
	font-weight: 800;
	line-height: 1.08;
	margin: 14px 0 0;
	max-width: 820px;
}

.ypc-hero__inner p {
	color: rgba(255, 255, 255, .9);
	font-size: 17px;
	line-height: 1.65;
	margin: 18px 0 0;
	max-width: 760px;
}

.ypc-content {
	margin: 0 auto;
	max-width: 1240px;
	padding: 74px 36px 100px;
	width: 100%;
}

.ypc-intro {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	margin-bottom: 38px;
}

.ypc-intro h2 {
	color: var(--ypc-navy);
	font-size: clamp(34px, 3.2vw, 48px);
	font-weight: 800;
	line-height: 1.12;
	margin: 8px 0 0;
}

.ypc-intro p {
	align-self: end;
	color: var(--ypc-muted);
	font-size: 17px;
	line-height: 1.7;
	margin: 0;
}

.ypc-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ypc-card {
	background: #fff;
	border: 1px solid var(--ypc-line);
	box-shadow: 0 18px 45px rgba(0, 24, 64, .08);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ypc-card:hover {
	border-color: rgba(255, 85, 24, .45);
	box-shadow: 0 24px 55px rgba(0, 24, 64, .12);
	transform: translateY(-4px);
}

.ypc-card__media {
	appearance: none;
	background: var(--ypc-soft);
	border: 0;
	cursor: zoom-in;
	display: block;
	margin: 0;
	overflow: hidden;
	padding: 0;
	width: 100%;
}

.ypc-card__media img {
	aspect-ratio: 4 / 3;
	display: block;
	height: auto;
	object-fit: cover;
	transition: transform .25s ease;
	width: 100%;
}

.ypc-card:hover .ypc-card__media img {
	transform: scale(1.04);
}

.ypc-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 22px 24px;
}

.ypc-card__body h3 {
	color: var(--ypc-navy);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	margin: 10px 0 12px;
}

.ypc-card__body p {
	color: var(--ypc-muted);
	font-size: 15px;
	line-height: 1.65;
	margin: 0;
}

.ypc-lightbox {
	align-items: center;
	background: rgba(7, 15, 32, .88);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 36px;
	position: fixed;
	z-index: 99999;
}

.ypc-lightbox.is-open {
	display: flex;
}

.ypc-lightbox img {
	background: #fff;
	box-shadow: 0 25px 70px rgba(0, 0, 0, .28);
	display: block;
	max-height: min(78vh, 760px);
	max-width: min(92vw, 1120px);
	object-fit: contain;
	width: auto;
}

.ypc-lightbox p {
	background: var(--ypc-orange);
	bottom: 28px;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	left: 50%;
	line-height: 1.2;
	margin: 0;
	padding: 12px 18px;
	position: absolute;
	transform: translateX(-50%);
}

.ypc-lightbox__close {
	align-items: center;
	background: var(--ypc-orange);
	border: 0;
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 32px;
	height: 48px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 28px;
	top: 24px;
	width: 48px;
}

@media (max-width: 1199px) {
	.ypc-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.ypc-hero {
		min-height: 300px;
	}

	.ypc-content {
		padding-top: 52px;
	}

	.ypc-intro {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 767px) {
	.ypc-hero {
		min-height: 220px;
	}

	.ypc-hero__inner {
		padding: 0 20px;
	}

	.ypc-hero__inner h1 {
		font-size: 32px;
		line-height: 1.12;
		max-width: 340px;
	}

	.ypc-hero__inner p {
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		display: -webkit-box;
		font-size: 13px;
		line-height: 1.5;
		max-width: 340px;
		overflow: hidden;
	}

	.ypc-content {
		padding: 38px 18px 70px;
	}

	.ypc-intro {
		gap: 14px;
		margin-bottom: 24px;
	}

	.ypc-intro h2 {
		font-size: 27px;
	}

	.ypc-intro p {
		font-size: 14px;
		line-height: 1.65;
	}

	.ypc-grid {
		gap: 20px;
		grid-template-columns: 1fr;
	}

	.ypc-card__body {
		padding: 18px 18px 20px;
	}

	.ypc-card__body h3 {
		font-size: 20px;
	}

	.ypc-lightbox {
		padding: 18px;
	}

	.ypc-lightbox__close {
		right: 16px;
		top: 16px;
	}
}

