/* =========================================================
   Projects Carousel
   Drop in: your-theme/assets/projects-carousel.css
   ========================================================= */

.pc {
	--pc-ink: #14301c;
	--pc-muted: #6f6f6f;
	--pc-card: #ffffff;
	--pc-border: #e4dfd5;
	--pc-green: #a3d63f;
	--pc-green-soft: #cfe79b;
	--pc-orange: #f04e23;
	--pc-radius: 18px;
	--pc-gap: 24px;
	--pc-per-view: 2;

	position: relative;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 16px;
	box-sizing: border-box;
}

.pc *,
.pc *::before,
.pc *::after {
	box-sizing: border-box;
}

/* ---------- Top bar: filters + arrows ---------- */
.pc__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.pc__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pc__filter {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border: 1px solid var(--pc-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--pc-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.pc__filter:hover {
	background: rgba(20, 48, 28, .07);
	color: var(--pc-green);
}

.pc__filter.is-active, .pc__filter.is-active:focus {
	background: var(--pc-ink);
	color: #fff;
}

.pc__burger {
	display: inline-flex;
	width: 16px;
	color: var(--pc-green);
}

.pc__burger svg {
	width: 100%;
	height: auto;
	display: block;
}

.pc__nav {
	display: flex;
	gap: 5px;
	margin-left: auto;
}

.pc__arrow {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	padding: 10px;
	border-radius: 50%;
	background: var(--pc-green-soft);
	color: var(--pc-ink);
	cursor: pointer;
	transition: background-color .2s ease, opacity .2s ease, transform .15s ease;
}

.pc__arrow--next {
	background: var(--pc-green);
}

.pc__arrow:hover:not(:disabled) {
	transform: translateY(-1px);
	background: var(--pc-green);
}

.pc__arrow--next:hover, .pc__arrow--next:active, .pc__arrow--next:visited, .pc__arrow--next:focus {
    background: var(--pc-green);
}

.pc__arrow--prev:hover, .pc__arrow--prev:active, .pc__arrow--prev:visited, .pc__arrow--prev:focus {
    background: var(--pc-green);
}

.pc__arrow:disabled {
	opacity: .4;
	cursor: default;
}

/*.pc__arrow svg {*/
/*	width: 60px;*/
/*	height: 60px;*/
/*}*/

/* ---------- Track ---------- */
.pc__viewport {
	overflow: hidden;
	/* let the peeking card bleed slightly without clipping card shadows */
	margin-inline: -4px;
	padding-inline: 4px;
}

.pc__track {
	display: flex;
	gap: var(--pc-gap);
	margin: 0;
	padding: 4px 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	overscroll-behavior-x: contain;
}

.pc__track::-webkit-scrollbar {
	display: none;
}

.pc__slide {
	flex: 0 0 calc((100% - var(--pc-gap) * (var(--pc-per-view) - 1)) / var(--pc-per-view));
	scroll-snap-align: start;
	min-width: 0;
}

.pc__slide[hidden] {
	display: none;
}

/* ---------- Card ---------- */
.pc__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--pc-card);
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius);
	padding: 20px 20px 0;
	overflow: hidden;
}

.pc__thumb {
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f2efe9;
}

.pc__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.pc__thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f2efe9, #e2ded4);
}

.pc__body {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 4px 24px;
	flex: 1 1 auto;
}

.pc__title {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--pc-ink);
}

.pc__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--pc-muted);
}

.pc__tags {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex: 0 0 auto;
}

.pc__tag {
	display: inline-block;
	padding: 8px 18px;
	border: 1px solid var(--pc-border);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1;
	color: var(--pc-ink);
	white-space: nowrap;
}

.pc__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-inline: -20px;
	padding: 16px 20px;
	border-top: 1px solid var(--pc-border);
}

.pc__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 500;
	color: var(--pc-ink);
	text-decoration: none;
}

.pc__link:hover {
	text-decoration: underline;
}

.pc__globe {
	display: inline-flex;
	color: var(--pc-green);
}

.pc__globe svg {
	width: 20px;
	height: 20px;
}

.pc__cta {
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border-radius: 50%;
	background: var(--pc-orange);
	color: #fff;
	text-decoration: none;
	transition: transform .15s ease;
	border:0;
}

.pc__cta:hover, .pc__cta:active, .pc__cta:focus {
	transform: translateY(-2px);
	background: var(--pc-orange);
	color: #fff!important;
	border:0;
}

.pc__cta svg {
	width: 20px;
	height: 20px;
}

/* ---------- Dots ---------- */
.pc__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
}

.pc__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--pc-ink);
	opacity: .85;
	cursor: pointer;
}

.pc__dot.is-active {
	background: var(--pc-green);
	opacity: 1;
}

