/* ============================================================================
 * BOX BOX - the Images panel
 * ----------------------------------------------------------------------------
 * Every colour here is a token from style.css, so this follows light and dark
 * without a second palette. Nothing is hardcoded.
 *
 * The panel is a contact sheet: pictures first, at a size you can judge from,
 * with the caption and the source underneath in a quieter voice. Nothing here
 * ranks or flags an image - it is a grid of what was found.
 * ==========================================================================*/

.vis-panel {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.vis-head {
  display: flex; align-items: baseline; gap: 16px;
  flex-wrap: wrap; margin-bottom: 6px;
}
.vis-title { font-size: 20px; margin: 0; }
.vis-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

.vis-count {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 10px;
}
.vis-progress { color: var(--run-text); font-weight: 600; margin: 14px 0 4px; }
.vis-current { word-break: break-all; }

/* ---- the contact sheet -------------------------------------------------- */

.vis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin: 0 0 28px;
}

.vis-card {
  margin: 0;
  border: 1px solid var(--line-3);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: flex; flex-direction: column;
}

/* Contained, not cropped: the thumbnail should show the whole frame, because
   what she is judging here is whether the picture is the right picture and how
   much of it a 9:16 slide will have to lose. */
.vis-thumb {
  width: 100%; height: 160px;
  object-fit: contain;
  background: var(--bg-sunk, var(--bg-2));
  display: block;
}

.vis-cap { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.vis-slot {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-text);
}
.vis-shows { font-size: 13px; line-height: 1.45; color: var(--text); }

.vis-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.vis-author, .vis-date { font-size: 11px; color: var(--muted); }

/* Orientation, resolution, a watermark - what she wants to know before she
   opens the file, not after. */
.vis-note {
  font-size: 12px; line-height: 1.5; color: var(--muted);
  margin: 0; padding-left: 10px; border-left: 2px solid var(--line-2);
}

.vis-links { display: flex; gap: 12px; }
.vis-link { font-size: 12px; color: var(--blue-text, var(--blue)); }

/* ---- what did not come down -------------------------------------------- */

.vis-sub {
  font-size: 15px; margin: 30px 0 4px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.vis-failed { font-size: 12px; color: var(--muted); padding-left: 18px; margin-top: 10px; }

@media (max-width: 620px) {
  .vis-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vis-thumb { height: 120px; }
  .vis-actions { margin-left: 0; width: 100%; }
}
