.story-portfolio {
  /* min-height: 800px; */
  min-width: fit-content;
  height: auto;
}

.story-portfolio-container,
.story-portfolio-inner {
  z-index: 20;
}

.portfolio-text:before {
  content: '';
  height: 1px;
  width: 30px;
  top: 0;
  left: 0;
  background: #ef3f3f;
  position: absolute !important;
}

.project-url:hover:after {
  left: 0;
  width: 100%;
}

.project-url:after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #ef3f3f;
  width: 0;
  -webkit-transition: .3s;
  -moz-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
}

.portfolio-text>div>span,
.portfolio-navigation *,
.lda,
.service h3,
.service h3:hover {
  cursor: pointer;
}

.portfolio-navigation .nav-project {
  overflow: hidden
}


.portfolio-navigation .nav-project,
.portfolio-navigation div {
  -webkit-transition: .3s;
  -moz-transition: .3s;
  -o-transition: .3s;
  transition: .3s
}


.portfolio-mobile-image {
  -webkit-transition: .5s;
  -moz-transition: .5s;
  -o-transition: .5s;
  transition: .5s;
  min-height: 365px;
}

.portfolio-big-image .ldr,
.portfolio-text>div~div {
  display: none;
}

.story-portfolio p {
  color: #818181;
}


.story-portfolio-item,
.story-portfolio-inner {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  -webkit-align-items: stretch;
  -moz-align-items: stretch;
  align-items: stretch;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  justify-content: space-between
}

.story-portfolio-item,
.story-portfolio-inner {
  justify-content: space-around;
}
.story-portfolio-item {
  width: 100%;
}

.story-portfolio-inner,
.ttl {
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  align-items: center;
}

.portfolio-text>div>h3,
.portfolio-navigation div {
  font-weight: 700
}

.portfolio-text>div p+p,
.text p,
p {
  line-height: 24px;
}

.portfolio-big-image *,
.portfolio-text>div>span.hs {
  display: block;
}

.portfolio-big-image img, .portfolio-big-image video, .portfolio-big-image iframe {
  max-width: 100%;
  max-height: 100%;
}

.portfolio-navigation div {
  display: inline-flex;
  align-items: center;
}


.portfolio-image,
.portfolio-text,
.story-portfolio~div,
.portfolio-navigation div,
.story-portfolio-item,
.lda,
.lnk,
.story-portfolio-item a,
.story-portfolio h1+p {
  position: relative;
}

.story-portfolio {
  background: #FFFFFF;
}

.portfolio-big-image .ldr,
.portfolio-text:before,
.story-portfolio-container,
.story-portfolio-inner,
h1+p:before {
  position: relative;
}

.lda:after,
.lnk:after,
[data-url]:after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #ef3f3f;
  width: 0
}


.portfolio-big-image * {
  width: 100%;
  height: inherit;
}

.portfolio-navigation span {
  background: #333333;
}

.portfolio-navigation span:hover {
  background: #ef3f3f;
}

.story-portfolio-container {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0
}

.story-portfolio-inner {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5% 11% 0 5%;
}

.portfolio-text {
  -webkit-flex-basis: 23%;
  -moz-flex-basis: 23%;
  -ms-flex-preferred-size: 23%;
  flex-basis: 23%;
  width: 23%;
  padding-top: 15px;
}


.portfolio-big-image .ldr,
.ldr:after {
  width: 40px;
  height: 40px
}

.portfolio-text>div p .lda {
  text-transform: none;
  color: #ff2b2b;
  font-size: 15px;
  padding: 0;
  margin: 0;
  letter-spacing: inherit;
}

.portfolio-slide {
  margin-left: 11%;
  max-width: 66%;
  width: 60%;
}

.portfolio-text>div>h3 {
  font-size: 31px;
  line-height: 34px;
  color: #333333;
}

.portfolio-text>div>a,
.lda {
  color: #df3c3c;
  text-transform: uppercase;
  font-size: 10px;
  text-decoration: none;
  letter-spacing: 4px;
  padding: 11px 0 4px;
  margin: 0 0 16px
}

