:root {
  --coral: #f2727f;
  --coral-hover: #e15a68;
  --black: #181b20;
  --gray-dark: #21242b;
  --gray: #707070;
  --white: white;
  --white-2: white;
  --black-2: black;
}

.w-layout-blockcontainer {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.w-layout-vflex {
  flex-direction: column;
  align-items: flex-start;
  display: flex;
}

.w-layout-hflex {
  flex-direction: row;
  align-items: flex-start;
  display: flex;
}


.right-col {
  max-width: 59ch;
}

a {
  color: var(--coral);
  text-decoration: none;
}

a.anchor {
  position: relative;
  top: -25px;
}

a.button.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 17px;
  top: 4px;
  background-position: 50% 50%;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 5px;
}

.icon.icon-email {
  background-image: url("../images/common/icon-email.svg");
}

.icon.icon-linkedin {
  background-image: url("../images/common/icon-linkedin.svg");
}

.icon.icon-mastodon {
  background-image: url("../images/common/icon-mastodon.svg");
}

.icon.icon-behance {
  background-image: url("../images/common/icon-behance.svg");
}
.main-wrapper.in .main {
  margin-left: 0;
}



.body {
  background-color: var(--black);
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

.page-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: center;
}

.nav {
  z-index: 1;
  width: 420px;
  min-height: 100vh;
  grid-column-gap: 24px;
  grid-row-gap: 24px;
  background-color: var(--gray-dark);
  flex-flow: wrap;
  align-content: flex-start;
  justify-content: flex-start;
  padding: 60px;
  transition: left 0.8s ease;
  position: fixed;
  left: -420px;
}

.nav.in {
  left: 0;
}

.nav-toggle {
  display: none;
  z-index: 1;
  width: 40px;
  height: 40px;
  background-color: var(--coral);
  cursor: pointer;
  border-radius: 80px;
  position: fixed;
  top: 40px;
  left: 40px;
  background: var(--coral) url('../images/common/arrow-left.svg') no-repeat 50% 50%;
  background-size: 20px;
  transition: all 0.8s ease;
  transform: rotate(180deg);
  border: 3px solid var(--black);
}

.nav-toggle:hover {
  background-color: var(--coral-hover);
}

.nav-toggle.in {
  left: calc(420px - 20px);
  transform: rotate(0deg);
}

.main-wrapper {
  display: flex;
  justify-content: center;
  width: 100vw;
  /* transition: all 0.8s ease; */
  margin-left: 0;
}

.main-wrapper.in {
  width: calc(100% - 150px);
  margin-left: 150px;
}

.main-wrapper.in .main {
  margin-left: 264px;
}

.main {
  max-width: 960px;
  min-height: 100vh;
  background-color: var(--white);
  flex: auto;
  padding: 40px;
  position: relative;
  margin-left: 0vw;
  /* transition: margin-left 0.8s ease; */
}


.flex-block {
  width: 100%;
}

.thumbnail {
  width: 64px;
  margin-bottom: 8px;
}

.random-text {
  font-style: italic;
  font-size: 12px;
}

.nav-items {
  display: flex;
  flex-flow: wrap;
  align-content: flex-start;
  justify-content: flex-start;
  grid-column-gap: 24px;
  grid-row-gap: 24px;
}

.nav-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 20px;
}

.nav-heading {
  color: var(--white);
  margin-top: 0;
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
}

.p {
  color: var(--black);
  margin-bottom: 12px;
}

.p.white {
  color: var(--white);
}

.container {
  display: flex;
  justify-content: center;
  max-width: 960px;

}

.nav-subheading {
  color: var(--white);
  margin-top: 0;
  margin-bottom: 0;
  font-size: 21px;
  font-weight: 500;
  line-height: 48px;
}

.nav-item {
  display: inline-block;
  margin-bottom: 5px;
  border-bottom: 3px solid var(--gray-dark);
  clear: right;
}

.nav-item:hover {
  border-bottom: 3px solid var(--coral-hover);
}


.project-screenshots {
  display: grid;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  grid-template-rows: auto auto auto;
  grid-template-columns: 2.5fr 1fr;
  grid-auto-columns: 1fr;
  /* min-height: 420px; */
}

.project-screenshots-3-cols {
  display: grid;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
}

.project-screenshots-column {
  display: flex;
  flex-direction: column;
  grid-column-gap: 16px;
  grid-row-gap: 16px;

}

.project-screenshots img,
.project-screenshots video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.border {
  border: 1px solid #eee;
}

.project-hero {
  width: 100%;
  height: auto;
  min-height: 420px;
  /* max-height: 60vh; */
  object-fit: cover;
  grid-area: span 3 / span 1 / span 3 / span 1;
}


.illustrations-screenshots {
  display: grid;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
}

