/* Keeping Vert Dead — Events page. Dark palette, responsive flyer cards. */

.kvd-events {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  color: var(--kvd-text);
}

.kvd-events-hero { text-align: center; margin-bottom: 2.5rem; }

.kvd-events-title {
  font-family: var(--kvd-font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  letter-spacing: 0.04em;
  color: var(--kvd-text);
  margin: 0 0 0.25rem;
}

.kvd-events-subtitle {
  font-family: var(--kvd-font-body);
  color: var(--kvd-text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/*
 * Single-column "posts-style" stack (Spec E Wade-approved layout). The real flyers
 * mix portrait AND landscape aspect ratios, so a 3-up grid leaves uneven gaps under
 * the shorter cards (grid rows size to their tallest card). One flyer per row at its
 * natural aspect is gap-free regardless of orientation and reads cleanly top-to-bottom
 * in the owner's arranged order. Centered at a readable width; full-bleed on phones.
 */
.kvd-events-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  max-width: 560px;
  margin: 0 auto;
}

.kvd-event-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Bordered box wraps ONLY the flyer, so it always hugs the image. The caption
 * and button live below it (outside the border) — nothing can force empty
 * space between the flyer's bottom edge and the button. */
.kvd-event-flyer-box {
  background: var(--kvd-surface);
  border: 1px solid var(--kvd-border);
  border-radius: 4px;
  overflow: hidden;
}

.kvd-event-card--hidden { display: none; }

.kvd-event-flyer-link { display: block; line-height: 0; }

/* Flyer sizes to its natural aspect ratio. NEVER set a fixed height or
 * max-height here — that's what crops flyers. height:auto = always full. */
.kvd-event-card .kvd-event-flyer,
.kvd-event-card img {
  width: 100%;
  height: auto;
  display: block;
}

.kvd-event-meta {
  margin-top: 0.85rem;        /* caption/button sit just below the flyer box */
  display: flex;
  flex-direction: column;
  align-items: flex-start;    /* align caption + button to the flyer's left edge */
  gap: 0.75rem;
}

.kvd-event-caption {
  font-family: var(--kvd-font-body);
  color: var(--kvd-text);
  font-size: 1rem;
  line-height: 1.45;
  margin: 0;
}

.kvd-event-btn {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--kvd-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55em 1.3em;
  background-color: var(--kvd-accent);
  color: #fff;
  text-decoration: none;
  border: 2px solid var(--kvd-accent);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.kvd-event-btn:hover,
.kvd-event-btn:focus {
  background-color: var(--kvd-accent-hover);
  border-color: var(--kvd-accent-hover);
  color: #fff;
}

.kvd-events-more { text-align: center; margin-top: 2.5rem; }
.kvd-events-more-btn { align-self: center; }

.kvd-events-empty {
  text-align: center;
  color: var(--kvd-text-muted);
  font-family: var(--kvd-font-body);
  padding: 3rem 0;
}

@media (max-width: 600px) {
  .kvd-events-grid { max-width: 100%; }
  .kvd-events { padding: 1.75rem 1rem 3rem; }
}
