/*
Theme Name: Bunker Exposities
Theme URI: https://bunkerexposities.nl/
Author: Bunker Exposities
Description: Licht maatwerkthema voor de Bunker Exposities-website.
Version: 0.2.25
Text Domain: bunker-exposities
*/

:root {
  --be-ink: #171717;
  --be-paper: #fff;
  --be-white: #fff;
  --be-green: #2fae35;
  --be-yellow: #f5df18;
  --be-line: rgba(23, 23, 23, 0.22);
  --be-gutter: clamp(20px, 4vw, 64px);
  --be-content: 760px;
  --be-sidebar: 150px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--be-paper);
  color: var(--be-ink);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
}

.corner-link {
  position: fixed;
  z-index: 20;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
}

.corner-link:hover,
.corner-link:focus-visible {
  text-decoration: underline;
}

.corner-link--top-left {
  top: 24px;
  left: clamp(24px, 2.5vw, 48px);
}

.corner-link--top-right {
  top: 24px;
  right: clamp(24px, 2.5vw, 48px);
}

.corner-link--bottom-left {
  bottom: 24px;
  left: clamp(24px, 2.5vw, 48px);
}

.corner-link--bottom-right {
  right: clamp(24px, 2.5vw, 48px);
  bottom: 24px;
}

.admin-bar .corner-link--top-left,
.admin-bar .corner-link--top-right {
  top: 56px;
}

.site-main {
  min-height: 70vh;
}

.site-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--be-content));
  justify-content: center;
  padding: clamp(56px, 9vw, 130px) var(--be-gutter);
}

.content-column > :first-child,
.year-content > :first-child {
  margin-top: 0;
}

.page-title,
.year-title {
  margin: 0 0 42px;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.year-subtitle {
  max-width: 680px;
  margin: -24px 0 38px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.3;
}

.year-banner {
  width: 100%;
  aspect-ratio: 4 / 1;
  margin: 0 0 38px;
  overflow: hidden;
}

.year-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intro {
  max-width: 680px;
  margin-bottom: 46px;
  font-size: clamp(21px, 2.5vw, 31px);
  font-weight: 700;
  line-height: 1.3;
}

.current-exhibition {
  display: grid;
  grid-template-columns: minmax(150px, 34%) 1fr;
  gap: 28px;
  align-items: start;
  margin: 52px 0;
}

.current-exhibition--without-image {
  grid-template-columns: 1fr;
}

.current-exhibition__title {
  margin: 0 0 4px;
  line-height: 1.15;
}

.current-exhibition__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000;
}

.current-exhibition__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.current-exhibition__copy > :first-child {
  margin-top: 0;
}

.current-exhibition__blocks {
  margin-top: 30px;
}

.current-exhibition__blocks .wp-block-columns {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin: 0;
}

.current-exhibition__blocks .wp-block-column {
  flex: 1 1 0;
  min-width: 0;
}

.current-exhibition__blocks figure,
.current-exhibition__blocks img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.current-exhibition__summary {
  margin-top: 28px;
}

.current-exhibition__notice {
  color: #c00;
  font-weight: 700;
}

.home-copy {
  max-width: 680px;
}

.bunker-home-layout .content-column {
  text-align: center;
}

.bunker-home-layout .intro,
.bunker-home-layout .home-copy {
  margin-right: auto;
  margin-left: auto;
}

.bunker-home-layout .current-exhibition__copy {
  text-align: center;
}

