.lcpg-wrap {
	--lcpg-orange: #f2791d;
	--lcpg-orange-dark: #dd6a10;
	--lcpg-black: #14151a;
	--lcpg-gray: #6b7280;
	--lcpg-border: #e3e4e8;
	--lcpg-bg: #f7f7f9;
	box-sizing: border-box;
}
.lcpg-wrap *,
.lcpg-wrap *::before,
.lcpg-wrap *::after {
	box-sizing: border-box;
}

/* Grid — image-only tiles, like a poster/cover wall. No card text is
   shown; the client/project/category detail lives in the modal instead
   (and in an off-screen label on the tile for accessibility). Fixed
   3-column layout, collapsing down on smaller screens. */
.lcpg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 900px) {
	.lcpg-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}
@media (max-width: 560px) {
	.lcpg-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}

.lcpg-card {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(20, 21, 26, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lcpg-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(20, 21, 26, 0.14);
}
.lcpg-card:focus-visible {
	outline: 2px solid var(--lcpg-orange);
	outline-offset: 3px;
}
.lcpg-card[hidden],
.lcpg-card.is-hidden {
	display: none;
}

.lcpg-card-image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--lcpg-bg);
}
.lcpg-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.lcpg-card:hover .lcpg-card-image img {
	transform: scale(1.05);
}

/* Visually hidden but still readable by screen readers / search engines,
   since the tile itself shows no text. */
.lcpg-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lcpg-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: var(--lcpg-gray);
	border: 1px solid var(--lcpg-border);
	border-radius: 999px;
	padding: 5px 12px;
	margin-top: 2px;
}

.lcpg-btn {
	display: inline-block;
	background: var(--lcpg-orange);
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	border-radius: 999px;
	padding: 13px 26px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.lcpg-btn:hover {
	background: var(--lcpg-orange-dark);
}

.lcpg-empty {
	color: var(--lcpg-gray);
}

/* Modal */
.lcpg-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 15, 18, 0.66);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 100000;
}
.lcpg-modal-overlay.is-open {
	display: flex;
}

.lcpg-modal {
	position: relative;
	background: #fff;
	border-radius: 20px;
	max-width: 980px;
	width: 100%;
	max-height: 90vh;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
@media (max-width: 760px) {
	.lcpg-modal {
		grid-template-columns: 1fr;
		overflow-y: auto;
	}
}

.lcpg-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: rgba(20, 21, 26, 0.06);
	color: var(--lcpg-black);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lcpg-modal-close:hover {
	background: rgba(20, 21, 26, 0.12);
}

.lcpg-modal-media {
	background: var(--lcpg-bg);
	padding: 36px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
}
.lcpg-modal-image-wrap {
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}
.lcpg-modal-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.lcpg-modal-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.lcpg-modal-dots {
	display: flex;
	gap: 6px;
}
.lcpg-modal-dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--lcpg-border);
}
.lcpg-modal-dots span.is-active {
	background: var(--lcpg-black);
}
.lcpg-modal-arrows {
	display: flex;
	gap: 10px;
}
.lcpg-arrow {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: var(--lcpg-orange);
}
.lcpg-arrow-prev {
	background: rgba(242, 121, 29, 0.35);
	color: var(--lcpg-orange-dark);
}
.lcpg-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}
.lcpg-modal-nav[data-count="1"] {
	display: none;
}

.lcpg-modal-content {
	padding: 40px 40px 40px 32px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	overflow-y: auto;
}
.lcpg-modal-cat {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--lcpg-orange);
}
.lcpg-modal-title {
	font-size: 26px;
	font-weight: 700;
	color: var(--lcpg-black);
	margin: 0;
	line-height: 1.2;
}
.lcpg-modal-badge {
	margin-top: 0;
}
.lcpg-modal-desc {
	font-size: 15px;
	line-height: 1.65;
	color: var(--lcpg-gray);
	margin: 6px 0 10px;
	white-space: pre-line;
}
.lcpg-modal-btn {
	margin-top: auto;
}
.lcpg-modal-btn[href="#"],
.lcpg-modal-btn[href=""] {
	display: none;
}
