/* Shoemaker Emergency Lighting — the gallery: the owner's jobs.
   The Switch Panel world, unchanged. A job card is the site's work card made
   into a link; a job page puts its cover behind the same glass as every hero.
   Also loaded by feniex.php and tigertough.php for "Installed by Shoemaker". */

/* ---------- a grid of job cards ---------- */
.bcards {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.4rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.bcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: var(--paper);
  transition: border-color var(--detent);
}
.bcard img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--slow);
}
.bcard-body { display: grid; gap: 0.3rem; padding: 0.95rem 1.1rem 1.15rem; }
.bcard-title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-stretch: 105%;
  font-size: 1.08rem;
  line-height: 1.25;
}
.bcard-meta { font-size: 0.86rem; color: var(--paper-dim); }
@media (hover: hover) and (pointer: fine) {
  .bcard:hover { border-color: rgba(255, 255, 255, 0.22); }
  .bcard:hover img { transform: scale(1.03); }
}
.bcard:focus-visible { outline-offset: 4px; }

.cat-head { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
.cat-head .legend { color: var(--paper-low); }

/* ---------- one job ---------- */
.job-hero { min-height: min(82svh, 780px); }
.job-hero .hero-media img { object-position: 50% 55%; }
.job-hero h1 { font-size: clamp(2rem, 5.6vw, 3.4rem); margin-bottom: 0.5rem; }
.job-vehicle { color: var(--paper-dim); font-weight: 600; margin-bottom: 0.6rem; }

.job-photos-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.job-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--paper-dim);
  text-decoration: none;
}
.job-back:hover { color: #fff; }

.job-grid {
  display: grid;
  gap: clamp(0.7rem, 1.6vw, 1rem);
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 280px), 1fr));
  margin-top: clamp(1.2rem, 3vw, 2rem);
}
.job-shot { display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-2); }
.job-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--slow); }
.job-shot.is-lead { grid-column: 1 / -1; }
.job-shot.is-lead img { aspect-ratio: auto; max-height: 78svh; }
@media (hover: hover) and (pointer: fine) {
  .job-shot:hover img { transform: scale(1.02); }
}

.job-products {
  display: grid;
  gap: 1px;
  /* auto-fit, not auto-fill: two products fill the row instead of leaving an
     empty third cell showing the hairline ground behind it */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  margin-top: clamp(1.2rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.09);
  border-radius: var(--r);
  overflow: hidden;
}
.job-product {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 84px;
  padding: 0.8rem 1.1rem;
  background: var(--ink-2);
  color: var(--paper);
  text-decoration: none;
  transition: background var(--detent);
}
/* Feniex renders are cut-outs: they stand on a small dark bench, as in the catalogue. */
.job-product img {
  width: 120px;
  height: 68px;
  object-fit: contain;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #12161A 0%, #171C21 72%, #1E242A 72%, #12161A 100%);
  padding: 4px 6px;
}
.job-product strong { display: block; font-weight: 650; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) {
  .job-product:hover { background: #1B2127; }
}

/* ---------- "Installed by Shoemaker" on a product page ---------- */
.installs .bcards { margin-top: clamp(1.2rem, 3vw, 2rem); }
