/* Reset default margins and padding, and set box-sizing to border-box */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: black;
}

.inter {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}
h1, h2, a {
    text-transform: uppercase;
    white-space: normal;
    word-wrap: break-word;
}
p {
    font-size: .75em;
    padding: 1px;
    font-weight: 600;
    text-transform: uppercase;
    text-wrap: pretty;
}
a {
    text-decoration: none;
    border: 0.1em solid black;
}
body {
    width: 80vw;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 80%;
    column-gap: 10px;
}
header {
    top: 1vh;
    margin-bottom: 50px;
    position: fixed;
    width: 80vw;
    margin: auto;
    background-color: transparent; 
}

/* Horizontale nav */
.horizontal-navbar {
    width: 100%;
}

.horizontal-navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    justify-content: space-between;
}

.horizontal-navbar li {
    margin: 0;
}
.horizontal-navbar li:nth-child(2) {
    grid-column: span 2;
}

.horizontal-navbar a {
    text-decoration: none;
    color: black;
    font-weight: 400;
    padding: 0px 5px;
}

.horizontal-navbar a:hover {
    color: grey;
}

.active {
    font-weight: 800 !important;
}

/*  */
footer {
    margin-top: 50px;
    margin-bottom: 50px;
}
footer p a {
    font-size: inherit;
}


.btn {
    cursor: pointer;
}
img {
    width: 100%;
    height: auto;
}
img:hover {
    cursor:zoom-in;
}
.thumbnail {
    max-height: 85vh;
    max-width: 40vw;
    min-width: 40vw;
    object-fit: contain;
    object-position: left;
}
.img-container {
    height: fit-content;
}

.lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.278);
    z-index: 2;
    padding: 10px;
    box-sizing: border-box;
   
        max-width: 100vw !important;
        max-height: 100vh !important;
        object-fit: contain;
        object-position: center;
        cursor: zoom-out !important;
}


.grid { 
    display: grid; 
    grid-template-columns: 1fr ; 
    row-gap: 100px;
    margin-top: 10vh;
}
.project { 
    cursor: pointer; 
}
.hidden { 
    display: none; 
}
.project.expanded { 
    display: grid; 
    grid-template-columns: auto auto auto;
    grid-auto-rows: max-content;
    column-gap: 10px;
  
    .project-details { 
      display: grid;
      gap: 10px;
      margin: 0;
      padding: 0;
      grid-template-columns: 1fr 1fr;
      grid-auto-rows: minmax(0, 150px); 
  
      .img-small {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        max-height: 150px;
        overflow: hidden;
  
        img {
          max-width: 100%;
          max-height: 100%;
          object-fit: cover;
          display: block; 
          object-position: top left;
        }
      }
    }
  }
  
.sub {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.infos {
    display: flex;
    background-color: white;
    border: 1px solid black;
    width: fit-content;
    p{
        padding-right: 5px;
    }
}
.btn-more {
    border: 1px solid black;
    padding: 0px 5px;
}



/* ALL Gallery*/

.all-gallery {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
    /* grid-template-columns:  1fr; */
    column-gap: 10px;
    row-gap: 100px;
    margin: 0;
    margin-top: 20vh;
    padding: 0;
    .img-small {
        max-height: fit-content;
        object-fit: cover;
        line-height: 0;
        overflow: hidden;
    }
}
.commercial {
    grid-template-columns: 1fr 1fr;
    box-sizing: border-box;
}
.index-reihe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    column-gap: 10px;
    row-gap: 10px;
    width: 100%;
    .infos {
        display: block;
        height: fit-content;
        width: 100%;
        grid-column: span 12;
    }
}    

/* about */

.about-text {
    margin-top: 8vh;
    h1 {
        text-transform: none;
        max-width: 55ch;
        hyphens: auto;
        font-weight: 600;
        text-wrap: balance;
    }
}
.about-img {
    margin-top: 8.5vh;
}



@media (max-width: 768px) {
    

    body {
        width: 100vw;
        grid-template-columns: 1fr;
        margin: 0;
        padding: 5px;
        display: block;
    }
    .grid {
        display: block;
        margin-top: 20vh;
    }
    .project {
        display: block;
        margin-bottom: 70px;
    }
    .thumbnail {
        max-height: 90vh;
        max-width: 100%;
        min-width: 100%;
        object-fit: contain;
        object-position: left;
    }
    .project.expanded {
        display: block;
    }
    .project-details {
        margin-top: 10px !important;
        gap: 5px !important;
    }
     
    /* Horizontale nav */
.horizontal-navbar {
    width: 100%;
}

.horizontal-navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
    justify-content: space-between;
    li {
        padding-bottom: .5rem;
    }
}

    .about-text {
        margin-top: 8vh;
        h1 {
            text-transform: none;
            width: 100%;
        }
    }
    .about-img {
        margin-top: 20vh;
    }
}


    
