/* LED Video Wall — led_video_wall.php */

/* Two spec-card grids stacked in one section (key features, then the specification) */
.pp-spec-grid + .pp-spec-grid { margin-top: 24px; }

/* Model picker: one photo per range, shown whole on a white card */
#vw-models .vw-photo {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
}
#vw-models .vw-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* The specification table is a third grid item under the info and the photo */
#vw-models .ifp-55-product-info { grid-column: 1 / -1; margin-top: 0; }

/* Grid children may shrink below their content, so the wide table scrolls inside its own box instead of
   stretching the panel (and clipping the text beside it) on phones */
#vw-models .ifp-size-panel.active { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
#vw-models .ifp-size-panel > * { min-width: 0; }
@media (max-width: 1100px) {
  #vw-models .ifp-size-panel.active { grid-template-columns: minmax(0, 1fr); }
}

/* Specification table: a row per specification, a column per pixel pitch; scrolls sideways on small screens */
.vw-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}
.vw-table-wrap:focus-visible { outline: 2px solid var(--accent, #0aa8c7); outline-offset: 2px; }
.vw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
.vw-table th,
.vw-table td {
  padding: 12px 14px;
  text-align: center;
  vertical-align: middle;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
}
.vw-table thead th {
  border-top: none;
  background: #f1f5f9;
  color: var(--fg-primary, #0f172a);
  font-weight: 700;
  white-space: nowrap;
}
.vw-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  background: #ffffff;
  color: var(--fg-secondary);
  font-weight: 600;
  text-align: left;
  box-shadow: 1px 0 0 var(--border);
}
.vw-table thead th:first-child { position: sticky; left: 0; z-index: 2; text-align: left; box-shadow: 1px 0 0 var(--border); }
.vw-table tbody tr:nth-child(even) th,
.vw-table tbody tr:nth-child(even) td { background: #f8fafc; }
.vw-table td { min-width: 120px; }

/* Phones: the four range tabs share the row instead of scrolling sideways, and may wrap to two lines */
@media (max-width: 767px) {
  #vw-models .ifp-size-tab { flex: 1 1 0; padding: 10px 6px; }
  #vw-models .ifp-size-tab-inch { font-size: 13px; line-height: 1.25; white-space: normal; text-align: center; }
  .vw-table { font-size: 13px; }
  .vw-table th, .vw-table td { padding: 10px; }
  .vw-table tbody th { min-width: 118px; }
  .vw-table td { min-width: 104px; }
}

/* Resolution section: the pitch table sits on the light panel, with a small note under it */
#vw-resolution .vw-table-wrap { max-width: 980px; margin: 0 auto; }
#vw-resolution .vw-table tbody th { text-align: left; }
.vw-note { max-width: 980px; margin: 14px auto 0; font-size: 14px; line-height: 1.55; color: var(--fg-muted); text-align: center; }
