*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  margin-block-end: 0;
}

body {
  min-height: 100vh;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

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

input,
button,
textarea,
select {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: 0 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
}

iframe {
  border: 0;
}
/**********************

	Fonts

***********************/
@font-face {
  font-family: "Herthey";
  src:
    url("fonts/BBB-Herthey-Futural-40.woff2") format("woff2"),
    url("fonts/BBB-Herthey-Futural-40.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Herthey";
  src:
    url("fonts/BBB-Herthey-Futural-95.woff2") format("woff2"),
    url("fonts/BBB-Herthey-Futural-95.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrainsMono";
  src:
    url("fonts/JetBrainsMono-Regular.woff2") format("woff2"),
    url("fonts/JetBrainsMono-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/**********************

	Global vars

***********************/
:root[data-theme="dark"] {
  color-scheme: dark;
  --light: ;
  --dark: initial;
}

:root[data-theme="light"] {
  color-scheme: light;
  --light: initial;
  --dark: ;
}

:root {
  --base0: rgb(0, 0, 7);
  --base01: rgb(15, 15, 22);
  --base70: rgb(190, 190, 202);
  --base100: rgb(250, 250, 255);

  --electricBlue: rgb(0, 0, 255);
  --magenta: rgb(255, 0, 255);
  --cyan: rgb(0, 255, 255);

  --background: var(--light, var(--base100)) var(--dark, var(--base01));
  --textcolor: var(--light, var(--base0)) var(--dark, var(--base100));
  --contrast: var(--magenta);

  /* --text-padding: 0.3em 0.5em 0.4em; */
  /* --letter-spacing: 0.01em; */

  --tiny-margin: calc(var(--small-margin) / 2);
  --small-margin: 18px;
  --med-margin: 48px;
  --big-margin: 96px;
  --xxl-margin: 120px;

  /* --p-top-scroll: calc(24px + 4rem); */

  /* --content-left-margin: var(--small-margin); */

  /* --ratio: 21/9; */

  font-size: 14px;
  --huge-font-size: calc(1rem + 3.885vw);
  --title: calc(1rem + 2.5vw);
  --subtitle: calc(1rem + 2.475vw);
  --base-font-size: calc(1rem + 0.485vw);
  --small-font-size: calc(1rem + 0.085vw);
  --tiny-font-size: calc(1rem + 0.025vw);
  --note: 1rem;
}

/**********************

	GLOBAL RULES

***********************/
* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

html {
  font-size: 100%;
}

body {
  background-color: var(--background);
  color: var(--textcolor);
  font-family: "Herthey";
  font-weight: 400;
  font-feature-settings: "ss01";
  text-rendering: geometricPrecision;
  transition: background-color 0.3s linear;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  /* letter-spacing: var(--letter-spacing); */
  margin: 0;
}

p,
li {
  line-height: 1.4;
  letter-spacing: normal;
}

strong {
  font-weight: 700;
}

small {
  display: block;
  font-size: 0.875em;
  padding-left: 1em;
  padding-right: 4em;
}

p + p {
  margin-top: 1em;
}

a {
  display: inline-block;
  color: currentColor;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    padding 0.3s ease;
}

pre {
  font-family: "JetBrainsMono";
  line-height: 1.31;
  letter-spacing: -0.005em;
}

.main li > a:not(.glightbox),
footer.footer li > a,
span > a,
strong > a,
p > a {
  display: inline;
  border-bottom: 0.1em solid currentColor;
}

.main li > a:not(.glightbox):hover,
footer.footer li > a:hover,
span > a:hover,
strong > a:hover,
p > a:hover {
  color: var(--magenta);
}

blockquote > p::before,
q::before {
  content: "«\0000A0";
}

blockquote > p::after,
q::after {
  content: "\0000A0»";
}

mark {
}

button {
  background-color: transparent;
  padding: 0;
  border-width: 0;
}

ul,
li {
  list-style: none;
  padding: 0;
}

figure {
  display: flex;
  flex-direction: column;
}

figure > img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

figure > figcaption {
}

figure > figcaption,
figure > figcaption > p {
  line-height: 1.4;
  font-size: var(--note) !important;
}

.btn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  background-color: var(--background);
  color: var(--textcolor);
  font-weight: 700;
  font-size: var(--font-size);
  line-height: 1.5;
  letter-spacing: var(--letter-spacing);
  text-transform: uppercase;
  padding: 1em 1.5em;
  border-top-left-radius: 1em;
  border-bottom-right-radius: 1em;
  border-bottom-width: 0;
  transition:
    background-color 0.3s ease,
    padding 0.3s ease;
}

/**********************

	BUTTON DARK / LIGHT MODE

***********************/
#themeSwitch {
  position: fixed;
  bottom: var(--small-margin);
  right: var(--small-margin);
  cursor: pointer;
  transition: transform 1s ease;
  z-index: 1001;
}

[data-theme="dark"] #themeSwitch {
  transform: rotate(180deg);
}

/* #themeSwitch::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--contrast);
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  transition: transform 0.3s ease, opacity 0.2s ease;
} */

[data-theme="dark"] #themeSwitch::after {
  top: 0;
}

#themeSwitch:hover {
  transform: rotate(10deg);
}

