/* Application cases gallery — layout migrated from drone cases list */

body.pp-gallery-cases-page {
	background: #fff;
}

.pp-gallery-cases {
	padding: 3rem 0 3.5rem;
	background: #fff;
}

.pp-gallery-cases__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 2.5rem;
}

.pp-gallery-cases__filter {
	padding: 0.4rem 1rem;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: #5c6470;
	background: #fff;
	border: 1px solid rgba(12, 20, 36, 0.12);
	border-radius: 999px;
	cursor: pointer;
	transition:
		color 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}

.pp-gallery-cases__filter:hover {
	color: #1d5198;
	border-color: rgba(29, 81, 152, 0.35);
}

.pp-gallery-cases__filter.is-active {
	color: #0c1424;
	background: rgba(29, 81, 152, 0.12);
	border-color: rgba(29, 81, 152, 0.45);
}

.pp-gallery-cases__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.pp-gallery-cases__card {
	background: #fff;
	border: 1px solid rgba(12, 20, 36, 0.1);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(12, 20, 36, 0.06);
	transition:
		transform 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease;
}

.pp-gallery-cases__card.is-hidden {
	display: none;
}

.pp-gallery-cases__card:hover {
	transform: translateY(-4px);
	border-color: rgba(29, 81, 152, 0.28);
	box-shadow: 0 14px 32px rgba(12, 20, 36, 0.1);
}

.pp-gallery-cases__card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.pp-gallery-cases__card-media {
	overflow: hidden;
	background: #e8ecf1;
}

.pp-gallery-cases__card-media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.pp-gallery-cases__card:hover .pp-gallery-cases__card-media img {
	transform: scale(1.03);
}

.pp-gallery-cases__card-body {
	padding: 1.35rem 1.25rem 1.5rem;
}

.pp-gallery-cases__card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.pp-gallery-cases__card-tag {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1d5198;
}

.pp-gallery-cases__card-year {
	font-size: 0.75rem;
	color: #8a93a0;
}

.pp-gallery-cases__card-title {
	margin: 0.75rem 0 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	color: #0c1424;
	transition: color 0.2s ease;
}

.pp-gallery-cases__card:hover .pp-gallery-cases__card-title {
	color: #1d5198;
}

.pp-gallery-cases__card-project {
	margin: 0.45rem 0 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #1d5198;
}

.pp-gallery-cases__card-excerpt {
	margin: 0.65rem 0 0;
	font-size: 0.875rem;
	line-height: 1.65;
	color: #5c6470;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pp-gallery-cases__card-location {
	margin: 0.85rem 0 0;
	font-size: 0.75rem;
	color: #8a93a0;
}

.pp-gallery-cases__card-more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #c89400;
}

.pp-gallery-cases__card-more svg {
	width: 0.9rem;
	height: 0.9rem;
	transition: transform 0.2s ease;
}

.pp-gallery-cases__card:hover .pp-gallery-cases__card-more svg {
	transform: translateX(2px);
}

.pp-gallery-cases__empty {
	margin: 2rem 0 0;
	text-align: center;
	font-size: 0.875rem;
	color: #8a93a0;
}

.pp-gallery-cases__empty.hidden {
	display: none;
}

.pp-gallery-cases-cta {
	padding: 4rem 0;
	background: linear-gradient(135deg, #0f3460 0%, #1d5198 55%, #174278 100%);
	color: #fff;
	text-align: center;
}

.pp-gallery-cases-cta__inner {
	max-width: 40rem;
	margin-inline: auto;
}

.pp-gallery-cases-cta h2 {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: #fff;
}

.pp-gallery-cases-cta p {
	margin: 1rem 0 0;
	font-size: 0.95rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.88);
}

.pp-gallery-cases-cta .pp-btn {
	margin-top: 1.75rem;
}

@media (max-width: 992px) {
	.pp-gallery-cases__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.pp-gallery-cases {
		padding: 2rem 0 2.5rem;
	}

	.pp-gallery-cases__grid {
		grid-template-columns: 1fr;
	}
}
