/*
Theme Name: Bertrand Lejoly
Author: So Uncalled—For, SU—F Studio, suf.studio
Description: Custom Theme for Bertrand Lejoly by SU—F Studio
Version: 0.0.1
Tags: custom, su-f, souncalledfor, sufsufstudio, bertrand lejoly, bertrand, lejoly, design studio, design, studio, suf.studio
*/

/*
 * Globals
 */

@font-face{
    font-family:"Circular";
    src:url("fonts/CircularXXWeb-Thin.woff2") format("woff2"),url("fonts/CircularXXWeb-Thin.woff") format("woff");
    font-weight:normal;
}
@font-face{
    font-family:"GT Alpina";
    src:url("fonts/GT-Alpina-Standard-Thin.woff2") format("woff2"),url("fonts/GT-Alpina-Standard-Thin.woff") format("woff");
    font-weight:normal;
}
@font-face{
    font-family:"GT Alpina";
    src:url("fonts/GT-Alpina-Standard-Thin-Italic.woff2") format("woff2"),url("fonts/GT-Alpina-Standard-Thin-Italic.woff") format("woff");
    font-weight:normal;
    font-style:italic;
}

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;
    color:#373936;
    background-color: #F7F5F2;
}
h1, h2, h3, h4, h5, h6, ul, figcaption {
    font-family:"Circular", Helvetica Neue, Arial, sans-serif;
    font-weight:normal;
    margin:0;
    padding:0;
    
}
h1 {
    font-size:48px;
    line-height:60px;
    letter-spacing:-0.5px;
    -webkit-font-smoothing: antialiased;
}
h2 {
    font-size:24px;
    line-height:30px;
    letter-spacing:-0.3px;
    -webkit-font-smoothing: antialiased;
}
h3, #overlay h4 {
    font-size:16px;
    line-height:24px;
}
#overlay .page ul {
    font-size:16px;
    line-height:24px;
    break-inside: avoid;
    break-after: always;
}
header h4 {
    font-size:16px;
    line-height:24px;
}
h5, .details li {
    font-size:12px;
    line-height:15px;
    color:#373936;
    letter-spacing: 0.2px;
}
p, strong {
    font-family:"GT Alpina", Times New Roman, serif;
    font-weight:normal;
    font-size:16px;
    line-height:24px;
    margin:0;
    padding:0;
    -webkit-font-smoothing: antialiased;
}
a, a h5, close {
    text-decoration: none;
    color:#828482;
}
a:hover, close:hover, a:hover h5 {
	color:#373936;
}
ul {
    list-style: none;
}
img, video {
    object-fit: contain;
    object-position: 50% 50%;
    width: 100%;
    height: 100% !important;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

/*
 * Landing
 */

.landing {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background-color: white;
    transition: all 0.5s ease;
    cursor: pointer;
    display: none;
    clip: rect(auto, auto, auto, auto);
}
.landing.hide {
    top:  -100%;
    bottom: 100%;
    position: absolute;
}
.landing.show {
    display: block;
}
.landing h1 {
    position: fixed;
    top:40px;
    left: 40px;
    color: white;
}
.landing figure {
    display:none;
    height: 100%;
    width: 100%;
}
.landing figure.show {
    display:block;
}
.landing figure img, .landing figure video {
    object-fit: cover;
    background-size: cover;
    height: 100%;
}

.landing name {
    background-image: url('svg/woordmerk-wit.svg');
    background-repeat: no-repeat;
    background-position: center center;
    height: 23px;
    width: 200px;
    position: fixed;
    top: 26px;
    left: calc(50% - 100px);
}

/*
 * Header
 */

header {
    position: fixed;
    top:0;
    left:0;
    right:0;
    height:0;
    width:100%;
    max-width: 1600px;
    margin: auto;
    z-index:10;
    padding:24px 40px 18px;
    background-color: #F7F5F2;
    display: flex;
    flex-direction: row-reverse;
    justify-content:space-between;
    height:72px;
    box-sizing: border-box;
    overflow:hidden;
    box-sizing: border-box;
}
header ul {
    display:flex;
    justify-content: flex-start;
    margin:0;
    padding:0; 
    width:calc(33.33% - 24px);
}
header ul li {
    list-style: none;
    display:inline-block;
    margin:0 24px 0 0;
    padding:0;
}
header ul:first-of-type li {
    margin:2px 22px 0 0;
}

header ul:last-of-type li {
    color: #828482;
}
header ul:last-of-type li.active * {
    color: #373936;
}


header name {
    background-image: url('svg/woordmerk.svg');
    background-repeat: no-repeat;
    background-position: center center;
    display: inline-block;
    height: 23px;
    width: 200px;
    margin-top:2px;
}
header .menu-btn {
  cursor: pointer;
    display: none;
}
  
header .menu-btn  svg {
    stroke: #828482;
    transition: .2s;
}
header .menu-btn svg g:first-child {
    opacity: 1;
    transition: opacity 0s .2s;
}
header .menu-btn svg g:first-child line {
    transition: transform .2s .2s;
    transform: translateY(0px);
}
header .menu-btn svg g:last-child {
    opacity: 0;
    transition: opacity 0s .2s;
}
header .menu-btn svg g:last-child line {
    transition: transform .2s;
    transform: rotate(0deg);
    transform-origin: center;
}
header .menu-btn.menu-open svg g:first-child {
  opacity: 0;
}
header .menu-btn.menu-open svg g:first-child line {
  transition: transform .2s;
}

header .menu-btn.menu-open svg g:first-child line:first-child {
  transform: translateY(3px);
}
header .menu-btn.menu-open svg g:first-child line:last-child {
  transform: translateY(-3px);
    
}
header .menu-btn.menu-open svg g:last-child {
  opacity: 1;
}
header .menu-btn.menu-open svg g:last-child line {
  transition: transform .2s .2s;
}

header .menu-btn.menu-open svg g:last-child line:first-child {
    transform: rotate(45deg);
    transform-origin: center;
}
header .menu-btn.menu-open svg g:last-child line:last-child {
  transform: rotate(-45deg);
    transform-origin: center;
    
}   

/*
 * Global
 */

#main {
    display: block;
    position: relative;
    width:100%;
    min-height: 100%;
} 
#overlay {
    top: 0;
    left: 0;
    right:0;
    bottom:0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 100;
    overflow-x:hidden;
    overflow-y:scroll;
    -webkit-overflow-scrolling: touch;
}
wrap {
    display: flex;
    flex-direction: column;
    position: relative;
    height: auto;
}
set {
    width:100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction:column;
    position: relative;
    float:left;
    min-height: calc(100vh - 204px);
}

