/* GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
    font: inherit;

    /* outline: solid 1px rgba(0,0,0,.2); */
    /* outline: solid 1px turquoise; */
}

html {
    font-size: 16px;
    line-height: 1.4;
    scroll-behavior: smooth;
}

body {
    font-family: 'Maison Neue';
    letter-spacing: .15rem;
    background: #fffbf7;
}

img {
    max-width: 100%;
    vertical-align: top;
}

a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: #aaa;
    text-decoration-skip: edges;
    /* border-bottom: solid 1px #999; */
}

a:hover {
    /* border-bottom: solid 1px transparent; */
    text-decoration: none;
}

::selection {
    background: #000;
    color: #fff;
}

.container {
    padding: 0 40px;
}

.main {
    animation: fadein .5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadein {
    from {
        opacity: 0;
        position: relative;
        top: 20px;
    }

    to {
        opacity: 1;
        position: relative;
        top: 0;
    }
}

.intro {
    margin-top: 6rem;
    /* margin-bottom: 7rem; */
    /* margin-bottom: 8.4rem; */
    margin-bottom: 8.5rem;
    text-align: center;
}

button {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    letter-spacing: inherit;
}

.body--focusable *:focus {
    outline: solid 4px rgba(0,0,0,.7);
}

*:focus {
    outline: none;
}

/* fix lazyloading aspect ratio */
.lazy-container {
    position: relative;
    width: 100%;
    background: rgba(0,0,0,.1);
    /* outline: solid 2px blue; */
    /* overflow: hidden; */
    /* height: 0; */
    /* Formula is: (height / width * 100%) */
    /* padding-top: calc(360 / 360 * 100%); */
  }
  
  .lazy-container img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    height: auto;
  }




/* TYPOGRAPHY */

/* replace font files before final deployment! */

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

@font-face {
    font-family: 'SinhalaMN';
    src: url('../fonts/SinhalaMN-Bold.woff') format('woff');
    font-weight: bold;
}

@font-face {
    font-family: 'Maison Neue';
    src: url('../fonts/MaisonNeueWEB-Book.woff') format('woff');
    font-weight: normal;
}

@font-face {
    font-family: 'GT Super';
    src: url('../fonts/GT-Super-Display-Light.woff') format('woff');
    font-weight: 300;
}

@font-face {
    font-family: 'GT Super';
    src: url('../fonts/GT-Super-Display-Regular.woff') format('woff');
    font-weight: normal;
}

