@font-face {
  font-family: "tomica";
  src: url("../fonts/tomica/tomicaregular-webfont.woff2");
}
:root {
  --font-size: 15px;
  --line-height: 20px;
  --padding: var(--line-height);
  --margin-img: var(--line-height);
  --middle-img: 25vw;
  --landscape-img: 10vw;
  --portrait-img: calc(var(--landscape-img) / 3 * 2);
  --big-img: calc(33vw - var(--line-height) * 1);
  --column-count: 16;
  --slider-height: var(--big-img);
  --underline-thickness: 1px;
  --text-column-width: 7;
  --nav-width: 3;
  /* COLORS */
  --black: #000;
  --brown: #a09473;
  --green: #366735;
  --light-brown: #eae6dc;
}

/* GRID */
.next {
  display: inline-block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--column-count), 1fr);
  column-gap: var(--line-height);
}

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

.honeypot {
  position: absolute;
  left: -9999px;
}

body.partners .part:not(:last-child),
body.contact .part:not(:last-child),
body.atelier .part:not(:last-child) {
  margin-bottom: calc(var(--line-height) * 1);
}
body.partners h2,
body.contact h2,
body.atelier h2 {
  color: var(--brown);
  margin-bottom: var(--line-height);
  grid-column: span var(--column-count);
}

/* LINKS */
header.project-header a,
a {
  color: var(--brown);
  text-decoration: none;
}

.filter .not-current a,
header a {
  color: var(--green);
}

/* TEXT */
.text p:not(:last-child),
.text ul:not(:last-child) {
  margin-bottom: var(--line-height);
}

/* GENERAL */
html {
  scrollbar-gutter: stable;
}

p:not(:last-child) {
  margin-bottom: var(--line-height);
}

body {
  font-family: "tomica";
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--green);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: none;
  background: #FFF;
}

main {
  padding: var(--line-height);
  padding-top: calc(var(--line-height) * 0);
  min-height: calc(100vh - var(--line-height) * 11);
  min-height: calc(100dvh - var(--line-height) * 11);
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  padding: var(--padding);
  background: #FFF;
  width: 100%;
  z-index: 99;
  display: grid;
  grid-template-columns: repeat(var(--column-count), 1fr);
  column-gap: var(--line-height);
}
header .subnav,
header nav {
  grid-column: span var(--nav-width);
}
header .subnav a,
header nav a {
  display: block;
}

footer {
  padding: var(--padding);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--column-count), 1fr);
  column-gap: var(--line-height);
}
footer a {
  color: var(--green);
}
footer > div {
  grid-column: span 3;
}

#logo {
  height: calc(var(--line-height) * 2);
}

#close {
  position: fixed;
  right: 0;
}
#close img {
  background-color: white;
  height: calc(var(--line-height) * 1);
}

.caption {
  position: absolute;
  background-color: white;
  width: var(--middle-img);
}
.caption .titles > * {
  display: inline;
}
.caption .titles > *:not(:last-child)::after {
  content: ",";
}

.filter:nth-child(5) {
  grid-column: 9/span 2;
}

.images .filter:nth-child(5) {
  grid-column: 11/span 2;
}

.filter {
  grid-column: span 2;
}

a.current,
.part-link.current,
.filter .current a,
.filter .current {
  color: var(--brown);
}

nav a.current::before,
.filter .current::before {
  margin-left: -0.85em;
  width: 0.85em;
  display: inline-block;
  position: absolute;
}

/* SLIDER */
.top-arrow {
  grid-column: 2;
  text-align: center;
  width: 100%;
  font-size: 2em;
}

.mini-slider {
  margin: 0 var(--margin-img);
}

.current-project {
  padding-top: var(--padding);
}

/* PROJECTS */
.all-projects[data-presentation=images] a,
.all-projects[data-presentation=images] figure {
  display: inline-block;
}
.all-projects[data-presentation=images] > a {
  margin-right: var(--margin-img);
  margin-bottom: var(--margin-img);
}
.all-projects[data-presentation=images] .project-item {
  display: inline-block;
  margin-right: var(--line-height);
  margin-bottom: calc(var(--line-height) * 4);
}
.all-projects[data-presentation=images] figure.middle img {
  width: var(--middle-img);
}
.all-projects[data-presentation=images] figure.middle.portrait img,
.all-projects[data-presentation=images] figure.middle.square img {
  width: calc(var(--middle-img) / 3 * 2);
}
.all-projects[data-presentation=images] figure.small.landscape img {
  width: var(--landscape-img);
}
.all-projects[data-presentation=images] figure.small.square img,
.all-projects[data-presentation=images] figure.small.portrait img {
  width: var(--portrait-img);
}
.all-projects[data-presentation=images] .project-item:not(.hover) figure.small {
  opacity: 0;
}

