@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  src: url("/cf-fonts/s/barlow/5.2.8/latin/400/normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  src: url("/cf-fonts/s/barlow/5.2.8/latin/600/normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  src: url("/cf-fonts/s/barlow/5.2.8/latin/700/normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 700;
  src: url("/cf-fonts/v/oswald/5.2.8/latin/wght/normal.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #1c1916;
  --muted: #5c534a;
  --paper: #f3eee6;
  --paper-2: #e7e0d4;
  --white: #fffcf8;
  --line: rgba(28, 25, 22, 0.14);
  --line-strong: rgba(28, 25, 22, 0.28);
  --copper: #8d3d0c;
  --copper-2: #b85a1a;
  --dark: #161311;
  --gold: #8d3d0c;
  --gold-2: #8d3d0c;
  --cream: var(--white);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Barlow", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
figure { margin: 0; }
a { color: var(--copper); text-underline-offset: 0.18em; }
h1, h2, h3, .stat b {
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 0.98;
}
p { margin: 0 0 0.85rem; }
::selection { background: #efd3b8; color: var(--ink); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 238, 230, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 84px;
  padding: 10px 0;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img {
  height: 62px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
.top-meta { margin-left: auto; text-align: right; }
.top-meta .hours {
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}
.top-meta .area {
  color: var(--muted);
  font-size: 0.84rem;
}
.subnav {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.subnav a:hover { color: var(--copper); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 0;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.btn-gold { background: var(--dark); color: #f6f1ea; }
.btn-gold:hover { background: var(--copper); color: #fff; }
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-line:hover { background: rgba(28, 25, 22, 0.05); }
.btn-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-dark:hover { background: rgba(28, 25, 22, 0.05); }

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
  min-height: 740px;
  background: var(--paper);
  color: var(--ink);
  align-items: stretch;
}
.hero-media {
  position: relative;
  min-height: 560px;
  background: #1c1916;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero::after { content: none; }
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: none;
  padding: 72px 64px 64px max(28px, calc((100vw - 1180px) / 2));
}
.kicker {
  margin: 0 0 16px;
  color: var(--copper);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.85rem, 3.8vw, 4.45rem);
  color: var(--ink);
  max-width: 13ch;
}
.hero .lede {
  font-size: 1.12rem;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.license-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.license-line span {
  display: inline-block;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink);
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.badges li {
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  font-size: 0.82rem;
}

.band { padding: 92px 0; }
.band h2 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  max-width: 14ch;
}
.intro {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.band-head { margin-bottom: 36px; }

.shots {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 10px;
}
.shot {
  display: block;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #1c1916;
  min-height: 0;
}
.shot:first-child { grid-row: span 3; }
.shot figure { height: 100%; }
.shot img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.shot:first-child img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 16px 14px;
  color: #fff;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(14, 11, 8, 0.82));
}
.shot:hover img { transform: scale(1.025); }
.shot img { transition: transform 0.6s ease; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  counter-reset: svc;
  border-top: 1px solid var(--line);
}
.card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  counter-increment: svc;
  padding: 28px 36px 26px 0;
}
.card:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: 40px;
}
.card:nth-child(even) { padding-left: 40px; }
.card img { display: none; }
.card .body { padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.85rem; }
.card h3::before {
  content: counter(svc, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--copper);
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--copper); }
.card p { margin: 0; color: var(--muted); max-width: 36rem; }
.more {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.more::after { content: " \2192"; }
.card:hover .more { color: var(--copper); }
.aside-note {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  max-width: 44rem;
}

.alt { background: var(--paper-2); }
.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.reason, .cred {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 28px 36px 24px 0;
}
.reason:nth-child(odd), .cred:nth-child(odd) { padding-right: 40px; }
.reason:nth-child(even), .cred:nth-child(even) { padding-left: 40px; }
.reason h3, .cred h3 { margin: 0 0 10px; font-size: 1.7rem; }
.reason p, .cred p { margin: 0; color: var(--muted); }

.towns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin: 8px 0 22px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.towns a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.towns a::after { content: "\2192"; color: var(--copper); }
.towns a:hover { color: var(--copper); }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.about-grid img {
  width: 100%;
  border-radius: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.stat {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 12px 0 0;
}
.stat b { display: block; font-size: 1.2rem; letter-spacing: 0; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 0.84rem; line-height: 1.35; display: block; }
.creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.cred a { font-weight: 600; }

.faqs { display: grid; gap: 0; border-top: 1px solid var(--line); }
details {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--copper); font-family: "Barlow", sans-serif; font-weight: 500; }
details[open] summary::after { content: "\2013"; }
details p { color: var(--muted); margin: 12px 0 4px; max-width: 46rem; }

.quote-panel {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  background: var(--white);
  color: var(--ink);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(28, 22, 16, 0.08);
}
.quote-side {
  padding: 48px 36px;
  background: var(--dark);
  color: #f6f1ea;
}
.quote-side .kicker { color: #e2b07a; }
.quote-side h2 { color: #f6f1ea; margin: 0 0 12px; max-width: 10ch; }
.quote-side p { color: #ddd4c8; }
.quote-side a { color: #fff; text-decoration: none; font-weight: 600; }
.quote-side a:hover { color: #e2b07a; }
.quote-side .fine { color: #c9bfb2; font-size: 0.92rem; }
.quote-form { background: var(--white); color: var(--ink); padding: 40px 36px 36px; }
.quote-form h3 {
  margin: 0 0 8px;
  font-family: "Barlow", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 14px 0 6px;
}
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d5cdc2;
  border-radius: 0;
  padding: 10px 12px;
  font: inherit;
  background: #faf7f2;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--copper);
  border-color: var(--copper);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions { margin-top: 18px; }
#form-msg { margin: 14px 0 0; font-weight: 600; }
#form-msg.ok { color: #1d6b3a; }
#form-msg.err { color: #9d2b22; }
button.btn { width: 100%; }
button.btn:disabled { opacity: 0.55; cursor: wait; }

.foot {
  background: var(--dark);
  color: #f4efe8;
  padding: 64px 0 36px;
}
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.foot a { color: #f4efe8; display: block; margin: 5px 0; text-decoration: none; }
.foot a:hover { color: #e2b07a; }
.foot strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.foot p { color: #cfc6bb; }
.foot-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b7aea3;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.socials { display: flex; gap: 16px; flex-wrap: wrap; }
.socials a { display: inline; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }

.cta-band {
  background: var(--dark);
  color: #f6f1ea;
  border-top: 0;
  padding: 42px 0;
}
.cta-band .kicker { color: #e2b07a; }
.cta-band h2 { color: #f6f1ea; max-width: 16ch; }
.cta-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.cta-inner h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-dark {
  color: #f6f1ea;
  border-color: rgba(246, 241, 234, 0.55);
}
.cta-band .btn-dark:hover { background: rgba(255, 255, 255, 0.06); }

.dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--dark);
}
.dock a {
  flex: 1;
  text-align: center;
  color: #f6f1ea;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 16px 6px;
}
.dock a.gold { background: var(--copper); color: #fff; }

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, calc(100% - 24px));
}
dialog::backdrop { background: rgba(16, 12, 9, 0.82); }
dialog img { width: 100%; height: auto; display: block; }
dialog form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
dialog button {
  background: #fff;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

body.inner { background: var(--paper); }
body.inner header.pagehead,
body.inner main,
body.inner .prose {
  width: min(760px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
body.inner header.pagehead { padding: 56px 0 8px; }
body.inner header.pagehead h1::before,
body.inner .prose h1::before {
  content: "All Terrain Contractors";
  display: block;
  margin-bottom: 14px;
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}
body.inner header.pagehead h1,
body.inner .prose h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin: 0 0 14px;
}
body.inner .lede {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 38rem;
}
body.inner h2 { font-size: 1.85rem; margin: 2rem 0 0.45rem; max-width: none; }
body.inner h3 { font-size: 1.25rem; margin: 1.2rem 0 0.3rem; }
body.inner p { max-width: 62ch; }
body.inner figure { margin: 8px 0 22px; }
body.inner figure img { width: 100%; height: auto; display: block; }
body.inner figcaption { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
body.inner .nap,
body.inner .note,
body.inner .note-box {
  background: transparent;
  border: 0;
  border-left: 2px solid var(--copper);
  border-radius: 0;
  padding: 2px 0 2px 16px;
  margin: 22px 0;
}
body.inner .nap p,
body.inner .note,
body.inner .note-box { max-width: none; }
body.inner ul { padding-left: 1.15rem; }
body.inner li { margin: 0.35rem 0; }
body.inner li::marker { color: var(--copper); }
body.inner table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  margin: 16px 0 20px;
}
body.inner th, body.inner td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--line);
}
body.inner th { width: 38%; font-weight: 600; }
body.inner a.cta {
  display: inline-flex;
  margin: 8px 10px 8px 0;
  background: var(--dark);
  color: #f6f1ea;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0;
  padding: 12px 16px;
}
body.inner a.cta:hover { background: var(--copper); color: #fff; }
header.pagehead a.home,
nav.links { display: none; }

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(odd),
  .card:nth-child(even) {
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .about-grid, .quote-panel, .foot-grid { grid-template-columns: 1fr; }
  .about-grid img { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .cred:nth-child(even) { padding-left: 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 420px; order: -1; }
  .hero-copy { padding: 36px 24px 8px; }
  .hero h1 { max-width: none; }
}

@media (max-width: 800px) {
  .wrap { width: min(1180px, calc(100% - 32px)); }
  .top-meta .hours { font-size: 0.8rem; line-height: 1.35; }
  .top-row { flex-wrap: wrap; gap: 8px 14px; min-height: 0; }
  .top-meta { order: 3; flex: 1 1 100%; text-align: left; margin: 0 0 6px; }
  .brand img { height: 52px; }
  .subnav {
    gap: 16px;
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
  .shots, .reasons, .grid-2, .towns { grid-template-columns: 1fr; }
  .shots { gap: 10px; }
  .shot:first-child { grid-row: auto; }
  .shot:first-child img { position: static; height: 240px; }
  .shot img { height: 210px; }
  .reason:nth-child(odd),
  .reason:nth-child(even) { padding-left: 0; padding-right: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .dock { display: flex; }
  body { padding-bottom: 54px; }
  .band { padding: 56px 0; }
  .hero-media { min-height: 320px; }
  .hero-copy { padding: 28px 16px 4px; }
  .hero h1 { font-size: 2.65rem; }
  .license-line span { display: block; margin: 8px 0 0; padding: 0; border: 0; }
  .quote-side, .quote-form { padding: 28px 22px; }
  body.inner header.pagehead,
  body.inner main,
  body.inner .prose { width: min(760px, calc(100% - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img { transition: none; }
}

@media print {
  .top, .dock, .cta-band { display: none; }
  body { background: #fff; padding-bottom: 0; }
  .hero { display: block; }
  .hero-media { min-height: 280px; }
}

/* ---- Job photo gallery (home #gallery), added 2026-11-13 ---- */
.gal-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.gal-filters[hidden] { display: none; }
.gal-filter {
  font: inherit; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 14px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; color: var(--ink); cursor: pointer;
}
.gal-filter span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.gal-filter:hover { border-color: var(--ink); }
.gal-filter[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #f6f1ea; }
.gal-filter[aria-pressed="true"] span { color: #e2b07a; }
.gal-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.gal-item[hidden] { display: none; }
.gal-link {
  display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--dark); color: #fff; text-decoration: none;
}
.gal-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gal-link:hover img, .gal-link:focus-visible img { transform: scale(1.03); }
.gal-tag {
  position: absolute; top: 10px; left: 10px; padding: 4px 8px;
  background: rgba(22, 19, 17, 0.78); color: #f6f1ea;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px;
  font-weight: 600; font-size: 0.86rem; line-height: 1.3;
  background: linear-gradient(transparent, rgba(14, 11, 8, 0.85));
}
.gal-more-wrap { margin-top: 22px; text-align: center; }
.gal-more-wrap .gal-more { width: auto; }
.gal-more[hidden] { display: none; }
dialog .pic-stage { position: relative; }
dialog .pic-stage img { max-height: calc(100vh - 140px); width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
dialog .pic-nav { display: none; }
dialog.gal-mode .pic-nav {
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 58px; padding: 0; font-size: 2rem; line-height: 1;
  background: rgba(255, 252, 248, 0.9);
}
dialog .pic-prev { left: 8px; }
dialog .pic-next { right: 8px; }
dialog form { align-items: center; gap: 12px; }
dialog .pic-count { color: #f6f1ea; font-size: 0.85rem; letter-spacing: 0.08em; margin-right: auto; }
dialog .pic-cap { margin: 10px 0 0; color: #f6f1ea; font-weight: 600; text-align: center; }
dialog .pic-cap:empty { display: none; }
@media (max-width: 980px) { .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .gal-filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; -webkit-overflow-scrolling: touch; }
  .gal-filter { flex: 0 0 auto; }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gal-tag { top: 6px; left: 6px; font-size: 0.58rem; padding: 3px 6px; }
  .gal-cap { font-size: 0.76rem; padding: 28px 8px 8px; }
  dialog.gal-mode .pic-nav { width: 38px; height: 48px; font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .gal-link img { transition: none; } }

/* ---- Inner page job photos (hero + strip), added 2026-11-13 ---- */
body.inner figure.page-hero img { aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
body.inner .page-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 28px; }
body.inner .page-strip figure { margin: 0; }
body.inner .page-strip a { display: block; overflow: hidden; background: var(--dark); }
body.inner .page-strip img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.5s ease; }
body.inner .page-strip a:hover img, body.inner .page-strip a:focus-visible img { transform: scale(1.03); }
body.inner .page-strip figcaption { margin-top: 6px; font-size: 0.82rem; line-height: 1.3; }
@media (max-width: 560px) { body.inner .page-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { body.inner .page-strip img { transition: none; } }
