@font-face {
  font-family: 'ABC Diatype';
  src: url('abc-diatype-regular.otf') format('opentype');
  font-weight: normal;
}
@font-face {
  font-family: 'ABC Diatype';
  src: url('abc-diatype-bold.otf') format('opentype');
  font-weight: bold;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'ABC Diatype', sans-serif;
}

html, body {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #F5F3EF;
  display: flex;
  flex-direction: row;
}

body.project {
  text-align: justify;
  text-justify: inter-word;
}

#work {
  display: flex;
  flex-direction: row;
  min-width: fit-content;
  padding-right: 2rem;
  text-align: justify;
  text-justify: inter-word;
}

#projectFrame {
  width: 800px;
  height: 100%;
  flex-shrink: 0;
  display: block;
  margin: 0;
  border: none;
  padding-right: 2rem;
  box-sizing: border-box;
}

.section {
  display: inline-block;
  vertical-align: top;
  width: 500px;
  flex-shrink: 0;
  height: 100vh;
  padding: 2rem;
  background-color: #F5F3EF;
  box-sizing: border-box;
}

.section:not(#cv) {
  text-align: justify;
  text-justify: inter-word;
}

.section a,
.section a:visited,
.section a:active,
.section a:hover {
  color: blue;
    text-decoration: none;

}

header {
  position: fixed;
  top: 0;
  left: 1rem;
  width: 100%;
  background: transparent;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-bottom: none;
}

header a {
  text-decoration: none;
  color: black;
}

#about, #work, #contact {
  background: #F5F3EF;
}

.btn {
  display: inline-block;
  padding: 0px 2px;
  border: 1px solid #888;
  border-radius: 3px;
  background: #eee;
  color: black;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.85em;
}

.btn:hover {
  background: #ddd;
}

.section a.btn.black,
.section a.btn.black:hover {
  color: black;
}

@media (max-width: 768px) {
  .section {
    width: 100vw;
    max-width: none;
    height: 100vh;
    padding: 2rem 1rem 1rem 1rem;
  }

  #projectFrame {    
    width: 100vw;
    height: 100vh;
    vertical-align: top;
    padding-right: 2rem;
    min-height: 60vh;
  }

    header {
    padding-left: 0rem;
  }
  
}

.flow-columns img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  break-inside: avoid;
}

h1 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

h2 {
  font-size: 1rem;
}

.project .gallery {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

.project .gallery img {
  width: 100%;
  height: auto;
  display: block;
}

hr {
  height: 1px;
  border: 0;
  width: 90%;
  background-color: gray;
  color: gray;
}

audio {
  width: 100%;
  border: 1px solid #888;
  border-radius: 3px;
  background-color: #eee;
}