:root {
  --kyx-red: #E4002B;
  --kyx-black: #0B0B0C;
  --kyx-white: #FFFFFF;
}

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--kyx-black);
  color: var(--kyx-white);
}

h1, h2, h3, .display-font {
  font-family: 'Archivo Black', 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

a {
  color: var(--kyx-red);
}

/* Navbar */
.navbar {
  background: var(--kyx-black);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.navbar-brand {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .02em;
  color: var(--kyx-white) !important;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, .75) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .04em;
  padding: .5rem 1rem !important;
  position: relative;
}

.navbar .nav-link.active {
  color: var(--kyx-white) !important;
}

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .15rem;
  height: 3px;
  background: var(--kyx-red);
}

.navbar-toggler {
  border-color: var(--kyx-red);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(228, 0, 43, .35);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23E4002B' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.lang-switch {
  font-size: 1.1rem;
  padding: .5rem .6rem !important;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--kyx-red);
  clip-path: polygon(0 0, 62% 0, 40% 100%, 0% 100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: .95;
  margin-bottom: 1rem;
}

.hero p.lead {
  max-width: 32rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .85);
}

@media (max-width: 767.98px) {
  .hero::before {
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
  }
  .hero {
    padding: 3rem 0 3.5rem;
  }
}

/* Buttons */
.btn-kyx {
  background: var(--kyx-white);
  color: var(--kyx-black);
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .85rem 2rem;
  border: 2px solid var(--kyx-white);
}

.btn-kyx:hover {
  background: transparent;
  color: var(--kyx-white);
}

.btn-kyx-outline {
  background: transparent;
  color: var(--kyx-white);
  border: 2px solid var(--kyx-white);
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .85rem 2rem;
}

.btn-kyx-outline:hover {
  background: var(--kyx-white);
  color: var(--kyx-black);
}

/* Stats */
.stat {
  font-family: 'Archivo Black', sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--kyx-red);
}

.stat-label {
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .7);
}

/* Show / ticket card */
.show-card {
  background: #151517;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1rem;
  padding: 2rem;
}

.show-card .kicker {
  color: var(--kyx-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

.show-card .date-block {
  background: var(--kyx-red);
  border-radius: .75rem;
  padding: .75rem 1rem;
  text-align: center;
  min-width: 80px;
  color: var(--kyx-white);
}

.show-card .date-block .day {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.show-card .date-block .month {
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .05em;
}

.show-card.is-past {
  opacity: .7;
}

.show-card.is-past .date-block {
  background: #3a3a3d;
}

.show-card-title {
  text-transform: none;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
}

.show-card-link {
  color: var(--kyx-white);
  transition: border-color .15s ease;
}

.show-card-link:hover .show-card,
.show-card-link:focus-visible .show-card {
  border-color: var(--kyx-red);
}

.show-card-link .event-detail-link {
  display: inline-block;
  margin-top: .25rem;
  color: var(--kyx-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .75rem;
}

/* Section headings */
.section-heading {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.section-label {
  color: var(--kyx-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

/* Cards (members, products, gallery) */
.kyx-card {
  background: #151517;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .75rem;
  padding: 1.5rem;
  height: 100%;
}

.kyx-card h3 {
  font-size: 1rem;
  color: var(--kyx-red);
  margin-bottom: .5rem;
}

.kyx-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-transform: none;
}

/* Gallery — gallery-justify.js sets an explicit pixel width AND height on
   every .gallery-item (Google Photos-style justified rows, at every
   width). Deliberately no aspect-ratio, no CSS Grid auto-tracks, no
   percentage sizing on the item itself — those all proved unreliable
   across browsers once lazy-loaded images were still pending, so sizing
   is fully explicit and content-independent instead. The rules below
   (including the 2-column width/height on .gallery-item) are only the
   pre-JS / no-JS fallback. */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  visibility: hidden;
}

.gallery-grid.is-ready {
  visibility: visible;
}

@media (min-width: 576px) {
  .gallery-grid {
    gap: .75rem;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: .5rem;
  background: #151517;
  flex: 0 0 auto;
  width: calc(50% - .25rem);
  height: 160px;
}

.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-trigger {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-trigger:focus-visible {
  outline: 2px solid var(--kyx-red);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 12, .95);
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: .25rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(11, 11, 12, .7);
  color: var(--kyx-white);
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: var(--kyx-red);
  color: var(--kyx-red);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
}

.lightbox-prev {
  left: .5rem;
}

.lightbox-next {
  right: .5rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: .85rem;
  letter-spacing: .05em;
}

@media (min-width: 768px) {
  .lightbox-nav {
    width: 3.5rem;
    height: 3.5rem;
  }

  .lightbox-prev {
    left: 1.5rem;
  }

  .lightbox-next {
    right: 1.5rem;
  }
}

/* Footer */
footer.site-footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

footer.site-footer a {
  color: rgba(255, 255, 255, .7);
}

/* Print */
@media print {
  .navbar, .btn-kyx, .btn-kyx-outline, .lang-switch {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

.event-photo {
  flex: 0 0 auto;
  width: 100%;
  max-width: 280px;
}

.event-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .75rem;
}

@media (min-width: 576px) {
  .event-photo {
    width: 280px;
  }
}