.portfolio-text>div p {
  color: #aba7a7;
  font-size: 15px;
  line-height: 28px;
  padding: 10px 0 24px
}

.portfolio-text>div p+p {
  color: #000000;
  font-size: 12px
}

.portfolio-text>div p span {
  color: #818181
}

.portfolio-big-image .ldr {
  top: 50%;
  left: 50%;
  margin: -20px 0 0 -20px
}

.portfolio-navigation {
  left: 0;
  position: relative;
  margin-top: 50px;
}

.ldr:after {
  content: "";
  border: 6px solid #ef3f3f;
  border-color: #ef3f3f transparent;
  animation: 1.2s linear infinite ldr;
}

.portfolio-big-image {
  min-height: 50px;
  box-shadow: 0 0 0 7px #494949, 0 4px 25px 0 rgba(20, 20, 20, .6);
  min-height: min-content;
}


:not(.boxed-layout) > #wrap .portfolio-big-image {
  height: 674px;
}

.boxed-layout #wrap .portfolio-big-image {
  height: 474px;
}


.portfolio-image {
  background: #000;
  min-width: 340px;
}

.portfolio-mobile-image {
  position: absolute;

  /* right: -120px; */
  right: -30px;
  width: 170px;
  margin-right: -200px;
  opacity: 0
}

:not(.boxed-layout) > #wrap .portfolio-mobile-image {
  top: 364px;
}

.boxed-layout #wrap .portfolio-mobile-image {
  top: 164px;
}


.old-portfolio-mobile-image:after {
  content: '';
  position: absolute;
  top: -11px;
  left: -11px;
  right: -10px;
  bottom: -15px;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-image: url(data:image/svg+xml;base64, )
}

.story-portfolio.actEnd .portfolio-mobile-image {
  margin-right: 0;
  opacity: 1
}



.portfolio-navigation div {
  letter-spacing: 1.4px;
  font-size: 14px
}

.portfolio-navigation .nav-project {
  font-weight: 400;
}

.story-portfolio .prev {
  padding: 0 0 25px 53px
}

.story-portfolio .next {
  margin: 0 0 0 82px;
  padding: 0 70px 25px 0
}

.portfolio-navigation .nav-project {
  position: absolute;
  top: 20px;
  left: 0;
  font-size: 13px;
  color: #8e8e8e;
  white-space: nowrap;
  letter-spacing: normal;
  /* height: auto; */
  height: 20px;
}

.story-portfolio .prev .nav-project {
  left: auto;
  right: 0
}

.portfolio-navigation span {
  position: absolute;
  height: 4px;
  width: 28px;
  /* top: 9px; */
  left: 5px
}

.portfolio-navigation span:after,
.portfolio-navigation span:before {
  content: '';
  width: 12px;
  height: 4px;
  position: absolute;
  transform: rotate(-45deg);
  background: #333333;
  top: -3px;
  left: -5px
}

.portfolio-navigation span:hover:after,
.portfolio-navigation span:hover:before {
  background: #ef3f3f;
}

.portfolio-navigation span:after {
  transform: rotate(45deg);
  top: 3px
}

.story-portfolio .next span {
  right: 0;
  left: auto;
}

.story-portfolio .next span:before {
  left: auto;
  right: -5px;
  top: 3px
}

.story-portfolio .next span:after {
  left: auto;
  right: -5px;
  top: -3px
}

.story-portfolio .prev:hover span {
  animation: 1.1s bounceLeft
}

.story-portfolio .next:hover span {
  animation: 1.1s bounceRight
}

.portfolio-navigation div:hover .nav-project {
  animation: .8s textOver;
  color: #ef3f3f;
}
.portfolio-navigation div:hover span,
.portfolio-navigation div:hover span:before,
.portfolio-navigation div:hover span:after {
  background: #ef3f3f;
}

