/* Shared chrome additions and the Portfolio, About and error pages. Same drawing world as the homepage. */

/* ---------- shared additions ---------- */
.main-nav a[aria-current='page'] { color: var(--navy); }
.main-nav a[aria-current='page']::after { transform: scaleX(1); }
.mobile-menu a[aria-current='page'] { color: var(--navy); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--mist); }
.btn-light .icon { width: 20px; height: 20px; }
.btn-ghost-light { border-color: var(--on-navy-line); color: var(--white); padding-right: 26px; justify-content: center; gap: 10px; }
.btn-ghost-light:hover { border-color: var(--sky); }
.text-link-light { color: var(--white); }

.footer-credit { font-size: var(--fs-label); }
.footer-credit a { color: var(--on-navy-soft); text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: var(--white); text-decoration: underline; }

/* ---------- portfolio ---------- */
.pf-head { padding-top: clamp(64px, 8vw, 128px); text-align: center; }
.pf-head h1 { font-size: clamp(3rem, 1.9rem + 5vw, 6rem); letter-spacing: -0.035em; }
.pf-intro { max-width: 56ch; margin: var(--s5) auto 0; font-size: var(--fs-lead); color: var(--ink-soft); }
.dim-pf { margin-top: clamp(40px, 5vw, 64px); }

.pf-body { padding-top: clamp(32px, 4vw, 48px); padding-bottom: var(--section); }
.pf-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pf-filter {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white);
  font-weight: 600; font-size: var(--fs-small); color: var(--navy);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s, color 0.3s;
}
.pf-filter .icon { width: 20px; height: 20px; }
.pf-filter:hover { border-color: var(--navy); }
.pf-filter[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pf-count { margin-top: var(--s5); text-align: center; font-size: var(--fs-small); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4vw, 56px) var(--s5); margin-top: clamp(40px, 5vw, 64px); }
.pf-item { view-transition-name: var(--vt); }
.pf-item article { display: grid; gap: var(--s4); }
.pf-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.pf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pf-item:hover .pf-media img { transform: scale(1.035); }
.pf-text { display: grid; gap: 8px; }
.pf-text h2 { font-size: 1.35rem; line-height: 1.2; }
.pf-text > p:not(.pf-meta) { color: var(--ink-soft); max-width: 48ch; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; font-size: var(--fs-small); font-weight: 600; color: var(--navy); }
.pf-meta span { display: inline-flex; align-items: center; gap: 7px; }
.pf-meta .icon { width: 17px; height: 17px; color: var(--ink-soft); }
.pf-empty { text-align: center; color: var(--ink-soft); margin-top: var(--s7); }
@media (max-width: 1099px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .pf-filter { flex: none; }
}
::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }

.pf-cta { padding-bottom: var(--section); }
.pf-cta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s6); flex-wrap: wrap;
  background: var(--navy); color: var(--white); border-radius: var(--r-panel); padding: clamp(28px, 5vw, 64px);
}
.pf-cta-panel h2 { color: var(--white); }
.pf-cta-panel p { margin-top: var(--s4); color: var(--on-navy-soft); max-width: 46ch; font-size: var(--fs-lead); }
.pf-cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.pf-cta-panel :focus-visible { outline-color: var(--sky); }

/* ---------- about ---------- */
.ab-head { padding-top: clamp(56px, 7vw, 112px); }
.ab-head-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); align-items: center; }
.ab-head-copy { grid-column: 1 / span 6; }
.ab-head-copy h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); letter-spacing: -0.03em; }
.ab-lead { margin-top: var(--s5); font-weight: 600; color: var(--ink-soft); }
.ab-intro { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line); }
.ab-intro p { font-size: var(--fs-lead); line-height: 1.65; max-width: 58ch; }
.ab-portrait { grid-column: 8 / span 5; position: relative; }
.ab-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-media); }
.ab-portrait .dim-v { left: auto; right: -30px; }
@media (max-width: 899px) {
  .ab-head-copy, .ab-portrait { grid-column: 1 / -1; }
  .ab-portrait { order: -1; margin-bottom: var(--s7); }
  .ab-portrait .dim-v { display: none; }
}

