#project {
  max-width: 1600px;
  margin: 0 auto;
  font-size: var(--fontsize);
  padding: 0 var(--project-section);
  text-align: left;
}

#project .text {
  padding: var(--project-text-top-bottom) var(--project-text-left-right);
  width: 100%;
  max-width: 800px;
}

#project .text + .text {
  padding-top: 0;
  margin-top: 0;
}

#project nav {
  padding: var(--borders) var(--project-text-left-right);
  font-weight: 600;
}

#project nav .home {
  position: relative;
}

#project nav .home:hover .icon {
  opacity: 1;
  transform: translate3d(0,0,0); 
}

#project nav .home .icon svg path {
  transition: 0.1s ease-in-out;
}

#project nav .home:hover .icon svg path {
  fill: var(--link-hover);
}

#project nav .icon {
  transition: 0.25s ease-in-out;
  position: absolute;
  left: -24px;
  top: 2px;
  opacity: 0;
  transform: translate3d(4px,0,0);
}

#project section {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

#project section.cover {
  width: calc(100%);
  max-width: 100%;
  border-radius: var(--radius);
  line-height: 0;
}

#project section.cover + section.cover {
  margin-top: calc(var(--project-text-top-bottom));
}

#project section.cover img {
  object-position: center bottom;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#project section figcaption {
  font-size: 12px;
  line-height: 18px;
  color: #666;
  padding: var(--fontsize) calc(var(--fontsize)*2) 0;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  white-space: normal;
}

#project section figcaption a {
  display: inline-block;
  vertical-align: bottom;
  margin-right: 16px;
}

#project section figcaption a span {
  display: flex;
  align-items: center;
}

#project section figcaption svg {
  width: 16px;
  margin-right: 4px;
}

#project section figcaption svg path {
  fill: #666;
}

#project section figcaption a:hover svg path {
  fill: var(--link-hover);
}

#project section figcaption small {
  font-size: 10px;
  line-height: 14px;
  display: inline-block;
  margin-top: 4px;
  columns: 1;
  orphans: 3;
}

#project section.full {
  width: 100%;
  padding: 0;
}

#project section.center {
  max-width: 640px;
}

#project section.extra {
  padding-bottom: calc(3 * var(--borders));
}

#project section video {
  width: 100%;
}

#project h1 {
  font-size: 3em;
  line-height: 1.2em;
  font-weight: 300;
  margin-bottom: calc(0.5 * var(--borders));
  letter-spacing: -0.02em;
}

#project h2 {
  font-size: 2.5em;
  line-height: 1.2em;
  font-weight: 300;
  margin-bottom: var(--borders);
  letter-spacing: -0.02em;
}

#project h4 {
  font-size: 12px;
  /*font-weight: 600;*/
  line-height: 1.5em;
  /*text-transform: uppercase;*/
  position: relative;
  padding-bottom: 9px;
  margin-bottom: 8px;
}

/*#project h2 {
  font-size: 1em;
  font-weight: 500;
  line-height: 1.4em;
  margin-bottom: var(--lineheight);
}
*/
#project p {
  font-size: var(--fontsize);
  line-height: var(--lineheight);
  margin-bottom: var(--lineheight);
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: pretty;
}

#project p.light {
  color: #555;
}

#project p a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(82,85,88,0.25);
}

#project p a:hover {
  color: var(--link-hover);
  border-bottom-color: rgba(114,67,151,0.25);
}


#project h3 {
  font-size: var(--headersize);
  font-weight: 600;
  line-height: 1.4em;
  margin-bottom: var(--lineheight);
}

#project p + h3 {
  margin-top: var(--project-text-left-right);
}

#project p:last-child {
  margin-bottom: 0;
}

#project dl, #project .responsibilities {
  font-size: var(--fontsize);
  line-height: var(--lineheight);
  margin-bottom: var(--lineheight);
  display: grid;
  grid-template-columns: auto 1fr;
}

#project strong {
  font-weight: 600;
}

#project ul {
  margin-bottom: 16px;
}

#project li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

#project dt {
  text-align: left;
  padding-right: 16px;
  font-weight: 600;
  white-space: nowrap;
}

#project dd {
  text-align: left;
  margin-bottom: 16px;
}

#project dd:last-child, #project dl:last-child {
  text-align: left;
  margin-bottom: 0;
}

#project .responsibilities ul {
  /*margin-top: 4px;*/
}

#project .visual img {
  position: relative;
  object-position: center center;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
}

#project .image + .image {
  margin-top: calc(var(--spacing) * 2);
}


#project .image .visual {
  line-height: 0;
  vertical-align: top;
}

#project .image .text {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#project .image .text p {
  max-width: 480px;
  margin-left: 40px;
  margin-right: 40px;
}

#project .image {
  display: grid;
  grid-gap: var(--spacing);
  /*overflow: hidden;*/
  overflow: clip;
}

#project .image.noclip {
  overflow: inherit;
}

#project .image.two {
  grid-template-columns: 1fr 1fr;
}

#project .image.three {
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: var(--spacing-3-wide);
}

#project .image.four {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

#project .image .visual {
  width: 100%;
  /*min-height: 100%;*/
  position: relative;
}

