/* Portfolio Section
--------------------------------*/
#portfolio {
  background: #f7f7f7;
  padding: 80px 0;
}

#portfolio #portfolio-wrapper {
  /* padding-right: 15px; */
}

#portfolio #portfolio-flters {
  padding: 0;
  margin: 0 0 45px 0;
  list-style: none;
  text-align: center;
}

#portfolio #portfolio-flters li {
  cursor: pointer;
  margin: 0 10px;
  display: inline-block;
  padding: 10px 22px;
  font-size: 12px;
  line-height: 20px;
  color: #666666;
  border-radius: 4px;
  text-transform: uppercase;
  background: #fff;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

#portfolio #portfolio-flters li:hover, #portfolio #portfolio-flters li.filter-active {
  background: #2dc997;
  color: #fff;
}

#portfolio .portfolio-item {
  position: relative;
  height: 200px;
  overflow: hidden !important;
  margin-bottom: 15px;
  transition: all 350ms ease;
  transform: scale(1);
}

#portfolio .portfolio-item a {
  display: block;
  margin-right: 15px;
}

#portfolio .portfolio-item img {
  position: relative;
  top: 0;
  transition: all 600ms cubic-bezier(0.645, 0.045, 0.355, 1);
  width: 280px;
}




@media (max-width:500px) {
  #portfolio .portfolio-item img {
    margin-left:  55px;
  }
}


@media (max-width:400px) {
  #portfolio .portfolio-item img {
    margin-left:  30px;
  }
}

@media (min-width:768px) {
  #portfolio .portfolio-item img {
    margin-left:  20px;
  }
}


#portfolio .portfolio-item .details {
  height: 50px;
  background: #2dc997;
  position: absolute;
  width: 250px;
  height: 50px;
  bottom: -50px;
  transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
  left:35px;
}

#portfolio .portfolio-item .details h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  padding: 8px 0 2px 8px;
  /* margin: 0; */
  margin-top: 5px;
}

#portfolio .portfolio-item .details span {
  display: block;
  color: #fff;
  font-size: 13px;
  padding-left: 8px;
}

#portfolio .portfolio-item:hover .details {
  bottom: 0;
}

#portfolio .portfolio-item:hover img {
  top: -30px;
}



/* The Modal (background) */
 .modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

/* Modal Content */
#portfolio .modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

#portfolio .close:hover,
#portfolio .close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

#portfolio .mySlides {
  display: none;
}

#portfolio .cursor {
  cursor: pointer;
}

/* Next & previous buttons */
#portfolio .prev,
#portfolio .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
#portfolio .next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
#portfolio .prev:hover,
#portfolio .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
#portfolio .numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

#portfolio img {
  margin-bottom: -4px;
}

#portfolio .caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

#portfolio .demo {
  opacity: 0.6;
}

#portfolio .active,
#portfolio .demo:hover {
  opacity: 1;
}

#portfolio img.hover-shadow {
  transition: 0.3s;
}

#portfolio .hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
#portfolio  body {
  font-family: Verdana, sans-serif;
  margin: 0;
}

#portfolio  * {
  box-sizing: border-box;
}

#portfolio  .row > .column {
  padding: 0 8px;
}

#portfolio  .row:after {
  content: "";
  display: table;
  clear: both;
}

 .column {
  float: left;
  width: 25%;
}
