.media-figure {
  margin: 0 0 52px;
}

.media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 831;
  object-fit: cover;
  border-radius: 24px;
}

.media-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Keep the visual gallery and the following process section connected. */
main#top > .section {
  padding-top: 88px;
  padding-bottom: 88px;
}

main#top > .gallery-section {
  padding-bottom: 40px;
}

main#top > #ablauf {
  padding-top: 40px;
}

@media (min-width: 901px) {
  .gallery-side {
    height: 610px;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .gallery-side .photo-card {
    min-height: 0;
  }
}

.media-figure-portrait {
  max-width: 620px;
}

.media-figure-portrait img {
  aspect-ratio: 9 / 14;
}

.story-gallery {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 16px;
  margin: 0 0 52px;
}

.story-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
}

.story-gallery-main {
  grid-row: span 2;
}

.story-gallery img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.story-gallery-main img {
  aspect-ratio: 4 / 5;
}

.story-gallery figure:not(.story-gallery-main) img {
  aspect-ratio: 3 / 2;
}

.story-gallery figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 680px) {

  main#top > .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  main#top > .gallery-section {
    padding-bottom: 24px;
  }

  main#top > #ablauf {
    padding-top: 32px;
  }
  .story-gallery {
    grid-template-columns: 1fr;
  }

  .story-gallery-main {
    grid-row: auto;
  }
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.club-logo-card {
  min-height: 170px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.club-logo-card img {
  width: 100%;
  height: 88px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}

.club-logo-card span,
.club-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.club-logo-card small {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.club-link {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.club-link:hover,
.club-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--panel2);
}

.club-wordmark strong {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: 0.08em;
}

.club-note {
  margin: 18px 0 0;
}

.upcoming-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 36px;
  padding: 38px;
  border-radius: 28px;
  background: var(--accent);
  color: #08090c;
}

.upcoming-event h3 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.upcoming-event p,
.upcoming-event .meta {
  color: #24271d;
}

.upcoming-event .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #08090c;
  color: #fff;
  font-weight: 850;
}

.upcoming-event .text-link:hover,
.upcoming-event .text-link:focus-visible {
  background: #252830;
}

.upcoming-event img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  filter: brightness(0);
}

@media (max-width: 900px) {
  .club-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .club-grid {
    grid-template-columns: 1fr 1fr;
  }

  .club-logo-card {
    min-height: 140px;
    padding: 16px;
  }

  .upcoming-event {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .upcoming-event img {
    width: 150px;
  }
}