.pc__empty {
	text-align: center;
	color: var(--pc-muted);
	padding: 40px 0;
}

/* ---------- Focus ---------- */
.pc :focus-visible {
	outline: 2px solid var(--pc-ink);
	outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.pc {
		--pc-per-view: 1.4;
		--pc-gap: 18px;
	}

	.pc__body {
		flex-direction: column;
		gap: 14px;
	}

	.pc__tags {
		flex-direction: row;
		align-items: flex-start;
		flex-wrap: wrap;
	}
}

@media (max-width: 680px) {
	.pc {
		--pc-per-view: 1.05;
	}

	.pc__top {
		align-items: flex-start;
	}

	.pc__filter {
		padding: 11px 18px;
		font-size: 14px;
	}

	.pc__title {
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pc__track {
		scroll-behavior: auto;
	}
}

/* =========================================================
   Modal — mock-up gallery
   ========================================================= */

.pc__link--modal {
	border: 0;
	background: none;
	padding: 0;
	font-family: inherit;
	cursor: pointer;
}

.pc__link--modal:hover, .pc__link--modal:visited, .pc__link--modal:active, .pc__link--modal:focus {
    background: none;
    color: inherit;
}

.pc-modal {
	/* The modal is printed in the footer, outside .pc, so it needs its own tokens */
	--pc-ink: #14301c;
	--pc-muted: #6f6f6f;
	--pc-border: #e4dfd5;
	--pc-green: #a3d63f;
	--pc-green-soft: #cfe79b;

	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.pc-modal[hidden] {
	display: none;
}

.pc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 14, 12, .62);
	backdrop-filter: blur(2px);
	animation: pc-fade .2s ease;
}

.pc-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1000px, 100%);
	max-height: min(92vh, 1000px);
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
	animation: pc-pop .22s cubic-bezier(.2, .8, .3, 1);
}

.pc-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px 14px 22px;
	flex: 0 0 auto;
}

.pc-modal__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--pc-ink, #14301c);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pc-modal__close {
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #1c1c1c;
	cursor: pointer;
	transition: background-color .15s ease;
}

.pc-modal__close:focus, .pc-modal__close:active {
    background: #ccc;
}

.pc-modal__close:hover {
	background: #ccc;
}

.pc-modal__close svg {
	width: 30px;
	height: 30px;
}

/* Stage scrolls vertically — full-page screenshots are tall */
.pc-modal__stage {
	position: relative;
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: #f4f2ed;
}

.pc-modal__figure {
	display: none;
	margin: 0;
}

.pc-modal__figure.is-active {
	display: block;
}

.pc-modal__img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Modal: project info slide (index 0) ---------- */
.pc-modal__figure--info {
	background: #fff;
}

/* Centres a short description instead of stranding it at the top */
.pc-modal__figure--info.is-active {
	display: flex;
	align-items: center;
	min-height: 100%;
}

.pc-modal__info {
	width: 100%;
	padding: 56px 48px 64px;
}

.pc-modal__info-inner {
	display: grid;
	gap: 28px;
	max-width: 1040px;
	margin-inline: auto;
}

@media (min-width: 900px) {
	.pc-modal__info-inner {
		grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
		column-gap: 56px;
		row-gap: 40px;
		align-items: start;
	}

	.pc-modal__info-header {
		grid-column: 1 / -1;
	}
}

/* ----- Header: featured image + title, full width ----- */
.pc-modal__info-header {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding-bottom: 30px;
	border-bottom: 1px solid #ccc;
}

.pc-modal__info-hero {
	overflow: hidden;
	border-radius: 14px;
	background: #f4f2ed;
}

.pc-modal__info-hero-img {
    display: block;
	width: 100%;
	height: clamp(180px, 26vh, 320px);
	object-fit: cover;
	object-position: top center;
}

.pc-modal__info-title {
	margin: 0;
	font-size: 32px;
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -.01em;
	color: var(--pc-ink, #14301c);
}

/* ----- Left rail: eyebrow, tags, button ----- */
.pc-modal__info-side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.pc-modal__info-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pc-muted, #6f6f6f);
}

