/*
Theme Name: Marianne Borremans
Author: So Uncalled—For, SU—F Studio, suf.studio
Description: Custom Theme for Marianne Borremans by SU—F Studio
Version: 0.0.1
Tags: custom, su-f, souncalledfor, sufsufstudio, marianne borremans, marianne, borremans, art, artist
*/

/*
 * Globals
 */

@font-face{
    font-family:"Pressura";
    src:url("fonts/GT-Pressura-Text.woff2") format("woff2");
    font-weight:normal;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}
body {
    -ms-autohiding-scrollbar: auto;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    scroll-behavior: smooth;
    background-color: #ffffff;
    color:#333333;
}
h1, h2, h3, h4, h5, h6, p, ul, figcaption {
    font-family:"Pressura", Helvetica, Arial, sans-serif;
    font-weight:normal;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.1px;
    color: #333333;
    margin:0;
    padding:0;
}
h1, h2 {
    margin-bottom: calc((15px * 1.6));
}
p, #main .page ul {
    color: #888888;
}
p, #main .page ul {
    margin-bottom: calc(15px * 1.6);
}
#main .page ul ~ h2 {
    margin-top: calc((15px * 1.6)*2);
}
a {
    color: #bdbdbd;
    text-decoration: none;
}
a:hover, h1 a {
	color:#333333;
    text-decoration:none;
}
ul {
    list-style: none;
}

/*
 * Fig
 */

 figure {
    font-size:0;
    margin:0;
    width:100%;
    height:100%;
}

img, video, #main .wp-block-image img {
    object-fit: contain;
    object-position: 50% 50%;
    width: 100%;
    height: 100%;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

/*
 * Header
 */

header {
    position: fixed;
    top:0;
    left:0;
    height:0;
    width:16.66%;
    margin: auto;
    z-index:10;
    padding:30px;
    box-sizing: border-box;
}

header li {
    align-items: center;
    display: flex;
    flex-direction: row;
}

header li svg {
    margin-right: 10px;
}

header li.active a {
    color: #333333;
}

/*
 * Global
 */

main {
    display: block;
    position: fixed;
    height: 100%;
    top: 0;
    bottom:0;
    overflow-x:hidden;
    overflow-y:scroll;
    -webkit-overflow-scrolling: touch;
    background-color: white;
    transition: right 1s ease;
} 

#main.show, #overlay.show {
    right:0;
    box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.1);
    transition: right 1s ease;
}

#main.hide, #overlay.hide {
    box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.1);
    transition: right 1s ease;
}

wrap {
    display: flex;
    flex-direction: column;
    position: relative;
    height: auto;
}

/*
 * Main
 */

#main {
    width: 83.34%;
    right: -83.34%;
    z-index: 50;
    transition: right 1s ease;
} 

#main.hide {
    right: -83.34%;

}

#main wrap {
    width: 80vw;
    margin: 0 0 0 auto;
    display: block;
}
#main wrap container {
    width: 100%;
    display: grid;
    gap: 30px;
    padding: 30px 30px 45px;
    box-sizing: border-box;
}
#main wrap container.grid-0 {
    padding: 0 0 15px;
}

#main wrap .grid-6 {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}
#main wrap .grid-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
#main wrap .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
#main wrap .grid-2 {
    grid-template-columns: 1fr 1fr;
}
#main wrap .grid-0 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}
#main .wp-block-columns.is-layout-flex {
    gap: 30px;
}
#main wrap.blur {
    filter: blur(10px);
}

#main figcaption {
    display: none;
}

#main wrap .post {
    display: inline-block;
    margin: 0;
    font-size: 0;
    aspect-ratio: 1;
}

#main wrap .grid-0 .post {
    margin: 30px;
    vertical-align: top;
}

#main wrap .grid-0 .xl {
    width:calc(66.66% - 46px - 90px);
}
#main wrap .grid-0 .l {
    width:calc(50% - 43px - 90px);
}
#main wrap .grid-0 .m {
    width:calc(33.33% - 40px - 90px);
}
#main wrap .grid-0 .s {
    width:calc(25% - 38px - 90px);
}
#main wrap .grid-0 .xs {
    width:calc(16.66% - 35px - 90px);
}

/*
 * Overlay
 */

#overlay {
    width: 66.66%;
    right: -66.66%;
    z-index: 100;
}

#overlay.hide {
    right: -66.664%;
}

#overlay.show cover {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 33.33%;
}
#overlay wrap {
    width: 55vw;
    margin: 30px auto 60px;
    box-sizing: border-box;
}

.post-info {
    position: absolute;
    bottom: 24px;
    display:flex;
    justify-content: space-between;
    width:100%;
    z-index:10;
}

.post-info > * {
    margin-bottom: 0;
}

