*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%}
body{font-family:Inter,sans-serif;font-weight:700;font-size:14px;line-height:1.15;background:#fff;color:#707070;overflow:hidden}

.project-header{position:fixed;inset:0;z-index:30;pointer-events:none}
.project-meta{position:absolute;top:15px;left:15px;width:calc(50vw - 30px);pointer-events:auto}
#project-caption{color:#000}
#project-description{margin-top:0;width:100%;color:#707070;font-weight:700;line-height:1.15}#project-description a{color:#707070;text-decoration:none;transition:color .15s}#project-description a:hover{color:#000}
#project-counter{position:absolute;right:calc(50vw + 15px);top:50%;transform:translateY(-50%);font-family:"Roboto Mono",monospace;font-weight:400;color:#000;white-space:nowrap}
.back{position:absolute;left:15px;bottom:15px;color:#707070;text-decoration:none;transition:color .15s ease;pointer-events:auto}
.back:hover{color:#000}

#project-slideshow{position:fixed;inset:0 0 0 50vw;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain}
#project-slideshow::-webkit-scrollbar{display:none}
.project-slide{width:100%;height:100vh;padding:15px 15px 15px 0;display:flex;align-items:center;justify-content:flex-start;scroll-snap-align:start;scroll-snap-stop:always}
.project-image{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 30px);object-fit:contain}.project-video{background:#fff}

@media(max-width:768px){
  .project-header{inset:0;pointer-events:none}
  .project-meta{position:absolute;left:15px;bottom:calc(15px + 1.15em + 12px);top:auto;width:calc(100vw - 30px)}
  #project-caption{color:#000}
  #project-description{margin-top:0;width:100%;color:#707070}
  .back{left:15px;bottom:15px;pointer-events:auto}
  #project-counter{position:fixed;right:15px;top:auto;bottom:auto;transform:none;font-family:"Roboto Mono",monospace;font-weight:400;color:#000;z-index:40}
  #project-slideshow{inset:0;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;touch-action:none}
  .project-slide{position:relative;flex:0 0 100vw;width:100vw;height:100vh;padding:15px;display:block}
  .project-image{display:block;width:100%;height:auto;max-width:none;max-height:calc(100vh - 165px);object-fit:contain;object-position:left top}
}
.home-name{color:#707070;text-decoration:none;transition:color .15s}
.home-name:hover{color:#000}

@media(max-width:768px){
  #project-counter{
    top:auto !important;
    right:15px;
    bottom:15px;
    transform:none;
  }
}

@media(max-width:768px){
  .project-meta{
    bottom:calc(15px + 1.15em + 1.15em);
  }
  .back,
  #project-counter{
    bottom:15px;
  }
}
