/* Project pages (/projects/). Uses main.css tokens; gallery grid classes come from renovate.css. */

.pj-crumbs { font-size: 0.84rem; color: var(--ink-soft); padding: 22px 0 0; }
.pj-crumbs a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.pj-crumbs span[aria-hidden] { margin: 0 6px; }

.pj-head { padding: 18px 0 clamp(28px, 4vw, 48px); }
.pj-head-grid { display: grid; gap: 28px; align-items: end; }
@media (min-width: 960px) { .pj-head-grid { grid-template-columns: 0.8fr 1.2fr; gap: 48px; } }
.pj-head-copy { display: grid; gap: 16px; min-width: 0; }
.pj-head-copy h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; }
.pj-glance { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 6px; }
.pj-glance div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.pj-glance dt { color: var(--ink-soft); }
.pj-glance dd { font-weight: 600; text-align: right; }
.pj-cover { margin: 0; min-width: 0; }
.pj-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-soft); background: var(--paper-3); }

.pj-ba { max-width: 880px; }

.pj-group { margin-top: clamp(26px, 4vw, 40px); }
.pj-group:first-of-type { margin-top: 0; }
.pj-group h3 { font-size: 1.2rem; margin-bottom: 12px; }
.pj-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .pj-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.pj-shot { margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft);
  box-shadow: var(--shadow); display: block; width: 100%; text-align: left; font: inherit; color: inherit; }
.pj-shot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-3); transition: transform .35s ease; }
.pj-shot:hover img { transform: scale(1.03); }
.pj-shot:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 2px; }
.pj-shot span { display: block; padding: 8px 12px 10px; font-size: 0.78rem; color: var(--ink-soft); background: #fff; }

.pj-more { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 880px) { .pj-more { grid-template-columns: repeat(4, 1fr); } }
.pj-card { display: block; text-decoration: none; color: inherit; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.pj-card:hover { transform: translateY(-2px); }
.pj-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-3); }
.pj-card div { padding: 12px 14px 14px; display: grid; gap: 2px; }
.pj-card strong { font-size: 0.98rem; }
.pj-card small { color: var(--ink-soft); font-size: 0.8rem; }
.pj-index { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pj-index { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .pj-index { grid-template-columns: repeat(3, 1fr); } }
.pj-index .pj-card p { color: var(--ink-soft); font-size: 0.88rem; margin-top: 6px; }

.pj-nav { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.pj-nav a { color: var(--brass); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* lightbox */
.pj-lb { position: fixed; inset: 0; z-index: 200; background: rgba(15, 22, 19, 0.94); display: none; align-items: center; justify-content: center; padding: 56px 12px 64px; }
.pj-lb.open { display: flex; }
.pj-lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; }
.pj-lb-cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(247, 242, 233, 0.8); font-size: 0.88rem; padding: 0 60px; }
.pj-lb button { position: absolute; background: rgba(247, 242, 233, 0.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; }
.pj-lb button:hover { background: rgba(247, 242, 233, 0.26); }
.pj-lb button:focus-visible { outline: 2px solid var(--brass-bright); }
.pj-lb .x { top: 12px; right: 12px; }
.pj-lb .p { left: 10px; top: 50%; transform: translateY(-50%); }
.pj-lb .n { right: 10px; top: 50%; transform: translateY(-50%); }
body.pj-lock { overflow: hidden; }
