.projectenbody{
    width: 80%;
    margin-left: 20%;
    text-align: right;
}

.projectenh1{
    font-size: 80px;
    margin-right: 2%;
    animation: 1s ease-out 0s 1 slideInFromRight;
}

.projectenp{
    font-family: 'Lora', serif;
    font-size: 25px;
    width: 80%;
    margin-left: 18%;
    animation: 1s ease-out 0s 1 slideInFromRight;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: -20%;
    margin-top: 15%;
}

.gallery-item {
    flex-basis: 1%; /* Adjust item width */
    margin: 1%;
    margin-bottom: 20px; /* Adjust spacing between items */
}

.gallery > img {
    width: 20%;
    margin-bottom: 10px; /* Adjust spacing between image and button */
}

.meer {
    width: 100%;
    height: 40px;
    text-align: center;
    font-family: 'Yeseva One', serif;
    font-size: 20px;
    background-color: #BECABA;
    border: 0;
    box-shadow: 2px 2px 2px 2px rgb(0 0 0 / 10%);
    border-radius: 50px;
}

.meer:hover {
    box-shadow: 5px 5px 5px 5px rgb(0 0 0 / 10%);
}

.meer a {
    color: black;
    text-decoration: none;
}
.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #768372;
  overflow-x: hidden;
  transition: 0.5s;
  box-shadow: 2px 2px 2px 2px rgb(0 0 0 / 10%);
}

.overlay-content {
  position: relative;
  top: 10%;
  width: 100%;
  margin-left: 5%;
  text-align: left;
  padding-top: 50px;
  font-family: 'Yeseva One', serif;
  font-size: 80px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 40px;
  color: #FBFBFB;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: #BECABA;
}

.overlay .closebtn{
  position: absolute;
  top: 20px;
  right: 45px;
  border: 0;
}

.closebtn {
  background-color: #768372;
  color: #FBFBFB;
  font-size: 80px;
  z-index: 1;
}

.closebtn:hover {
  color: #BECABA;
}

.openbtn{
  color: #BECABA;
  font-size: 80px;
  position: absolute;
  margin-top: -50px;
  margin-left: 5px;
}
.nav-open {
  width: 20%;
}

@media screen and (max-width: 768px) {
    .gallery-item {
        flex-basis: 100%;
    }
}

@keyframes slideInFromRight {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(0);
    }
  }


  @media screen and (max-width: 800px) {
    .projectenbody {
        width: 100%; /* Occupy full width on smaller screens */
        margin-left: 0; /* Remove left margin on smaller screens */
    }

    .projectenh1 {
        margin-top: 12%;
        font-size: 40px; /* Reduce font size for smaller screens */
        margin-right: 0%; /* Remove right margin */
    }

    .projectenp {
        width: 100%; /* Occupy full width on smaller screens */
        font-size: 20px;
        margin-left: 0%; /* Remove left margin */
    }

    .gallery {
      grid-template-columns: auto; /* Display images in a single column */
      margin-top: 10%; /* Adjust margin top */
      margin-left: 5%;
      flex-basis: 1%;
      width: 80%;
      position: relative; /* Ensure the parent is positioned relative for absolute positioning of children */
  }
  
  .gallery-item {
      width: 150px;
      margin-bottom: 20%; /* Adjust spacing between items */
      display: flex;
      align-items: center; /* Align items vertically */
      position: relative; /* Position the gallery item relatively for absolute positioning of its children */
  }
  
  .gallery-item > img {
      width: 110%; /* Adjust image width */
      margin: 2%;
      margin-left: auto; /* Adjust margin to center image horizontally */
      margin-right: auto;
  }
  
  .meer {
      position: absolute; /* Position the button absolutely */
      left: 5%; /* Position it to the left */
      bottom: -8%; /* Position it just below the parent */
      width: 300px; /* Adjust button width */
  }
  

    .overlay {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: #768372;
        overflow-x: hidden;
        transition: 0.5s;
        box-shadow: 2px 2px 2px 2px rgb(0 0 0 / 10%);
      }
      
      .overlay-content {
        position: relative;
        top: 10%;
        width: 100%;
        margin-left: 5%;
        text-align: left;
        padding-top: 50px;
        font-family: 'Yeseva One', serif;
        font-size: 80px;
      }
      
      .overlay a {
        padding: 8px;
        text-decoration: none;
        font-size: 40px;
        color: #FBFBFB;
        display: block;
        transition: 0.3s;
      }
      
      .overlay a:hover, .overlay a:focus {
        color: #BECABA;
      }
      
      .overlay .closebtn{
        position: absolute;
        top: 20px;
        right: 45px;
        border: 0;
      }
      
      .closebtn {
        background-color: #768372;
        color: #FBFBFB;
        font-size: 80px;
        z-index: 1;
      }
      
      .closebtn:hover {
        color: #BECABA;
      }

      .openbtn{
        margin-top: -20px;
      }
      
      /* Adjust the width of the sidebar */
      .nav-open {
        width: 100%;
      }
      
}