main {
  overflow: hidden;
  margin-bottom: -90px;
}

#portfolio-banner {
  background-image: url("../images/portfolio/banner-bg.jpg");
  background-position: center;
  background-size: cover;
}
#portfolio-banner .wrapper {
  min-height: 675px;
  padding-top: 95px;
  padding-bottom: 365px;
}
#portfolio-banner .wrapper h1 {
  font-family: "Yaseva Regular", sans-serif;
  font-weight: normal;
  font-size: 70px;
  text-shadow: 0px 0px 70px rgba(0, 0, 0, 0.5);
  color: #fff;
  line-height: 1;
  margin-bottom: 35px;
  text-align: center;
}
#portfolio-banner .wrapper p {
  color: #fff;
  line-height: 1.4;
  font-size: 16px;
  text-align: center;
  padding: 0 250px;
}

#portfolio-gallery {
  position: relative;
  z-index: 2;
}
#portfolio-gallery .wrapper .video {
  width: 775px;
  height: 465px;
  position: relative;
  margin: 0 auto;
  background-color: #eee;
  margin-top: -340px;
  margin-bottom: 35px;
}
#portfolio-gallery .wrapper .video img.play {
  position: absolute;
  width: 54px;
  height: 54px;
  top: -webkit-calc(50% - 54px / 2);
  top: calc(50% - 54px / 2);
  left: -webkit-calc(50% - 54px / 2);
  left: calc(50% - 54px / 2);
  -webkit-transform: scale(1);
          transform: scale(1);
  cursor: pointer;
  z-index: 9;
  opacity: 1;
  transition: 1s;
  -webkit-transform-origin: center;
          transform-origin: center;
}
#portfolio-gallery .wrapper .video video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
#portfolio-gallery .wrapper .video::before {
  content: "";
  width: 239px;
  height: 239px;
  background-image: url("../images/portfolio/video-left-decor.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  position: absolute;
  left: -119px;
  bottom: 80px;
  transition: 0.5s;
  pointer-events: none;
  -webkit-transform: translateX(0);
          transform: translateX(0);
}
#portfolio-gallery .wrapper .video::after {
  content: "";
  width: 357px;
  height: 465px;
  background-image: url("../images/portfolio/video-right-decor.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  position: absolute;
  right: -120px;
  bottom: 0;
  transition: 1s;
  pointer-events: none;
  -webkit-transform: translateX(0);
          transform: translateX(0);
}
#portfolio-gallery .wrapper .video.playing::before, #portfolio-gallery .wrapper .video.playing::after {
  opacity: 0;
}
#portfolio-gallery .wrapper .video.playing::before {
  -webkit-transform: translateX(-100px);
          transform: translateX(-100px);
}
#portfolio-gallery .wrapper .video.playing::after {
  -webkit-transform: translateX(100px);
          transform: translateX(100px);
}
#portfolio-gallery .wrapper .video.playing img.play {
  -webkit-transform: scale(0);
          transform: scale(0);
  opacity: 0;
}
#portfolio-gallery .wrapper ul {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  width: -webkit-calc(100% + 5px);
  width: calc(100% + 5px);
  margin-right: -5px;
}
#portfolio-gallery .wrapper ul li {
  height: 197px;
  margin-right: 5px;
  margin-bottom: 5px;
  width: -webkit-calc(100% / 4 - 5px);
  width: calc(100% / 4 - 5px);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
#portfolio-gallery .wrapper ul li * {
  pointer-events: none;
}
#portfolio-gallery .wrapper ul li span {
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 35px;
  font-family: "Rubik SemiBold", sans-serif;
}
#portfolio-gallery .wrapper ul li img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
#portfolio-gallery .wrapper ul li.overflow {
  display: none;
}

#portfolio-more {
  background-image: url("../images/construction/more-bg.jpg");
  background-position: bottom center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}
