.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 270px;
  grid-auto-flow: dense;
  gap: 1rem;
}

.event-item {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.event-item-tiktok,
.event-item-instagram { grid-row: span 2; }
.event-item-instagram .event-video { background: #fff; }

@media (min-width: 640px) {
  .event-item-youtube { grid-column: span 2; }
}

.event-photo-button {
  flex: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  background: var(--surface-raised);
  cursor: zoom-in;
}
.event-photo-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.event-photo-button:hover img { transform: scale(1.04); }

.event-video {
  flex: 1;
  min-height: 0;
  background: #000;
}
.event-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.event-item figcaption {
  padding: 0.65rem 0.9rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.event-gallery-status {
  color: var(--text-muted);
}

@media (max-width: 420px) {
  .event-gallery { grid-auto-rows: 240px; }
}