.ab-timeline { padding-block: var(--section); }
.tl { position: relative; display: grid; gap: clamp(72px, 9vw, 128px); }
.tl::before { content: ''; position: absolute; top: 12px; bottom: 0; left: 120px; width: 1px; background: var(--linework); }
.tl-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); row-gap: var(--s7); }
.tl-year {
  position: relative; font-family: var(--font-mono); font-size: 1rem; font-weight: 500; color: var(--navy);
  letter-spacing: 0.02em; padding-top: 6px; font-variant-numeric: tabular-nums;
}
.tl-year::after { content: ''; position: absolute; right: -5px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 1px solid var(--navy); }
.tl-body { grid-column: 2; max-width: 64ch; }
.tl-body h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin-bottom: var(--s5); }
.tl-body p { color: var(--ink-soft); font-size: 1.075rem; line-height: 1.7; }
.tl-figure { grid-column: 2; max-width: 760px; }
.tl-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-media); }
.tl-figure figcaption { display: flex; align-items: center; gap: 10px; margin-top: var(--s4); font-size: var(--fs-small); color: var(--ink-soft); }
@media (max-width: 699px) {
  .tl::before { left: 0; }
  .tl-item { grid-template-columns: minmax(0, 1fr); padding-left: 24px; row-gap: var(--s5); }
  .tl-year::after { right: auto; left: -29px; }
  .tl-body, .tl-figure { grid-column: 1; }
}

.ab-region { padding-block: clamp(48px, 6vw, 96px) var(--section); }
.ab-region-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); align-items: center; }
.ab-region-copy { grid-column: 1 / span 4; display: grid; gap: var(--s5); }
.ab-region-copy > p { color: var(--ink-soft); }
.ab-region-copy > p:first-of-type { font-size: var(--fs-lead); }
.ab-region-note { font-size: var(--fs-small); font-weight: 600; }
.region-map { grid-column: 6 / span 7; position: relative; }
@media (max-width: 899px) {
  .ab-region-copy, .region-map { grid-column: 1 / -1; }
  .region-map { margin-top: var(--s7); }
}

/* the drawn region map */
.region-map svg { width: 100%; height: auto; overflow: visible;
  --fade-x: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  --fade-y: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-image: var(--fade-x), var(--fade-y); -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y); mask-composite: intersect; }
