body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
  background-color: #000;
  padding: 20px;
  height: 100%;
}

a {
  text-decoration: none;
  color: currentColor;
}

h1 {
  font-weight: 400;
}

h2 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  max-width: 800px;
  min-width: 500px;
  height: 100%;
  background-color: #fff;
  color: #000;
  padding: 20px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
      opacity 0.3s ease,
      visibility 0.3s ease;

  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay-content {
  margin-top: 2.5rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

body.overlay-open {
  overflow: hidden;
}

.close {
  position: fixed;
  top: 20px;
  right: 24px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  margin-top: -10px;
}

.cross {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 200;
  font-size: 24px;
}

nav ul {
  display: flex;
  justify-content: flex-end; /* rechtsbündig */
  gap: 2rem; /* Abstand zwischen den Links */
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
}

nav a {
  text-decoration: none;
}

td.year {
    padding-right: 1rem;
}

td.text p {
    margin-bottom: 0.5rem;
}

.image, .current figure {
    margin-bottom: 2rem;
}

.current p {
  margin-bottom: 1rem;
}

.current {
  margin-top: 2rem;
}


header {
  display: flex;
  align-items: center;
}

#title {
  margin-right: auto; /* schiebt nav ganz nach rechts */
}

@media (max-width: 500px) {
  header {
    display: block;
  }

  nav ul {
    justify-content: space-between;
  }
  
  nav {
    margin-top: 2rem;
  }
}

@media (max-width: 620px) {
  .overlay {
    width: 100%;
    min-width: auto;
    max-width: 100vw;
  }
}

#video {
  height: 100vh;
  padding-top: 80px;    /* Abstand zum Menü */
  padding-bottom: 30px; /* Abstand zum unteren Rand */
  box-sizing: border-box;

  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container {
  height: 100%;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transform: translateY(-5vh);
}

.video-container video {
  display: block;

  max-width: 100%;
  max-height: calc(100% - 2em); /* Platz für Caption */

  width: auto;
  height: auto;

  object-fit: contain;
}


.video-frame {
  display: inline-flex;
  flex-direction: column;
}

.video-frame video {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
}

.caption {
  font-size: 12px;
  margin-top: 0.75rem;
  text-align: left;
}

.exhibition-item {
  margin-bottom: 2rem;
}