﻿:root {
  --bg: #f2f2f2;
  --surface: #ffffff;
  --text: #171717;
  --muted: #666666;
  --line: #dddddd;
  --max: 1160px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 242, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.nav {
  max-width: 1200px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.site-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  min-width: 0;
  margin: 0;
  line-height: 1.15;
  font-size: 1.35rem;
}

.site-identity-name {
  font-weight: 700;
  white-space: nowrap;
}

.site-identity-separator {
  color: var(--muted);
}

.site-identity-tagline {
  font-size: 0.98rem;
  font-weight: 400;
}

.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.nav-menu-toggle:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 2px;
}

.menu-icon {
  display: flex;
  width: 20px;
  flex-direction: column;
  gap: 4px;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.brand {
  font-weight: 700;
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.event-view-tabs {
  flex-wrap: nowrap;
  gap: 4px;
  flex: 0 0 auto;
}

.event-view-tabs button {
  min-height: 40px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.event-view-tabs button[aria-pressed="true"] {
  min-height: 46px;
  padding: 9px 14px;
  border-radius: 12px 12px 8px 8px;
  font-size: 1.04rem;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu a,
.lang-switch a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
}

.menu a[aria-current="page"] {
  font-weight: 700;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
}

.lang-switch a[aria-current="page"] {
  font-weight: 700;
  background: #171717;
  color: #ffffff;
  border-color: #171717;
}

.menu a:focus-visible,
.lang-switch a:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 2px;
}

main {
  padding: 28px 0 42px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.hero {
  display: grid;
  grid-template-columns: minmax(130px, 230px) 1fr;
  overflow: hidden;
}

.hero-media {
  background: #ebebeb;
  min-height: 340px;
}

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

.hero-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  margin: 0 0 16px;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h2 {
  margin: 0 0 16px;
  line-height: 1.2;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.lead {
  margin: 0;
  color: var(--muted);
}

.section-space {
  margin-top: 24px;
  padding: 24px;
}

.events-list {
  display: grid;
  gap: 0;
}

.event-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.event-controls.is-closed {
  display: none;
}

.event-heading-row {
  display: none;
}

.event-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.event-filter-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-filter-toggle:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 2px;
}

.event-control-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.event-control-group button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.event-control-group button[aria-pressed="true"] {
  background: #171717;
  border-color: #171717;
  color: #fff;
  font-weight: 700;
}

.event-control-group button:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 2px;
}

.events-status:empty {
  display: none;
}

.events-status {
  margin: 0 0 8px;
  color: var(--muted);
}

.event {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.event:last-child {
  border-bottom: none;
}

.date, .month {
  font-weight: 700;
  white-space: nowrap;
}

.date {
  font-size: 1.08rem;
}

.month {
  color: green;
}

.icon {
  font-size: 1.2rem;
}

.event p {
  margin: 0;
}

.event-primary {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: start;
  gap: 5px 7px;
  min-width: 0;
}

.date {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: #e8edf2;
  color: #202a33;
  font-size: 0.98rem;
  line-height: 1.2;
}

.date svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.date-label {
  min-width: 0;
  white-space: nowrap;
}

.date-time {
  flex: 0 0 auto;
  font-size: 0.9em;
  font-weight: 600;
}

.event-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}

.event-title a {
  text-decoration-thickness: 1px;
}

.event-context {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.event-performers {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.event-performer-names {
  min-width: 0;
}

.event-place {
  max-width: none;
  min-width: 0;
  margin-left: 0;
  text-align: left;
}

.event-context .icon {
  flex: 0 0 auto;
  font-size: 1rem;
}

.event-details {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 2px;
}

.event-previous-seasons {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.event-meta,
.event-note {
  color: var(--muted);
  font-size: 0.93rem;
}

.event-description {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.event-ticket {
  justify-self: start;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.event-ticket a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.event-ticket a:hover {
  background: #363636;
}

.event-sold-out {
  margin: 0;
  color: #4b1713;
  font-weight: 600;
  line-height: 1.5;
}

.event-sold-out-label {
  display: inline-block;
  margin-right: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: #a92318;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.event-sold-out-followup {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.event-gallery {
  --gallery-thumb-width: 140px;
  --gallery-gap: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--gallery-thumb-width)), 1fr));
  gap: var(--gallery-gap);
  width: min(100%, 596px);
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-gallery li {
  min-width: 0;
}

.event .event-gallery-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.event-gallery-link {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f1f1;
}

.event-gallery-link:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 3px;
}

.event-gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 160ms ease;
}

.event-gallery--single-poster {
  display: block;
  width: min(100%, 596px);
  max-width: 100%;
  margin-top: 0;
}

.event-gallery--single-poster li {
  width: 100%;
}

.event-gallery--single-poster .event-gallery-link {
  display: inline-block;
  max-width: 100%;
  background: transparent;
}

.event-gallery--single-poster .event-gallery-image {
  width: auto;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.event-gallery-link:hover .event-gallery-image {
  transform: scale(1.03);
}

.event-photo-viewer {
  position: fixed;
  inset: 0;
  width: min(96vw, 1280px);
  max-width: 100vw;
  height: min(92vh, 960px);
  max-height: 100dvh;
  margin: auto;
  padding: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #111;
  color: #fff;
}

.event-photo-viewer::backdrop {
  background: rgb(0 0 0 / 86%);
}

.event-photo-viewer__frame {
  display: grid;
  grid-template:
    "close close close" 48px
    "previous image next" minmax(0, 1fr)
    "counter counter counter" 36px
    / 64px minmax(0, 1fr) 64px;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.event-photo-viewer__close,
.event-photo-viewer__previous,
.event-photo-viewer__next {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  background: rgb(32 32 32 / 88%);
  color: #fff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.event-photo-viewer__close:focus-visible,
.event-photo-viewer__previous:focus-visible,
.event-photo-viewer__next:focus-visible {
  outline: 3px solid #8bc7ff;
  outline-offset: 3px;
}

.event-photo-viewer__close {
  grid-area: close;
  justify-self: end;
}

.event-photo-viewer__previous {
  grid-area: previous;
  align-self: center;
  justify-self: start;
}

.event-photo-viewer__next {
  grid-area: next;
  align-self: center;
  justify-self: end;
}

.event-photo-viewer__image {
  grid-area: image;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  touch-action: pan-y;
  user-select: none;
}

.event-photo-viewer__counter {
  grid-area: counter;
  align-self: center;
  margin: 0;
  color: rgb(255 255 255 / 85%);
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 600px) {
  .event-photo-viewer {
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
    box-sizing: border-box;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-radius: 0;
  }

  .event-photo-viewer__frame {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
  }

  .event-photo-viewer__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .event-photo-viewer__close,
  .event-photo-viewer__previous,
  .event-photo-viewer__next {
    width: 48px;
    height: 48px;
    position: absolute;
    z-index: 1;
    background: rgb(32 32 32 / 58%);
    backdrop-filter: blur(4px);
  }

  .event-photo-viewer__close {
    top: 8px;
    right: 8px;
  }

  .event-photo-viewer__previous,
  .event-photo-viewer__next {
    top: 50%;
    transform: translateY(-50%);
  }

  .event-photo-viewer__previous {
    left: 8px;
  }

  .event-photo-viewer__next {
    right: 8px;
  }

  .event-photo-viewer__counter {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 0;
    text-shadow: 0 1px 5px #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-photo-viewer,
  .event-photo-viewer * {
    scroll-behavior: auto;
    transition: none;
  }
}

.event-continuation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.event-continuation[hidden] {
  display: none;
}

.event-continuation button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.event-continuation button:hover:not(:disabled) {
  background: #f7f7f7;
}

.event-continuation button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.6;
}

.event-continuation button:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 2px;
}

.event-scroll-sentinel {
  position: absolute;
  inset-inline-start: 50%;
  bottom: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.event a,
.link-card a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-intro {
  padding: 28px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  align-items: start;
  gap: 28px;
}

.about-card > h1 {
  margin: 0 0 24px;
}

.about-copy p:first-child {
  margin-top: 0;
}

.about-copy > p:last-of-type {
  margin-bottom: 0;
}

.about-contact {
  margin-top: 28px;
}

.about-contact h2 {
  margin-bottom: 12px;
}

.about-contact p {
  margin: 8px 0;
}

.about-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  padding: 22px;
}

.link-card h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.link-card p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 0 0 36px;
}

.footer-inner {
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

  .links-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-height: 420px;
  }

  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 24px;
  }

  .nav-right {
    width: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 14px;
  }

  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "identity menu"
      "controls controls"
      "links links";
    min-height: 64px;
    align-items: center;
    gap: 8px 12px;
    padding: 8px 14px;
  }

  .site-identity {
    grid-area: identity;
    gap: 0 6px;
    font-size: 1.25rem;
  }

  .site-identity-tagline {
    font-size: 0.91rem;
  }

  .nav-menu-toggle {
    display: flex;
    grid-area: menu;
    margin-left: 0;
  }

  .event-header-controls {
    grid-area: controls;
    width: 100%;
  }

  .event-view-tabs {
    flex: 1 1 auto;
    width: auto;
  }

  .event-header-controls .event-view-tabs {
    width: auto;
  }

  .event-view-tabs button {
    flex: 1 1 0;
  }

  .nav-right {
    grid-area: links;
    gap: 10px;
  }

  .nav-right {
    display: none;
  }

  .nav-right.is-open {
    display: flex;
  }

  .menu,
  .lang-switch {
    width: 100%;
  }

  .menu a,
  .lang-switch a {
    flex: 1 1 auto;
    text-align: center;
  }

  main {
    padding-top: 18px;
  }

  .hero-content,
  .page-intro,
  .section-space,
  .link-card {
    padding: 18px;
  }

  .event-details {
    gap: 7px;
  }

  .event {
    gap: 8px;
    padding: 16px 0;
  }

  .event-primary {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 5px 7px;
  }

  .event-title {
    font-size: 1.04rem;
  }

  .event-context {
    gap: 7px;
    font-size: 0.9rem;
  }

  .event-controls,
  .event-control-group {
    width: 100%;
  }

  .event-control-group button {
    flex: 1 1 auto;
  }

  .event-gallery {
    --gallery-thumb-width: 112px;
    --gallery-gap: 10px;
    width: min(100%, 478px);
    max-width: 100%;
  }

  .event-gallery--single-poster {
    width: min(100%, 478px);
    max-width: 100%;
  }

  .event-continuation button {
    width: min(100%, 320px);
    padding: 8px 10px;
  }

  .icon,
  .month {
    display: inline-block;
  }
}

@media (max-width: 360px) {
  .event-gallery:not(.event-gallery--single-poster) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lang-switch {
    gap: 6px;
  }

  .lang-switch a {
    gap: 4px;
    padding: 8px 6px;
    font-size: 0.92rem;
  }
}