.map-grid path { stroke: color-mix(in oklab, var(--navy) 7%, transparent); stroke-width: 1; fill: none; }
.map-coast { fill: none; stroke: var(--navy); stroke-width: 1.4; stroke-linejoin: round; }
.map-river { fill: none; stroke: color-mix(in oklab, var(--sky) 55%, var(--navy)); stroke-width: 2.2; stroke-linecap: round; }
.map-dot { fill: var(--navy); }
.map-ring { fill: var(--white); stroke: var(--navy); stroke-width: 1.2; }
.map-ring-2 { fill: none; stroke: var(--linework); stroke-dasharray: 3 4; }
.map-dot-base { fill: var(--navy); }
.map-lagoon { opacity: 0.8; }
.map-scale path { stroke: var(--navy); stroke-width: 1.2; fill: none; }
.map-labels { position: absolute; inset: 0; pointer-events: none; }
.map-label { position: absolute; white-space: nowrap; font-size: 0.8125rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
.map-label.side-r { transform: translate(9px, -50%); }
.map-label.side-l { transform: translate(calc(-100% - 9px), -50%); }
.map-label.side-t { transform: translate(-50%, calc(-100% - 8px)); }
.map-label.side-b { transform: translate(-50%, 8px); }
.map-label.major { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 720; font-size: 0.95rem; }
.map-base-label { transform: translate(calc(-100% - 16px), -50%); display: grid; text-align: right; }
.map-base-label strong { font-weight: 650; font-size: 0.8125rem; }
.map-base-label small { font-size: 0.6875rem; font-weight: 600; color: var(--ink-soft); }
.map-region {
  position: absolute; transform: translate(0, -50%); white-space: nowrap;
  font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 600;
  font-size: clamp(0.8rem, 0.6rem + 0.6vw, 1.05rem); letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--navy) 42%, var(--white));
}
.map-sea-label { transform: translate(-50%, -50%); font-style: italic; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-soft); }
.map-river-label { transform: translate(-50%, 6px); font-style: italic; font-weight: 500; font-size: 0.75rem; color: var(--ink-soft); }
.map-scale-label { transform: translate(-50%, 0); font-family: var(--font-mono); font-weight: 500; font-size: 0.6875rem; color: var(--ink-soft); }
@media (max-width: 599px) {
  .map-label.minor, .map-river-label, .map-dot.minor { display: none; }
  .map-label { font-size: 0.75rem; }
  .map-label.major { font-size: 0.85rem; }
  .map-region { display: none; } /* on phones the region names head the town lists right above the map */
}
/* the coast and river draw themselves in once; the towns appear after */
.js .map-coast, .js .map-river { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-out); }
.js .map-river { transition-delay: 0.5s; }
.js .is-drawn .map-coast, .js .is-drawn .map-river, .no-io .map-coast, .no-io .map-river { stroke-dashoffset: 0; }
.js .map-dot, .js .map-base, .js .map-labels { opacity: 0; transition: opacity 0.9s var(--ease-out) 1.2s; }
.js .is-drawn .map-dot, .js .is-drawn .map-base, .js .is-drawn .map-labels, .no-io .map-labels { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .map-coast, .js .map-river { stroke-dashoffset: 0; transition: none; }
  .js .map-dot, .js .map-base, .js .map-labels { opacity: 1; transition: none; }
}

.ab-values { padding-bottom: var(--section); }
.ab-values-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); padding-top: var(--s7); border-top: 1px solid var(--line); }
.ab-values-side { grid-column: 1 / span 4; }
.ab-values-text { grid-column: 6 / span 7; }
.ab-values-text p { font-size: var(--fs-lead); line-height: 1.7; color: var(--ink-soft); }
/* the source photo is only 862 px wide, so it is shown small (about 400 px) where it stays sharp */
.ab-values-fig { margin-top: var(--s6); max-width: 430px; }
.ab-values-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-media); }
@media (max-width: 899px) {
  .ab-values-side { display: contents; }
  .ab-values-grid h2, .ab-values-text { grid-column: 1 / -1; }
  .ab-values-text { margin-top: var(--s5); }
  .ab-values-fig { grid-column: 1 / -1; order: 1; max-width: 360px; margin-top: var(--s6); }
}

.ab-contact { padding-bottom: var(--section); }
.ab-contact-panel { align-items: center; }
.ab-contact-copy { grid-column: 1 / span 7; }
.ab-contact-copy h2 { color: var(--white); margin-bottom: var(--s5); }
.ab-contact-copy p { color: var(--on-navy-soft); font-size: var(--fs-lead); max-width: 52ch; }
.ab-contact-actions { grid-column: 9 / span 4; display: grid; gap: var(--s3); justify-items: stretch; }
.ab-contact-actions .text-link { justify-self: start; margin-top: var(--s3); }
.ab-contact-panel :focus-visible { outline-color: var(--sky); }
@media (max-width: 999px) {
  .ab-contact-copy, .ab-contact-actions { grid-column: 1 / -1; }
  .ab-contact-actions { margin-top: var(--s6); }
}

