.portfolio-head-section {
  z-index: 7;
  margin-top: 2rem;
  padding: 4.4rem 0 6.4rem;
  overflow: visible;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-head-section .marquee-title {
  overflow: hidden;
}

.portfolio-head-section .marquee-title__overlay::after {
  background-color: transparent;
  background-image: -webkit-gradient(linear, left bottom, left top, from(#E5CCA8), to(transparent));
  background-image: -o-linear-gradient(bottom, #E5CCA8 0%, transparent 100%);
  background-image: linear-gradient(to top, #E5CCA8 0%, transparent 100%);
}

.portfolio-head-cats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-top: 3rem;
}

.portfolio-head-cats__list {
  padding: 2.4rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border: 0.1rem solid rgba(255, 255, 255, 0.3);
  overflow: auto;
  max-height: 20rem;
  background-color: #0D0D0D;
}

.portfolio-head-cats__list--wrap {
  position: absolute;
  width: 100%;
  top: 100%;
  display: none;
}

.portfolio-head-cats__choosen {
  color: #E5CCA8;
}

.portfolio-head-cats__choosen.open::after {
  -webkit-transform: translateY(-50%) translateX(2rem) rotate(225deg);
  -ms-transform: translateY(-50%) translateX(2rem) rotate(225deg);
  transform: translateY(-50%) translateX(2rem) rotate(225deg);
}

.portfolio-head-cats__choosen::before {
  content: '';
  position: absolute;
  display: block;
  height: 6rem;
  width: .1rem;
  background-color: rgba(229, 204, 168, 0.3);
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  -ms-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg);
}

.portfolio-head-cats__choosen::after {
  content: '';
  position: absolute;
  display: block;
  width: .7rem;
  height: .7rem;
  right: 0;
  top: 50%;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
  -webkit-transform: translateY(-100%) translateX(2rem) rotate(45deg);
  -ms-transform: translateY(-100%) translateX(2rem) rotate(45deg);
  transform: translateY(-100%) translateX(2rem) rotate(45deg);
  border-bottom: .1rem solid white;
  border-right: .1rem solid white;
}

.portfolio-head-cats__choosen,
.portfolio-head-cats li {
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.8;
  text-transform: uppercase;
  cursor: pointer;
}

.portfolio-head-cats__choosen:not(:last-child),
.portfolio-head-cats li:not(:last-child) {
  margin-bottom: 2rem;
}

.portfolio-head-cats__choosen.active,
.portfolio-head-cats li.active {
  color: #E5CCA8;
}

.portfolio-head-cats__choosen.active::before,
.portfolio-head-cats li.active::before {
  opacity: 1;
}

.portfolio-cont-section {
  margin-bottom: 12rem;
}

.portfolio-cont-section .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.portfolio-cont__list {
  width: 100%;
  -webkit-transition: 1s ease-in-out;
  -o-transition: 1s ease-in-out;
  transition: 1s ease-in-out;
}

.loading .portfolio-cont__list {
  opacity: 0;
  visibility: hidden;
}

.portfolio-cont__loader {
  opacity: 0;
  visibility: hidden;
  -webkit-transition: 1s ease-in-out;
  -o-transition: 1s ease-in-out;
  transition: 1s ease-in-out;
  min-height: 35rem;
  width: calc(100% - 4rem);
  position: absolute;
  left: 2rem;
  top: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  background-color: #0D0D0D;
  z-index: 5;
}

.loading .portfolio-cont__loader {
  opacity: 1;
  visibility: visible;
}

.portfolio-cont__loader svg {
  max-width: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.portfolio-cont__loader span {
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  display: block;
}

.portfolio-cont__loader span::after {
  content: '';
  position: absolute;
  display: block;
  width: 10rem;
  height: 0.1rem;
  background-color: #E5CCA8;
  left: 50%;
  top: 50%;
  opacity: 0.4;
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  -ms-transform: translate(-50%, -50%) rotate(-45deg);
  transform: translate(-50%, -50%) rotate(-45deg);
  -webkit-animation: 3s spin infinite;
  animation: 3s spin infinite;
}

@-webkit-keyframes spin {
  from {
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  to {
    -webkit-transform: translate(-50%, -50%) rotate(-405deg);
    transform: translate(-50%, -50%) rotate(-405deg);
  }
}

@keyframes spin {
  from {
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  to {
    -webkit-transform: translate(-50%, -50%) rotate(-405deg);
    transform: translate(-50%, -50%) rotate(-405deg);
  }
}

.portfolio-card {
  display: block;
  margin-bottom: 7rem;
  padding: 1.5px;
  background-color: #fff;
}

.portfolio-card__img {
  width: 100%;
  padding-bottom: 60%;
  margin-bottom: 2.4rem;
}

.portfolio-card__img img,
.portfolio-card__img picture {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  position: absolute;
  top: 0;
}

.portfolio-card__img::after {
  content: '';
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  -webkit-transition: 0.4s ease-out;
  -o-transition: 0.4s ease-out;
  transition: 0.4s ease-out;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(13, 13, 13, 0.84)), color-stop(29.17%, rgba(13, 13, 13, 0)), color-stop(63.02%, rgba(13, 13, 13, 0)), color-stop(77.08%, rgba(13, 13, 13, 0.53)), to(rgba(13, 13, 13, 0.9)));
  background: -o-linear-gradient(top, rgba(13, 13, 13, 0.84) 0%, rgba(13, 13, 13, 0) 29.17%, rgba(13, 13, 13, 0) 63.02%, rgba(13, 13, 13, 0.53) 77.08%, rgba(13, 13, 13, 0.9) 100%);
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.84) 0%, rgba(13, 13, 13, 0) 29.17%, rgba(13, 13, 13, 0) 63.02%, rgba(13, 13, 13, 0.53) 77.08%, rgba(13, 13, 13, 0.9) 100%);
}

.portfolio-card__title {
  font-weight: 300;
  font-size: 2rem;
  line-height: 2.2rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.2rem;
  font-family: 'Tussilago El';
}

.portfolio-card__title i {
  font-family: 'Tussilago Rg';
}

.portfolio-card__list {
  max-width: calc(100% - 10rem);
}

.portfolio-card__arrow {
  right: 0;
  bottom: 0;
  position: absolute;
  width: 10rem;
  opacity: .5;
  -webkit-transition: 0.4s ease-out;
  -o-transition: 0.4s ease-out;
  transition: 0.4s ease-out;
}

.portfolio-navigation{
  position: fixed;
  top: 44%;
  z-index: 999999;
  width: 100%;
}

.portfolio-navigation a {
  border: 1px solid #fff;
  padding: 20px;
  position: absolute;
}

.portfolio-navigation .nav-previous a{
  left: 0;
}

.portfolio-navigation .nav-next a{
  right: 0;
}

@media only screen and (min-width: 480px) {
  .portfolio-cont-section .container .btn {
    max-width: 24.4rem;
  }
}

@media only screen and (min-width: 768px) {
  .portfolio-head-section {
    padding-bottom: 10rem;
  }

  .portfolio-head-cats__choosen,
  .portfolio-head-cats li {
    font-size: 1.3rem;
    line-height: 1.6rem;
  }

  .portfolio-cont__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .portfolio-cont__loader {
    min-height: 55rem;
  }

  .portfolio-cont__loader span {
    font-size: 1.6rem;
  }

  .portfolio-cont__loader span::after {
    width: 14rem;
  }

  .portfolio-card {
    width: calc(50% - 1.5rem);
  }

  .portfolio-card__title {
    padding-left: 2.8rem;
    font-size: 2.4rem;
    line-height: 2.6rem;
  }

  .portfolio-card__list {
    padding-left: 3.2rem;
  }

  .portfolio-card__arrow {
    position: relative;
    right: auto;
    bottom: auto;
    padding-left: 3.2rem;
    margin-top: 2.4rem;
  }
}

@media only screen and (min-width: 1024px) {
  .portfolio-card__arrow {
    margin-top: 3.2rem;
  }
}

@media only screen and (min-width: 1280px) {
  .portfolio-head-section {
    padding-bottom: 20rem;
    overflow: hidden;
  }

  .portfolio-head-section .marquee-title {
    overflow: visible;
  }

  .portfolio-head-section .marquee-title {
    -webkit-transform: translateY(150%);
    -ms-transform: translateY(150%);
    transform: translateY(150%);
  }

  .portfolio-head-section .marquee-title__overlay {
    bottom: -3vw;
    height: 20vw;
    left: -25vw;
  }

  .portfolio-head-cats {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }

  .portfolio-head-cats__list {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    padding: 0;
    border: none;
    overflow: visible;
  }

  .portfolio-head-cats__list--wrap {
    display: block;
    position: relative;
    width: auto;
    top: auto;
  }

  .portfolio-head-cats__choosen {
    color: #ffffff;
  }

  .portfolio-head-cats__choosen::before {
    opacity: 0;
  }

  .portfolio-head-cats__choosen::after {
    display: none;
  }

  .portfolio-head-cats__choosen:not(:last-child),
  .portfolio-head-cats li:not(:last-child) {
    margin-bottom: 0;
  }

  .portfolio-head-cats__choosen::before,
  .portfolio-head-cats li::before {
    content: '';
    position: absolute;
    display: block;
    height: 6rem;
    width: .1rem;
    background-color: rgba(229, 204, 168, 0.3);
    top: 50%;
    left: 50%;
    -webkit-transition: 0.4s ease-out;
    -o-transition: 0.4s ease-out;
    transition: 0.4s ease-out;
    opacity: 0;
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    -ms-transform: translate(-50%, -50%) rotate(45deg);
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .portfolio-head-cats li {
    margin-left: 5rem;
    -webkit-transition: 0.4s ease-out;
    -o-transition: 0.4s ease-out;
    transition: 0.4s ease-out;
  }

  .portfolio-head-cats li:hover {
    color: #E5CCA8;
  }

  .portfolio-cont-section {
    margin-bottom: 21rem;
  }

  .portfolio-cont__loader {
    width: 100%;
  }

  .portfolio-card {
    margin-bottom: 10rem;
  }

  .portfolio-card:hover .portfolio-card__title {
    color: #E5CCA8;
  }

  .portfolio-card:hover .portfolio-card__img::after {
    opacity: 0;
  }

  .portfolio-card:hover .portfolio-card__arrow {
    opacity: 1;
    -webkit-transform: translateX(4rem);
    -ms-transform: translateX(4rem);
    transform: translateX(4rem);
  }

  .portfolio-card__title {
    -webkit-transition: 0.4s ease-out;
    -o-transition: 0.4s ease-out;
    transition: 0.4s ease-out;
  }

  .portfolio-card__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
}

@media only screen and (max-width: 1280px) {
  .portfolio-head-section .marquee-title {
    -webkit-transform: translateY(105%);
    -ms-transform: translateY(105%);
    transform: translateY(105%);
  }

  .portfolio-head-section .marquee-title__overlay {
    left: auto;
    height: 35vw;
    right: -20vw;
  }

  .portfolio-head-section .marquee-title__overlay::after {
    left: 0;
    right: auto;
  }
}