:root{
    --highlight: #ffffff;
    --headerHeight: 48px; /* two times the margin (30px) + the height of the text */
    --spacing: 15px;
}

html{
    box-sizing: border-box;
    font-family: 'Helvetica';
    /* font-size: 20px; */
    font-optical-sizing: auto;
    font-weight: bold;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
html::-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;
}
/* FONTS SIZE */
.size-1{font-size: max(17px, 1.2vw);}
.size-2{font-size: max(12.5px, 0.9vw);}
.size-3{font-size: max(11px, 0.8vw);}

h1{margin: 0; top: 25px;}
h3{hyphens: none; line-height: 130%; font-size: inherit;}
p, .caption{padding: 0; line-height: 130%;}

/* GENERALS */
ul {
    margin: 0;
    padding: 0;
}
.menu ul {
    display: flex;
    gap: var(--spacing);
    flex-direction: row-reverse;
}
li{
    list-style-type: none;
    margin: 0;
    padding: 0;
    /* overflow: hidden; */
    /* float: right; */
}
li a {
  /* display: block;
  text-align: center;
  padding: 17px; */
  text-decoration: none;
  transition: color 1.5s;
}
p a, li a, .logo a, .sublogo a, .artist a, li.news-article a {display: inline-block;}
/* li img{
    text-align: center;
} */
a{
  text-decoration: none;
  color: black;
}
.content{
    overflow: scroll;
    width: 26vw;
    height: 30vw;
    margin: 0 20px;
    position: absolute;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.content::-webkit-scrollbar {
  display: none;
}
.text-content p {margin: calc(var(--spacing) * 2) 0;}
.menu li a:hover, 
.logo a:hover, 
.sublogo a:hover, 
.artist a:hover,
li.news-article a:hover,
.close:hover, p a:hover{animation: 0.2s cubic-bezier(0.1, 0.6, 0.4, 1) infinite tilt-shaking; }
a:visited{color: inherit;}
/* ADDED GENERALS  */
/* .main{background-color: black;} */
.top-gradient{display: none;}
.main.full{height: calc(100vh - var(--headerHeight));}
.division{
    background-color: black;
    position: fixed;
    top: var(--headerHeight);   
    /* display: none; */
}
.horizontal{
    width: 100vw;
    height: 1px;
    margin-bottom: 20px;
    left: 0;
}
.vertical{
    width: 1px;
    height: 100vh;
}

.button-container {
  display: flex;
  gap: var(--spacing);
  flex-wrap: wrap;
}
.button p { margin: 0; }
/* HEADER */
.header{
    position: fixed; 
    text-transform: uppercase;
    top: 0;
    width: 100vw;
    height: var(--headerHeight);
    background-color: white;
    color: black;
    z-index: 3;
    display: flex;
    padding: var(--spacing);
    justify-content: space-between;
    align-items: center;
}
.header .logo, .header .menu {margin-top: 0.2em;}
/* .logo{position: fixed; z-index: 2; left: 100px; top: 3vh;} */
.logo a, .artist a{transition: color 1.5s;}

.button{
    padding: 5px 10px;
    padding-top: 7px;
    border: 1px solid black;
    transition: color 1.5s;
    transition: background-color 1.5s;
    display: inline;
}
.button:hover{
    color: white;
    background-color: black;
}
.button a{ transition: color 1.5s;}
.button a:hover{
    color: white;
    animation: none; 
}

.resize-animation-stopper * {
  transition: none !important;
  animation: none !important;
}

/* PROJECTS */
.projects{
    position: relative;
    margin: var(--headerHeight) var(--spacing) 0;
    background-color: white;
}
.projects li {
    /* overflow: hidden; */
    position: relative;
    /* width: 30%; */
    width: calc((100% - 30px) /3);
    margin-bottom: var(--spacing);
    line-height: 0.5;
}
/* BOOK */
/* .book{
    background-color: black;
    position: relative;
} */
.book img{width: 100%; height: auto;}
/* FILMS */
.film a {padding: 0;}
.film{
    position:relative;
}
.film:not(.has-video){
    aspect-ratio: 16 / 9;
}
iframe{
    position:absolute;
    top:0;
    /* left:-7%; */
    /* left:0; */
    width:100%;
    /* width:102%; */
    height:100%;
}
.film video{
    display:block;
    width:100%;
    height:auto;
}
.link{
    position: absolute;   
    display:inline-block;  
    z-index:2;
    top:0; 
    left:0;
    width:100%; 
    height:100%;
}
/* EXHIBITIONS */
/* .exhibition{
    background-size: cover;
    min-height: 33vh;
    width: 100%;
} */
.projects * {transition: all 0.6s;}
/* .exhibition a{display: block; padding: 0; width: 100%;height: 100%;} */
.projects li a img:hover {
filter: invert(1);
}
/* .exhibition:hover {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: invert(0);
}  */
.exhibition img{width: 100%;}
.caption{
    text-align: left;
    color: black;
    background-color: white;
    padding: 8px 10px;
    position: absolute;
    /* margin-top: 1%; */
    display: inline-block;
    margin: var(--spacing);
    z-index: 1;
}
/* .captionB{
    left: 6%;
    top: 2%;
    width: 35%;
} */
/* .captionF{ */
    /* width: 35%; */
    /* color: black;
    background-color: white;
    margin-top: -53%;
    margin-left: 1%; */  
/* } */
/* .captionE{
    margin-left: 10%;
    margin-top: 2%;
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    width: 35%;} */
.not-shown{ display: none;}

/* LAYOUT */
.media-layout{
    display: grid;
    /* grid-template-rows: 3fr 1fr; */
    grid-template-rows:80vh 20vh;
    transition: all 1s;
    height: 100vh;
    background-color: black;
}
.media-layout.expand-image{grid-template-rows:90vh 10vh;}

.media-layout.expand-text{grid-template-rows:15vh 85vh;}
.about-layout, .news-layout{
    height: 100vh;
    display: grid;
    grid-template-rows: var(--headerHeight) auto;
}

/* PROJECTS GALLERY */
.media-gallery{
    overflow-y: scroll; z-index: 2; text-align: center;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.media-gallery::-webkit-scrollbar {
  display: none;
}

/* .media-gallery img{ width: 84%;} */
.media-gallery ul{margin-top: var(--headerHeight);}
.media-gallery li{width: 100vw; height: 100%;}
.media-info, .news-info{
    overflow: hidden;
    background-color: white;
    display: grid;
    grid-template-rows: 20px auto;
    border-top: 1px solid black;
}
.media-info{grid-template-columns: 2fr 1fr 1fr;}
.news-info{ grid-template-columns: 1.2fr 1fr 1fr 1fr;}

.gradient{
    border-left: 1px solid black;
    background-image: linear-gradient(rgba(255,255,255,1), rgba(255,255,255,0));
    position: sticky;
    top: 0;
    height: var(--spacing);
}

.column{
    overflow-y: scroll; 
    scrollbar-width: none; 
    margin-top: -20px; 
    padding-top: 20px;
    padding-top: calc(var(--spacing) - 2px);
    border-left: 1px solid black;
}
.column::-webkit-scrollbar {
  display: none;
}
.column > * {margin: 25px 0;}
.column > *:first-child,
.column p:first-of-type {
    margin-top: 0;
}
.one{
    padding-left: 60px;
    padding-right: var(--spacing);
}
.one p{ padding: 0;}
.gradient:first-of-type,
.column.one {
  border-left: none;
}

/* ABOUT (CV) */
.cv-grid {
    display: grid;
    grid-template-columns: 85px repeat(5, 1fr);
    margin: 0;
    min-height: 26px;
}
.cv-column.size-2 .blocks{margin-top: 5px;}
.blocks p {
    margin: 0;
}

.news-article{
    text-align: left;
    width: 100%;
    margin-bottom: calc(var(--spacing) * 2);
}
.news-article h3{margin: 0;}
/* .news-title{margin-top: -1.5vw; margin-bottom: 0;} */
.news-article a{ text-align: left; padding: 0;}
.more-by{width: calc(90% / 2);}

@keyframes tilt-shaking {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(0eg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}


/* mobiles */
@media screen and (max-width: 500px) {
    /* :root{--headerHeight: 15vh;} */
    .size-1{font-size: 3.4vw;}
    .size-2{font-size: 2.5vw;}
    /* .logo{left:20px; top: 7vh; line-height: 84%;} */
    .right{margin-left: 0;}

    nav, .filter p{
        top: -10px; 
        font-size: 3.2vw;
    }
    .filter p{padding-left: 0;}
    .flip-video{width: 100vw;}
    .close{
        top: calc(var(--headerHeight) *1.1);
        right: 2vw;
    }

    .media-layout{ grid-template-rows: 40vh 60vh; }
    .media-layout .media-info{grid-template-columns: 3fr 1fr;}
    .media-layout .media-info .gradient:nth-child(3){display: none;}
    .media-layout .media-info .column.three{display: none;}
    .projects { width: auto;}
    .projects li { width: 100%;}
    .caption{font-size: 3.2vw; width: 25%; margin-left: -4%;}
    .captionE{transform: scale(1); margin-left: -48%;}
    .captionF{margin-left: 2%;}
    /* .caption.not-shown{display: inline-block;} */
    .bio{display: block;}

    .news-latest{
       width: 50vw;
       height: 50vw;
       top: 55vh;
       left: 25vw; 
    }
    .news-info{padding-left: 0;}
    .news-info ul{
        column-count: 1;
    }
    .news-article{margin-bottom: calc(var(--spacing) * 1.5);}
    .news-title{margin-top: -4vw;}
    .one{padding-left: var(--spacing);}
    /* .one ul{padding-left: 20px;} */
    .four, .gradient:nth-child(4){display: none;}
    .artist {font-size: 3.4vw;}
    .cv-grid{ grid-template-columns: 55px repeat(5, 1fr); }
}

