.project main { padding: 0; align-items: stretch; }
.portfolio { display: flex; width: 100%; }
.portfolio-sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex: 0 0 30%;
  height: 100vh;
  padding: 0 30px;
}
.portfolio-text {
  margin: 43vh 0 0 50px;
  font-size: 18px;
  line-height: 1.65;
}
.portfolio-main { flex: 0 0 70%; display: flex; flex-direction: column; }
.portfolio-main figure { margin: 0; height: 100vh; overflow: hidden; line-height: 0; }
.portfolio-main figure img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-main .embed { aspect-ratio: 16 / 9; }
.portfolio-main .embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer navigation */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  color: white;
  mix-blend-mode: difference;
}

/*MOBILE VERSION*/
@media (max-width: 600px) {

  .portfolio {
    flex-direction: column;
    gap: 0;
  }

  .portfolio-sidebar {
    position: relative;
    height: auto;
    padding: 30px;
  }

  .portfolio-text {
    margin: 20px 0 0;
  }

  .portfolio-main {
    width: 100%;
    flex: none;
    gap: 0;
  }

  .portfolio-main figure {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
  }

  .portfolio-main figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

}