#portfolio-more .wrapper {
  padding-bottom: 375px;
  padding-top: 495px;
  margin-top: -350px;
}
#portfolio-more .wrapper h2,
#portfolio-more .wrapper b {
  color: #1e3a6a;
  font-family: "Yaseva Regular", sans-serif;
  font-weight: normal;
  display: block;
  line-height: 1;
  font-size: 70px;
  text-align: center;
}
#portfolio-more .wrapper h2 {
  margin-bottom: 10px;
}
#portfolio-more .wrapper b {
  font-size: 30px;
  position: relative;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 45px;
}
#portfolio-more .wrapper b.with-decor {
  padding-bottom: 20px;
}
#portfolio-more .wrapper b.with-decor::after {
  content: "";
  width: -webkit-calc(100% - 20px);
  width: calc(100% - 20px);
  height: 12px;
  background-image: url("../images/home/clients-wave.svg");
  background-size: contain;
  background-position: center;
  background-repeat: repeat-x;
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}
#portfolio-more .wrapper p {
  color: #1e3a6a;
  line-height: 1.4;
  font-size: 16px;
  margin-bottom: 80px;
  padding: 0 300px;
  text-align: center;
}
#portfolio-more .wrapper p.bottom-p {
  margin-bottom: 35px;
}
#portfolio-more .wrapper a.btn-primary {
  margin: 0 auto;
}

@media screen and (max-width: 1024px) {
  #portfolio-banner .wrapper {
    padding-bottom: 230px;
    min-height: 500px;
  }
  #portfolio-banner .wrapper h1 {
    font-size: 50px;
  }
  #portfolio-banner .wrapper p {
    padding: 0;
  }

  #portfolio-gallery .wrapper .video {
    width: 580px;
    height: 345px;
    margin-top: -190px;
  }
  #portfolio-gallery .wrapper .video::before {
    width: 110px;
    height: 110px;
    left: -55px;
    bottom: 30px;
  }
  #portfolio-gallery .wrapper .video::after {
    width: 265px;
    height: 344px;
    right: -89px;
  }
  #portfolio-gallery .wrapper ul li {
    width: -webkit-calc(100% / 3 - 5px);
    width: calc(100% / 3 - 5px);
  }

  #portfolio-more {
    background-position: bottom left;
  }
  #portfolio-more .wrapper {
    padding-bottom: 235px;
    margin-top: -421px;
  }
  #portfolio-more .wrapper h2 {
    font-size: 40px;
  }
  #portfolio-more .wrapper b {
    font-size: 18px;
  }
  #portfolio-more .wrapper p {
    padding: 0;
  }
}
@media screen and (max-width: 760px) {
  .overlay .gallery .container img.main {
    max-width: 100%;
  }
  .overlay .gallery .container span {
    margin-right: -45px;
    z-index: 2;
    margin: 0;
  }
  .overlay .gallery .container span.next {
    margin-left: -45px;
  }
  .overlay .gallery .container span.prev {
    margin-right: -45px;
  }
  .overlay .gallery aside {
    padding: 2px;
    width: 65px;
  }
  .overlay .gallery aside ul li {
    width: 100%;
    margin-right: 0;
    height: 42px;
  }
  .overlay .form h2 {
    font-size: 21px;
    max-width: 215px;
  }
  .overlay .form p {
    font-size: 13px;
  }
  .overlay .form .row {
    flex-direction: column;
    margin-bottom: 0;
  }
  .overlay .form .row .col {
    margin-bottom: 15px;
    width: 100%;
    padding-right: 0;
  }

  #portfolio-banner .wrapper {
    padding-bottom: 100px;
    min-height: 380px;
  }
  #portfolio-banner .wrapper h1 {
    font-size: 30px;
    margin-bottom: 10px;
  }
  #portfolio-banner .wrapper p {
    font-size: 13px;
  }

  #portfolio-gallery .wrapper .video {
    width: 280px;
    height: 190px;
    margin-top: -75px;
  }
  #portfolio-gallery .wrapper .video::before {
    width: 65px;
    height: 65px;
    left: -32px;
    bottom: 15px;
  }
  #portfolio-gallery .wrapper .video::after {
    width: 265px;
    height: 191px;
    right: -167px;
  }
  #portfolio-gallery .wrapper ul li {
    width: -webkit-calc(100% / 2 - 5px);
    width: calc(100% / 2 - 5px);
    height: 165px;
  }

  #portfolio-more {
    background-size: initial;
  }
  #portfolio-more .wrapper h2 {
    font-size: 30px;
  }
  #portfolio-more .wrapper b {
    margin-bottom: 30px;
  }
  #portfolio-more .wrapper p {
    font-size: 13px;
  }
}