/* Gallery (/galleri): the wall of posters, and a page per video with the video beside its text. Loaded after
   sider.css on the gallery pages only, and kept out of the map's build fingerprint: changing it never reloads open maps. */
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; margin: 18px 0 28px; align-items: start; }
.g-card { display: block; color: var(--fg); text-decoration: none; }
.g-card img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: #08121a; transition: opacity 0.15s; }
.g-card:hover img { opacity: 0.88; }
.g-cap { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.g-cap span { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--muted); }
.g-when { margin: -4px 0 18px; font-size: 14px; color: var(--muted); }
.g-main { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 8px; }
.g-fig { margin: 0; }
.g-video { display: block; width: auto; height: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 6px; border: 1px solid var(--line); background: #08121a; }
.g-text .lead { margin-top: 0; }
.g-text .actions { margin: 18px 0 16px; }
.g-dl { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.g-src { max-width: 60ch; }
.g-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; margin: 14px 0 8px; }
.g-more figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 14px; }
.g-more figcaption b { width: 100%; font-weight: 600; }
@media (max-width: 680px) {
  .g-grid, .g-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 1fr; gap: 18px; }
  .g-main .g-video { max-height: 64vh; }
}