[data-theme="dark"] #themeSwitch:hover {
  transform: rotate(190deg);
}

#themeSwitch:hover::after {
  transform: translateY(5px) rotate(-10deg);
  opacity: 1;
}

[data-theme="dark"] #themeSwitch:hover::after {
  transform: translateY(-5px) rotate(-10deg);
  opacity: 1;
}

#themeSwitch {
  height: 32px;
  width: 32px;
  background-image: linear-gradient(
    90deg,
    var(--base100),
    var(--base100) 50%,
    var(--base0) 50%,
    var(--base0) 100%
  );
  border-radius: 50%;
  outline: 1px solid var(--textcolor);
}

/**********************

	MENU BURGER

***********************/
/* #burgerSvg {
  position: fixed;
  bottom: var(--small-margin);
  left: var(--small-margin);
  height: 44px;
  outline: 1px solid var(--cyan);
  cursor: pointer;
  display: none;
}

#burgerSvg::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

#burgerSvg > svg,
#burgerSvg > svg path {
  transition: filter 0.3s ease, fill 0.3s ease;
} */

/* #burgerSvg:hover > svg {
  filter: drop-shadow(0 4px 0 var(--cyan));
} */

/* #burgerSvg:hover #console-bottom-line,
#console-arrow-bottom {
  transition: fill 0.3s ease;
}

#burgerSvg:hover #console-arrow-top,
#burgerSvg:hover #console-bottom-line {
  fill: var(--cyan) !important;
} */

/* #burgerMenu:hover::after {
  transform: translateY(5px);
  opacity: 1;
} */

#burgerMenu {
  position: fixed;
  bottom: var(--small-margin);
  left: var(--small-margin);
  width: 60px;
  height: 44px;
  cursor: pointer;
  z-index: 1001;
}

#burgerMenu span {
  position: absolute;
  height: 12px;
  width: 35px;
  border-radius: 6px;
  outline: 1px solid var(--base0);
  transition:
    width 0.3s ease,
    transform 1s ease,
    background-color 0.3s ease,
    left 0.3s ease,
    top 0.7s ease;
}

#burgerMenu span:nth-child(1),
#burgerMenu span:nth-child(3) {
  background-color: var(--base70);
}

#burgerMenu span:nth-child(1) {
  top: 0;
  left: 0;
  transform: rotate(30deg);
  transform-origin: 6px 6px;
}

#burgerMenu.close span:nth-child(1) {
  transform: rotate(45deg);
}

#burgerMenu span:nth-child(2) {
  top: 0;
  left: 0;
  background-color: var(--base100);
  mix-blend-mode: multiply;
  transform: rotate(-30deg);
  transform-origin: 49.5px 17.5px;
}

#burgerMenu.close span:nth-child(2) {
  top: -17.5px;
  left: -4.5px;
  transform: rotate(-45deg);
}

#burgerMenu span:nth-child(3) {
  bottom: 0;
  right: 0;
}

#burgerMenu.close span:nth-child(3) {
  transform: scale(0);
}