.pc-modal__info-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pc-modal__info-tag {
	display: inline-flex;
	padding: 7px 15px;
	border: 1px solid var(--pc-border, #e4dfd5);
	border-radius: 999px;
	background: #f7f6f2;
	font-size: 13px;
	line-height: 1;
	color: var(--pc-ink, #14301c);
}

.pc-modal__info-actions {
	margin: 6px 0 0;
}

.pc-modal__info-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 24px;
	border-radius: 999px;
	background: var(--pc-green, #a3d63f);
	color: var(--pc-ink, #14301c);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}

.pc-modal__info-link:hover,
.pc-modal__info-link:focus,
.pc-modal__info-link:visited,
.pc-modal__info-link:active {
	color: var(--pc-ink, #14301c);
	text-decoration: none;
}

.pc-modal__info-link:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(20, 48, 28, .16);
}

.pc-modal__info-icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

/* ----- Right column: the description ----- */
.pc-modal__info-body {
	max-width: 68ch;
	font-size: 17px;
	line-height: 1.7;
}

/* The theme styles paragraphs too, so colour has to be set on the children */
.pc-modal__info-body,
.pc-modal__info-body p,
.pc-modal__info-body li,
.pc-modal__info-body blockquote {
	color: #5b6159;
}

.pc-modal__info-body > *:first-child { margin-top: 0; }
.pc-modal__info-body > *:last-child  { margin-bottom: 0; }

.pc-modal__info-body p {
	margin: 0 0 1.1em;
}

/* Lead paragraph carries the weight now that the title is gone */
.pc-modal__info-body > p:first-of-type {
	font-size: 20px;
	line-height: 1.55;
	color: var(--pc-ink, #14301c);
}

.pc-modal__info-body h2,
.pc-modal__info-body h3,
.pc-modal__info-body h4 {
	margin: 1.6em 0 .5em;
	color: var(--pc-ink, #14301c);
	line-height: 1.3;
}

.pc-modal__info-body a {
	color: var(--pc-ink, #14301c);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pc-modal__info-body ul,
.pc-modal__info-body ol {
	margin: 0 0 1.1em;
	padding-left: 1.25em;
}

.pc-modal__info-body li {
	margin-bottom: .4em;
}

.pc-modal__info-body img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

/* The info dot is a pill so it reads as "not an image" */
.pc-modal__dot--info {
	width: 18px;
	border-radius: 999px;
}

/* The info dot is a pill so it reads as "not an image" */
.pc-modal__dot--info {
	width: 18px;
	border-radius: 999px;
}

.pc-modal__bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 14px 18px;
	border-top: 1px solid var(--pc-border, #e4dfd5);
	flex: 0 0 auto;
	background: #fff;
}

.pc-modal__nav {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border: 0;
	border-radius: 50%;
	background: var(--pc-green-soft, #cfe79b);
	color: var(--pc-ink, #14301c);
	cursor: pointer;
	transition: transform .15s ease, opacity .15s ease;
}

.pc-modal__nav:last-of-type {
	background: var(--pc-green, #a3d63f);
}

.pc-modal__nav:hover {
	transform: translateY(-1px);
	background: var(--pc-green-soft, #cfe79b);
}

.pc-modal__nav:focus {
	background: var(--pc-green-soft, #cfe79b);
}

.pc-modal__nav svg {
	width: 18px;
	height: 18px;
}

.pc-modal__dots {
	display: flex;
	gap: 7px;
}

.pc-modal__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c9c6bd;
	cursor: pointer;
}

.pc-modal__dot.is-active {
	background: var(--pc-green, #a3d63f);
}

.pc-modal__count {
	font-size: 14px;
	color: var(--pc-muted, #6f6f6f);
	min-width: 62px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* Lock the page behind the modal */
body.pc-modal-open {
	overflow: hidden;
}

@keyframes pc-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes pc-pop {
	from { opacity: 0; transform: translateY(14px) scale(.985); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.pc-modal__backdrop,
	.pc-modal__panel {
		animation: none;
	}
}

@media (max-width: 1024px) {
	.pc {
		--pc-gap: 18px;
	}

	.pc__slide {
		flex: 0 0 calc((100% - var(--pc-gap) * 0.4) / 1.4);
	}

	.pc__body {
		flex-direction: column;
		gap: 14px;
	}

	.pc__tags {
		flex-direction: row;
		align-items: flex-start;
		flex-wrap: wrap;
	}
}

@media (max-width: 680px) {
	.pc-modal {
		padding: 12px 10px;
	}

	.pc-modal__panel {
		max-height: 94vh;
		border-radius: 12px;
	}

	.pc-modal__bar {
		gap: 10px;
		padding: 12px;
	}

	.pc-modal__nav {
		width: 36px;
		height: 36px;
	}

	.pc-modal__info {
		padding: 26px 20px 32px;
	}

	.pc-modal__info-title {
		font-size: 21px;
	}

	.pc-modal__info-body {
		font-size: 15px;
	}
	
	.pc__slide {
		flex: 0 0 100%;
	}

	.pc__top {
		align-items: flex-start;
	}

	.pc__filter {
		padding: 11px 18px;
		font-size: 14px;
	}

	.pc__title {
		font-size: 19px;
	}
	
	.pc__dots {
		display: none;
	}
	
	.pc-modal__info-header {
		gap: 16px;
	}

	.pc-modal__info-title {
		font-size: 24px;
	}
	
}