:root {
  --year-x: 0vw;
  --year-y: 0vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: #000;
}

main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  width: 50vw;
  padding: 20px;
  transform: translateX(var(--year-x));
}

header {
  margin-bottom: 60px;
}

main>header,
main>section,
main>footer {
  flex-shrink: 0;
}

footer {
  margin-top: auto;
  padding-top: 60px;
}

h1,
h2,
h3 {
  font-weight: normal;
  font-size: inherit;
  margin: 0;
  padding: 0;
}

h2 {
  margin-bottom: 20px;
}

em {
  font-style: normal;
}

ul {
  margin: 0 0 20px;
  padding-left: 30px;
  text-indent: -30px;
  list-style-type: none;
}

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

a:hover {
  text-decoration: none;
}

h1 a {
  color: inherit;
}

nav a {
  appearance: none;
  display: table;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.entry-list a,
.work-back,
.work-next,
.exhibition-back,
.exhibition-next,
.exhibition-content-toggle {
  appearance: none;
  display: table;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.entry-list {
  margin-bottom: 20px;
}

.entry-list a {
  margin-bottom: 10px;
}

.entry-list a:last-child {
  margin-bottom: 0;
}

.work-item img,
.exhibition-item img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 20px;
}

.work-item img:has(+ .work-caption),
.exhibition-item img:has(+ .work-caption) {
  margin-bottom: 5px;
}

.video-player {
  position: relative;
  margin: 0 0 20px;
}

.video-player video {
  display: block;
  width: 100%;
  height: auto;
}

.video-play-toggle {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  appearance: none;
  cursor: pointer;
}

.video-play-toggle[data-playing="true"] {
  opacity: 0;
  pointer-events: none;
}

.video-player[data-controls-visible="true"] .video-play-toggle,
.video-play-toggle:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.video-play-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  filter: drop-shadow(0 0 1px #000);
}

.video-play-toggle .video-pause-icon,
.video-play-toggle[data-playing="true"] .video-play-icon {
  display: none;
}

.video-play-toggle[data-playing="true"] .video-pause-icon {
  display: block;
}

.work-caption,
.exhibition-caption,
.entry-credits {
  margin: 0 0 20px;
  white-space: pre-line;
}

.exhibition-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.exhibition-heading h2 {
  margin-bottom: 0;
}

.exhibition-content-toggle {
  flex-shrink: 0;
}

.exhibition-text,
.imprint-text {
  margin: 0 0 20px;
}

.catalogue-cover {
  display: block;
  width: 33%;
  height: auto;
  margin: 0 0 5px;
}

.direction-vertical {
  display: none;
}

@media (max-width: 900px) {
  .direction-horizontal {
    display: none;
  }

  .direction-vertical {
    display: inline;
  }

  main {
    width: 100%;
    min-height: calc(100vh - var(--year-y));
    transform: translateY(var(--year-y));
  }
}


[hidden] {
  display: none !important;
}

.text-block p {
  margin: 0 0 20px;
}

.text-block li>p {
  margin: 0;
}

.exhibition-text p:last-child {
  margin-bottom: 0;
}

.catalogue {
  margin-bottom: 60px;
}

.catalogue:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}