@font-face {
  font-family: 'Zurich';
  src: url('https://kunsthuissyb.nl/assets/fonts/zurich-regular-webfont.woff2') format('woff2'),
  url('https://kunsthuissyb.nl/assets/fonts/zurich-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zurich';
  src: url('https://kunsthuissyb.nl/assets/fonts/zurich-bt-bold-webfont.woff2') format('woff2'),
  url('https://kunsthuissyb.nl/assets/fonts/zurich-bt-bold-webfont.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zurich';
  src: url('https://kunsthuissyb.nl/assets/fonts/zurich-italic-webfont.woff2') format('woff2'),
  url('https://kunsthuissyb.nl/assets/fonts/zurich-italic-webfont.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

:root { 
  --border: 1px solid #000; 
  --section-padding-phone: 100px 30px;
  --section-padding-desktop: 100px 50px;
}

* { box-sizing: border-box; }

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

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.locked { overflow: hidden; }

body, button, h1, h2, h3, h4 { 
  font-family: "Zurich", Arial, sans-serif; 
  font-size: 15px;
  line-height: 18px ;
  letter-spacing: 1%;
}

button { background: none; border: none; padding: 0; color: #000 }

h1, h2, h3, h4 { margin-block: 0; font-weight:400 }
h1 { font-weight: 700; }
h2 { font-style: italic; }
h4 { text-transform: uppercase; }

a, button.link { color: #000; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; cursor: pointer }
a:hover, button.link:hover { text-decoration: none; }

figure { margin: 0; }
figure img { width: 100%; }

ul.no-bullets {
  padding: 0;
  margin: 0;
  list-style: none;
}

.center { text-align: center; }

.mb-1 { margin-block-end: 1em; }
.mb-2 { margin-block-end: 2em; }
.mb-3 { margin-block-end: 3em; }
.mbs-3 { margin-block-start: 3em; }

p:first-child { margin-top: 0; }
p:last-of-type, article:last-of-type { margin-block-end:0; }

.nav {
  position: fixed;
  top: 30px;
  right: 30px;
  width: calc(100% - 60px);
  z-index: 1500;
}

.nav li { margin-bottom: 3px; }
.nav li:nth-child(3n) { margin-bottom: 12px; }

.nav a {
  color: #fff;
  text-decoration: none;
}

.nav__item {
  display: flex;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  background: #282828;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

#nav__toggle {
  justify-content: space-between;
  margin-bottom: 12px;
}

#nav__headline {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-height: 18px;
  overflow: hidden;
}

#nav__inner {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

#overlay {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

#overlay.open {
  transform: translateX(0);
}

#overlay__close { 
  position: absolute;
  left: 50%;
  top: 90px;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 1100;
}

.dashboard { 
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 30px;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.dashboard--exhibitions { background: #F7EAF4E3; }
.dashboard--residency { background: #CAFFC1C9; }
.dashboard--events { background: #FFFEC7E3; }
.dashboard--journal { background: #C7D1FFE3; }
.dashboard--triennale { background: #FFB266E3; }
.dashboard--sybrien { background: #999900E3; }
.dashboard--default { background: #C4C4C4E3; }

.section {
  padding: var(--section-padding-phone);
}

.border {
  border-bottom: var(--border);
}

.gap-phone {
  gap: 50px;
}

.grid { 
  display: grid; 
  grid-template-columns: repeat(1, 1fr);
}

.grid__item {
  padding: 90px 30px;
  margin-bottom: -1px;
}

.home-header {
  padding: 150px 100px;
  text-align: center;
}

.syb-logo img {
  width: 60px;
}

.home-announcement {
  border-top: var(--border);
}

.home-cover {
  gap: 175px;
  justify-items: center;
}

.cover {
  gap: 90px;
}

.cover__image {
  max-width: 100%;
  height: auto;
}

.gallery {
  gap:45px;
}

figcaption {
  text-align: center;
  padding: 8px 0;
}

.triennale--header {
  margin-top: 138px;
  align-items: center;
  gap: 100px;
  border-top: var(--border);
  text-align: center;
}

.triennale--header__logo img {
  width: 100%;
  display: block;
  margin: 0 auto;
}

.triennale--main {
  padding: 0;
}

.triennale--main__item {
  padding: var(--section-padding-phone);
}

.triennale--main__nav ul:first-of-type {
  margin-block-end: 1em;
}

.footer {
  padding: 50px 30px 50px 30px;
  gap: 100px;
  align-items: center;
}

.shopify-buy-frame--product {
  padding: 90px 30px;
  border-bottom: 1px solid #000;
}

.shopify-buy-frame--product:last-child {
  border-bottom: none;
}

.shopify-buy__cart-toggle {
  padding: 1em 0;
}

.shopify-buy__cart-toggle,
.shopify-buy__btn {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.shopify-buy__product-img-wrapper {
  text-align: center;
}

.shopify-buy__product__variant-img {
  margin-bottom: 90px;
  max-width: 100%;
  max-height: 40vh;
}

.shopify-buy__product-description,
.shopify-buy__product__variant-selectors,
.shopify-buy__product__price,
.shopify-buy__btn {
  margin-top: 1em;
}

.shopify-buy__product__price,
.shopify-buy__btn {
  font-weight: 700;
}

.shopify-buy__product__price {
  color: #00ff00;
}

.sold-out .shopify-buy__product__actual-price {
  color: #ff0000;
}

.shopify-buy__cart-toggle:hover,
.shopify-buy__btn:hover,
.shopify-buy__btn-disabled {
  text-decoration: none;
}

.shopify-buy__btn-disabled {
  cursor: auto;
}

.hide-on-phone,
.hidden,
.visuallyhidden,
.shopify-buy__select-icon {
  display: none;
}

@media screen and (min-width:764px) {
  .hide-on-phone { display: block }
  .border--phone { border-bottom: 0 }

  .nav {
    width: calc(50% - 75px);
    top: 50px;
    right: 50px;
  }

  #overlay__close {
    position: sticky;
    top: 20px;
    left: 20px;
  }

  #overlay__content {
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .dashboard { padding-top: 36px;}

  .section {
    padding: var(--section-padding-desktop);
  }

  .home-header {
    padding: 270px 0 235px 355px;
    text-align: left;
  }

  .syb-logo img {
    width: 73px;
  }

  .home-announcement {
    padding:100px 70px 100px 70px;
  }

  .home-cover {
    gap: 275px;
  }

  .cover {
    padding: 55px 50px 170px 50px;
    row-gap: 125px;
  }
  
  .cover__image {
    height: 450px;
    width: auto;
  }

  .cover__image--left { padding-left: 85px; }
  .cover__image--right { text-align: right; }

  .grid--2 { 
    grid-template-columns: repeat(2, 1fr); 
    gap:50px; 
  }

  .grid--2__left {
    grid-row:1/2;
    grid-column:1/3;
  }

  .grid--2__right {
    grid-row: 1/2;
    grid-column: 2/3;
    margin-left: auto;
  }

  .grid--2__right .gallery {
    border: 0;
  }

  .grid--3 { 
    grid-template-columns: repeat(3, 1fr); 
    grid-auto-rows: 1fr;
    overflow: hidden;
  }

  .grid__item {
    padding: 90px 50px;
    border-right: var(--border);
  }

  .grid__item:nth-child(3n) {
    border-right: 0;
  }

  .grid--shop { 
    grid-template-columns: repeat(2, 1fr); 
  }

  .gallery {
    max-width: 500px;
  }

  .narrow {
    padding-right: 60%;
  }

  .triennale{ 
    grid-template-columns: repeat(2, 1fr); 
    gap:50px; 
  }

  .triennale--header {
    text-align: left;
  }

  .triennale--header__logo img {
    width: auto;
    max-height: 220px;
  }

  .triennale--main__item {
    padding: 0;
    border: 0;
  }

  .footer {
    padding: var(--section-padding-desktop);
  }

  .footer__left {
    grid-column: 2/3;
  } 

  .medium-zoom-overlay { z-index: 2000; }
  .medium-zoom-image { z-index: 2001; }

  .medium-zoom-image--opened {
    padding: 40px !important;
  }

  .zoom-caption {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 2002;
    text-align: center;
    padding: 0 8px;
  }

  .zoom-caption {
      max-width: 90%;
      padding: 0;
  }

  .zoom-caption.visible {
    display: block;
  }

  .shopify-buy-frame--product {
    padding: 90px 50px;
    border-right: var(--border);
  }

  .shopify-buy-frame--product:nth-child(odd):nth-last-child(2) {
    border-bottom: none;
  }

  .shopify-buy__product__variant-img {
      max-width: 75%;
      max-height: calc(40vw - 100px);
  }

  .hide-on-desktop { display: none; }
}