/**
 * Forum 2024 — video gallery (thumbnail grid + caption links).
 */
html[data-daab-page-id="forum-video-gallery"] .video-gallery-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-intro {
  text-align: center;
  margin: 0 0 2rem;
  padding: 0 0.5rem;
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-lead {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-800, #004a7c);
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-section-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink, #1a2b3c);
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-intro-body {
  margin: 1rem auto 0;
  max-width: 46rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted, #4a5f73);
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-item {
  margin: 0;
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #e8eef4;
  box-shadow: 0 2px 12px rgba(0, 40, 80, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-thumb:hover,
html[data-daab-page-id="forum-video-gallery"] .video-gallery-thumb:focus-visible {
  box-shadow: 0 6px 20px rgba(0, 40, 80, 0.2);
  transform: translateY(-2px);
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-caption {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 100%;
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-description {
  margin: 0.5rem 0 0;
  padding: 0 0.15rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted, #4a5f73);
  text-decoration: none;
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-caption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-daab-page-id="forum-video-gallery"] .video-gallery-caption a:hover,
html[data-daab-page-id="forum-video-gallery"] .video-gallery-caption a:focus-visible {
  color: var(--blue-700, #0069b4);
}

@media (max-width: 1100px) {
  html[data-daab-page-id="forum-video-gallery"] .video-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  html[data-daab-page-id="forum-video-gallery"] .video-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 0.85rem;
  }
}

@media (max-width: 560px) {
  html[data-daab-page-id="forum-video-gallery"] .video-gallery-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}
