/* 
Maintenecent Site lukasgrogg.ch

Contacter Lukas Grogg 
contact@lukasgrogg.ch

Agence de développement Vision of Detail
info@visionofdetail.com

 */

@font-face {
    font-family: 'WantedSansStdVariable';
    font-weight: 300 900;
    font-style: normal;
    src: url("fonts/WantedSansStdVariable.woff2") format('woff2');
}

:root {
    /* colors */
    --main-color: #fff;
    --second-color: #000;
    --third-color: #ddc5b0;

}

body {
    margin: 0;
    font-family: 'WantedSansStdVariable', Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.33em;
    letter-spacing: .02em;
    color: var(--main-color);
    background-color: var(--second-color);
}

body.b-gallery {
    color: var(--second-color);
    background-color: var(--main-color);
}

h1 {
    font-size: clamp(2em, 5vw, 10em);
    line-height: 1em;
    letter-spacing: .07em;
    font-weight: 580;
    display: block;
    margin: 0 auto;
}

h2 {
    font-size: 1em;
    font-weight: 500;
}

a {
    color: var(--main-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    width: 100%;
    height: auto;
    margin: 0;
}

picture {
    width: 100%;
    height: auto;
}

.inner {
    max-width: 1900px;
    width: calc(100% - 10em);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.top,
.menu {
    position: fixed;
    top: 2em;
    left: 0;
    right: 0;
    width: 100%;

    transition: top 0.3s ease;
}

.center {
    position: fixed;
    top: 50dvh;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-50%);

    transition: top 0.3s ease;
}

.bottom {
    position: fixed;
    bottom: 2em;
    left: 0;
    right: 0;
    width: 100%;

    transition: bottom 0.3s ease;

}

.slide {
    position: relative;
}

.slide h2:hover {
    text-decoration: underline;
}

.content {
    position: absolute;
    bottom: 15vh;
    left: 0;
    /* display: none; */
    width: clamp(150px, 28vw, 400px);
    transform: translateY(300%);

    transition: ease-in-out 150ms;
}

#slide1 .content {
    width: clamp(150px, 40vw, 600px);
}

.content .titre {
    display: flex;
    justify-content: space-between;
}

.content ul {
    position: relative;
    list-style-type: none;
    padding: 0;
}

.content ul li {
    padding: .3em 0;
    display: flex;
    justify-content: space-between;
    gap: .5em;
    flex-direction: column;
}

.content ul li picture {
    position: absolute;
    top: 0;
    left: 15em;
    opacity: 0;
    transform: translate(0, 0);
    width: 150px;
}

.content ul li:hover picture {
    opacity: 1;
    transform: translate(0, 0);
}

#theBackground {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

#theBackground picture {
    height: 100vh;
    width: 100vw;
    display: block;
}

#theBackground img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.menu {
    z-index: 1000;
}

.menu .inner {
    position: relative;

}

#menu-button {
    display: none;
    position: absolute;
    justify-content: space-between;
    flex-direction: column;
    top: 1.2em;
    right: 0;
    width: 1.5em;
    height: 1em;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: var(--main-color);

    transition: transform 0.3s ease;
}

/* anim */
.menu-active #menu-button .bar:nth-child(1) {
    transform: translateY(.41em) rotate(45deg);
}

.menu-active #menu-button .bar:nth-child(2) {
    opacity: 0;
}

.menu-active #menu-button .bar:nth-child(3) {
    transform: translateY(-.41em) rotate(-45deg);
}



@media screen and (max-width: 750px) {

    #menu-button {
        display: flex;
    }

    h2 {
        margin: .3em 0;
    }

    .inner {
        max-width: 1900px;
        width: calc(100% - 4em);
    }

    .top .inner {
        flex-direction: column;
    }

    .top .inner .col {
        max-width: clamp(200px, 80%, 300px);
    }


    .menu-active .top {
        top: -100%;
    }

    .menu-active .center {
        top: 3.6em;
    }

    .bottom {
        bottom: -100%;
    }

    .bottom .inner {
        flex-direction: column;
    }

    .menu-active .bottom {
        bottom: 2em;
    }


    #slide1 .content,
    .content {
        position: fixed;
        top: 10em;
        left: 0;
        /* display: none; */
        width: calc(100% - 4em);
        height: 50%;
        transform: translateX(300%);
        opacity: 0;
        pointer-events: none;

        transition: ease-in-out 150ms;

    }

    .menu-active #slide1 .content,
    .menu-active .content {
        opacity: 1;
        pointer-events: all;
    }

}