.portfolio {
  display: grid;
  grid-column-gap: 20px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: row dense;
}

.project {
  cursor: pointer;
}

.project__image {
  width: 100%;
  height: auto;
}

.project__name {
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  color: #00769E;
  margin: 0;
  margin-top: 10px;
}

.project__description {
  text-align: center;
  font-weight: 400;
  font-size: 15px;
  color: #545454;
}

/* Modal CSS */
/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  -webkit-animation-name: fadeIn;
  -webkit-animation-duration: 0.4s;
  animation-name: fadeIn;
  animation-duration: 0.4s
}

/* Modal Container */
.modal-container {
  position: fixed;
  bottom: 0;
  background-color: #fefefe;
  width: 100%;
  -webkit-animation-name: slideIn;
  -webkit-animation-duration: 0.4s;
  animation-name: slideIn;
  animation-duration: 0.4s
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

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

.modal-header {
  justify-content: center !important;
  padding: 2px 16px;
  background-color: #EBEEF3;
  color: white;
}

.modal-body {
  padding: 2px 16px;
}

.modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

/* Add Animation */
@-webkit-keyframes slideIn {
  from {
    bottom: -300px;
    opacity: 0
  }

  to {
    bottom: 0;
    opacity: 1
  }
}

@keyframes slideIn {
  from {
    bottom: -300px;
    opacity: 0
  }

  to {
    bottom: 0;
    opacity: 1
  }
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}


/* Modal */
h2 {
  padding: 0;
  color: #000;
  margin: 0 0 5px;
}

.project__body {
  overflow: hidden;
}

.project .project__body {
  display: none;
}

.portfolio-flex {
  display: flex;
  flex-wrap: wrap;
}

@media screen and (min-width: 640px) {
  .portfolio {
    grid-template-columns: repeat(6, 1fr);
  }

  .project__body {
    grid-column: span 6;
  }

  .portfolio-flex {
    margin-left: -10px;
    margin-right: -10px;
  }

  .portfolio-flex .project {
    width: 25%;
    padding: 10px;
  }

  .portfolio-flex .project__body {
    padding: 0 10px;
  }
}