/* ---------- error pages ---------- */
.err { padding-block: clamp(56px, 8vw, 120px) var(--section); }
.err-sheet { position: relative; max-width: 820px; margin-inline: auto; padding: clamp(32px, 5vw, 64px) clamp(8px, 3vw, 40px); text-align: center; }
.dim-err { margin-bottom: clamp(32px, 4vw, 48px); }
.err-sheet h1 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.8rem); letter-spacing: -0.03em; }
.err-text { max-width: 52ch; margin: var(--s5) auto 0; font-size: var(--fs-lead); color: var(--ink-soft); }
.err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s7); }
.err-links { max-width: 720px; margin: clamp(48px, 6vw, 80px) auto 0; }
.err-links h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 650; letter-spacing: 0; margin-bottom: var(--s4); }
.err-links ul { border-top: 1px solid var(--line-strong); }
.err-links a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding: 20px 4px;
  border-bottom: 1px solid var(--line-strong); text-decoration: none; transition: padding 0.5s var(--ease-out);
}
.err-links a > span { display: grid; gap: 2px; }
.err-links strong { font-weight: 650; }
.err-links a > span > span { font-size: var(--fs-small); color: var(--ink-soft); }
.err-link-arrow { width: 18px; height: 18px; transition: transform 0.45s var(--ease-out); }
.err-links a:hover { padding-left: 12px; }
.err-links a:hover .err-link-arrow { transform: rotate(45deg); }
.err-tech { margin-top: clamp(48px, 6vw, 72px); text-align: center; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--ink-soft); }
@media (max-width: 599px) {
  .err-actions .btn { width: 100%; }
  .err-sheet .reg { display: none; }
}

/* ---------- service area: two regions, each with its main places ---------- */
.regions { display: grid; gap: var(--s5); }
.region-name { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: var(--fs-small); font-weight: 650; color: var(--navy); }
.region-name::before { content: ''; width: 18px; height: 1px; background: var(--linework); }