/*
 * Main
 */

#main wrap {
    width: 100%;
    max-width: 1600px;
    padding: 80px 20px 70px;
    margin: auto;
    display: block;
    box-sizing: border-box;
}
#main wrap .post {
    width: calc(33.33% - 53px);
    display: inline-block;
    margin: 20px 20px 7px;
    font-size: 0;
}
#main wrap .post h5 {
    opacity: 0;
    margin-top: 8px;
}
#main wrap .post:hover h5 {
    opacity: 1;
}
.blog #main wrap .post {
    width:calc(50% - 36px);
    margin:18px 14px 27px 18px;
}
.blog #main wrap .post figure {
    height:35vw;
    width:100%;
}
.home #main .post, .home #main header, .blog #main .post, .blog #main header  {
    opacity:0;
}

/*
 * Fig
 */
 
row {
    display:flex;
    width:100%;
    justify-content: center;
    flex-direction: row;
    margin: 0 auto 72px;
    position: relative;
}

figure {
    font-size:0;
    margin:0;
}


/*
 * Overlay
 */

#overlay {
    transition:top 1s ease;
}
.home #overlay {
    top: 100%;
    display: none;
}
#overlay cover {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
#overlay wrap {
    width: calc(100% - 40px);
    max-width: 1600px;
    min-height: calc(100% - 36px - 108px);
    margin: 72px auto 36px;
    padding: 30px 40px 36px;
    background-color: white;
    z-index: 200;
    box-sizing: border-box;
}
#overlay close {
    position: sticky;
    top:30px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    width: auto;
    cursor: pointer;
    margin-left: calc(100% - 18px);
    z-index:220;
}
#overlay set container {
    justify-content: space-between;
    flex-direction: row;
    opacity:0;
    width: 100%;
}
#overlay set container:first-of-type {
    margin-top:-30px;
}
#overlay set container.credits {
    text-align:center;
}
#overlay container h2 {
    margin:0 auto 72px;
    padding:0;
    max-width:80%;
    box-shadow: border-box;
    text-align:center;
}

