.single-portfolio .navigation {
  background: #02214C;
}

.portfolio-single-top {
  margin-top: 100px;
  background: #F4F4F4;
  padding: 80px;
}

.portfolio-single-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-single-title {
  font-size: 54px;
  line-height: 84px;
}

a.portfolio-single-back-btn {
  flex: 0 0 340px;
  font-size: 24px;
  color: white;
  line-height: 29px;
  background: #FF0248;
  padding: 21px 32px;
  -webkit-box-shadow: 0px 30px 15px 0px rgba(0, 0, 0, 0.16);
  -moz-box-shadow: 0px 30px 15px 0px rgba(0, 0, 0, 0.16);
  box-shadow: 0px 30px 15px 0px rgba(0, 0, 0, 0.16);
}

a.portfolio-single-back-btn:hover {
  background: #292929;
}

a.portfolio-single-back-btn i {
  font-size: 17px;
  margin-right: 15px;
}

.before-after-btns a {
  color: black;
  font-weight: 700;
}

.before-after-btns a:hover,
.before-after-btns .current {
  color: #FF0248;
}

.before-after-btns span {
  margin: 0 10px;
}

#before {
  display: none;
}

#after img,
#before img {
  max-width: 100%;
}

.before-after-btns {
  margin-bottom: 22px;
}

.portfolio-single-widget-title {
  font-size: 20px;
  line-height: 24px;
  margin-bottom: 20px;
}

.portfolio-single-widget {
  line-height: 24px;
  margin-bottom: 0;
}

.portfolio-single-widget {
  margin-bottom: 55px;
}

.portfolio-single-widget-list {
  padding-left: 24px;
  margin: 0;
  line-height: 24px;
}

.portfolio-client-box {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  align-items: center;
}

#portfolio-single-content .col-md-8 {
  padding-right: 110px;
}

.project-item-image img {
  max-height: 35vw;
  min-height: 230px;
  width: 100%;
  object-fit: cover;
}

.project-item-image {
  position: relative;
}

.project-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 33, 76, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 600ms ease;
}

a.view-larger-btn {
  background: #FF0248;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px;
}

a.view-larger-btn:hover {
  background: #292929;
  color: white;
}

a.more-details-btn {
  color: black;
  background: white;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 16px;
  margin-left: 10px;
}

a.more-details-btn:hover {
  background: #292929;
  color: white;
}

.project-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.project-item-likes span {
  margin-left: 10px;
}

.project-item-image:hover .project-item-overlay {
  opacity: 1;
}

.project-item-likes .fa-heart {
  color: #dd4d53;
}

a.project-item-url {
  color: black;
  opacity: 0.5;
  font-size: 16px;
  display: block;
  margin-top: -5px;
}

.project-item-likes {
  display: none;
}

#portfolio-related {
  background: #F4F4F4;
}

.portfolio-single-widget:last-child {
  margin-bottom: 0;
}

.related-portfolio-items {
  margin-top: 60px;
}

.hero-cta {
  font-size: 24px;
  width: 100%;
  color: white;
  display: block;
  text-align: center;
  line-height: 29px;
  background: #FF0248;
  padding: 23px 0;
  -webkit-box-shadow: 0px 30px 15px 0px rgba(0, 0, 0, 0.16);
  -moz-box-shadow: 0px 30px 15px 0px rgba(0, 0, 0, 0.16);
  box-shadow: 0px 30px 15px 0px rgba(0, 0, 0, 0.16);
  margin-top: 80px;
}

.hero-cta:hover {
  background: #292929;
  color: white;
}

@media (max-width: 405px) {
  .hero-cta {
    font-size: 18px;
    padding-left: 7px;
    padding-right: 7px;
    width: 100%;
  }
}

#portfolio-single-content .col-md-4 {
  padding-left: 0;
}

.portfolio-single-widget a {
  color: black;
}

.portfolio-single-widget a:hover {
  color: #FF0248;
}

body.tag .navigation {
  background: #02214C;
}

body.tag #portfolio-related {
  margin-top: 100px;
  padding-bottom: 90px;
}

body.tag .load-item {
  margin-bottom: 30px;
}

@media (max-width: 991px) {
  .portfolio-single-top {
    padding-left: 0;
    padding-right: 0;
  }

  .portfolio-single-title {
    font-size: 42px;
    line-height: 1.4;
    flex: 0 0 90%;
    text-align: center;
  }

  .portfolio-single-top .container {
    display: block;
    text-align: center;
  }

  a.portfolio-single-back-btn {
    margin-top: 30px;
    display: inline-block;
  }
}

@media (max-width: 991px) {

  #portfolio-single-content .col-md-8,
  #portfolio-single-content .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #portfolio-single-content .col-md-8 {
    padding-right: 15px;
    padding-left: 15px;
  }

  #portfolio-single-content .col-md-4 {
    padding-left: 15px;
  }
}

@media (min-width: 481px) and (max-width: 991px) {
  #portfolio-single-content .col-md-8 {
    margin-bottom: 80px;
  }

  .hero-cta {
    margin-top: 80px;
  }

  .hero-cta {
    width: 410px;
    display: block;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  #portfolio-single-content .col-md-8 {
    margin-bottom: 50px;
  }

  .hero-cta {
    margin-top: 50px;
  }
}

@media (max-width: 991px) {
  .related-portfolio-items {
    display: block;
  }

  .load-item {
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
  }

  .load-item:last-child {
    margin-bottom: 0;
  }

  .project-item-row {
    justify-content: center;
  }

  .project-item-details {
    text-align: center;
  }
}

a.project-item-url:hover {
  color: #dd4d53;
  opacity: 1;
}

@media (max-width: 1400px) {
  .portfolio-single-top {
    margin-top: 100px;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .hero-cta {
    font-size: 18px;
  }
}

@media (max-width: 405px) {
  a.portfolio-single-back-btn span {
    font-size: 18px;
  }
}