#burgerMenu:hover span:nth-child(1),
#burgerMenu:hover span:nth-child(3) {
  background-color: var(--contrast);
}

#burgerMenu:hover span:nth-child(1),
#burgerMenu:hover span:nth-child(2) {
  left: 5px;
}

#burgerMenu.close:hover span:nth-child(2) {
  left: 0.5px;
}

#burgerMenu:hover span:nth-child(3) {
  width: 30px;
}

/**********************

	MENU - TAGS

***********************/
.main-navigation {
  position: relative;
  display: flex;
  flex-direction: column;
  font-size: var(--title);
  padding: var(--small-margin);
}

.site-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--small-margin);
  /* opacity: 0;
  filter: blur(10px); */
  pointer-events: none;
  /* transition: opacity 0.3s 0s linear, filter 0.3s 0s linear; */
  transition: background-color 0.3s 0s linear;

  /* display: none; */
  z-index: 1001;
}

.site-navigation.reveal {
  background-color: var(--background);
  transition: background-color 0.3s 0.5s linear;
  pointer-events: initial;
  /* opacity: 1;
  filter: blur(0);
  transition: opacity 0.3s 0.4s linear, filter 0.3s 0.4s linear; */
}

.navList {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.85em;
  font-size: var(--title);
}

.navList.menuList {
  max-height: 10.2em;
  transition: max-height 1.5s ease-out;
}

.main-navigation.closeTags .navList.menuList {
  max-height: 1em;
  transition: max-height 1.2s 0.4s ease-out;
}

.navList.siteList {
  flex-direction: column;
}

.navList li {
  height: 1.2em;
  line-height: 1.2;
  overflow: hidden;
  transition:
    opacity 0.3s 0.4s linear,
    filter 0.8s 0.4s ease;
}

.navList.siteList li {
  opacity: 0;
  transition:
    opacity 0.3s 0s linear,
    filter 0.8s 0s linear;
}

.navList.siteList li:not(.home) {
  filter: blur(10px);
}

.site-navigation.reveal .siteList li {
  opacity: 1;
}

.site-navigation.reveal .siteList li:not(.home) {
  filter: blur(0);
  transition:
    opacity 0.3s 0.4s linear,
    filter 0.8s 0.4s linear;
}

.main-navigation.hide .menuList > li:not(.home),
.main-navigation.closeTags .menuList > li:not(.home) {
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  transition:
    opacity 0.3s 0.4s linear,
    filter 0.8s 0.4s ease;
}

/* .main-navigation.hide .menuList > li {
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
} */

.navList li > a {
  font-size: var(--title);
  transition: color 0.3s ease;
}

.navList li > a.active,
.navList li > a:hover {
  color: var(--base70);
}

.navList li.home {
  z-index: 1001;
}

.navList li.home > a > span {
  font-weight: 700;
}

#buttonTags {
  position: absolute;
  bottom: 0;
  right: var(--small-margin);
  /* font-weight: 700; */
  font-size: var(--small-font-size);
  cursor: pointer;
  transition:
    opacity 0.3s ease,
    transform 1s ease,
    bottom 1s ease;
  z-index: 800;
}

.main-navigation.hide #buttonTags,
.main-navigation.closeTags #buttonTags {
  bottom: calc(80% - var(--small-margin));
  transform: rotate(180deg);
}

.main-navigation.hide #buttonTags {
  opacity: 0;
}

#buttonTags::after {
  content: "";
  position: absolute;
  /* bottom: 0;
  left: 0;
  width: 100%; */
  bottom: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: var(--base70);
  border-radius: 50%;
  /* opacity: 0; */
  transform: translateX(-50%);
  z-index: -1;
  transition:
    width 0.5s ease,
    background-color 0.3s ease,
    transform 0.3s ease,
    opacity 0.2s ease;
}

.main-navigation.closeTags #buttonTags::after {
  top: -10px;
  bottom: auto;
}

#buttonTags:hover {
  transform: translateY(-5px);
}

#buttonTags:hover::after {
  /* transform: translateY(5px); */
  /* opacity: 1; */
  width: 100%;
  background-color: var(--contrast);
  transform: translateX(-50%) translateY(5px);
}

