.event-popup {
  width: min(94vw, 560px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #080808;
  color: #fff;
  overflow: visible;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}

.event-popup::backdrop {
  background: rgba(3, 10, 8, .84);
  backdrop-filter: blur(7px);
}

.event-popup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  overflow: hidden;
  border-radius: 18px;
}

.event-popup-card > img {
  width: 100%;
  min-height: 0;
  object-fit: contain;
  background: #050505;
}

.event-popup-close {
  position: absolute;
  z-index: 2;
  top: .7rem;
  right: .7rem;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font: 300 2rem/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .35);
}

.event-popup-close:hover,
.event-popup-close:focus-visible {
  background: var(--lime);
  color: var(--ink);
  outline: 0;
}

.event-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #090909;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.event-popup-footer p {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin: 0;
}

.event-popup-footer strong {
  text-transform: uppercase;
  letter-spacing: .08em;
}

.event-popup-footer p span {
  color: #c8c8c8;
  font-size: .72rem;
}

.event-popup-footer a {
  flex: none;
  padding: .8rem 1rem;
  border-radius: 999px;
  background: #f4b719;
  color: #080808;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
}

@media (max-width: 600px) {
  .event-popup {
    width: min(94vw, 430px);
    max-height: 92vh;
  }

  .event-popup-card {
    max-height: 92vh;
  }

  .event-popup-footer {
    align-items: stretch;
    flex-direction: column;
    padding: .85rem 1rem;
  }

  .event-popup-close {
    top: .5rem;
    right: .5rem;
  }
}
