
.portfolio {
    position: relative;
    margin: 10px 10px;
    float: left;
    width: 343px;
    transition-duration: 0.4s;
    animation: winanim 0.5s;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}
.portfolio:hover {
  box-shadow: 0 12px 16px 0 rgba(0, 0, 0, .24), 0 17px 50px 0 rgba(0, 0, 0, .19);
}

.portfolio img {
  width: 100%;
  height: auto;
}

.desc {
  padding: 10px 5px;
  text-align: center;
  font-size: 90%;
  background: #fff;
  color: #000;
  text-transform: capitalize; 
  font-style: italic;
  font-weight: bold;
  display:none;
}

.nav {
  text-align: center;
  margin: 0 auto;
  padding-bottom: 3em;
}

.nav li a {
  margin: 5px;
  padding: 13px 50px;
  font-size: 14px;
  color: #1e2d3a;
  font-weight: 600;
  border: transparent;
  box-sizing: content-box;
  transition-duration: 0.4s;
}

.nav a:hover {
  background:#ea1d5d!important;
  color: #fff;
}

.nav .active {
  background: #1963eb !important;
  border: transparent;
  color: #fff;
}
#image-gallery .modal-footer{
  display: block;
}

.thumb{
  margin-top: 15px;
  margin-bottom: 15px;
}
.modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
}
.portfolio.lost {
    margin-right: 0;
}
@keyframes winanim {
  0% {
    opacity: 0;
    transform: scale3d(.3, .3, .3)
  }
  50% {
    opacity: 1
  }
}

/* //portfolio */

@media screen and (max-width: 1080px) {
  .portfolio {
    width: 280px;
  }
}

@media screen and (max-width: 991px) {
  .portfolio {
    width: 200px;
  }
}

@media screen and (max-width: 736px) {
  .nav li a {
    padding: 9px 35px;
  }
  .portfolio {
    width: 220px;
  }
}

@media screen and (max-width: 480px) {
  .nav li a {
    padding: 9px 25px;
  }
  .portfolio {
    width: 181px;
  }
}

@media screen and (max-width: 414px) {
  .nav li a {
    padding: 5px 19px;
    font-size: 14px;
  }
  .portfolio {
    width: 144px;
  }
}

@media screen and (max-width: 384px) {
  .portfolio {
    width: 93%;
    float: none;
  }
  .nav {
    padding-bottom: 1.5em;
  }
}

@media screen and (max-width: 375px) {
  .nav li a {
    padding: 5px 15px;
  }
}

@media screen and (max-width: 320px) {
  .nav li a {
    padding: 3px 11px;
  }
}
