body {
  background-color: rgba(0, 0, 0, 0.9);
  overflow: scroll;
}

h1.section-header a {
  font-weight: 500;
  color: white;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.contact {
  display: none;
}

.contact-alt {
  position: fixed;
  bottom: 15px;
  right: 30px;
  font-size: 0.8rem;
  line-height: 1.2rem;
  color: white;
}

.project-info {
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
  position: fixed;
  bottom: 50px;
  right: 30px;
  overflow: scroll;
  width: 22vw;
  min-width: 300px;
  max-height: 60vh;
  padding: 0px;
  padding-top: 15px;
  padding-bottom: 0px;
  animation: 0.7s ease-in 0s 1 popUp;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

@keyframes popUp {
  0% {
    opacity: 0.05;
  }
  100% {
    opacity: 1;
  }
}

.project-info h2,
.project-info h3 {
  position: initial;
  margin: 0px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.project-info h2 {
  padding: 0px 10px;
}

.project-info h3 {
  margin-bottom: 15px;
}
.project-info h3,
.project-info p {
  padding: 0px 10px;
  font-size: 0.85rem;
  font-weight: 400;
}

.project-desc {
  display: none;
  padding: 5px;
  padding-bottom: 15px;
}

.project-desc.display {
  display: block;
}

.project-desc p:first-of-type {
  margin-top: 0px;
}
.project-info-controls {
  position: sticky;
  display: flex;
  justify-content: space-between;
  bottom: 0px;
  left: 0px;
  width: 100%;
  padding-top: 10px;
  z-index: 2;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  transition: 0.5s ease-in-out;
}
.project-info-controls.project-desc-open {
  background-color: rgba(200, 200, 200, 0.8);
}

.project-info button {
  user-select: none;
  margin-bottom: 10px;
  margin-left: 10px;
  padding: 4px 6px;
  transition: 0.2s;
  background-color: rgba(220, 220, 220, 1);
  cursor: pointer;
  border: 0px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
}

.project-info button#back {
  margin-right: 10px;
}

.project-info button:hover {
  background-color: rgba(235, 235, 235, 1);
}

.project-info button.disabled {
  cursor: default;
  opacity: 0.5;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0px;
  opacity: 0;
  width: 100%;
  height: 100vh;
}

.image-container.display {
  opacity: 1;
}

.project-img {
  pointer-events: none;
  object-fit: contain;
  object-position: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
  animation: 1s ease-in-out 0s 1 fadeIn;
}

.image-container.cover img {
  object-fit: cover;
}

@keyframes fadeIn {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

.image-caption {
  position: fixed;
  bottom: 0px;
  left: 0px;
  margin: 0px;
  /* padding: 5px 15px; */
  background-color: black;
  font-size: 0.7rem;
  color: white;
}

.caption {
  display: none;
  padding: 5px 15px;
  margin: 0px;
}

.caption.display {
  display: block;
}

.sub-nav {
  position: fixed;
  bottom: 50px;
  left: 30px;
}

.sub-nav ul {
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  margin: 0px;
  padding: 0px 0px;
  background-color: rgba(255, 255, 255, 0.55);
  border-radius: 7px;
  font-size: 1.4rem;
  font-weight: 200;
  list-style: none;
}

#previous-image,
#next-image {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  width: 100%;
  padding: 15px;
  padding-top: 5px;
  padding-bottom: 6px;
  transition: 0.25s;
  cursor: pointer;
}

#previous-image:hover,
#next-image:hover {
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
}

#previous-image {
  background-color: rgba(255, 255, 255, 0.2);
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

#next-image {
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
}

/* PROJET TEXT */

/* reset h1 to normal in projetc-text template */
h1.black a {
  color: black;
  text-shadow: none;
  font-weight: 600;
}
.project-content {
  max-width: calc(100% - 28vw);
  margin-top: 0px;
  padding-bottom: 20px;
  padding-left: 30px;
  transition: 0.5s;
  font-size: 14px;
}

.project-content img {
  max-width: 80%;
}

/* PROJET VIDEO */
.project-video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0px;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
}

.project-video-container .project-info {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.project-video-container .project-info-controls.project-desc-open {
  background-color: rgba(80, 80, 80, 1);
}

.project-video-container button {
  background-color: rgba(150, 150, 150, 1);
  color: black;
}

.project-video-container button:hover {
  background-color: rgba(220, 220, 220, 0.6);
  color: black;
}

.iframe-wrapper {
  display: flex;
  justify-content: center;
  width: 66%;
  padding-bottom: 140px;
}

.iframe-wrapper iframe {
  aspect-ratio: 16 / 9;
  height: 100%;
  width: 100%;
}

@media screen and (max-width: 640px) {
  .project-content {
    max-width: calc(100%);
    padding-bottom: 200px;
    padding-left: 30px;
    padding-right: 30px;
  }
  .project-info {
    bottom: 35px;
  }

  .sub-nav {
    position: fixed;
    bottom: 158px;
    left: 5%;
  }

  .project-info {
    width: 90%;
    min-width: none;
    left: 5%;
  }

  .image-container {
    padding-bottom: 150px;
  }

  .image-container.cover img {
    object-fit: contain;
  }

  .iframe-wrapper {
    width: 90%;
  }

  .contact-alt {
    display: none;
  }
}
