* {
  margin: 0;
  padding: 0;
  font-family: SuisseScreen-Monitor, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  padding: 0rem 2rem 2rem 2rem;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.dark-mode, .dark-mode header {
  background-color: black;
  color: white;
}

.dark-mode a {
  color: white;
}

header {
  background-color: #f5f5f5;
  position: sticky;
  top: 0;
  color: #333;
  padding: 2rem 0rem 1rem 0rem;
  z-index: 1;
  transition: background-color 0.5s ease, color 0.5s ease;
}

header .logo a {
  transition: color 0.5s ease;
}

@font-face {
  font-family: 'SuisseIntlMono-Bold';
  src: url('data/SuisseIntlMono-Bold-WebS.woff2') format('woff2');
  font-weight: bold;
}

@font-face {
  font-family: 'SuisseIntlMono-Regular';
  src: url('data/SuisseIntlMono-Regular-WebS.woff2') format('woff2');
  font-weight: normal;
}

@font-face {
  font-family: 'SuisseScreen-Monitor';
  src: url('data/SuisseScreen-Monitor-WebS.woff2') format('woff2');
  font-weight: normal;
}

a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

a:visited {
  color: inherit;
}

a:hover {
  text-decoration: underline;
  transform: scale(1.1);
}


h1 {
  font-family: 'SuisseIntlMono-Bold';
  font-size: 1.5rem;
}

h2 {
  font-family: 'SuisseIntlMono-Bold';
  font-size: .85rem;
  margin-bottom: .5rem;
}

h3{
  font-family: 'SuisseScreen-Monitor';
  font-size: 1rem;
}

.arrow {
        font-family: system-ui;
}

.nav-buttons {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
}

.nav-buttons a {
  font-family: 'SuisseScreen-Monitor';
  cursor: pointer;
}

.nav-buttons a:hover {
  text-decoration: underline;
}


.details-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  padding: .5rem 0rem;
}

.collage-row{ 
  display: grid;
  align-items: stretch;
  margin-bottom: 5rem;
}

.projects-row{ 
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  margin: 2rem 0rem 3rem;
}

.column {
  display: flex;
  flex-direction: column;
  width: 85%;
}

.column-content {
  padding-bottom: 1rem;
  display: grid;
}

.column-sub-content p{
  margin-bottom: initial !important;
}

#about p {
  margin-bottom: .5rem;
}

.detail-text {
  font-size: 0.85rem;
  font-family: 'SuisseIntlMono-Regular';
  margin-left: 1rem;
}

.highlight-text {
  color: blue;
  font-size: 0.85rem;
  font-family: 'SuisseIntlMono-Regular';
  margin-left: 1rem;
}

.project-entry {
  margin-bottom: 1rem;
}

#thumbnail {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#thumbnail img {
  width: 80%;
  height: auto;
}

#project-description p {
  margin-bottom: .5rem;
}

#project-browse, #project-details, #project-text, #project-name, #navigation{
  margin-bottom: 1rem;
}

#project-browse p{
  cursor: pointer;
  text-decoration: underline;
  margin-bottom: .5rem;
  font-size: 0.85rem;
  font-family: 'SuisseIntlMono-Regular';
  margin-left: 1rem;
}

.project-media {
  width: 95%;
}

#collage {
  width: 100%;
  min-height: 100vh;
  display: flex;
  padding: inherit;
  position: relative;
}

#slider-wrapper {
    display: none;
}


#navigation a{
  margin-bottom: .5rem;
  font-family: 'SuisseIntlMono-Bold';
  font-size: .85rem;
}

#p5_loading {
  font-family: 'SuisseIntlMono-Regular';
}

canvas {
  max-width: 100%;
  max-height: 100%;
  height: 100% !important;
}

#archive-column {
  width: 100%;
}


.archive-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.archive-container video, 
.archive-container img {
  width: calc(33.333% - 1rem);
  height: auto;
  border-radius: .5rem;
  cursor: pointer;
  margin-bottom: 1rem;
}


#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-align: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

video::-webkit-media-controls {
  display: none !important;
}

video::-moz-media-controls {
  display: none !important;
}

video::media-controls {
  display: none !important;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.lightbox-content video, .lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-close {
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}






@media (max-width: 1024px) {
  .details-row {
    grid-template-columns: 1fr 1fr;
  }
  .projects-row {
    grid-template-columns: 1fr;
  }
}






@media (max-width: 768px) {
  .details-row, .projects-row {
    grid-template-columns: 1fr;
  }

  .column {
    width: 100%;
    margin-top: 2rem;
  }

  #thumbnail{
    display: none;
  }

  #collage{
    display: none;
  }

#mobile-slider {
    position: relative;
    width: 100%;
    height: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.slide.active {
    display: block;
}


#prev, #next {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#prev { left: .8rem; }
#next { right: .8rem; }



  #project-details {
      margin-bottom: inherit;
  }

  .projects-row {
    margin: inherit;
    height: inherit;
  }

  .collage-row{ 
  margin-bottom: inherit;
}

  .project-media {
    height: auto;
  }

  canvas {
    max-height: auto;
  }

  #collage{
    margin-bottom: -15rem;
  }

  #collage img, #collage video {
    height: -webkit-fill-available;
  }

  .archive-container {
    column-count: 1;
    column-gap: 1rem;
  }

  #sketch {
    display: none;
  }

}

@media screen and (min-width: 1500px) and (-webkit-min-device-pixel-ratio: 2) {
  #thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80%;
    max-height: 100%;
  }

  #thumbnail img {
    width: 70%;
    height: auto;
  }
}