/*
 * Swiper
 */

 #overlay .swiper {
    height: calc(100vh - 60px);
    margin: 0 auto;
    width: inherit;
    overflow: hidden;
    box-sizing: border-box;
}

.swiper figure img {
    width: auto;
    max-width: 50vw;
    max-height: 50vw;
    height: calc(100vh - 200px);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.swiper figure figcaption {
    position: absolute;
    bottom: 0;
    color: #888888;
    opacity: 0;
    transition: opacity 0.5s ease;
    margin:0;
}

.swiper figure.swiper-slide-active figcaption {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.swiper-navi {
    position: absolute;
    top: 0;
    left: 0;
    height: 50vw;
    width: 100%;
    z-index: 5;
    display:flex;
    justify-content: space-between;

}
.prev-el, .next-el {
    width:25%;
    height:100%;
    
}
.hover-arrow {
    position: absolute;
    z-index: 100;
    top:50%;
    height:16px;
    width:9px;
    transform: translateY(-50%);
}
.prev-el .hover-arrow {
    left:0;
    background-color: #828482;
    -webkit-mask-image: url("svg/arrow-left.svg");
    mask-image: url("svg/arrow-left.svg");
}
.next-el .hover-arrow {
    right:0;
    background-color: #828482;
    -webkit-mask-image: url("svg/arrow-right.svg");
    mask-image: url("svg/arrow-right.svg");
    
}
.nav-el:hover .hover-arrow {
    background-color:#373936;
}

@media (max-width: 750px){

   /*
    * Header
    */

    header {
        width:100%;
        padding:17px 15px;
        display:grid;
        grid-template-columns: 1fr 1fr;
    }
    header h1 {
        width:100%;
        padding:0;
    }
    header ul {
        width:100%;
        padding:0;
    }
    header ul.open li {
        opacity: 1;
        max-height: 100px;
        transition: opacity 0.3s ease 0.5s, max-height 0.5s ease;
    }
    header ul:not(.open) li {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease 0.3s;
    }
    header ul:not(.open) li.active {
        opacity: 1;
        max-height: 100px;
    }

    /*
    * Global
    */

    main {
        
        top: 100%;
        left: 0;
        right: 0;
        bottom: auto;
        transition: top 1s ease;
    } 
    
    #main.show, #overlay.show {
        transition: top 1s ease;
    }
    
    #main.hide, #overlay.hide {
        top: 100%;
        transition: top 1s ease;
    }

    /*
    * Main
    */

    #main {
        width:100%;
        height: calc(100% - 60px);
    } 

    #main.show {
        top:60px;
        
    }
    #main.show cover {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 60px;
    }

    #main wrap {
        width: 100%;
    }
    #main wrap container {
        gap: 30px;
        padding: 45px 15px;
    }
    #main wrap .grid-6 {
        grid-template-columns: 1fr 1fr 1fr;
    }
    #main wrap .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    #main wrap .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    #main wrap .grid-2 {
        grid-template-columns: 1fr;
    }
    
    #main wrap .grid-0 .post {
        margin: 15px;
    }
    
   
    #main wrap .grid-0 .xl {
        width:calc(66.66% - 30px);
    }
    #main wrap .grid-0 .l {
        width:calc(50% - 30px);
    }
    #main wrap .grid-0 .m {
        width:calc(33.33% - 30px);
    }
    #main wrap .grid-0 .s {
        width:calc(25% - 30px);
    }
    /*
    * Overlay
    */

    #overlay {
        width:100%;
        height: calc(100% - 120px);
    }

    #overlay.show {
        top:120px;
    }

    #overlay.show cover {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: 120px;
    }

    #overlay wrap {
        width: calc(100vw - 30px);
        margin: 45px 15px 30px;
        height: calc(100% - 75px);
    }

    /*
    * Swiper
    */

    #overlay .swiper {
        height: 100%;
        width: calc(100vw - 30px);
    }
    .swiper figure img {
        max-width: calc(100vw - 30px);
        max-height: calc(100vw - 30px);
        height: 100%;
    }
    .swiper-navi {
        height: calc(100vw - 30px);
        pointer-events: none;
    }
    .prev-el, .next-el {
        width:25%;
        height:100%;
        
    }
    .hover-arrow {
        position: absolute;
        z-index: 100;
        top:50%;
        height:16px;
        width:9px;
        transform: translateY(-50%);
    }
    .prev-el .hover-arrow {
        left:0;
        background-color: #828482;
        -webkit-mask-image: url("svg/arrow-left.svg");
        mask-image: url("svg/arrow-left.svg");
    }
    .next-el .hover-arrow {
        right:0;
        background-color: #828482;
        -webkit-mask-image: url("svg/arrow-right.svg");
        mask-image: url("svg/arrow-right.svg");
        
    }
    .nav-el:hover .hover-arrow {
        background-color:#373936;
    }

}
    