#project .image .visual img {
  width: 100%;
}

#project .roles {
  display: flex;
  flex-direction: row;
  white-space: nowrap;
}

#project .roles div + div {
  margin-left: 80px;
}

#project hr {
  border: none;
  height: 1px;
  background-color: #ddd;
  width: 64px;
  margin: 0 0 var(--lineheight);
}

#project hr.full {
  width: auto;
  margin: var(--project-text-top-bottom) var(--project-text-left-right) 0 var(--project-text-left-right);
}

#project hr.full.nomargin, #project section.text + hr.full {
  width: auto;
  margin: 0 var(--project-text-left-right) 0 var(--project-text-left-right);
}

#project footer {
  min-height: 25vh;
}


#project .summary {
  max-width: 100%;
}

#project .summary .wrap {
  display: flex;
}

#project .text + .summary {
  padding-top: 0;
}

#project .summary ul {
  list-style: none;
  margin-bottom: 0;
}

#project .nowrap {
  white-space: nowrap;
}

#project .summary ul + ul{
  margin-left: calc(var(--spacing) * 2);
}

#project .summary ul li {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
  margin-bottom: calc(var(--fontsize) * 2);
}

#project .summary ul li:last-child {
  margin-bottom: 0;
}

#project .summary ul li li {
  margin-bottom: calc(var(--fontsize) * 0.5);
}

#project .summary ul h4 {
  font-size: calc(var(--fontsize) - 4px);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  padding: 0 0 var(--fontsize);
}

#project .summary .dots li {
  padding-left: 16px;
}

#project .summary .dots li:before {
  content: '·';
  position: absolute;
  left: 2px;
}

#project .summary a {
  border-bottom: 1px solid rgba(82,85,88,0.25);
}

#project .next_project {
  font-size: 2em;
  border-bottom: 1px solid rgba(82,85,88,0.5);;
}





#project .bento {
  width: 100%;
  aspect-ratio: 2.328767;
  display: grid;
  gap: 24px;
  /*gap: attr(gap px, 24px);*/
  /*grid-template-columns: repeat(7, 1fr);*/
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "hero hero hero hero aside1 aside1 aside1"
    "hero hero hero hero aside2 aside2 aside3";
}

@media only screen and (min-width: 1600px) {
  #project .bento {
    width: 100%;
    height: 584px;
    aspect-ratio: auto;   
    grid-template-columns: 767px 371px 174px;
    grid-template-rows: auto;
    grid-template-areas:
      "hero aside1 aside1"
      "hero aside2 aside3";
  }
}

@media only screen and (max-width: 768px) {
  #project .bento {
    width: 100%;
    height: auto;
    aspect-ratio: auto; 
    gap: 12px;
    /*gap: attr(gap px, 12px);  */
    grid-template-columns: auto;
    grid-template-rows: auto;
    grid-template-areas:
      "hero hero hero"
      "aside1 aside1 aside1"
      "aside2 aside2 aside3";
  }
}

#project .bento img {
  object-fit: fill;
  width: 100%;
  height: 100%;
}

#project .bento .hero {
  grid-area: hero;
}

#project .bento .aside1 {
  grid-area: aside1;
}

#project .bento .aside2 {
  grid-area: aside2;
}

#project .bento .aside3 {
  grid-area: aside3;
}





@media only screen and (max-width: 1024px) {
  #project .image.four {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
}


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

  #project .image {
    padding-left: var(--project-text-left-right);
    padding-right: var(--project-text-left-right);
    column-gap: var(--project-text-left-right);
    grid-row-gap: var(--project-text-left-right);
  }

  #project .image.four {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  #project .image.two {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  #project .image.one.scrollable {
  }

  #project .image.one.scrollable .visual img {
    min-height: 100%;
    max-width: auto;
    width: auto;
  }  

  #project .image.three, #project .image.four {
    display: block;
    overflow-x: scroll;
    overflow-y: hidden;
    font-size: 0;
    line-height: 0;
    white-space: nowrap;
    scroll-snap-type: x mandatory;  
  }  

  #project .image.three .visual, #project .image.four .visual {
    display: inline-block;
    width: calc(100vw - 24px - 24px - 24px);
    scroll-snap-align: center;
  }

  #project .image.three .visual + .visual, #project .image.four .visual + .visual {  
    margin-left: var(--project-text-left-right);*/
  }  

  #project .image.three::-webkit-scrollbar, #project .image.four::-webkit-scrollbar {  
    /*overflow: hidden;*/
    display: none;
  }  

  #project section.cover + section.cover {
    margin-top: var(--project-text-left-right);
  }

  #project .image + .image {
    margin-top: var(--project-text-left-right);
  } 

  #project .summary .wrap {
    flex-direction: column
  }

  #project .summary ul + ul {
    margin-left: 0;
    margin-top: calc(var(--fontsize) * 2);
  }

  #project .next_project {
    font-size: 1.8em;
    border-bottom: 1px solid rgba(82,85,88,0.5);
  }

  #project .image.noclip {
    padding-left: 0;
    padding-right: 0;
  }

  #project .image.noclip .visual img  {
    width: 100vw;
    height: 67.5vh;
    object-fit: cover;
  }

}





