#overlay container .info {
    width:50%;
    display:grid;
    margin: 84px auto 72px;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
}

#overlay container .details {
    margin-top: 5px;
}

#overlay container.page {
    margin: 72px 0 72px;
}

#overlay container .wp-block-columns {
    gap: 36px;
}

#overlay container .wp-block-column p {
    width: 65%;
}

#overlay container.Publications .content-container {
    width: 100%;
    columns: 3;
    gap: 36px;
}


#overlay set h3, #overlay set h4 {
    margin-bottom:24px;
}
#overlay set p:not(figcaption) {
    margin-bottom:24px;
}
#overlay set container group.h5 {
    width: 100%;
    display: inline-block;
}
#overlay set container:nth-of-type(2) group.h4, #overlay set container group.ul {
    width:calc(66.66% - 12px);
    margin-right: calc(33.33% + 12px);
    margin-left: 18px;
    display:inline-block;
    vertical-align: top;
}
#overlay set container:nth-of-type(2) group.h3 {
    width:calc(33.33% - 24px);
    display:inline-block;
    vertical-align: top;
}
#overlay set group.p {
    width:calc(33.33% - 24px);
    display:inline-block;
    margin:0 36px 0 18px;
}
#overlay set container.post group.p h5 {
    margin:0;
}
#overlay set container.post group.p h5:first-of-type {
    margin-top:36px;
}
#overlay .page ul {
    width: 100%;
    display: inline-block;
}
#overlay .page li:last-of-type {
    margin-bottom:24px;
}

/*
 * Swiper
 */

 #overlay .swiper {
    height: calc(100vh - 360px);
    padding: 0 72px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.swiper figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swiper figure figcaption {
    display: none;
}

.swiper-navi {
    position: absolute;
    top: 25%;
    left: 0;
    height: 50%;
    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: 1080px){
    
    /*
     * Overlay content
     */
    
    #overlay set:first-of-type group.h3 {
        columns:2;
    }
    #overlay set container:nth-of-type(2) group.h4, #overlay set container group.ul {
        width: calc(100% - 36px);
        margin-right:18px;
    }
    #overlay set:nth-of-type(2) group.h4, #overlay set:nth-of-type(2) group.h3, #overlay set group.p {
        width:calc(50% - 18px);
    }
}