.main-navigation.closeTags #buttonTags:hover {
  transform: rotate(180deg) translateY(-5px);
}

.main-navigation.closeTags #buttonTags:hover::after {
  transform: translateX(-50%) translateY(-5px);
  opacity: 1;
}

/**********************

	MENU - BUTTONS

***********************/
.buttonList {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tiny-margin);
  align-items: center;
  margin-bottom: var(--tiny-margin);
}

button.sort {
  cursor: pointer;
}

button.sort span,
button.sort svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

button.sort svg path {
  transition: color 0.3s ease;
}

button.sort:hover svg path {
  color: magenta;
}

/**********************

	MAIN CONTENT

***********************/
.main {
  margin-bottom: var(--xxl-margin);
}

body.projet .main {
  margin-top: var(--med-margin);
}

.main section {
  margin: 0 var(--small-margin);
}

.main section + section {
  margin-top: var(--big-margin);
}

.main section > h1:not(.page-title) {
  display: inline-flex;
  align-items: center;
  font-size: var(--base-font-size);
}

.main section > h2 {
  font-size: var(--small-font-size);
}

/* .main section > h1:not(.page-title)::before {
  content: "#";
  color: var(--base70);
  font-size: 0.75em;
  margin-right: 0.5em;
} */

.main section > *:not(figure, .glightbox, ul, .page-title) + h1 {
  margin-top: 2em;
}

.main section > *:not(figure, .glightbox, ul, h1, .page-title) + h2 {
  margin-top: 1em;
}

.main section > h1 + * {
  margin-top: 1em;
}

.main section > h2 + * {
  margin-top: 1em;
}

.main section > h1.page-title {
  font-weight: 700;
  font-size: var(--huge-font-size);
  margin-top: 0;
}

.main section.article > h1.page-title + *:not(.roleAndCollabs) {
  margin-top: var(--big-margin);
}

.main section > h1.page-title > span {
  display: block;
  font-weight: 400;
  font-size: var(--title);
}

.main p,
.main ul {
  font-size: var(--small-font-size);
}

.main section > ul:not(.projects, .categories) {
  margin: 1em 0;
}

.main section > ul:not(.projects, .categories) > li::before {
  content: "•";
  font-weight: 700;
  margin-right: 0.5em;
}

.main .code-toolbar pre {
  margin: 1em 0;
}

/* .main section > figure, */
.main section a.glightbox {
  position: relative;
  display: block;
  font-size: var(--base-font-size);
  line-height: 1.4;
  margin: 1em 0;
}

/* .main section > * + figure,
.main section > figure + * {
  margin-top: 1em;
} */

.main section figure > img {
  max-height: 680px;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  transition: filter 0.3s ease;
}

.main section figure:hover > img {
  /* filter: grayscale(1) contrast(2); */
  filter: brightness(0.75);
}

.main section figure > figcaption {
  background-color: var(--base100);
  position: relative;
  left: -5px;
  color: rgb(100, 100, 100);
  padding: 10px 10px 10px 10px;
  margin-top: calc(-1 * var(--tiny-margin));
  margin-right: auto;
  border-radius: 30% 5% / 5% 30%;
  outline: 1px solid rgb(100, 100, 100);
  border-radius: 30px 20px / 20px 30px;
}

/*** GALLERY ***/
.main section * + .gallery-container,
.main section .gallery-container + * {
  margin-top: 4em;
}
.main section .gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* grid-template-rows: 200px; */
  gap: var(--small-margin);
}

.main section .gallery li {
  display: flex;
  /* align-items: center; */
  /* justify-content: center; */
}

.main section .gallery img {
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center;
}

.main section .gallery.logos img {
  aspect-ratio: unset;
  object-fit: contain;
  background-color: var(--base100);
  padding: 1rem;
}

/*********************
 
  PROJECTS LIST

*********************/
.projects .infos > h1 {
  font-size: var(--small-font-size);
}

.projects .infos > h1 > span {
  display: block;
  font-weight: 400;
}

.projects .infos > p {
  font-size: var(--tiny-font-size);
}

