/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/
*, *::before, *::after {
    box-sizing: border-box;
}
* {
    padding:0;
    margin: 0;
}
html, body {
    height: 100%;
}
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}
input, button, textarea, select {
    font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}
html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    font-weight:400;
    background-color: rgb(255, 255, 255);
    overflow:hidden;
    cursor:url(/assets/img/cursor.png) 10 10, default;
}
a {text-decoration:none;color: inherit;}

a:-webkit-any-link {
    cursor:url(/assets/img/cursor.png) 10 10, pointer;
}
.wrapper {
    display:grid;
    grid-template-rows: 67.5px calc(100% - 135px)  67.5px;
    grid-template-areas:
    "header"
    "main"
    "footer";
    max-height:100%;
    max-width:100%;
    position: relative;
    cursor:url(/assets/img/cursor.png) 10 10, default;
}
header {
    grid-area:header;
    width:100%;
    font-size:16px;
    background-color:rgba(255, 255, 255,.7);
    -webkit-backdrop-filter:blur(10px);
    backdrop-filter:blur(10px);
    z-index:1;
    font-family: 'Montserrat', sans-serif;
}
header nav ul {
    display:flex;
    list-style:none;
    padding:20px 40px;
    font-weight:600;
}

main {
    grid-area:main;
    display:grid;
    grid: 1fr / auto-flow 100vw;
    overflow-y:hidden;
    overflow-x:scroll;
    position: relative;
    scroll-snap-type: x mandatory;
    padding:20px;
    scroll-behavior: smooth;
    outline: none;
    cursor:url(/assets/img/cursor.png) 10 10, default;
}
main::-webkit-scrollbar {
    display:none;
}
main div {
    position:relative;
    scroll-snap-align: start;
    height:inherit;
    min-height:0;
    overscroll-behavior: contain;
    cursor:url(/assets/img/cursor.png) 10 10, default;
}
main div img {
    margin: auto;
    object-fit: contain;
    /*object-position:center;*/
    max-width:100%;
    max-height:100%;
    cursor:url(/assets/img/cursor.png) 10 10, default;
}
footer {
    grid-area: footer;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    padding:20px 40px;
    font-size:16px;
    font-weight:600;
    line-height:1;
    position:relative;
    z-index:10;
}
footer .project {
    flex:0 0 20%;
    text-align:right;
}
#info {
    position:relative;
    font-weight:500;
    cursor:url(/assets/img/cursor.png) 10 10, pointer;
}
#info:hover {font-weight:600;}

.info-pannel {
    position:absolute;
    top:0;right:0;
    height:100vh;
    width:100px;
    transform:translateY(100vh);
    z-index:100;
    padding:23px 80px 20px 40px;
    background-color: rgba(255, 255, 255,.9);
    backdrop-filter: blur(5px);
    font-size:18px;
    overflow: hidden;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}
.info-pannel .close {
    padding-bottom:67px;
    cursor:url(/assets/img/cursor.png) 10 10, pointer;
    width:16px;
    height:16px;
}
.info-pannel .project-name {
    padding-bottom:30px;
    margin-bottom:10px;
    position:relative;
    color:#6a6b6a;
    font-weight:700;
}
.info-pannel .project-name:after {
    content:" ";
    position: absolute;
    bottom:0;
    width:20px;
    height:0;
    display:block;
    border-bottom:2px solid #8e8d8d;
}
.info-pannel .container {
    font-weight:600;
    overflow-x:hidden;
    overflow-y:scroll;
    line-height:1.3;
    position:relative;
    padding-right:20px;
    padding-bottom:100px;
    color:#8e8d8d;
    flex:1;
}

.info-pannel .container::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 3px;
}

.info-pannel .container::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(0,0,0,1);
    -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}

.info-pannel .container p {

}
/*.info-pannel .container ~ .gradient {
    position: absolute;
    width: 100%;
    height: 50px;
    bottom: 0;
    left:0;
    box-shadow: 0 -32px 246px 50px hsl(36deg 71% 96%);
    z-index: 120000;
}*/
.info-pannel .container .project-info {
    display:flex;
    justify-content:space-between;
    flex-wrap: wrap;
}
.info-pannel .container .project-info > div {
    flex:0 0 45%;
    position: relative;
    margin-top:30px;
    padding-top:10px;
}
.info-pannel .container .project-info > div.fullWith {
    flex:0 0 100%;
}
.info-pannel .container .project-info > div:not(:empty)::before {
    content:"";
    position:absolute;
    top:0;left:0;
    width:20px;
    height:2px;
    background-color:#8e8d8d;
}
.info-pannel .container .project-info > div .title {
    /*font-weight:400;*/
    line-height:1;
    color:#6a6b6a;
}
.info-pannel .container .project-info > div .desc {
    color:#8e8d8d;
}

.info-pannel.active {
    transform:translateY(0);
    transition:transform .3s ease-out;
}

header nav .info {
    display:none;
}

@media screen and (max-width:750px) {
    main {
        position: relative;
        grid-area:main;
        grid:unset;
        display:flex;
        justify-content:flex-start;
        flex-direction: column;
        align-items:center;
        overflow-x:hidden;
        overflow-y:scroll;
        scroll-snap-type: y mandatory;
        padding:0 10px;
        scroll-behavior: smooth;
        outline: none;
        max-width: 100vw;
        gap:10px;
        height: calc(100vh - 135px);
    }
    main div {
        display:grid;
        place-items:center;
        height:100%;
        flex:0 0 100%;
        padding-left:0;
        padding-right:0;
        min-height:0;
    }
    main div img {
        height: 100%;
        min-height: 0;
        max-height:100%;
    }

    .info-pannel {
        top:unset;
        bottom:0;
        height:80vh;
        width:100%;
        transform:translateY(100vh);
        padding:20px;
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        z-index:10;
    }

    header nav ul {
        padding:20px;
        justify-content:space-between;
    }
    header nav .info {
        display:block;
        padding:1px 10px;
        border-radius:20px;
        border:1px solid #000;
        cursor:url(/assets/img/cursor.png) 10 10, pointer;
    }

    #info {display:none;}
    footer {padding:20px;}
    footer .project {display:none;}
    .info-pannel .container .project-info {display: block;}
}
