header {
  display: flex;
  gap: 10px;
  flex-direction: row;
  align-items: baseline;
  color: var(--fg);
  border-bottom: solid 1px black;
  font-family: var(--mono);
}
header nav {
  position: fixed;
  top: 5px;
  right: 10px;
  display:flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  font-size: 14px;
}
header nav .dir {
  padding: 0 10px;
  font-size: 24px;
  text-decoration: none;
}
header nav .dir:hover {
  color: var(--color);
}

h1 {
  margin: 0;
  padding: 0;
  font-family: var(--medium);
  font-size: 16px;
}
h2 {
  font-family: var(--light);
  font-size: 16px;
}
h1, h2 {
  font-weight: normal;
}

time {
  font-family: var(--light);
}

a {
  color: var(--fg);
  text-decoration: 1px underline var(--fg);
  text-underline-position: under;
}
a:hover {
  color: var(--fg);
  text-decoration: none;
}

main {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}
section {
  display: flex;
  gap: 10px;
  flex-direction: row;
  flex-wrap: nowrap;
  padding: 25px 0;
  overflow-x: scroll;
}
figure {
  position: relative;
  margin: 0;
  padding: 0;
}
img {
  border: solid 1px black;
}

.project-description {
  position: fixed;
  left: 25px;
  top: 75px;
}

/* GALLERY {{{ */
.project-gallery {
  position: relative;
  width: 50vw;
  height: 50vh;
  margin: 20vh 23vw;
  padding: 0;
}
.project-gallery figure {
  width: fit-content;
  margin: 0;
  padding: 0;
}
.jumble-img {
  width: auto;
  height: 200px;
  display: block;
  object-fit: cover;
  border: solid 1px black;
  cursor: pointer;
}
.jumble-caption {
  text-align: center;
  display: none; 
  margin: 5px 75px;
  color: var(--fg);
  font-family: var(--light);
  font-size: 14px;
}
.project-gallery.focus-mode::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg);
  z-index: 8800;
  cursor: zoom-out;
}
.project-gallery.focus-mode::after {
  z-index: 8880;
  position: fixed;
  top: 0;
  right: 10px;
  content: "×";
  color: var(--fg);
  cursor: pointer;
  font-size: 32px;
}
.project-gallery.focus-mode figure:not(.image-focus) {
  display: none !important;
}
.project-gallery figure.image-focus {
  z-index: 8888 !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0;
}
.project-gallery figure.image-focus .jumble-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  width: 900px;
  height: auto;
  cursor: zoom-out !important;
  border: none;
}
.project-gallery figure.image-focus .jumble-caption {
  display: block;
}
/* }}} */