.all-projects[data-presentation=liste] {
  padding: 0;
  margin: 0 calc(var(--padding) * -1);
}
.all-projects[data-presentation=liste] .project-line:first-child {
  border-top: solid var(--underline-thickness) var(--green);
}
.all-projects[data-presentation=liste] .project-line {
  padding: var(--padding);
  border-bottom: solid var(--underline-thickness);
}
.all-projects[data-presentation=liste] .project-line .cat, .all-projects[data-presentation=liste] .project-line .place {
  grid-column: span 2;
}
.all-projects[data-presentation=liste] .project-line .last-mini,
.all-projects[data-presentation=liste] .project-line .mini {
  height: calc(var(--line-height) * 3);
}
.all-projects[data-presentation=liste] .project-line .last-mini img,
.all-projects[data-presentation=liste] .project-line .mini img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.all-projects[data-presentation=liste] .project-line .last-mini {
  display: none;
}
.all-projects[data-presentation=liste] .project-line .subtitle {
  grid-column: span 6;
}
.all-projects[data-presentation=liste] .project-line .subtitle .place,
.all-projects[data-presentation=liste] .project-line .subtitle .title {
  display: none;
}

/* PROJECT */
.titles {
  grid-column: span 3;
}
.titles .details {
  display: none;
  margin-top: var(--line-height);
}

.details {
  grid-column: span 2;
}

.about-project {
  margin-bottom: var(--line-height);
}

.has-text {
  grid-column: span var(--text-column-width);
}
.has-text h2:not(:last-child),
.has-text p:not(:last-child),
.has-text ul:not(:last-child) {
  margin-bottom: var(--line-height);
}

body.atelier .has-text,
body.partners .has-text {
  grid-column: 1/calc(var(--text-column-width) + 1);
}

.extra-items span:not(:last-child)::after,
.prizes span:not(:last-child)::after,
.project-team span:not(:last-child)::after {
  content: ",";
}

.extra-items > span:last-child::after,
.prizes > span:last-child::after,
.project-team > span:last-child::after {
  content: ".";
}

.extra-items {
  margin-bottom: var(--line-height);
}

.prizes {
  margin-top: var(--line-height);
}

/* SLIDER */
body.partners .intro {
  margin-bottom: var(--line-height);
}
body.partners .partner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: var(--green);
  grid-column: span 2;
}
body.partners .partner figure {
  height: calc(150px + var(--line-height));
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
}
body.partners .partner figure figcaption {
  width: 100%;
  text-align: center;
  align-self: flex-end;
  position: absolute;
  bottom: calc(var(--line-height) * -1);
}
body.partners .partner figure > div {
  background-color: var(--green);
  display: inline-block;
}
body.partners .partner figure > div > div {
  mix-blend-mode: screen;
}
body.partners .partner figure > div > div img {
  filter: grayscale(100%);
  background-color: white;
  display: block;
  max-width: 100%;
}
body.partners .partner img:not(.landscape) {
  width: 100px;
}
body.partners .partner img.landscape {
  width: 150px;
}
body.partners .logos {
  grid-column: span var(--column-count);
  display: grid;
  grid-template-columns: repeat(var(--column-count), 1fr);
  column-gap: var(--line-height);
  width: 100%;
}

.partners-header,
.project-header {
  --margin: calc((100% / var(--column-count) - var(--line-height)) * var(--nav-width) + var(--line-height) * (var(--nav-width) + var(--column-count) / 100));
  margin-left: var(--margin);
  width: calc(100% - var(--margin));
  grid-template-columns: repeat(calc(var(--column-count) - var(--nav-width)), 1fr);
  padding: 0;
  padding-bottom: var(--padding);
  position: sticky;
  top: var(--line-height);
  z-index: 99999;
  background: none;
}

body.has-project > header,
body.project > header {
  position: fixed;
  top: 0;
}

body.projects:not(.has-project) #project {
  display: none;
}

body.projects.has-project main .filters,
body.projects.has-project main .filter,
body.projects.has-project > header .filters,
body.projects.has-project > header .filter {
  display: none;
}
body.projects.has-project .all-projects {
  display: none;
}
body.projects.has-project #project {
  display: block;
}

