.event-image-link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
}

.event-image-link:hover .event-poster img {
  transform: scale(1.012);
}

.event-image-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.event-poster {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.event-poster img {
  transition: transform 180ms ease;
}

.event-image-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 3px 16px rgb(0 0 0 / 18%);
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.event-lightbox {
  width: min(94vw, 1100px);
  max-width: none;
  height: min(94dvh, 1100px);
  max-height: none;
  padding: 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
  color: var(--ink);
}

.event-lightbox::backdrop {
  background: rgb(10 20 19 / 82%);
  backdrop-filter: blur(3px);
}

.event-lightbox-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
}

.event-lightbox-close {
  justify-self: end;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.event-lightbox-close:hover {
  background: var(--accent-soft, #dceeea);
}

.event-lightbox-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .event-poster img { transition: none; }
}

@media (max-width: 520px) {
  .event-lightbox {
    width: 96vw;
    height: 92dvh;
    padding: 10px;
  }
}
