/*
 * Journal single (elf_journal) — v1.7.8.
 * The header (kicker/title/meta/dek), featured image, and body now use the
 * theme's cfd-article__* classes and inherit the active theme's normal
 * single-post typography, spacing, width, and link styles. NOTHING here
 * overrides those. This file styles ONLY the journal-specific extras
 * (opt-in media player, gallery grid, taxonomy footer, related list), which
 * sit AFTER the .cfd-article__content block and within the article width.
 */

/* Fallback reading column — used ONLY when the active theme lacks the
 * cfd_k_* width helpers. On the CFD Kadence child the theme's own
 * .cfd-single-wrap owns the width, so this class is not emitted. */
.elf-journal-fallback-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem;
}

.elf-journal-media {
  margin: 1.5rem 0;
}
.elf-journal-media video {
  width: 100%;
  border-radius: 8px;
}
.elf-journal-media audio {
  width: 100%;
}

.elf-journal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .5rem;
  margin: 1.5rem 0;
}
.elf-journal-gallery img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.elf-journal-taxonomies {
  margin-top: 1.5rem;
  opacity: .8;
  font-size: .9rem;
}

.elf-journal-related {
  margin-top: 2rem;
}
.elf-journal-related h2 {
  font-size: 1.1rem;
}
