:root{
    --main: #000;
    --background: #fff;
    --font-size: 14px;
    --letter-spacing: 0px;
    --line-height: 1.2;
    --margin: 10px;
}

@font-face {
    font-family: 'Sigoli';
    src: url('fonts/Sligoil-Micro.woff2') format('woff2'),
        url('fonts/Sligoil-Micro.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bianzhidai Base';
    src: url('fonts/bianzhidai_noBG-Base.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bianzhidai Base BG';
    src: url('fonts/bianzhidai-Base.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* -^-^-^-^-^-^ */
/* CORE STYLING */
/* -^-^-^-^-^-^ */

html {
    box-sizing: border-box;
    background-color: var(--background);
    font-family: "Sigoli", monospace;
    color: var(--main);
    font-size: var(--font-size);
    letter-spacing: var(--letter-spacing);
    line-height: var(--line-height);
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='50' height='50' viewBox='0 0 50 50' %3E%3Cpath style='stroke:%23fff;' d='M.25,25.96v-8.57h4.29v8.57H.25ZM4.54,8.82h4.29v8.57h-4.29v-8.57ZM4.54,25.96h12.86v4.29H4.54v-4.29ZM8.82,4.54h4.29v4.29h-4.29v-4.29ZM13.11.25h12.86v4.29h-12.86V.25ZM17.39,21.68h4.29v4.29h-4.29v-4.29ZM21.68,13.11h4.29v8.57h-4.29v-8.57ZM25.96,4.54h4.29v8.57h-4.29V4.54Z'/%3E%3C/svg%3E") 10 10, auto;
}
html::-webkit-scrollbar, 
.gallery::-webkit-scrollbar,
.extra-info .bordered.highlight::-webkit-scrollbar {display: none;}
body {margin: 0;}

body>* {
    margin: 0;
    scrollbar-width: none;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2 {font-family: 'Bianzhidai Base', serif; font-weight: normal;}
h2 {
    font-size: 1rem;
    text-transform: lowercase;
}
h1.big{font-size: 3rem;}
h2.active {font-family: 'Bianzhidai Base BG', serif;}
h3{font-weight: 600;}
a:hover{
    cursor: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='50' height='50' viewBox='-2 -2 50 50' %3E%3Cpath style='stroke:%23fff;' d='M.25,25.96h4.29v4.29H.25v-4.29ZM4.54,21.68h4.29v4.29h-4.29v-4.29ZM8.82.25h4.29v12.86h-4.29V.25ZM13.11,21.68h-4.29v-4.29h4.29v4.29ZM13.11,13.11h4.29v4.29h-4.29v-4.29ZM17.39,8.82h4.29v4.29h-4.29v-4.29ZM17.39,17.39h4.29v12.86h-4.29v-12.86ZM21.68,4.54h4.29v4.29h-4.29v-4.29ZM25.96.25h4.29v4.29h-4.29V.25Z'/%3E%3C/svg%3E") 10 10, auto;
}

ul, ol {
padding: 0;
list-style: none;
margin: 0;
}

a {color: inherit;}
.blocks a { font-family: 'Bianzhidai Base', serif;}
.header a, 
.footer a{ text-decoration: none;}
.header a:hover h2, 
.footer a:hover h2,
.header a:hover h1, 
.footer a:hover h1{font-family: 'Bianzhidai Base BG', serif;}

figure {margin: 0; width: 100%;}
img {width: calc(100% - 1px); margin-left: 0px;}
video{
    border-top: solid 1px;
    border-bottom: solid 1px;
    width: calc(100% - 2px);
    margin-left: 2px;
}
iframe {
    border: none;
    width: 100%;
    border-bottom: 1px solid;
    border-top: 1px solid;
}

/* -^-^-^-^-^-^-^ */
/* LAYOUT STYLING */
/* -^-^-^-^-^-^-^ */

main.main-container{
    display: grid;
    grid-template-columns: calc(100vw / 8) auto calc(100vw / 8);
    grid-template-areas: 'header content footer';
    min-height: 100vh;
}
.column:not(:last-child){border-right: solid 1px var(--main);}

.column.area-1.header{grid-area: header;}
.column.area-3.footer{grid-area: footer;}
.column.area-1.header,
.column.area-3.footer{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    height: 100vh;
    top: 0;
    z-index: 2;
}

.column.footer .top.subcontainer {
  padding-top: 75px;
}

.column.area-2{
    display: grid;
    grid-template-rows: auto auto;
}

.column.area-2 .columns-container,
.column.area-2 .content-container {
    display: grid;
    grid-template-columns: repeat(6, calc(100vw / 8) );
}
.column.area-2 .content-container{padding: var(--margin) 0 ;}
.column.area-2 .columns-container{
    position: fixed;
    height: 100vh;
    pointer-events: none;
    width: calc(300vw / 4);
}

.content{z-index: 1;}
.blocks:not(.type-image),
.blocks figcaption{margin-left: -1px;}
.col .blocks h2,
.col .blocks h3 {
    width: calc(100% - 3px);
    background-color: var(--background);
    border-top: 1px solid;
    border-bottom: 1px solid;
    margin-left: 2px;
    padding: var(--margin);
}
.col .blocks h4{
    text-align: right;
    font-family: "Sigoli", monospace;
    color: var(--main);
    font-size: var(--font-size);
    letter-spacing: var(--letter-spacing);
    line-height: var(--line-height);
    font-weight: 200;
}
.col .blocks figure img{
    border-top: solid 1px;
    border-bottom: solid 1px;
}

.content.three-grid{
    display: grid;
    grid-template-columns: repeat(3, calc(100vw / 4));
    position: relative;
}
.project-col {
  padding-top: 75px;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: clip;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.project-col::-webkit-scrollbar {display: none;}
.project-col:not(:last-of-type) {border-right: 1px solid;}
.project-icon{position: relative; border-top: 1px solid;}
.project-icon:last-of-type {border-bottom: 1px solid;}
.project-icon h2{
    position: absolute; 
    bottom: 46%;
    font-family: "Sigoli", monospace;
    font-size: 2.2vw;
    margin-left: var(--margin);
    opacity: 0;
    transition: opacity 0.3s;
    /* text-shadow: 1px 0 3px var(--background), 0 1px 3px var(--background), -1px 0 3px var(--background), 0 -1px 3px var(--background); */
}
.project-icon:hover h2{opacity: 1;}
as-dithered-image, .hover-overlay img {
    display: block;
    line-height: 0;
}
.hover-overlay {
    position: absolute;
    top: 0;
    opacity: 0;
    transition: all 0.5s;
}
.hover-overlay img {width: calc(100% + 1px);}
.project-icon a:hover .hover-overlay {
    opacity: 1;
}

.menu-button {transform: rotate(-90deg);}
.mob-menu-container{
    position: fixed;
    width: 100vw;
    bottom: -65vh;
    z-index: 5;
    background-color: var(--background);
    border-top: 1px solid;
    max-height: 55vh;
    overflow-y: scroll;
    transition: bottom 0.3s;
}
.mob-menu-container.open{bottom: 0;}
.mob-menu-container .columns-container{
    display: grid;
    grid-template-columns: repeat(6, calc(100vw / 8) );
    position: absolute;
    height: 100%;
    pointer-events: none;
    width: calc(300vw / 4);
    padding-left: calc(100vw / 8);
}
.mob-menu-container .column:first-of-type{border-left: 1px solid;}
.mob-menu-container .column:last-of-type{border-right: 1px solid;}

.mob-menu-container .menu-nav{ padding-left: calc(100vw / 8);}
.mob-menu-container .filter-nav{ padding-left: calc(300vw / 8);}
.mobile{display: none;}

@media screen and (max-width: 700px) {
body {
    border-top: 1px solid;
    border-bottom: 1px solid;
}
.mobile {display: block;}
.desktop{display: none;}
.top.subcontainer h1, .bottom.subcontainer h1 {
    transform: rotate(-90deg);
    height: fit-content;
    /* margin-top: 125px; */
}
.main-container.home .top.subcontainer h1,
.main-container.info .top.subcontainer h1 {margin-top: 125px;}

.main-container.project .column.area-1.header,
.main-container.home .column.area-3.footer,
.main-container.info .column.area-3.footer,
.main-container.project .column.area-3.footer{justify-content: space-around;}

.column.footer .top.subcontainer { padding-top: 0;}
.main-container.project .header .bottom.subcontainer{margin-top: 80px;}

.content.three-grid {
    grid-template-columns: 1fr;
    padding-bottom: calc(var(--margin) * 2);
}
.project-col {
    height: fit-content;
    padding-top: var(--margin);
    display: flex;
    flex-direction: column;
    gap: var(--margin);
}
.project-col:not(:last-of-type) {border-right: none;}
.project-icon {border-bottom: 1px solid;}
.project-icon h2 { font-size: 2.3rem; opacity: 1; bottom: var(--margin);}

h1.big{font-size: 2.1rem;}
.header h2, .footer h2 {font-size: 1.5rem;}
.mob-menu-container h2 {font-size: 1.3rem;}
.mob-menu-container a {text-decoration: none;}
.content-container .col {grid-column: span 6 !important;}
.col .blocks h2, 
.col .blocks h3 {
    border: 0;
    border-top: 1px solid;
    border-bottom: 1px solid;
}
}