.archive-cta {
  display: flex;
  justify-content: center;
  margin: 56px 0 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid currentColor;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.button-link:hover,
.button-link:focus-visible {
  background: var(--be-ink);
  color: var(--be-white);
}

.year-nav {
  position: fixed;
  top: clamp(76px, 10vh, 104px);
  bottom: clamp(76px, 10vh, 104px);
  right: clamp(28px, 5vw, 92px);
  z-index: 15;
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  scrollbar-width: none;
}

.admin-bar .year-nav {
  top: clamp(108px, calc(10vh + 32px), 136px);
}

.year-nav::-webkit-scrollbar,
.year-nav__list::-webkit-scrollbar {
  display: none;
}

.year-nav__title {
  display: block;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.year-nav__list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  list-style: none;
}

.year-nav a {
  display: inline-block;
  color: var(--be-green);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.22;
  text-decoration: none;
  transition: transform 150ms ease, color 150ms ease, background-color 150ms ease;
}

.year-nav a:hover,
.year-nav a:focus-visible {
  background: var(--be-yellow);
  color: var(--be-ink);
  transform: translateX(4px);
}

.year-nav [aria-current="page"] {
  padding: 0 4px;
  background: var(--be-yellow);
  color: var(--be-ink);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  justify-content: center;
  width: min(100%, 650px);
  gap: 12px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.archive-grid a,
.archive-special-grid a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--be-ink);
  color: var(--be-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.archive-special-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 650px);
  gap: 60px;
  margin: 70px auto 0;
  padding: 0;
  list-style: none;
}

.archive-special-grid a {
  min-height: 64px;
}

.archive-overview {
  padding-top: clamp(42px, 5vw, 76px);
  padding-bottom: 48px;
}

.archive-overview .page-title {
  margin-bottom: 42px;
  font-size: clamp(58px, 7vw, 92px);
  text-align: center;
}

.archive-overview .intro {
  margin-right: auto;
  margin-bottom: 22px;
  margin-left: auto;
  text-align: center;
}

.archive-grid a:hover,
.archive-grid a:focus-visible,
.archive-special-grid a:hover,
.archive-special-grid a:focus-visible {
  border-color: var(--be-green);
  background: var(--be-green);
  color: var(--be-white);
}

.archive-overview .year-nav {
  display: none;
}

.year-toc {
  margin: 0 0 60px;
  padding: 24px 0;
  border-top: 1px solid var(--be-line);
  border-bottom: 1px solid var(--be-line);
}

.year-toc[hidden] {
  display: none;
}

.year-toc__title {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.year-toc ol {
  margin: 0;
  padding-left: 1.4em;
  list-style-type: decimal;
}

.year-toc li {
  transition: color 150ms ease, transform 150ms ease;
}

.year-toc a {
  color: inherit;
  text-decoration: none;
}

.year-toc li:hover,
.year-toc li:focus-within {
  color: var(--be-green);
  font-weight: 700;
  transform: translateX(4px);
}

.year-content h2,
.year-content h3 {
  scroll-margin-top: 24px;
}

.year-content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.year-content a,
.information-page a,
.home-copy a,
.current-exhibition__copy a {
  color: var(--be-green);
  text-decoration: none;
}

.year-content a:hover,
.year-content a:focus-visible,
.information-page a:hover,
.information-page a:focus-visible,
.home-copy a:hover,
.home-copy a:focus-visible,
.current-exhibition__copy a:hover,
.current-exhibition__copy a:focus-visible {
  color: var(--be-ink);
}

.year-content > *,
.year-content .elementor,
.year-content .elementor-section,
.year-content .elementor-container,
.year-content .elementor-widget-wrap,
.year-content .elementor-widget,
.year-content .elementor-widget-container {
  min-width: 0;
  max-width: 100% !important;
}

.year-content img,
.year-content video,
.year-content iframe,
.year-content table {
  max-width: 100% !important;
}

.year-content pre {
  max-width: 100%;
  overflow-x: auto;
}

.year-content .wp-block-file__button {
  display: none !important;
}

.year-content > h2:not(:first-child),
.year-content > h3:not(:first-child) {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--be-line);
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1100px, calc(100% - 440px));
  gap: 22px;
  margin: 0 auto;
  padding: 54px 0 72px;
  font-size: 12px;
}