@media (max-width: 750px){

    h1 {
        font-size:28px;
        line-height:36px;
        letter-spacing:-0.3px;
    }
    header h4 {
        font-size:14px;
        line-height:21px;
    }
    h2 {
        font-size:18px;
        line-height:24px;
        letter-spacing:-0.2px;
    }
    
    h3, #overlay h4, #overlay .page ul {
        font-size:14px;
        line-height:21px;
    }

    p, strong {
        font-size:14px;
        line-height:21px;
        letter-spacing:0;
    }

    /*
    * Landing
    */


    .landing h1 {
        top:40px;
        left: 40px;
    }

    .landing name {
        height: 17px;
        width: 120px;
        top: 23px;
        left: calc(50% - 60px);
    }

    /*
     * Header
     */

    header {
        justify-content: start;
        flex-direction: row;
        padding: 20px 18px 18px;
        height: 60px;
        flex-wrap: wrap;
        transition:height ease 0.5s 0.5s;
    }
    header.open {
        height:96px;
        transition:height ease 0.5s;
    }
    header .home-btn {
        width:calc(100% - 72px);
        display:flex;
        justify-content: center;
    }
    header name {
        height: 17px;
        width: 120px;
        margin-top:3px;
    }
    header ul {
        width:auto;
    }
    header ul:last-of-type {
        opacity:0;
        width:100%;
        display:flex;
        justify-content: center;
        margin-top:14px;
        transition:opacity ease 0.5s;
    }
    header.open ul:last-of-type {
        opacity:1;
        transition:opacity ease 0.5s 0.5s;
    }
    header ul:last-of-type li {
        margin: 0 12px;
    }
    header .menu-btn {
        cursor: pointer;
        display: block;
    }

    /*
     * Main
     */

    #main wrap {
        width: 100%;
        padding:68px 9px 36px;
    }
    #main wrap .post {
        width: calc(100% - 36px);
        margin: 12px 9px 15px;
    }
    #main wrap .post h5 {
        opacity:1;
    }
    
    /*
     * Fig
     */


    figure {
        width:100%;
    }

    /*
     * Overlay
     */

    #overlay wrap {
        width: calc(100% - 18px);
        min-height: calc(100% - 69px);
        margin: 60px 9px 9px;
        padding: 15px 18px 36px;
    }
    #overlay close {
        top:27px;
        margin-left: calc(100% - 18px);
    }
    #overlay set container:first-of-type {
        margin-top: -24px;
    }

    #overlay container h2 {
        margin: 0 auto 48px;
        
    }

    #overlay container .info {
        width: 100%;
        display: block;
        margin: 60px auto 48px;
    }

    #overlay container .details {
        margin-top: 48px;
    }

    #overlay container.page {
        margin: 36px 0 36px;
    }

    #overlay container.Studio .wp-block-columns, #overlay container.Contact .wp-block-columns {
        flex-direction: column-reverse;
    }

    #overlay container .wp-block-column p {
        width: 100%;
    }

    #overlay container.Publications .content-container {
        width: 100%;
        columns:1;
        gap: 0;
    }

    #overlay set group {
        margin-bottom:48px
    }
    #overlay set:first-of-type group.h3 {
        columns:1;
        column-gap: 0;
        margin: 0 9px;
        width:calc(100% - 18px);
    }
    #overlay set h3, #overlay set h4 {
        margin-bottom:21px;
    }
    #overlay set p:not(figcaption) {
        margin-bottom:18px;
    }
    #overlay set container:nth-of-type(2) group.h4, #overlay set container group.ul {
        width:calc(100% - 18px);
        margin: 0 9px 24px 9px;
    }
    #overlay set:nth-of-type(2) group.h3 {
        width:100%;
    }
    #overlay set group.p {
        width:calc(100% - 18px);
        margin: 0 9px 48px;
    }
    #overlay .page li:last-of-type {
        margin-bottom: 24px;
    }
    #overlay set container group.h5 {
        margin-bottom:36px;
    }
    #overlay row.is-cropped figcaption.blocks-gallery-caption {
        position: relative;
        bottom:inherit;
        margin:-24px 9px 36px;
    }
    #overlay row.is-cropped.has-caption figure img {
        height:100%;
    }

    /*
    * Swiper
    */

    #overlay .swiper {
        height: calc(100vh - 380px);
        padding: 0;
    }

    .hover-arrow {
        height:13px;
        width:7px;

    }
    .swiper-navi {
        height: 10%;
        top: 45%;
    }

    .prev-el, .next-el {
        width: 10%;
    }
}
    