#fh5co-main {
  position: relative;
  min-height: 100vh;
  overflow: auto;
  background-color: #ffdab9;
}

.transition {
  position: absolute;
  height: 100%;
  width: 55%;
  background: #2c3e50;
  transform: skewX(-5deg) translateX(-50px);
  transition: 2s all ease-in-out;
  -webkit-transition: 2s all ease-in-out;
}

.fh5co-narrow-content {
  z-index: 10;
}

.anim-trans {
  animation: anim 3s ease-in-out;
}

.head-button {
  color: white;
  text-decoration: none;
  font-size: 25px;
  border: none;
  background: none;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  transition: 0.5s ease;
}

.head-button.active,
.head-button:hover {
  color: #ffa07a;
}

.head-button::before {
  margin-left: auto;
}

.head-button::after,
button::before {
  content: "";
  width: 0%;
  height: 2px;
  background: #ffa07a;
  display: block;
  transition: 0.5s;
}

.head-button:hover::after,
.head-button:hover::before {
  width: 100%;
}

.head-button:focus::after,
.head-button:focus::before {
  width: 100%;
}

.head-button.active::after,
.head-button.active::before {
  width: 100%;
}

@keyframes anim {
  0% {
  }
  20% {
    /* z-index: 11; */
    \transform: skewX(5deg) translateX(-100%);
  }
  40% {
    transform: skewX(0deg) translateX(0);
    width: 100%;
    z-index: 11;
    box-shadow: 10px 10px 5px #eaeaea;
  }
  60% {
    transform: skewX(3deg) translateX(0);
    width: 100%;
    z-index: 11;
    box-shadow: 10px 10px 5px #eaeaea;
  }
  80% {
    transform: skewX(1deg) translateX(-100%);
    width: 55%;
    z-index: 11;
    box-shadow: 10px 10px 5px #eaeaea;
  }
  100% {
    transform: skewX(-5deg) translateX(-50px);
    width: 60%;
    z-index: 1;
    box-shadow: none;
  }
}

.project-item-container{
    padding: 25px;
}

.project-item
{
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 9;
  border-radius: 10px;
}
.portfolio-item .thumb-inner {
  position: absolute;
  z-index: 99;
  bottom: 0;
  text-align: left;
  padding: 20px;
  background-color: rgba(17, 17, 17, 0.527);
  width: 100%;
  height: 60px;
  border-radius: 10px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
.portfolio-item .thumb-inner h4 {
  margin-bottom: 0;
  font-size: 16px;
  margin-top: 0px;
  color: white;
}
.portfolio-item .thumb-inner p {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  margin-bottom: 0px;
}
.portfolio-item:hover .thumb-inner p {
  position: relative;
  opacity: 1;
  visibility: visible;
  color: white;
}
.portfolio-item:hover .thumb-inner {
  border-radius: 10px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}
.portfolio-item:hover .thumb-inner h4 {
  margin-top: 30%;
  color: #1e1e1e;
  margin-bottom: 20px;
}

@media screen and (max-width: 768px)
{

    #fh5co-main .fh5co-narrow-content {
        width: 100%;
        max-height: 100%;
        overflow: auto;
        padding: 4em 1em;
    }
}


/* The Modal (background) */
#image-viewer {
  display: none;
  position: fixed;
  z-index: 1001;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.9);
}
.modal-content {
  margin: auto;
  display: block;
  height: 85%;
  width: auto;
}
.modal-content { 
  animation-name: zoom;
  animation-duration: 0.6s;
}
@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}
#image-viewer .close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}
#image-viewer .close:hover,
#image-viewer .close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 700px){
  .modal-content {
      width: 100%;
      height: auto;
  }
}