/* What's on page: this weekend (cards), the weeks ahead (a dated list), the regulars and past events (cards). */
.es-wk { padding: 80px 0 88px; }
.es-wk__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.es-wk__grid .es-ev { width: auto; }
.es-wk__none { grid-column: 1 / -1; font-size: 18px; color: var(--muted); padding: 30px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }

.es-ahead { padding: 0 0 96px; }
.es-ahead[hidden], .es-regular[hidden] { display: none; }
.es-agenda { display: grid; gap: 12px; }
.es-arow > a { display: grid; grid-template-columns: 84px 148px minmax(0, 1fr) 28px; grid-template-areas: "date img text arrow"; gap: 22px; align-items: center; padding: 14px 28px 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
.es-arow > a:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 22px 40px -28px rgba(18, 34, 44, .5); }
.es-arow--nophoto > a { grid-template-columns: 84px minmax(0, 1fr) 28px; grid-template-areas: "date text arrow"; }
.es-arow__img { grid-area: img; display: block; width: 148px; height: 104px; max-width: none; object-fit: cover; border-radius: 14px; background: var(--alt-2); }
.es-arow > a > time { grid-area: date; align-self: stretch; align-content: center; }
.es-arow > a > div { grid-area: text; min-width: 0; }
.es-arow > a > .es-ico { grid-area: arrow; }
.es-arow time { display: grid; justify-items: center; gap: 2px; padding: 12px 8px 11px; background: var(--alt-2); border-radius: 14px; }
.es-arow time span, .es-arow time i { font: 700 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); font-style: normal; }
.es-arow time b { font: 700 30px/1 var(--font-heading); letter-spacing: -.03em; color: var(--text); }
.es-arow .es-ev__tag { margin: 0 0 7px; }
.es-arow h3 { font: 700 23px/1.12 var(--font-heading); letter-spacing: -.025em; }
.es-arow p:not(.es-ev__tag) { font-size: 15.5px; line-height: 1.5; color: var(--muted); margin-top: 5px; }
.es-arow .es-ico { width: 24px; height: 24px; color: var(--accent-ink); transition: transform .3s; }
.es-arow > a:hover .es-ico { transform: translateX(5px); }

.es-regular { padding: 96px 0 104px; background: var(--alt-2); }
.es-card__next { display: inline-block; margin-top: 14px; padding: 9px 14px; font: 700 12.5px/1 var(--font-body); color: var(--text); background: #fff; border-radius: 999px; }
/* WordPress: Divi removes the bottom padding of the last paragraph in a box, which left the words sitting on the label's bottom edge */
.es-regular .es-card p.es-card__next { padding: 10px 15px 10px; line-height: 1; }

/* Past events: a quiet list, clearly secondary. A small square thumbnail beside the title and a muted line; no label chip, no excerpt.
   The draft's cards are article > image, title, line. WordPress's loop cards have the same three children, each wrapped in a Divi text module,
   and Divi flattens those wrappers (display: contents), so the grid places the image, title and line by class. */
.es-past { padding: 56px 0 64px; }
.es-past .es-head { margin-bottom: 22px !important; }
.es-past .es-head h2 { font-size: 26px; line-height: 1.15; }
.es-past .es-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.es-past .es-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 16px; row-gap: 0; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.es-past .es-card h3 { grid-column: 2; grid-row: 1; align-self: end; min-width: 0; }
.es-past .es-card__meta { grid-column: 2; grid-row: 2; align-self: start; min-width: 0; }
.es-past .es-card__img { grid-column: 1; grid-row: 1 / span 2; width: 72px; height: 72px; aspect-ratio: 1; border-radius: 14px; }
.es-past .es-card__img img { width: 100%; height: 100%; object-fit: cover; }
.es-past .es-card:hover .es-card__img img, .es-past .es-card.is-hot .es-card__img img { transform: none; }
.es-past .es-card__type, .es-past .es-card__blurb, .es-past .es-heart { display: none; }
.es-past .es-card h3 { margin-top: 0; font-size: 16.5px; line-height: 1.25; letter-spacing: -.015em; }
.es-past .es-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.es-past .es-card__meta { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

@media (max-width: 1100px) {
  .es-wk__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .es-past .es-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .es-arow > a { grid-template-columns: 84px 124px minmax(0, 1fr) 28px; gap: 20px; }
  .es-arow--nophoto > a { grid-template-columns: 84px minmax(0, 1fr) 28px; }
  .es-arow__img { width: 124px; height: 92px; }
}
@media (max-width: 640px) {
  .es-wk { padding: 48px 0 56px; }
  .es-wk__grid { grid-template-columns: 1fr; gap: 18px; }
  .es-ahead { padding-bottom: 64px; }
  .es-arow > a { grid-template-columns: 58px minmax(0, 1fr) 68px; grid-template-areas: "date text img"; gap: 12px; padding: 12px; }
  .es-arow--nophoto > a { grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "date text"; }
  .es-arow__img { width: 68px; height: 68px; border-radius: 12px; }
  .es-arow > a > .es-ico { display: none; }
  .es-arow time b { font-size: 25px; }
  .es-arow h3 { font-size: 19px; }
  .es-regular { padding: 64px 0 72px; }
  .es-past { padding: 40px 0 48px; }
  .es-past .es-cards { grid-template-columns: minmax(0, 1fr); }
  .es-arow > a > time { align-self: center; }
  .es-past .es-head h2 { font-size: 23px; }
}
