/* Same dark treatment as the Category Feed template (see css/pages/
   category-feed.css) so the two section-landing templates read as the
   same site — see that file's header comment for why setting the base
   color here is enough to carry through to .blog-item card contents.
   The directory bar and grid/sidebar layout are the exact same
   .category-feed__* classes category-feed.css already styles (see
   inc/enqueue.php enqueuing that stylesheet for this template too) —
   only what's specific to a festival page lives here: the top bar and
   the Lead Dispatch. */
.festival-page {
  background: var(--color-off-black);
  color: var(--color-white);
}

.festival-page .container-fluid {
  padding: 0 var(--space-6) var(--space-16);
}

/* .page-header (css/components/page-header.css) already adds its own
   bottom padding, meant for templates where it's the only header on
   the page. Here .festival-topbar directly below it adds its own top
   padding too — the two stacking (padding never collapses between
   siblings, unlike margin) was leaving an oversized, disconnected-
   looking gap between the page title and the festival info below it. */
.festival-page .page-header {
  padding-bottom: 0;
}

/* ==== Top bar: logo, at-a-glance info (dates/location/reporters,
   stacked vertically), and description — left to right. ==== */
.festival-topbar {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding: var(--space-6) 0 var(--space-8);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.festival-topbar__logo {
  flex: none;
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 480px) {
  /* Stacked above the info column at this width (flex-wrap on
     .festival-topbar) — 180px eats over half the row and reads
     oversized once it's no longer sitting beside the info column. */
  .festival-topbar__logo {
    width: 120px;
    height: 120px;
  }
}

.festival-topbar__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.festival-topbar__info {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.festival-topbar__info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.festival-topbar__info-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.festival-topbar__info-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-white);
}

/* Reporters — linked avatars instead of plain text, same idea as the
   About page's team slider but without its colored ring. */
.festival-topbar__reporters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.festival-topbar__reporter {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.festival-topbar__reporter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

a.festival-topbar__reporter:hover {
  transform: translateY(-2px);
}

.festival-topbar__reporter--unlinked {
  opacity: 0.5;
}

.festival-topbar__desc {
  flex: 1 1 280px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 60ch;
}

/* "Photo Gallery" directory tab — same look as every other tab
   (.category-feed__directory a), just dashed so it visually reads as
   "a different kind of view," not just another category filter. */
.category-feed__directory a.is-gallery {
  border-style: dashed;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.category-feed__directory a.is-gallery svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Native WordPress Gallery block, dropped into the festival page's own
   content editor — the theme's block editor styles already handle the
   grid itself; this just gives it the same breathing room as the post
   grid it swaps places with. */
.festival-gallery-content {
  margin-top: var(--space-2);
}

/* ==== Lead Dispatch — the pinned post ("Stick to the top" on a post
   in this festival's category), shown bigger above the regular grid. ==== */
.festival-lead {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin-bottom: var(--space-12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.festival-lead__media {
  position: relative;
  min-height: 320px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.festival-lead__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The Lead Dispatch's own category tag now reuses .blog-item__sticker
   (css/components/blog-card.css) directly — same top-left placement
   and white text as every other card's sticker, instead of a
   near-duplicate style that had drifted (bottom-left, dark text). */

.festival-lead__pin {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.55);
  padding: 5px 10px;
  border-radius: 999px;
}

.festival-lead__pin svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.festival-lead__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
}

.festival-lead__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-3);
}

.festival-lead__headline {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.festival-lead__deck {
  margin-top: var(--space-3);
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 50ch;
}

.festival-lead__byline {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
}

.festival-lead__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .festival-lead {
    grid-template-columns: 1fr;
  }
}
