/* ==========================================================================
   video-gallery.css
   Styles for the homepage "Personal Injury Videos & Legal Insights" section.
   Loaded ONLY by index.html. No other page references these classes.
   Relies on the CSS custom properties defined in city-pages.css :root.
   ========================================================================== */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.video-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Consistent 16:9 media area for every card, video or Short. */
.video-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-navy-deep);
}
.video-media img,
.video-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* The site's own Play control (a CSS-drawn button; no image, no library). */
.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.video-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(12, 28, 51, 0.72);
}
.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.video-play:hover::before { background: rgba(12, 28, 51, 0.85); }
.video-play:focus-visible { outline: 3px solid var(--color-gold); outline-offset: -3px; }

.video-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.video-meta {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.video-body h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-navy);
}
.video-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.video-body a {
  margin-top: 2px;
  font-size: 0.88rem;
}

.video-more { margin-top: 22px; }

@media (max-width: 880px) {
  .video-grid { grid-template-columns: 1fr; }
}