/*** LIST ***/
.projects.list figure {
  display: none;
}

.projects.list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--tiny-margin) + 2px) var(--tiny-margin);
}

.projects.list .infos {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--tiny-margin) var(--small-margin);
  align-items: center;
}

.projects.list .infos > h1 {
  max-width: 31ch;
  font-size: var(--base-font-size);
  align-self: center;
}

.projects.list .infos .category {
  grid-column: 2;
}

/*** TILES***/
.projects.tiles .infos > p {
  display: none;
}

.projects.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--small-margin);
}

.projects.tiles li {
  display: flex;
  align-items: flex-end;
}

.projects.list li:not(:last-of-type) {
  padding-bottom: var(--tiny-margin);
  border-bottom: 1px solid;
}

.projects.tiles a {
  position: relative;
  border-bottom-width: 0 !important;
}

.projects.tiles figure > pre {
  /* font-size: calc(1rem + 6.885vw); */
  font-size: var(--subtitle);
}

.projects.tiles .infos {
  position: absolute;
  bottom: -1px;
  right: -1px;
}

.projects.tiles .infos > h1 {
  background-color: var(--background);
  border-top-left-radius: 1em;
  padding-top: 0.95em;
  padding-left: 0.95em;
}

.projects.tiles .infos > h1 > span {
  display: none;
}

/**********************

	FOOTER

***********************/
footer.footer {
  padding: 0 var(--small-margin) var(--xxl-margin);
}

footer.footer .contact {
  margin-bottom: var(--med-margin);
}

footer.footer h1 {
  font-size: var(--title);
  font-weight: 400;
}

footer.footer h1 > span {
  font-weight: 700;
}

footer.footer p {
  font-size: var(--small-font-size);
}

footer.footer .contact p {
  font-weight: 700;
  margin-top: 1em;
}

footer.footer .contact ul {
  font-weight: 700;
  font-size: var(--small-font-size);
  margin-top: 1.25em;
}

/**********************

	Lightbox

***********************/
.glightbox-ll .gclose {
  position: absolute;
  top: var(--small-margin);
  right: var(--small-margin);
  width: var(--tiny-margin);
  height: var(--tiny-margin);
  background-color: rgba(0, 0, 0, 0.32);
  border-radius: 8px;
}

.glightbox-ll .gprev,
.glightbox-ll .gnext {
  position: absolute;
  top: 45%;
  width: var(--tiny-margin);
  height: var(--tiny-margin);
  background-color: rgba(0, 0, 0, 0.32);
  border-radius: 8px;
}

.glightbox-ll .gprev {
  left: var(--small-margin);
}

.glightbox-ll .gnext {
  right: var(--small-margin);
}

.glightbox-ll .gprev svg path,
.glightbox-ll .gnext svg path,
.glightbox-ll .gclose svg path {
  fill: var(--base100);
}

.glightbox-ll .gslide-media {
  padding: var(--small-margin) 0;
}

.glightbox-ll .gslide-description {
  position: absolute;
  bottom: 0;
  width: 100%;
  max-width: 100% !important;
  display: flex;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0.75) 100%
  );
  color: var(--base100);
  padding: 20px;
}

.glightbox-ll .gdesc-inner {
  width: 80%;
  margin: auto;
}

.glightbox-ll .gslide-desc {
  color: var(--base100) !important;
  /* font-family: "Zarathustra"; */
  font-size: var(--tiny-font-size);
}

/**********************

	Prism

***********************/
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
  background: var(--base0);
}

div.code-toolbar {
  position: relative;
  margin: 1em 0;
}

div.code-toolbar pre > code {
  font-family: "JetBrainsMono";
}

div.code-toolbar > .toolbar {
  position: absolute;
  top: unset;
  bottom: 2rem;
  right: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
}

div.code-toolbar > .toolbar > .toolbar-item > button {
  font-size: var(--note);
  font-family: "JetBrainsMono";
  padding: 0.25rem 0.5rem 0.35rem;
  border-radius: 3px;
}

/**********************

	RESPONSIVE

***********************/
@media screen and (min-width: 375px) {
}

