@font-face {
  font-family: 'Front Room';
  src: url('../fonts/FrontRoom.woff2') format('woff2');
  font-display: block;
  font-weight: normal;
}
@font-face {
  font-family: 'Kitchen';
  src: url('../fonts/Kitchen.woff2') format('woff2');
  font-display: block;
  font-weight: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
}
*::-webkit-scrollbar { display: none }

:root {
  --fontfr: 1.5rem;
  --fontk: calc(var(--fontfr) * 1.1);
  --leading: 1.5;

  --space: 2.25rem;
  --spaceXS: calc(var(--space) / 3);
  --spaceS: calc(var(--space) / 2);
  --spaceL: calc(var(--space) * 2);
  --spaceXL: calc(var(--spaceL) * 4);
  --marginTop: 6.25rem;
  --kitchen: #f5afc3;
}

html { font-size: 62.5% }
body { 
  -webkit-font-smoothing: antialiased;
  overflow: auto;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: calc(var(--space) - 3px) var(--space) var(--space);
  font-family: 'Front Room', sans-serif;
  font-size: var(--fontfr);
}
nav a {
  text-decoration: none;
  color: black;
}
nav a:hover {
  opacity: .5;
}
nav ul {
  display: flex;
  gap: var(--spaceS);
  list-style-type: none;
}
nav > a:last-of-type {
  font-family: 'Kitchen', sans-serif;
  font-size: var(--fontk);
}
.mobile {
  display: none;
}
.desktop {
  display: inline;
}

main:not(.kitchen) {
  background: white;
}

.exhibitions {
  width: 100%;
  height: auto;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: max-content;
  gap: var(--space);
  padding: var(--marginTop) var(--space) var(--space);
}
.exhibitions a:hover {
  opacity: .5;
}
.exhibitions figure {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exhibitions a {
  width: 100%;
}
.exhibitions img {
  width: 100%;
  height: auto;
  display: block;
}

.exhibition {
  height: 100dvh;
  display: flex;
  overflow: auto;
}
.exhibition figure {
  display: flex;
  align-items: center;
  justify-content: center;
}
.exhibition img {
  max-height: 100dvh;
  width: auto;
  display: block;
}

.kitchen { 
  background: var(--kitchen);
}
.kitchen .invitation { 
  mix-blend-mode: darken;
}

.socialsnaps .size, 
.socialsnaps figure {
  width: 25%;
}
.socialsnaps .landscape {
  width: 50%;
}
.socialsnaps img {
  width: 100%;
  height: auto;
  display: block;
}

.visitorbook {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}
.visitorbook figure {
  width: 100%;
}
.visitorbook img {
  width: 100%;
  height: auto;
  display: block;
}

.press {
  overflow: auto;
}
.press figure {
  display: flex;
  align-items: center;
  justify-content: center;
}
.press img {
  max-width: 100%;
  height: auto;
  display: block;
}

.about {
  padding: var(--marginTop) var(--space) var(--space);
  font-family: 'Front Room', sans-serif;
  font-size: var(--fontfr);
  line-height: var(--leading);
}
.about > * {
  max-width: 62ch;
  margin: 0 auto;
}
.about > p + * {
  margin-top: var(--space);
}
.about .funding img {
  height: 5.8rem;
  margin-top: var(--spaceS);
  width: auto;
}


html.is-changing .transition-default {
  transition: opacity 200ms ease-in-out;
}
html.is-animating .transition-default {
  opacity: 0;
}


@media (max-width: 1280px) {
  .exhibitions {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width: 768px) {
  .exhibitions {
    grid-template-columns: repeat(2, 1fr);
  }
  .visitorbook {
    grid-template-columns: 1fr;
  }
  .about {
    font-size: var(--fontfr);
  }
}

@media (max-width: 640px) {
  .exhibitions {
    grid-template-columns: 1fr;
  }
  .exhibitions.frontroom {
    row-gap: var(--spaceXL);
  }
  .exhibitions figure {
    aspect-ratio: unset;
    height: auto;
  }

  .socialsnaps .size, 
  .socialsnaps figure {
    width: 50%;
  }
  .socialsnaps .landscape {
    width: 100%;
  }
}

@media(max-width: 460px) {
  .mobile {
    display: inline;
  }
  .desktop {
    display: none;
  }
  nav {
    padding: calc(var(--space) - 3px) var(--spaceS) var(--space);
    gap: var(--spaceXS);
  }
  nav * {
    letter-spacing: -.02rem;
  }
  nav > * {
    flex-grow: 0;
  }
  nav > a:last-of-type {
    text-align: right;
  }
  nav ul {
    gap: var(--spaceXS);
    justify-content: space-between;
  }

  .about {
    padding: var(--marginTop) var(--spaceS) var(--space);
  }
}

@media (orientation: portrait) {
  .exhibition {
    width: 100%;
    height: auto;
    flex-direction: column;
  }
  .exhibition img {
    width: 100vw;
    height: auto;
    max-height: unset;
  }
}