body.contact main {
  display: grid;
  grid-template-columns: repeat(var(--column-count), 1fr);
  column-gap: var(--line-height);
}
body.contact main .form-about label {
  display: block;
  margin-bottom: calc(var(--line-height) / 4);
}
body.contact main .form-about label,
body.contact main .form-about input:not([type=submit]),
body.contact main .form-about textarea {
  width: 100%;
}
body.contact main input,
body.contact main textarea {
  padding: calc(var(--line-height) / 4);
  font-family: "tomica";
  border: none;
  outline: solid var(--underline-thickness) var(--green);
  font-size: var(--font-size);
  line-height: var(--line-height);
}
body.contact main input[type=submit] {
  background: var(--green);
  color: white;
}
body.contact main textarea {
  resize: none;
  min-height: calc(var(--line-height) * 15);
}
body.contact main textarea:focus,
body.contact main input:focus {
  outline: solid var(--underline-thickness) green;
}
body.contact main .field {
  margin-bottom: calc(var(--line-height) * 1.5);
}

body.atelier {
  --member-picture-height: calc(25vw - var(--line-height) * 3);
}
body.atelier main {
  align-items: start;
  align-content: start;
}
body.atelier main .part:not(.has-text) {
  grid-column: span var(--column-count);
}
body.atelier main .part {
  width: 100%;
}
body.atelier main .member {
  grid-column: span 4;
  overflow: hidden;
}
body.atelier main .content {
  display: grid;
  grid-template-columns: repeat(var(--column-count), 1fr);
  column-gap: var(--line-height);
}
body.atelier main figure.empty {
  background: var(--light-brown);
  width: 100%;
}
body.atelier main figure {
  position: relative;
  grid-column: span 2;
  display: inline-block;
  height: var(--member-picture-height);
  margin-bottom: var(--line-height);
  width: 100%;
}
body.atelier main figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.atelier main img.overlay {
  opacity: 0;
  top: 0;
  position: absolute;
}
body.atelier main h3 {
  margin-bottom: var(--line-height);
}
body.atelier .press ul li span:not(:last-child)::after {
  content: ",";
}
body.atelier .press ul li span:last-child::after {
  content: ".";
}
body.atelier .member:not(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(4)) {
  margin-top: var(--line-height);
}

body.home main > a {
  grid-column: 1/-1;
}
body.home main > a img {
  max-width: 100%;
  max-height: calc(100dvh - var(--line-height) * 10);
}

@media (min-width: 1000px) and (hover: hover) {
  .current-project {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    align-items: space-between;
  }
  #outerslider {
    z-index: 9;
    width: calc(100vw + var(--padding) * 2);
    margin: 0 calc(var(--padding) * -1);
    overflow: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    user-select: none;
  }
  #outerslider::-webkit-scrollbar {
    display: none;
  }
  .direction {
    position: absolute;
    padding: calc(var(--slider-height) / 5 * 2) var(--padding) calc(var(--slider-height) / 5 * 3);
    z-index: 99999;
  }
  #direction-right {
    right: 0;
  }
  #direction-left {
    left: 0;
  }
  #direction-left .arrow img {
    transform: scale(-1, -1);
  }
  .arrow img {
    height: calc(var(--line-height) * 1.5);
  }
  .slider {
    width: 1000%;
    padding: 0 calc(var(--padding) * 1);
    padding-top: calc(var(--line-height) * 2);
  }
  .slider .wrapper {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: flex-end;
    align-content: flex-end;
    height: var(--slider-height);
  }
  .slider .slide.active .small img,
  .slider .slide:not(.active) .big img {
    opacity: 0;
    position: absolute;
    z-index: -1;
    width: 0;
    height: 0;
  }
  .slider .slide img {
    max-height: var(--big-img);
    max-width: 80vw;
    display: block;
  }
  #counter {
    position: absolute;
    padding: 0 var(--line-height);
    right: 0;
  }
  .slide {
    margin-right: var(--line-height);
  }
  .slide img {
    display: block;
  }
  .slide.active:first-child {
    margin-left: calc(var(--line-height) * 3.5);
  }
  .slide:not(.active) {
    height: unset;
  }
  .slide:not(.active) img {
    min-height: 10px;
  }
  .slide:not(.active) .portrait img {
    width: var(--portrait-img);
  }
  .slide:not(.active) .square img,
  .slide:not(.active) .landscape img {
    width: var(--landscape-img);
  }
}

/*# sourceMappingURL=main.css.map */