/* ---------- legal notice and privacy policy ---------- */
.lg-head { padding-top: clamp(56px, 7vw, 112px); }
.lg-head h1 { font-size: clamp(2.6rem, 1.7rem + 3.4vw, 4.6rem); letter-spacing: -0.03em; }
.lg-updated { margin-top: var(--s4); font-size: var(--fs-small); color: var(--ink-soft); }
.lg-updated time { font-variant-numeric: tabular-nums; }
.dim-lg { margin-top: clamp(32px, 4vw, 56px); }
.lg-body { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.lg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); align-items: start; }
.lg-toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 32px); }
.lg-toc h2 { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 650; letter-spacing: 0; margin-bottom: var(--s3); }
.lg-toc ol { counter-reset: toc; border-left: 1px solid var(--linework); }
.lg-toc li { counter-increment: toc; }
.lg-toc a {
  display: grid; grid-template-columns: 26px 1fr; padding: 7px 0 7px 16px; font-size: var(--fs-small); line-height: 1.4;
  color: var(--ink-soft); text-decoration: none; transition: color 0.2s;
}
.lg-toc a::before { content: counter(toc); font-family: var(--font-mono); font-size: 0.75rem; padding-top: 2px; font-variant-numeric: tabular-nums; }
.lg-toc a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 0.2em; }
.lg-text { grid-column: 5 / span 7; counter-reset: sec; }
.lg-section { counter-increment: sec; padding-top: var(--s7); scroll-margin-top: calc(var(--header-h) + 24px); }
.lg-section + .lg-section { margin-top: var(--s7); border-top: 1px solid var(--line); }
.lg-section:first-child { padding-top: 0; }
.lg-section h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.85rem); margin-bottom: var(--s5); }
.lg-section h2::before { content: counter(sec); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); font-stretch: 100%; }
.lg-section p, .lg-section li { color: var(--ink-soft); line-height: 1.7; max-width: 68ch; }
.lg-section p + p, .lg-section ul + p, .lg-section p + ul, .lg-section p + dl { margin-top: var(--s4); }
.lg-section ul { display: grid; gap: var(--s3); padding-left: 0; }
.lg-section li { position: relative; padding-left: 24px; }
.lg-section li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 12px; height: 1px; background: var(--navy); }
.lg-section a { color: var(--navy); font-weight: 600; }
.lg-owner { border: 1px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; }
.lg-owner div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: var(--s4); padding: 14px 20px; }
.lg-owner div + div { border-top: 1px solid var(--line); }
.lg-owner dt { font-size: var(--fs-small); color: var(--ink-soft); }
.lg-owner dd { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .lg-toc { position: static; grid-column: 1 / -1; margin-bottom: var(--s7); }
  .lg-text { grid-column: 1 / -1; }
}
@media (max-width: 499px) {
  .lg-owner div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- portfolio card link ---------- */
.pf-media { display: block; }
.pf-text h2 a { text-decoration: none; }
.pf-text h2 a:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.pf-view { margin-top: var(--s3); font-size: var(--fs-small); justify-self: start; }
.pf-item:hover .pf-view .arrow-dot { transform: rotate(45deg); }

/* ---------- project page ---------- */
.pj-head { padding-top: clamp(40px, 5vw, 80px); }
.pj-back { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
.pj-back:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 0.2em; }
.pj-back-icon { width: 18px; height: 18px; transform: scaleX(-1); transition: transform 0.4s var(--ease-out); }
.pj-back:hover .pj-back-icon { transform: scaleX(-1) translateX(3px); }
.pj-head-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); align-items: end; margin-top: var(--s6); }
.pj-head-grid > div { grid-column: 1 / span 7; }
.pj-head h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 4.4rem); letter-spacing: -0.03em; overflow-wrap: break-word; hyphens: auto; }
.pj-lead { margin-top: var(--s5); font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-soft); max-width: 56ch; }
.pj-details { grid-column: 9 / span 4; border: 1px solid var(--navy); border-radius: 14px; overflow: hidden; }
.pj-details div { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 14px 18px; }
.pj-details div + div { border-top: 1px solid var(--line-strong); }
.pj-details dt { font-size: var(--fs-small); color: var(--ink-soft); }
.pj-details dd { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.pj-details .icon { width: 18px; height: 18px; color: var(--ink-soft); }
.dim-pj { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 899px) {
  .pj-head-grid > div, .pj-details { grid-column: 1 / -1; }
  .pj-details { margin-top: var(--s6); }
}

.pj-gallery { padding-block: clamp(24px, 3vw, 40px) clamp(64px, 8vw, 120px); }
.pj-cover a, .pj-photo a { display: block; border-radius: var(--r-media); overflow: hidden; background: var(--mist); cursor: zoom-in; }
.pj-cover img { width: 100%; max-height: 82vh; object-fit: cover; }
.pj-photo img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.pj-photo a:hover img { transform: scale(1.025); }
.pj-grid { columns: 2; column-gap: var(--s5); margin-top: var(--s5); }
.pj-photo { break-inside: avoid; margin-bottom: var(--s5); }
@media (max-width: 699px) { .pj-grid { columns: 1; } }

.pj-nav { padding-bottom: clamp(56px, 7vw, 96px); }
.pj-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); padding-top: var(--s6); background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.pj-nav-link { display: grid; gap: 6px; text-decoration: none; padding: 4px 0; }
.pj-nav-link span { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--ink-soft); }
.pj-nav-link span .icon { width: 16px; height: 16px; }
.pj-nav-link strong { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: 1.2rem; }
.pj-nav-link:hover strong { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.pj-next { text-align: right; justify-items: end; }
@media (max-width: 599px) { .pj-nav-grid { grid-template-columns: 1fr; } .pj-next { text-align: left; justify-items: start; } }

/* photo viewer */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: color-mix(in oklab, var(--navy-deep) 94%, transparent); color: var(--white); }
.lightbox[open] { display: grid; place-items: center; animation: pop-in 0.3s var(--ease-out); }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 12px; }
.lightbox button { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--on-navy-line); background: color-mix(in oklab, var(--navy) 70%, transparent); color: var(--white); transition: border-color 0.2s; }
.lightbox button:hover { border-color: var(--sky); }
.lightbox button .icon { width: 20px; height: 20px; }
.lightbox :focus-visible { outline-color: var(--sky); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-prev .icon { transform: scaleX(-1); }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-count { position: fixed; bottom: 20px; left: 50%; translate: -50% 0; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--on-navy-soft); }
.lightbox-open { overflow: hidden; }
@media (max-width: 599px) { .lb-prev, .lb-next { top: auto; bottom: 12px; translate: none; } .lb-count { bottom: 26px; } }
