/* ================== Event Card ================== */
.event-card {
  background:#fff;
  border-radius:.5rem;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
  transition:transform .2s;
  max-width:100%;               /* cap width on ultra‑wide screens */
}
.event-card:hover { transform: translateY(-4px); }

.event-card img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
}
.event-card h3 {
  margin: .5rem 1rem .25rem;
  font-size: 1rem;
}
.event-meta {
  margin: 0 1rem 1rem;
  font-size: .875rem;
  color: #555;
}
.event-placeholder {
  text-align: center;
  font-style: italic;
  color: #666;
}

/* --- visual pop for featured cards --- */
.event-card.featured {
  box-shadow: 0 0 0 3px var(--mwr-blue, #0057b8);
}

/* dark‑mode tweaks */
@media (prefers-color-scheme: dark) {
  .event-card {
    background: #1e1e1e;
    color: #eee;
  }
  .event-card.featured {
    box-shadow: 0 0 0 3px #4ba3ff;
  }
}

/* ============ Desktop grid densifier ============ */
.cfay-events-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  align-items: start;             /* keeps uneven rows tidy */
}

/* optional: tighten columns on very wide screens */
@media (min-width: 1600px) {
  .cfay-events-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}

/* ---- Force Events page content full‑width ---- */
body.page-id-15178 .entry-content,
body.page-id-15178 .post-content,
body.page-id-15178 .site-content,
body.page-id-15178 .content-area {
  max-width: none !important;   /* remove the 620 px cap */
  width: 100%     !important;   /* span the full viewport */
  padding-left: 0 !important;   /* optional: flush edges */
  padding-right: 0 !important;
}
