/* observation.css — the observation viewer modal (Photos + Details tabs). */

.ovw-title-sp  { font-weight: 600; }
.ovw-title-sub { font-size: 0.82rem; color: var(--bs-secondary-color, #6c757d); }

/* Photos: a responsive grid of the burst, large images that scale down on narrow screens. */
.ovw-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.ovw-figure { margin: 0; }
.ovw-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background: var(--bs-tertiary-bg, #f1f3f5);   /* placeholder tone while loading */
  cursor: zoom-in;                              /* click → the sequence viewer (ovw-lightbox.js) */
  transition: filter 0.12s;
}
.ovw-img:hover { filter: brightness(1.04); }

/* Sequence viewer (lightbox) — a full-screen overlay above the modal; see ovw-lightbox.js. */
.ovw-lightbox { position: fixed; inset: 0; z-index: 2000; display: none; background: rgba(0,0,0,0.92); }
.ovw-lightbox.open { display: flex; align-items: center; justify-content: center; }
.ovw-lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 94vw; }
.ovw-lb-img { max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: 4px; box-shadow: 0 6px 40px rgba(0,0,0,0.5); }
.ovw-lb-cap { color: #e9ecef; margin-top: 0.7rem; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.ovw-lb-nav, .ovw-lb-close {
  position: fixed; background: rgba(255,255,255,0.12); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.ovw-lb-nav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; font-size: 2rem; }
.ovw-lb-nav:hover, .ovw-lb-close:hover { background: rgba(255,255,255,0.25); }
.ovw-lb-prev { left: 1.5rem; }
.ovw-lb-next { right: 1.5rem; }
.ovw-lb-close { top: 1.1rem; right: 1.5rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 1.7rem; }
.ovw-lb-single .ovw-lb-nav { display: none; }   /* a lone image needs no arrows */
.ovw-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
  padding: 0.25rem 0.1rem;
}
.ovw-orig { white-space: nowrap; }

/* Details: tidy key/value sections. */
.ovw-details { margin-top: 0.5rem; }
.ovw-section { margin-bottom: 0.9rem; }
.ovw-section h6 {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.72rem;
  color: var(--bs-secondary-color, #6c757d);
}
.ovw-row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.5rem;
  padding: 0.18rem 0;
  border-bottom: 1px solid var(--bs-border-color, #eee);
}
.ovw-k { color: var(--bs-secondary-color, #6c757d); }
.ovw-v { font-variant-numeric: tabular-nums; }

/* Make Records rows read as clickable. */
#records-table table.dataTable tbody tr { cursor: pointer; }
