#portfolio {
  padding: 60px 15px 30px;
  min-height: 200vh;
}

.img-container-portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-items: center;
  align-items: center;
  margin: auto;
  gap: 20px;
  padding-top: 700px;
}

.myImgPortfolio {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  background-size: cover;
  height: 100%;
  width: 100%;
}

.myImgPortfolio:hover {
  opacity: 0.7;
}

.modalPortfolio {
  display: none;
  position: fixed;
  z-index: 20;
  left: 0;
  top: 60px;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 99;
}

.modal-content-portfolio {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background: black;
  opacity: 0.8;
  position: relative;
  width: 80%;
  margin: auto;

  -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);
  }
}

.closePortfolio {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  background-color: black;
  padding: 0 10px;
  cursor: pointer;
}

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

.modal-text-portfolio {
  margin: auto;
  display: block;
  padding: 15px;
  color: white;
}

/*************************   1200px    *******************************/
@media (min-width: 1200px) {
  .img-container-portfolio {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/*************************   1920    *******************************/
@media (min-width: 1920px) {
  .img-container-portfolio {
    max-width: 1920px;
    gap: 50px;
  }
}
