
@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;
  }

  html, body { height: 100vh; }

  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%;
    border: 1px solid;
  }

  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: 2px 0;
    box-shadow: none;
    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 {
    height: 100dvh;
    overflow: hidden;
  }

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

  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: 100vw;
    height: 70vh;
    flex-direction: column;
  }

  section#pictures .next-project .mediaContainer {
    display: none;
  }

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

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

  section#pictures .project .mediaContainer h2 + a {
    display: none;
  }

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

  section#pictures .next-project:hover,
  section#pictures .next-project .box:hover {
    background-color: black;
  }

  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,
  section#pictures .next-project #next {
    top: unset;
    bottom: 1dvh;
    z-index: 13;
    position: absolute;
    transform: none;
  }

  section#pictures .project .close {
    left: 10px;
    right: unset;
  }
  section#pictures .project .close .box{
    transform: none;
  }

  section#pictures .project .box:hover{
    background-color: black;

  }

  section#pictures .next-project #next {
    right: 10px;
    display: flex;
  }

  #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;
  }
}

