/* Tools section: hero shot, screenshot gallery, and lightbox. */

.tool-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.85);
}
figure.hero-figure { margin: 22px 0 6px; align-items: stretch; }
figure.hero-figure > a { display: block; border-radius: var(--radius); }

/* Gallery grid */
.shots {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
figure.shot { margin: 0; align-items: stretch; }
.shot-frame {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
}
.shot-frame:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--accent-tint);
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 0.85rem; text-align: center; line-height: 1.4; }

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(3, 4, 4, 0.88);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.lb.open { display: flex; }
.lb-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1120px, 94vw); }
.lb-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}
.lb-cap { color: var(--muted); font-size: 0.9rem; text-align: center; max-width: 72ch; line-height: 1.5; }
.lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-soft); }
.lb-close { top: clamp(12px, 3vw, 24px); right: clamp(12px, 3vw, 24px); font-size: 22px; }
.lb-prev { left: clamp(8px, 2vw, 22px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(8px, 2vw, 22px); top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: clamp(12px, 3vw, 24px); left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .lb-prev, .lb-next { width: 38px; height: 38px; } }
