/* Homepage reminder for the next event starting in less than 30 days. */
body.event-popup-open { overflow: hidden; }
.event-popup {
  width: min(920px, calc(100% - 1rem));
  max-width: none;
  max-height: calc(100vh - 1rem);
  max-height: calc(100svh - 1rem);
  margin: auto;
  padding: 0;
  color: white;
  background: var(--jrac-dark);
  border: 1px solid #506343;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 100px #0008;
  overflow: auto;
  overscroll-behavior: contain;
}
.event-popup::backdrop { background: #060b07d9; }
.event-popup__close {
  position: sticky;
  z-index: 2;
  top: .75rem;
  float: right;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: .75rem .75rem -3.5rem 0;
  padding: 0;
  color: var(--jrac-dark);
  background: var(--jrac-lime-bright);
  border: 2px solid var(--jrac-dark);
  border-radius: 50%;
  font: 2rem/1 var(--font-body);
  cursor: pointer;
}
.event-popup__layout { display: grid; min-width: 0; }
.event-popup__media {
  display: grid;
  place-items: center;
  min-height: 120px;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: repeating-linear-gradient(-35deg, #8bd53e12 0 28px, transparent 28px 55px), #182115;
}
.event-popup__media img { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.event-popup__media--contain { aspect-ratio: 3 / 2; background: #e6e6e6; }
.event-popup__media--contain img { object-fit: contain; }
.event-popup__fallback { grid-area: 1 / 1; color: var(--jrac-lime-bright); font-family: var(--font-display); font-size: clamp(3rem, 10vw, 5rem); font-weight: 900; letter-spacing: .1em; }
.event-popup__content { min-width: 0; padding: clamp(1.1rem, 4vw, 2.5rem); overflow-wrap: anywhere; }
.event-popup .eyebrow { color: var(--jrac-lime-bright); margin-bottom: .75rem; }
.event-popup h2 { color: white; font-size: clamp(1.8rem, 4.5vw, 3.2rem); margin-bottom: .85rem; }
.event-popup__description { color: #d4dece; line-height: 1.65; }
.event-popup__category { display: inline-block; margin-bottom: .75rem; color: #c7d9bb; font-size: .8rem; font-weight: 700; }
.event-popup__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1.25rem; }
.event-popup__fact { min-width: 0; }
.event-popup__fact:first-child, .event-popup__fact:last-child { grid-column: 1 / -1; }
.event-popup__facts dt { color: #b4c5a7; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.event-popup__facts dd { margin: .25rem 0 0; font-size: 1rem; font-weight: 750; }
.event-popup__countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-block: .5rem 1.5rem; }
.event-popup__countdown > div { min-width: 0; padding: .7rem .2rem; text-align: center; border-top: 2px solid var(--jrac-lime-bright); background: #8bd53e12; border-radius: 0 0 .4rem .4rem; }
.event-popup__number { display: block; color: var(--jrac-lime-bright); font-size: clamp(1.45rem, 5vw, 2rem); font-variant-numeric: tabular-nums; line-height: 1.1; }
.event-popup__unit { display: block; margin-top: .4rem; color: #d4dece; font-size: .64rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.event-popup__actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.event-popup__actions .button { flex: 1 1 auto; min-width: 0; white-space: normal; text-align: center; }
.event-popup__dismiss { display: block; width: 100%; min-height: 44px; margin-top: .7rem; padding: .6rem 0; color: #d4dece; border: 0; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
@media (max-width: 759px) and (max-height: 650px) {
  .event-popup__media { min-height: 88px; height: 88px; aspect-ratio: auto; }
  .event-popup__media--contain { min-height: 150px; height: 150px; }
}
@media (min-width: 760px) {
  .event-popup__layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .event-popup__media { aspect-ratio: auto; position: relative; min-height: 100%; }
  .event-popup__media img { position: absolute; inset: 0; }
  .event-popup__content { padding-top: 3.75rem; }
}
@media print { .event-popup { display: none !important; } }
