#Projects {
  padding: 2vw;
  line-height: 3vw;
}

input[type="text"] {
  width: 35vw;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 1.2vw;
  padding: 9px 40px;
}

#ProjectsList img {
  object-fit: contain;
  max-width: 30%;
  width: auto;
  height: auto;
  padding: 3vw 0;
  cursor: pointer;
}

#ProjectsList img:hover {
  opacity: 0.7;
}

#ProjectsList li {
  list-style: none;
}

.projectsOptions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3vw;
}

#sortOptions {
  display: none;
}

/* .projectsSort button {
  display: flex;
  font-size: 1.2vw;
} */

.button-31 {
  background-color: rgb(100, 100, 100);
  border-radius: 0.4vw;
  border-style: none;
  box-sizing: border-box;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  padding: 0.3vw 1vw;
  text-align: center;
  text-transform: none;
  user-select: none;
  -webkit-user-select: none;
  color: white;
}

.button-31:hover {
  background-color: rgb(150, 150, 150);
  color: black;
}

.project {
  margin: 3vw 0;
  border: 2px solid;
  border-radius: 4px;
}
.projectHeading {
  text-align: center;
  border-bottom: 2px solid;
  border-radius: 4px;
  background: #bbbbbb;
  padding: 1vw 4vw;
  display: flex;
  justify-content: space-between;
}
.projectHeading h3:nth-child(1) {
  margin-right: 5vw;
}
.projectContent {
  padding: 2vw;
}

.projectImages {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

/* Image Popup */
.imagePopup {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 5vw; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 90vh; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}
.ImagePop {
  margin: 3vw auto;
  display: block;
  width: 75%;
  overflow: auto;
}
#ImgCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 120px;
}
.ImagePop,
#ImgCaption {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}
@-webkit-keyframes zoom {
  from {
    -webkit-transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
  }
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
.Imgclose {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.Imgclose:hover,
.Imgclose:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

@media only screen and (max-width: 770px) {
  #Projects {
    line-height: 5vw;
  }

  input[type="text"] {
    font-size: 2.5vw;
    padding: 0.3vw 5vw;
    border-radius: 2px;
    width: 50vw;
  }

  #ProjectsList img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
  }

  #ProjectsList img:hover {
    opacity: 1;
  }

  .project {
    border: 1px solid;
  }
  .projectHeading {
    border-bottom: 1px solid;
    padding: 2vw;
  }

  .projectsSort {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .button-31 {
    border-radius: 0.8vw;
  }
  .projectsSort button {
    font-size: 2.5vw;
  }
  .projectsSort img {
    height: 4vw;
  }

  .projectsOptions {
    flex-direction: column;
  }

  .ImagePop {
    width: 90%;
  }
}