@media screen and (min-width: 580px) {
  /* #buttonTags {
    bottom: calc(var(--small-margin) + 0.4em);
  } */
  #buttonTags {
    position: absolute;
    bottom: calc(var(--small-margin) - 2%);
  }
}

@media screen and (min-width: 768px) {
  :root {
    --small-margin: 36px;
    /* --base-font-size: calc(1rem + 0.985vw);
    --small-font-size: calc(1rem + 0.585vw); */
    --base-font-size: calc(1rem + 0.785vw);
    --small-font-size: calc(1rem + 0.285vw);
    /* --tiny-font-size: calc(1rem + 0.1475vw) */
    --tiny-font-size: calc(1rem + 0.185vw);
  }

  small {
    padding-left: 4em;
    padding-right: 4em;
  }

  .main-navigation.hide #buttonTags,
  .main-navigation.closeTags #buttonTags {
    bottom: calc(93% - var(--med-margin));
  }

  .main section {
    margin: 0 var(--med-margin);
  }

  .main section > figure > figcaption {
    position: relative;
  }

  .main section .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  footer.footer {
    padding: 0 var(--med-margin) var(--xxl-margin);
  }
}

@media screen and (min-width: 1024px) {
  .projects.list .infos {
    grid-template-columns: 1fr 2fr 1fr;
  }

  .projects.list .infos .category {
    grid-column: unset;
  }

  .main section {
    /* margin: 0 60px; */
    margin: 0 72px;
  }

  .main section .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  footer.footer {
    padding: 0 72px var(--xxl-margin);
  }
}

@media screen and (min-width: 1366px) {
  /**********************

	PAGES GRID

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

  .main section > h1,
  .main section > h2,
  .main section > p,
  .main section > ul {
    grid-column: 1 / span 14;
  }

  .main section.article > h1:not(.page-title) {
    grid-column: 9 / span 14;
  }

  .main section.article > .page-title {
    grid-column: 8 / span 14;
  }

  /* .main section.article > h1, */
  .main section.relatedProjects > h1,
  .main section.article > h2,
  .main section.article > p,
  .main section.article > ul,
  .main section.article > pre,
  .main section.article > .code-toolbar {
    /* grid-column: 8 / span 16; */
    grid-column: 9 / span 14;
  }

  .main section.article .left {
    grid-column: 3 / span 5;
    grid-row: span 4;
    margin-bottom: auto;
  }

  .main .content-text.article .right {
    grid-column: 9 / span 14;
  }

  .main section.article .right + figure {
    margin-top: 0;
  }

  .main section .gallery-container {
    grid-column: 1 / span 24;
  }

  .main section .gallery {
    grid-template-columns: repeat(5, 1fr);
  }

  /*** TILES: projects***/
  .projects.tiles figure > pre {
    /* font-size: calc(1rem + 2.3vw); */
  }

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

  footer.footer .contact {
    grid-column: 1 / span 4;
    margin-bottom: 0;
  }

  footer.footer .footText {
    grid-column: 6 / span 7;
  }

  footer.footer h1 {
    /* margin-bottom: var(--small-margin); */
  }
}

@media screen and (min-width: 1680px) {
  :root {
    --title: calc(1rem + 3vw);
    --note: calc(1rem + 0.085vw);
  }

  /*********************
 
  PROJECTS LIST

*********************/
  .projects .infos > h1 {
    font-size: var(--small-font-size);
  }

  .projects .infos > p {
    font-size: var(--small-font-size);
  }

  .main section {
    margin: 0 var(--big-margin);
  }

  .main section > figure > img {
    max-height: 820px;
  }

  footer.footer {
    padding: 0 var(--big-margin) var(--xxl-margin);
  }
}

@media screen and (min-width: 1920px) {
  button.sort svg {
    height: 40px;
    width: 40px;
  }

  .projects.tiles {
    gap: var(--med-margin);
  }

  .projects.tiles figure > pre {
    font-size: calc(1rem + 2.85vw);
  }

  .main-navigation.hide #buttonTags,
  .main-navigation.closeTags #buttonTags {
    bottom: calc(86% - var(--med-margin));
  }

  .main {
    margin-top: var(--big-margin);
  }
}
