/* Generated by Timbrica — font-converter */

@font-face {
  font-family: 'Inter Variable';
  src:
    url('fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans Code';
  src:
    url('fonts/GoogleSansCode-Regular.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IMD Grotesk";
  src:
    url('fonts/IMDGrotesk-Variable.woff2') format('woff2'),
    /* url('/fonts/IMDGrotesk-Variable.woff') format('woff'); */
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root{
  --sans: "IMD Grotesk", "inter variable", inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --etoile: "inter variable", inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "google sans code",  monospace;
  --fontsize: 1rem;
  --roundness: 0px;
  font-size: 87.5%;
}
@media (prefers-color-scheme: light) {
  :root{
    --fg: black;
    --bg: white;
    --fg-muted: #696969;
    font-weight: 400;
    letter-spacing: 0;
  }
}
@media (prefers-color-scheme: dark) {
  :root{
    --fg: white;
    --bg: black;
    --fg-muted: #b2b2b2;
    font-weight: 500;
    letter-spacing: 0.005em;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--sans);
  font-feature-settings: "case";
  text-transform: capitalize;
  color: var(--fg);
  border-radius: var(--roundness);
}

body {
  background-color: var(--bg);
  font-size: var(--fontsize);
}

header {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 1rem;
  /* border-bottom: 1px solid var(--fg); */
  background-color: var(--bg);
  z-index: 5;
  border-radius: 0;
  /* font-size: calc(var(--fontsize) * 1.33); */
  color: var(--fg-muted);
  /* padding-top: 2rem;
  padding-bottom: 2rem; */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

header .header-logo {
  justify-self: start;
}

header .header-title {
  justify-self: center;
  text-align: center;
}

header .header-links {
  justify-self: end;
  display: flex;
  gap: 1.5rem;
  margin-right: 3rem;
}

header .header-links a {
  text-decoration: none;
  color: var(--fg-muted);
}

header .header-links a:hover {
  color: var(--fg);
}

header * {
  vertical-align: middle;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 8rem;
  row-gap: 8rem;
  align-items: start;
  padding: 2rem;
  margin-left: 2rem;
  margin-right: 2rem;
}

.about {
  margin: 4rem;
  padding: 4rem;
  border: 1px solid var(--fg);
}

.about, .about * {
  text-transform: none;
}

.item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* .item p {
  text-align: justify;
  text-align-last: justify;
} */

.item .media {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: transparent;
}

.item .media img, .item .media video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  background-color: transparent;
  border-radius: var(--roundness);
}

.item * {
  text-align: center;
  font-family: var(--sans);
  /* font-feature-settings: "ss01"; */
  color: var(--fg-muted);
}

.item .etoile {
  font-family: var(--etoile);
}

pre {
  /*line-height: 1;*/
  /* text-align: left; */
  font-family: var(--mono);
  font-weight: 100;
  font-size: min(2vw, 1rem);
  white-space: pre;
  overflow-x: hidden;
  font-style: normal;
}

footer {
  padding: 2rem;
  /* text-align: right; */
  font-style: italic;
  /* background-color: rgb(247, 247, 247); */
  border: 1px solid var(--fg);
  margin: 2rem 4rem 4rem 4rem;
}

svg {
  width: 6rem;
  fill: var(--fg);
  margin-right: 2rem;
  margin-left: 1rem;
  margin-top: -0.188rem;
}

/* Firefox */
/* * {
  scrollbar-width: thin;
  scrollbar-color: var(--fg-muted) var(--bg);
} */

/* Chrome, Edge, Safari */
/* ::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--fg-muted);
  border: 2px solid var(--bg); crée un effet de "padding" autour du thumb
}

::-webkit-scrollbar-thumb:hover {
  background: var(--fg-muted);
} */

/* Hide scrollbar for Chrome, Safari and Opera */
.example::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.example {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* ===== Lightbox ===== */
 
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background-color: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}
 
.lightbox-overlay.open {
  display: flex;
}
 
.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
 
.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--roundness);
}
 
.lightbox-caption {
  text-align: center;
  color: red;
}
 
.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  font-size: calc(var(--fontsize) * 1.5);
  cursor: pointer;
  color: var(--fg-muted);
  background: none;
  border: none;
  padding: 0.5rem;
}
 
.lightbox-close:hover {
  color: var(--fg);
}
 