@keyframes bounceLeft {
  25% {
    margin-left: 5px;
    width: 23px
  }

  50% {
    margin-left: -5px;
    width: 33px
  }
}

@keyframes bounceRight {
  25% {
    width: 23px
  }

  50% {
    width: 33px
  }
}

@keyframes textOver {

  1%,
  10% {
    opacity: 0;
    padding-top: 20px
  }

  11% {
    opacity: 1
  }
}

.portfolio-mobile-image,
.portfolio-mobile-image *,
.portfolio-navigation * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none
}




.portfolio-text>.nav-project,
.story-portfolio h1+p .nav-project,
.story-portfolio h1+p:before,
.story-portfolio h2,
.story-portfolio h3,
.story-portfolio h5 {
  font-weight: 800;
}


.video-preloader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  z-index: 10;
}

.portfolio-big-image {
  transition: transform 0.5s ease-in-out;
}


.story-portfolio .nav-text {
  color: #000000;
}

.story-portfolio .nav-text:hover {
  color: #ef3f3f;
}

.story-portfolio .nav-project {
  font-weight: bold;
}


@media only screen and (max-width: 450px) {
  .story-portfolio {
    padding: 0;
  }

  .story-portfolio-inner {
    padding: 60px 15px 120px;
  }

  .portfolio-text>div p+p {
    line-height: 20px;
    height: 39px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 15px;
  }

  .portfolio-navigation {
    /* bottom: -120px; */
    text-align: left;
    padding-left: 6%;
  }

  .next {
    margin: 10px 0 00;
  }
  .story-portfolio .next {
    margin: 0;
}
.portfolio-big-image {
  height: 220px !important;
  width: 100%;
}
}

@media only screen and (max-width: 480px) {
  .portfolio-slide {
    padding: 0;
  }

  .portfolio-big-image video {
    width: 322px;
  }

  .portfolio-navigation {
    right: 0;
  }
}

@media only screen and (max-width: 590px) {
  .portfolio-mobile-image {
    right: -35px;
  }
}


@media only screen and (max-width: 640px) {
  .portfolio-mobile-image {
    right: -80px;
  }
}

@media only screen and (max-width: 700px) {
  .portfolio-mobile-image {
    right: -120px;
  }
}

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

  .story-portfolio {
    width: auto;
  }

  .portfolio-image {
    background: 0 0;
  }

  .portfolio-big-image,
  .portfolio-image {
    display: inline-block;
  }

  .portfolio-big-image {
    position: relative;
  }

  .portfolio-mobile-image {
    top: 11px;
    right: -140px;
  }
}

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

  .portfolio-text>div,
  #s_services,
  .story-portfolio {
    min-height: 0;
  }

  .story-portfolio-container,
  .story-portfolio-inner {
    max-width: 100%;
  }

  #s_img,
  .story-portfolio-container,
  .story-portfolio-inner {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .portfolio-text {
    -webkit-flex-basis: 90%;
    -moz-flex-basis: 90%;
    -ms-flex-preferred-size: 90%;
    flex-basis: 100%;
    width: 100%;
  }

  /* .portfolio-mobile-image {
    top: 205px;
  } */
  .portfolio-mobile-image {
    display: none;
  }

  .portfolio-slide {
    margin-left: 0;
    max-width: 100%;
    width: 100%;
  }

  .portfolio-image {
    display: inline;
  }

  .portfolio-big-image {
    height: 350px !important;
    width: 100%;
    }

  .story-portfolio-inner {
    padding: 5% 5% 0 5% !important
  }

  .story-portfolio-item {
    display: flex;
    justify-content: space-around;
}
}

@media only screen and (max-width: 1200px) {
  .portfolio-mobile-image {
    width: 100px;
    top: 154px;
    right: -20px;
  }
}


@media only screen and (max-width: 1300px) {
  .portfolio-big-image {
    height: 100%;
  }
}


@media only screen and (max-width: 1480px) {
  .portfolio-mobile-image {
    top: 84px;
  }
}