.site-footer h2 {
  margin: 0 0 7px;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

/* The legacy Elementor information page contains its own old header and
   footer as its first and last sections. The theme supplies those globally. */
.information-page .elementor > .elementor-element:first-child,
.information-page .elementor > .elementor-element:last-child {
  display: none;
}

.information-layout {
  padding-top: clamp(110px, 13vh, 160px);
}

.information-page--clean h1 {
  margin: 0 0 44px;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.information-page--clean section + section {
  margin-top: 42px;
}

.information-page--clean h2 {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.15;
}

.information-page--clean p {
  margin: 0 0 1em;
}

.information-page--clean .button-link {
  min-width: 124px;
  justify-content: center;
  border: 0;
  background: #355795;
  color: var(--be-white);
}

.information-page--clean .button-link:hover,
.information-page--clean .button-link:focus-visible {
  background: var(--be-yellow);
  color: var(--be-ink);
}

.choice-page {
  min-height: 100vh;
  background: var(--be-white);
  overflow: hidden;
}

.choice-grid {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
}

.choice-link {
  position: absolute;
  z-index: 2;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(48px, 5.25vw, 112px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.92;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.choice-link--top-right {
  top: clamp(28px, 5vh, 72px);
  right: clamp(26px, 4vw, 80px);
  text-align: right;
  white-space: nowrap;
}

.choice-link--bottom-left {
  bottom: clamp(28px, 5vh, 72px);
  left: clamp(26px, 4vw, 80px);
}

.choice-link:hover,
.choice-link:focus-visible {
  opacity: 0.48;
}

.choice-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(58vw, 1100px);
  height: auto;
  max-height: 58vh;
  object-fit: contain;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

@media (max-width: 800px) {
  .corner-link {
    font-size: 17px;
  }

  .corner-link--top-left,
  .corner-link--top-right {
    top: 16px;
  }

  .admin-bar .corner-link--top-left,
  .admin-bar .corner-link--top-right {
    top: 62px;
  }

  .corner-link--top-left,
  .corner-link--bottom-left {
    left: 16px;
  }

  .corner-link--top-right,
  .corner-link--bottom-right {
    right: 16px;
  }

  .corner-link--bottom-left,
  .corner-link--bottom-right {
    bottom: 14px;
  }

  .site-layout {
    display: flex;
    flex-direction: column;
    padding-top: 76px;
  }

  .current-exhibition,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .current-exhibition__blocks .wp-block-columns {
    flex-direction: column;
  }

  .archive-grid {
    grid-template-columns: repeat(3, minmax(76px, 1fr));
    gap: 8px;
  }

  .site-footer {
    width: calc(100% - 40px);
    padding: 48px 0 64px;
  }

  .choice-link {
    font-size: clamp(42px, 11vw, 72px);
  }

  .choice-link--top-right {
    top: 28px;
    right: 22px;
    font-size: clamp(28px, 8vw, 48px);
  }

  .choice-link--bottom-left {
    bottom: 28px;
    left: 22px;
  }

  .choice-arrow {
    width: 76vw;
    max-height: 52vh;
  }
}

@media (max-width: 600px) {
  .archive-special-grid {
    gap: 12px;
    margin-top: 36px;
  }

  .information-layout {
    padding-top: 76px;
  }

  .information-page--clean h1 {
    margin-bottom: 32px;
    font-size: 42px;
  }

  .information-page--clean h2 {
    font-size: 23px;
  }

  .year-nav {
    position: static;
    order: -1;
    width: 100%;
    min-width: 0;
    max-height: none;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--be-line);
    overflow: visible;
  }

  .year-nav__list {
    width: 100%;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    flex: none;
    flex-wrap: nowrap;
    gap: 13px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
  }

  .year-nav__list li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .year-nav a:hover,
  .year-nav a:focus-visible {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Keep editable image blocks aligned with the original homepage image. */
.bunker-home-layout figure.current-exhibition__image {
  margin: 0;
}

/* Legacy homepage chrome is hidden only after it has been identified. */
.bunker-home-layout [data-bunker-legacy-chrome],
.site-footer[data-bunker-legacy-chrome] {
  display: none !important;
}
