
@media only screen and (max-width: 1950px) {
  :root {
    --unity: 12px;
    --scale: 6;
  }
}

@media only screen and (max-width: 1800px) {
  section#thumbnails > * {
    width: 6.94%;
    height: 9.72vw;
  }
}

@media only screen and (max-width: 1600px) {
  section#thumbnails > * {
    width: 8.13%;
    height: 11.38vw;
  }
}

@media only screen and (max-width: 1400px) {
  section#thumbnails > * {
    width: 9.8%;
    height: 13.72vw;
  }
}

@media only screen and (max-width: 1200px) {
  section#thumbnails > * {
    width: 12.3%;
    height: 17.22vw;
  }
}


@media only screen and (max-width: 950px) {

  :root {
    --unity: 13px;
  }

  section#tagList {
    line-height: 22px;
    height: 100vh;
    max-height: none;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 2px;
    position: fixed;
    width: 85vw;
    border-left: 1px solid;
    background-color: white;
  }

  #title {
    left: 2px;
    top: 2px;
  }

  section#tagList li#clear {
    position: fixed;
    bottom: 0;
    top: unset;
    right: unset;
    padding: 2px;
    left: calc(85vw + 4px);
    width: 100%;
  }

  section#tagList.on {
    margin-left: 15vw;
    transition: ease-in-out margin-left 0.2s;
  }

  section#tagList.off {
    margin-left: 85vw;
    transition: ease-in-out margin-left 0.2s;
  }

  section#tagList.on #clear{
    left: calc(15vw + 4px);
    transition: ease-in-out left 0.2s;
  }

  section#tagList ul {
    margin: 0;
    padding: 0 0 26px 0;
  }

  section#tagList li {
    display: block;
    margin-left: 0 !important;
  }

  section#tagList.on li {
    margin-left: initial !important;
  }

  section#tagList li:nth-last-of-type(2) {
    margin-right: unset;
}

  section#thumbnails {
    top: 0;
    width: 85%;
  }

  section#thumbnails > * {
    width: 16.26%;
    height: 19.273vw;
    margin: 0.2vw 0.2%;
  }

  section#thumbnails .notImage span {
    font-size: calc(var(--unity)+3px);
  }

  section#pictures .project {
    background: black;
    display: flex;
    flex-direction: column;
  }

  section#pictures .project .infos {
    height: auto;
    bottom: 0px;
    z-index: 10;
    left: 1vw;
    padding: 0;
    margin: 10px 0 0 10px;
    max-height: 21vh;
    column-count: 2;
    overflow-y: scroll;
  }

  section#pictures .project .mediaContainer .allInfos {
    width: 100%;
  }

  section#pictures .project .mediaContainer .allInfos h2 {
    word-break: break-all;
    padding-left: 10px;
    padding-right: 10px;
  }

  section#pictures .project .mediaContainer,
  section#pictures .next-project .mediaContainer {
    width: 90vw;
    height: 70vh;
    flex-direction: column;
  }

  section#pictures .project .mediaContainer .non-image {
    width: 48vw;
    height: 68vw;
  }

  section#pictures .project .mediaContainer .non-image span {
    transform: scaleY(calc(var(--scale) / 1.5));
  }

  section#pictures .next-project {
    background-color: grey;
    width: 9vw;
  }

  section#pictures .project .infos li {
    font-size: calc(var(--unity) * 1.4);
    background: black;
    color: white;
    line-height: calc(var(--unity) * 1.5);
    flex-direction: row;
    width: auto;
  }

  section#pictures .project .close {
    top: auto;
    bottom: 0;
    right: 9vw;
    z-index: 13;
    position: fixed;
  }

  #image-title {
    display: none;
  }

}

@media only screen and (max-width: 800px) {
  section#thumbnails > * {
    width: 24.6%;
    height: 29.19vw;
  }
}

@media only screen and (max-width: 500px) {
  section#thumbnails > * {
    width: 32.93%;
    height: 39.10vw;
  }
}