@font-face {
    font-family: 'Caslon';
    src: url('../fonts/ACaslonProItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

h2 {
    font-family: 'GT Super';
    font-weight: normal;
    text-align: center;
    line-height: 1;
    font-weight: 300;

    /* font-size: 2.6rem;
    letter-spacing: .25rem; */

    letter-spacing: .102em;
    white-space: nowrap;

    font-size: min(3vw, 2.6rem);

    font-feature-settings: 'lnum';
}

em {
    font-family: 'Caslon';
    font-style: italic;
    text-transform: initial;
    letter-spacing: .1rem;
}

.text {
    text-align: center;
    max-width: 42em;
    margin: auto;
}

p {
    margin-bottom: 1.4em;
}

h2 + .text {
    margin-top: 1.4em;
}




/* HEADER */

.header {
}

.nav {
    height: 180px;
    display: grid;
    grid-template-columns: repeat(3, minmax(auto, 1fr));
}

.nav > div, .nav > a {
    padding: 24px;
}

.nav-left {
    order: 1;
}

.nav-head {
    order: 2;
    justify-self: center;
    text-align: center;
    display: block;
}

.nav-right {
    order: 3;
    justify-content: end;
    justify-self: end;
}

.nav-right a+a {
    margin-left: 20px;
}

.nav-head-logo {
    /* font-family: 'SinhalaMN';
    font-size: 4rem;
    letter-spacing: .7rem;
    text-transform: uppercase; */
}

.nav-head-logo img {
    /* width: 360px; */
    width: 340px;
}

.nav-head-subline {
    /* font-size: .9rem; */
    /* line-height: 1.4em; */
    margin-top: 1rem;
    white-space: nowrap;
}

.nav a {
    border-bottom: none;
    text-decoration: none;
    display: inline-block;
    transform: scale(1);
    transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav a:hover {
    transform: scale(.92);
}

a.nav-head:hover {
    transform: scale(.94);
}

.nav-link--active {
}

.nav-link--active:after {
    content: '●';
    position: absolute;
    top: 1.5em;
    left: 50%;
    transform: translateX(-50%);
}

.smallheader {
    visibility: hidden;

    position: fixed;
    height: 70px;
    /* top: -70px; */
    width: 100%;
    z-index: 50;
    background: #fffbf7;
    /* border-bottom: solid 1px rgba(0,0,0,0.5); */
    transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);

    top: -80px;
    transform: scale(1.2);
}

.smallheader nav {
    height: 100%;
}

.smallheader:after {
    content: '';
    height: 1px;
    width: 100%;
    background: rgba(0,0,0,.3);
    display: block;
}

.smallheader--visible {
    visibility: visible;
    top: 0;
    transform: scale(1);
}

.smallheader a.nav-head {
    /* outline: solid 2px blue; */
    /* height: 100%; */
}

.smallheader a.nav-head .nav-head-logo img {
    /* outline: solid 1px red; */
    height: 1.4em;
}







/* FOOTER */

.footer {
    margin-top: 8rem;
    margin-bottom: 2rem;
    display: grid;
    /* grid-template-columns: repeat(4, 1fr); */
    grid-template-columns: auto auto auto 7rem;
    grid-gap: 0 20px;
    font-family: 'SinhalaMN';
    line-height: 1;
    white-space: nowrap;
    /* grid-template-columns: auto auto auto auto; */
}

.footer > div {
    /* outline: solid 1px #ccc; */
}

.bubig {
    /* outline: solid 1px red;
    width: 7rem; */
}

.bubig img {
    /* height: 7rem; */
    /* 7rem = 5 * zeilenhöhe von 1.4 (standardzeilenhöhe), also 5 zeilen */
    height: 6em;
    margin-top: -.5em;
    float: right;
    /* 5rem = 5 * aktuelle zeilenhöhe */
}

.backtotop {
    position: fixed;
    bottom: 13px;
    right: 20px;
    background: rgba(0,0,0,.5);
    padding: 4px 8px;
    font-size: 12px;
    color: #fff;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: #000 0px 1px 1px;
    /* -webkit-font-smoothing: antialiased; */
}

.backtotop:hover {
    background: rgba(0,0,0,.9);
}

.backtotop--visible {
    opacity: 1;
    pointer-events: auto;
}





/* PHOTOS */

.photos {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    margin-top: 20px;
    grid-gap: 20px;
    margin-bottom: 4rem;
    /* align-items: top;
    justify-items: top;
    justify-content: top; */
}

.photo {
    height: fit-content;
    align-self: start;
    width: 100%;
}

.photo--empty {
    pointer-events: none;
}

.photo img {
    width: 100%;
}

.photo--w25 {
    grid-column: span 1;
}

.photo--w50 {
    grid-column: span 2;
}

.photo--w75 {
    grid-column: span 3;
}

.photo--w100 {
    grid-column: span 4;
}

.photovideo {
    outline: solid 1px red;
}

.photos .embed-container .video {
    /* outline: solid 1px red; */
    width: 100%;
    max-width: 100%;
    margin: auto;
    margin-bottom: 2.4rem;
}

.photos .embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.photos .embed-container iframe {
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}




/* OTHER */

.portfoliolink {
    display: inline-block;
    border: solid 1px #aaa;
    text-decoration: none;
    padding: 16px 24px;
    margin-top: 2em;
    transform: scale(1);
    transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 40px;
}

.portfoliolink:hover {
    transform: scale(.95);
    background: rgba(0,0,0,.1);
    border: solid 1px transparent
}



/* SWIPER */
.swiper-container {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    background: #fffbf7;

    transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.body--swiper {
    overflow: hidden;
}

.body--swiper .header, .body--swiper .smallheader, .body--swiper .main, .body--swiper .footer {
    visibility: hidden;
    /* hide everything except swiper, so that these elements are not keyboard-controllable */
    transition: all 0s .3s;
    /* unfuck the transition by delaying the hiding until swiper is opened */
} 

.body--swiper .swiper-container {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.swiper-wrapper {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* height: -webkit-fill-available; */
}

.swiper-slide {
    /* display: flex;
    justify-content: center; */
    max-width: 100%;
    max-height: 100%;
    /* position: relative; */
    display: grid;
}

.swiper-slide img {
    max-height: calc(100% - 160px);
    max-width: 100%;
    align-self: center;
    justify-self: center;
    position: absolute;
    bottom: 80px;
}

.swiper-close {
    display: block;
    position: absolute;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 2rem;
    text-align: center;
    top: 0;
    right: 0;
    z-index: 100;
    user-select: none;
    cursor: pointer;
    /* outline: solid 1px red; */
    transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.swiper-close:hover {
    transform: rotate(90deg);
    margin-top: -2px;
}

.swiper-button-prev {
    position: absolute;
    top: 0;
    left: 0;
    right: initial;
    width: 50vw;
    height: 100vh;
    height: -webkit-fill-available;
    cursor: w-resize;
}

.swiper-button-next {
    position: absolute;
    display: block;
    right: 0;
    left: initial;
    top: 0;
    width: 50vw;
    height: 100vh;
    height: -webkit-fill-available;
    cursor: e-resize;
}

.body--focusable .swiper-button-prev:focus, .body--focusable .swiper-button-next:focus, .body--focusable .swiper-close:focus {
    background: rgba(0,0,0,.7);
    outline: none;
}

.body--focusable .swiper-button-prev:focus:before, .body--focusable .swiper-button-next:focus:before {
    display: block;
    color: #fff;
    font-family: 'Maison Neue';
    font-size: inherit;
    text-transform: uppercase;
    letter-spacing: .15rem;
}

.body--focusable .swiper-button-prev:focus:before {
    content: 'Previous';
}

.body--focusable .swiper-button-next:focus:before {
    content: 'Next';
}

.swiper-button-prev:after, .swiper-button-next:after {
    display: none;
}

.swiper-pagination {
    font-size: 1.2rem;
    font-family: 'Caslon';
    font-style: italic;
}

.swiper-pagination-current, .swiper-pagination-total {
}

.mobilenav, .hamburger, .generalclose {
    display: none;
}



.bio {
}

.bio-profilepic {
    margin: auto;
    margin-bottom: 1.4rem;
    border-radius: 100%;
    width: 200px;
    display: block;
}

.bio:not(.bio--expanded) p {
    display: inline;
    margin-bottom: 0;
}

.bio:not(.bio--expanded) .bio-btn--less {
    display: none;
}

.bio:not(.bio--expanded) .bio-more {
    display: none;
}

.bio-btn {
    display: inline-block;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: #aaa;
    background: transparent;
}

.bio-btn:hover {
    text-decoration: none;
}

.bio-btn--more {
}

.bio-btn--less {
}

.bio-more {
}

.bio--expanded .bio-btn--more {
    display: none;
}




@media (max-width: 1000px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 800px) {
    html {
        /* font-size: 16px; */
    }

    .container {
        padding: 0 10px;
    }

    h2 {
        font-size: 8vw;
        white-space: normal;
        hyphens: auto;
        /* font-family: 'Maison Neue'; */
    }

    h2 br {
        display: none;
    }

    .photos {
        display: block;
    }

    .photo {
        margin-bottom: 1em;
        cursor: auto;
        pointer-events: none;
    }

    .photo--empty {
        display: none;
    }

    .photo img {
    }

    .main {
        padding-top: 50px;
    }

    .footer {
        display: block;
        text-align: center;
        margin-top: 6rem;
        padding-bottom: 1.4rem;
    }

    .footer > div {
        margin-bottom: 1.4em;
    }

    .bubig {
        margin-top: 4em;
    }

    .bubig img {
        clear: both;
        float: none;
    }

    .nav-left, .nav-right {
        display: none;
    }

    .header {
        display: none;
    }

    .smallheader {
        visibility: visible;
        top: 0;
        transform: scale(1);
        height: 50px;
        padding: 0;
        border-bottom: solid 1px rgba(0,0,0,.3);
    }

    .smallheader:after {
        display: none;
    }
    
    .nav {
        display: block;
        padding: 0;
    }

    a.nav-head {
        height: 100%;
        width: 50vw;
        padding: 0;
        display: grid;
        align-items: center;
        justify-items: start;
        padding: 10px;
    }

    .nav-head-logo {
    }

    .hamburger {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 500;
        width: 50px;
        height: 50px;
        font-size: 30px;
        line-height: 50px;
    }

    .hamburger span {
        user-select: none;
    }

    .hamburger span+span {
        display: none;
        font-size: 3rem;
        line-height: 52px;
    }

    .hamburger--active span:first-of-type {
        display: none;
    }

    .hamburger--active span+span {
        display: block;
    }

    .hamburger--active {
        /* outline: solid 1px red; */
    }

    .mobilenav {
        display: block;
        top: -200px;
        visibility: hidden;
        position: fixed;
        z-index: 2;
        /* font-family: 'SinhalaMN'; */
        font-size: 16px;
        font-weight: normal;
        box-shadow: rgba(0,0,0,.5) 0px 0px 8px;
        transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobilenav--visible {
        visibility: visible;
        top: 50px;
    }

    .mobilenav a {
        display: block;
        height: 50px;
        line-height: 50px;
        width: 100vw;
        background: #fffbf7;
        border-bottom: solid 1px rgba(0,0,0,.3);
        text-decoration: none;
        padding-left: 9px;

        transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobilenav a:hover {
        background: #e2dfdc;
    }

    .generalclose {
        display: block;
        position: fixed;
        z-index: 1;
        background: rgba(250,250,250,.2);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        height: 200vh;
        width: 100vw;
        top: 0;
        left: 0;
        pointer-events: none;
        opacity: 0;
        transition: all .2s cubic-bezier(0.16, 1,  0.3, 1);
    }

    .generalclose--visible {
        pointer-events: auto;
        cursor: pointer;
        opacity: 1;
    }

    .intro {
        margin-bottom: 6rem;
    }
}