/* Event artwork and clear typography, with space instead of a boxed panel.
   The modifier keeps these rules separate from event dialogs and registration. */

html body #events .events-list {
  gap: clamp(3rem, 6vw, 5rem) !important;
}

html body #events .event-card.event-card--minimal {
  display: grid !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) !important;
  grid-template-areas: "artwork copy";
  align-items: center;
  gap: clamp(1.75rem, 4.5vw, 4.5rem) !important;
  width: 100% !important;
  max-width: 1120px !important;
  min-height: 0;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: scale(1) !important;
  transform-origin: center;
  transition: transform 550ms cubic-bezier(0.2, 0.75, 0.25, 1) !important;
  overflow: visible !important;
  contain-intrinsic-size: auto 420px;
}

/* Keep the archive collapsed even when earlier layout rules set display. */
html body #events .event-card.event-card--minimal[hidden],
html body #events .event-card.event-card--minimal.event-archive-hidden {
  display: none !important;
}

html body #events .event-card.event-card--minimal::before,
html body #events .event-card.event-card--minimal::after,
html body #events .event-card.event-card--minimal .event-copy::before,
html body #events .event-card.event-card--minimal .event-copy::after {
  content: none !important;
  display: none !important;
}

html body #events .event-card.event-card--minimal .event-image {
  grid-area: artwork;
  order: 0 !important;
  align-self: center;
  justify-self: center;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

html body #events .event-card.event-card--minimal .event-image > img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 32rem !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  filter: none !important;
  transform: none !important;
  box-shadow: 0 0 30px rgba(184, 156, 223, 0.045) !important;
  transition: box-shadow 400ms ease !important;
}

html body #events .event-card.event-card--minimal .event-copy {
  grid-area: copy;
  order: 0 !important;
  align-self: center;
  width: 100% !important;
  min-width: 0;
  max-width: 36rem;
  margin: 0;
  padding: 0 !important;
}

html body #events .event-card.event-card--minimal .event-meta {
  display: block;
  margin: 0 0 1rem;
  padding: 0;
}

html body #events .event-card.event-card--minimal .event-meta time {
  margin: 0 !important;
  color: #beb0cc !important;
  font-family: var(--uww-reading);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html body #events .event-card.event-card--minimal .event-copy h2 {
  max-width: 25ch !important;
  margin: 0 0 1rem !important;
  color: #f3eef6 !important;
  font-family: var(--uww-display) !important;
  font-size: clamp(1.65rem, 2.8vw, 2.65rem) !important;
  font-weight: 600 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.045em !important;
  text-wrap: balance;
  text-shadow: none !important;
  transform: none !important;
  transition: color 260ms ease !important;
}

html body #events .event-card.event-card--minimal .event-description {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-width: 52ch !important;
  max-height: 4.95em;
  margin: 0 !important;
  padding: 0;
  color: rgba(232, 225, 240, 0.7) !important;
  font-family: var(--uww-reading) !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  white-space: normal;
}

html body #events .event-card.event-card--minimal .event-description .event-description-heading {
  font-size: 1em;
  line-height: inherit;
}

/* Keep useful details, without repeating the date or drawing a table. */
html body #events .event-card.event-card--minimal .event-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  margin: 1.1rem 0 0;
  padding: 0;
  border: 0;
}

html body #events .event-card.event-card--minimal .event-facts > div {
  min-width: 0;
  max-width: 100%;
  border: 0;
  padding: 0;
}

html body #events .event-card.event-card--minimal .event-facts dt {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

html body #events .event-card.event-card--minimal .event-facts dd {
  margin: 0;
  color: #c7bdcf;
  font-family: var(--uww-reading);
  font-size: 0.82rem;
  line-height: 1.5;
}

html body #events .event-card.event-card--minimal .event-card-actions {
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

html body #events .event-card.event-card--minimal.event-card--text-only {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "copy";
}

html body #events .event-card.event-card--minimal.event-card--text-only .event-copy {
  max-width: 48rem;
}

@media (hover: hover) and (pointer: fine) {
  html body #events .event-card.event-card--minimal:hover {
    transform: scale(1.02) !important;
  }

  html body #events .event-card.event-card--minimal:hover .event-image > img {
    box-shadow: 0 0 38px rgba(193, 166, 231, 0.14) !important;
  }
  html body #events .event-card.event-card--minimal:hover .event-copy h2 {
    color: #fff !important;
  }
}

html body #events .event-card.event-card--minimal:focus-visible {
  transform: scale(1.02) !important;
  outline: 1px solid #cdbfe0 !important;
  outline-offset: 12px !important;
  border-radius: 12px !important;
}

html body #events .event-card.event-card--minimal:focus-visible .event-image > img {
  box-shadow: 0 0 38px rgba(193, 166, 231, 0.14) !important;
}

@media (max-width: 760px) {
  html body #events .event-card.event-card--minimal {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "artwork" "copy";
    gap: 1.5rem !important;
  }

  html body #events .event-card.event-card--minimal .event-image > img {
    max-height: min(28rem, 62svh) !important;
  }

  html body #events .event-card.event-card--minimal .event-copy {
    max-width: none;
  }

  html body #events .event-card.event-card--minimal .event-copy h2 {
    max-width: 100% !important;
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
  }

  html body #events .event-card.event-card--minimal .event-meta {
    margin-bottom: 0.75rem;
  }

  html body #events .event-card.event-card--minimal .event-description {
    font-size: 0.9rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body #events .event-card.event-card--minimal,
  html body #events .event-card.event-card--minimal .event-image > img,
  html body #events .event-card.event-card--minimal .event-copy h2 {
    transition: none !important;
  }

  html body #events .event-card.event-card--minimal,
  html body #events .event-card.event-card--minimal:is(:hover, :focus-visible) {
    transform: none !important;
  }
}
