/* Flyer-first cards (Shay 2026-10-22: "the text covers too much of the flyer" · "lock it [to] the default flyer size").
   Every card is 4:5, the size flyers are made at, so a 4:5 flyer fills it edge to edge; the details come up on hover
   or keyboard focus. Touch screens can't hover, so there the details sit in a strip under the flyer instead. */
.event-card { aspect-ratio: 4 / 5; }
.event-card-bg { background-position: center !important; }
.event-card::before { display: none; }

@media (hover: hover) {
  .event-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 55%, rgba(0,0,0,0.45) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  .event-card-info {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .event-card:hover .event-card-overlay,
  .event-card:focus-within .event-card-overlay { opacity: 1; }
  .event-card:hover .event-card-info,
  .event-card:focus-within .event-card-info { opacity: 1; transform: none; }
}

@media (hover: none) {
  .event-card { aspect-ratio: auto; background: #0a0a0a; }
  .event-card-bg { bottom: auto; aspect-ratio: 4 / 5; }
  .event-card-overlay { display: none; }
  .event-card-info {
    position: relative;
    margin-top: 125%;
    padding: 1rem 1.2rem 1.2rem;
    background: #0a0a0a;
  }
}
