/* Event card (modules/preview/module-events-item.php). */
.nfcc-event-card {
  background: #fff; /* the module section is neutral100 below lg */
  transition: background-color .2s ease, box-shadow .2s ease;
}

.nfcc-event-card__media {
  background: #edeeed;
  overflow: hidden;
}

.nfcc-event-card__media img {
  transition: transform .3s ease;
}

/* Internal dividers only: under the venue/date row and between its cells. */
.nfcc-event-card__meta {
  border-bottom: 1px solid #d1d3d3;
}

.nfcc-event-card__meta-item {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nfcc-event-card__meta-item + .nfcc-event-card__meta-item {
  border-left: 1px solid #d1d3d3;
}

/* Stretch the title link over the whole card. */
.nfcc-event-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.nfcc-event-card:hover .nfcc-event-card__link,
.nfcc-event-card__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nfcc-event-card:hover {
  box-shadow: 0 6px 18px rgb(29 32 32 / 10%);
}

.nfcc-event-card:hover .nfcc-event-card__media img {
  transform: scale(1.03);
}

.nfcc-event-card:focus-within {
  outline: 2px solid #0a57a3;
  outline-offset: 2px;
}

.nfcc-event-card__link:focus-visible {
  outline: none;
}

@media (min-width: 1024px) {
  .nfcc-event-card {
    background: #f4f5f4;
  }

  .nfcc-event-card__media {
    background: #edeeed;
  }

  .nfcc-event-card:hover {
    background: #edeeed;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nfcc-event-card,
  .nfcc-event-card__media img {
    transition: none;
  }

  .nfcc-event-card:hover .nfcc-event-card__media img {
    transform: none;
  }
}
