/* Základní layout: ../../css/common.css */

body {
  background:
    radial-gradient(circle at 20% 10%, hsl(0 0% 12%), transparent 45%),
    linear-gradient(to bottom, hsl(0 0% 7%), hsl(0 0% 4%));
}

.nav-inner {
  max-width: 1480px;
  padding: 0 40px;
}

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px;
}

.events-hero {
  padding: 138px 0 28px;
}

.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--fg);
}

.events-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 8vw, 5.4rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  margin-bottom: 12px;
}

.events-hero p {
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.7;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: stretch;
}

.hero-copy {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: hsl(0 0% 7% / 0.62);
  padding: 24px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: hsl(0 0% 72%);
  margin-bottom: 12px;
}

.hero-tags {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tags span {
  border: 1px solid hsl(0 0% 26%);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: hsl(0 0% 82%);
  background: hsl(0 0% 10%);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.hero-tags span:hover {
  background: hsl(0 0% 18%);
  border-color: hsl(0 0% 40%);
  color: hsl(0 0% 95%);
}

.hero-feature {
  height: 100%;
  min-height: 320px;
}

.hero-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream-section {
  padding: 0 0 82px;
}

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

.stream-photo {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: hsl(0 0% 8%);
  cursor: zoom-in;
  padding: 0;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.stream-photo.landscape {
  aspect-ratio: 16 / 9;
}

.stream-photo.portrait {
  aspect-ratio: 9 / 16;
}

.stream-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.stream-grid .stream-photo:nth-child(1) img { object-position: center 24%; }
.stream-grid .stream-photo:nth-child(2) img { object-position: center 22%; }
.stream-grid .stream-photo:nth-child(3) img { object-position: center 28%; }
.stream-grid .stream-photo:nth-child(4) img { object-position: center 34%; }
.stream-grid .stream-photo:nth-child(5) img { object-position: center 26%; }
.stream-grid .stream-photo:nth-child(6) img { object-position: center 32%; }
.stream-grid .stream-photo:nth-child(7) img { object-position: center 24%; }
.stream-grid .stream-photo:nth-child(8) img { object-position: center 8%; }
.stream-grid .stream-photo:nth-child(9) img { object-position: center 33%; }
.stream-grid .stream-photo:nth-child(10) img { object-position: center 22%; }
.stream-grid .stream-photo:nth-child(11) img { object-position: center 35%; }
.stream-grid .stream-photo:nth-child(12) img { object-position: center 14%; }
.stream-grid .stream-photo:nth-child(13) img { object-position: center 24%; }
.stream-grid .stream-photo:nth-child(14) img { object-position: center 14%; }
.stream-grid .stream-photo:nth-child(15) img { object-position: center 34%; }
.stream-grid .stream-photo:nth-child(16) img { object-position: center 5%; }

.stream-photo:hover {
  transform: translateY(-2px);
  border-color: hsl(0 0% 34%);
  box-shadow: 0 14px 28px hsl(0 0% 0% / 0.32);
}

.stream-photo:focus-visible {
  outline: 2px solid hsl(0 0% 90%);
  outline-offset: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: hsl(0 0% 0% / 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 44px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid hsl(0 0% 25%);
  box-shadow: 0 30px 80px hsl(0 0% 0% / 0.55);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 25%);
  background: hsl(0 0% 10% / 0.9);
  color: var(--fg);
  font-size: 1.7rem;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: hsl(0 0% 42%);
}

.footer-inner {
  max-width: 1480px;
  padding: 0 40px;
}

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

  .hero-feature {
    min-height: 280px;
  }

  .stream-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 768px) {
  .container,
  .footer-inner {
    padding: 0 24px;
  }

  .events-hero {
    padding: 132px 0 28px;
  }

  .hero-copy {
    padding: 18px;
  }

  .hero-feature {
    min-height: 220px;
  }

  .stream-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}
