/* imports */
@font-face {
  font-family: "Majestuous";
  src: local("Majestuous"),
    url("../fonts/Inter-Regular.woff") format("woff"),
    url("../fonts/Inter-Regular.woff2") format("woff2");
}

/* base */
html {
  font-size: 21px;
  scrollbar-width: none;
  text-rendering: optimizeLegibility;
}

body {
  -ms-overflow-style: none;
  background-color: rgb(255, 255, 255);
  color: rgb(255, 0, 0);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: .02rem;
  line-height: 1.33rem;
  margin: 1rem;
}

a,
a:active,
a:hover,
a:visited {
  color: rgb(255, 0, 0);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: .2rem;
}

h1, h2, h3 {
  font-size: 1rem;
  font-weight: normal;
  margin: 0;
  padding: 0;
}

h2 {
  margin-bottom: .5rem;
}

div.fly, div.big-fly {
  width: 100px;
  height: 100px;
  position: absolute;
  z-index: 9999;
}

  div.fly img {
    height: 125px;
  }

  div.big-fly img {
    height: 60rem;
  }

nav {
  position: fixed;
  margin-bottom: 2rem;
}

  nav ul {
    margin: 0;
    padding: 0;
  }

    nav ul li {
      display: inline-block;
      list-style-type: none;
      margin-right: .5rem;
    }

#logo {
  position: fixed;
    bottom: 1rem;
    right: 1rem;
}

/* list of projects */

#list {
  margin-top: 2rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .5vw; 
  justify-content: space-between;
  width: 100%;
}

.thumb {
  border-top: .075rem solid rgb(255, 0, 0);
  padding: .5rem 0 0 0;
  flex-basis: 100%;
  margin-bottom: .15rem;
  font-size: .8rem;
  line-height: 1rem;
  cursor: pointer;
}

  .thumb a, 
  .thumb a:hover,
  .thumb a:active,
  .thumb a:visited {
    background-color: rgb(255, 255, 0);
    color: black;
    padding: .25rem .75rem .33rem .75rem;
    margin: .75rem 0 .75rem 0;
    display: inline-block;
    width: fit-content;
  }

  .thumb a:hover {
    text-decoration: none;
  }

  .thumb img {
    display: block;
    width: 100%;
    margin: 0 0 .25rem 0;
    vertical-align: bottom;
    border-radius: .5rem;
  }

  .thumb-content {
    margin-top: 5px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  }

  .thumb-title h2 {
    text-align: left;
    margin-bottom: 0;
    display: block;
    font-size: .9rem;
  }

/* home */

div#home img {
  max-width: 90vw;
  max-height: 80vh;
}

/* project pages */

#start {
  width: 100%;
  max-width: 640px;
}

h2.page-title,
#content p,
.swiper-container {
}

h2.page-title {
  margin: .5rem 0 .5rem 0;
}

#arrows {
  position: fixed;
    top: 2vw;
    right: 3vw;
  z-index: 999;
}

  #arrows a {
    height: 1rem;
    margin-left: .5rem;
  }

#content {
}

  #content p {
    margin: 0 0 1rem 0;
    padding: 0;
    text-align: left;
  }

  .swiper-container {
    margin-left: 0 !important;
    margin-bottom: 1rem;
    z-index: 1;
  }  

  .swiper-container img {
    max-width: 100%;
    border-radius: .5rem;
  }  

span.client,
span.date, 
span.media {
  font-size: .75rem;
}

/* smaller */

@media screen and (max-width: 800px) {
    
  html {
    font-size: 18px;
  }

  h2.page-title,
  #content p,
  .swiper-container {
    max-width: 100%;
  }

  #content a {
    padding: 3px 10px 5px 10px;
  }

}