.illustrations-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  grid-area: span 1 / span 2 / span 1 / span 2;
}

.bio-hero {
  width: 256px;
  clip-path: inset(2px 2px);
  margin-left: 38%;
}

.project-description {
  grid-column-gap: 40px;
  grid-row-gap: 16px;
  grid-template-rows: auto;
  grid-template-columns: 1.4fr 2.5fr;
  grid-auto-columns: 1fr;
  margin-bottom: 20px;
  display: grid;
}

.project-description .left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-content: flex-start;
  height: calc(100% - 16px);
}

.col-30 {
  width: 288.25px;
}

.button {
  border: 1px solid var(--coral);
  background-color: var(--white);
  color: var(--coral);
  width: 160px;
  text-align: center;
  line-height: 1;
}

.no-mobile-message {
  display: none;
}

.heading {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

.project {
  margin-bottom: 120px;
  position: relative;
}



/* Popups */

.project .popupTrigger {
  cursor: pointer;
}

.popup {
  position: fixed;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  background: var(--gray-dark);
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.popup.in {
  opacity: 1;
  pointer-events: auto;
}

.popup img,
.popup video {
  max-height: 90vh;
  user-select: none;
}

.popup-close-button {
  z-index: 1;
  width: 40px;
  height: 40px;
  background-color: var(--coral);
  cursor: pointer;
  border-radius: 80px;
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--coral) url('../images/common/close-button.svg') no-repeat 50% 50%;
  background-size: 14px;
  border: 3px solid var(--black);
}

.popup-close-button:hover {
  background-color: var(--coral-hover);
}

@media screen and (max-width: 1280px) {

  .nav {
    width: 400px;
    left: -400px;
  }

  .nav.in {
    left: 0;
  }

  .nav-toggle.in {
    left: calc(400px - 20px);
  }

  .main-wrapper.in {
    /* width: calc(100% - 200px);
    margin-left: 200px; */
    width: 100%;
  }

  .main-wrapper.in .main {
    margin-left: 0;
  }

  .main {
    max-width: none;
    min-height: 100vh;
    background-color: var(--white);
    flex: auto;
    padding: 40px;
    position: relative;
    margin-left: 0vw;
    /* transition: margin-left 0.8s ease; */
  }

}


@media screen and (max-width: 1279px) {

  .scroll-top {
    display: block;
    position: fixed;
    top: calc(120%);
    left: calc(100% - 60px);
    z-index: 1;
    width: 40px;
    height: 40px;
    background-color: var(--coral);
    background: var(--coral) url('../images/common/arrow-left.svg') no-repeat 50% 50%;
    background-size: 20px;
    border-radius: 80px;
    transform: rotate(90deg);
    cursor: pointer;
    transition: top 0.2s ease;
  }

  .scroll-top.in {
    top: calc(100% - 160px);
  }

  .page-wrapper {
    display: block;
  }

  .nav {
    position: relative;
    width: 100%;
    /* max-width: 960px; */
    margin: 0 auto;
    left: 0;
    min-height: 0;
    flex-flow: row wrap;
    justify-content: space-between;
    padding: 40px 60px;
  }

  .nav.in {
    left: 0;
  }

  .nav-toggle.in {
    left: calc(400px - 20px);
  }

  .nav-bio {
    max-width: 32ch;
  }

  .nav-block {
    margin-right: 0;
  }

  .nav-item {
    margin-bottom: 0;
  }

  .main-wrapper.in {
    width: 100%;
    margin-left: 0;
  }

  .main {
    max-width: none;
    min-height: 100vh;
    background-color: var(--white);
    flex: auto;
    padding: 40px;
    position: relative;
    margin-left: 0vw;
    /* transition: margin-left 0.8s ease; */
  }

  .nav-toggle {
    display: none;
  }

}



@media screen and (max-width: 767px) {

  .button.no-mobile {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
  }

  .no-mobile-message {
    display: block;
    margin-top: 8px;
    font-size: 12px;
  }


  .main {
    padding: 20px;
  }
  .nav {
    padding: 20px;
  }
}

@media screen and (max-width: 479px) {


  .main {
    padding: 20px;
  }

  .nav {
    padding: 20px;
  }

  .nav-item {
    margin-bottom: 8px;
  }

  .project-screenshots {
    grid-column-gap: 8px;
    grid-row-gap: 8px;
    grid-template-rows: 2.5fr 1fr;
    grid-template-columns: auto auto auto;
  }

  .project-hero {
    grid-area: span 1 / span 3 / span 1 / span 3;
  }

  video.project-hero {
    aspect-ratio: 4/3;
    min-height: auto;
  }

  .project-description {
    display: flex;
    flex-direction: column;
  }




  .bio-hero {
    margin: 0 auto;
  }

}