@media (max-width: 767px) {
  .portfolio__thumb img {
    width: 100%;
    height: 100%;
  }
  .shapebg:hover::before {
    content: "";
    background: url(../images/shape/av.svg);
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-size: 80%;
    position: absolute;
    top: 00px;
    z-index: -1;
    left: 0px;
  }
}

:root {
  --left-animation: move-left 3s linear infinite forwards;
  --right-animation: move-right 3s linear infinite forwards;
}

#card,
#extra-cards,
#extra-cards #cards {
  width: 180px;
  height: 300px;
  border-radius: 10px;
}

#card img,
#extra-cards > #cards > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  filter: brightness(0.8);
}
#extra-cards {
  position: absolute;
  z-index: -1;
  opacity: 0;
  transition: all 200ms ease;
}
#extra-cards > #card {
  position: absolute;
  transform-origin: center;
}
#extra-cards > #card:nth-child(even) {
  animation: var(--right-animation);
}
#extra-cards > #card:nth-child(odd) {
  animation: var(--left-animation);
}
@keyframes move-left {
  0% {
    transform: translateX(-20px) scale(0.9);
    opacity: 1;
  }
  50% {
    transform: translateX(-50px) scale(0.8);
    opacity: 0.5;
  }
  90% {
    transform: translateX(-70px) scale(0.7);
    opacity: 0;
  }
  100% {
    transform: translateX(-80px) scale(0.65);
    opacity: 0;
  }
}
@keyframes move-right {
  0% {
    transform: translateX(20px) scale(0.9);
    opacity: 1;
  }
  50% {
    transform: translateX(50px) scale(0.8);
    opacity: 0.5;
  }
  90% {
    transform: translateX(70px) scale(0.7);
    opacity: 0;
  }
  100% {
    transform: translateX(80px) scale(0.65);
    opacity: 0;
  }
}
#extra-cards > #card:nth-child(3) {
  animation-delay: 3s;
  z-index: 6;
}
#extra-cards > #card:nth-child(4) {
  animation-delay: 3s;
  z-index: 5;
}
#extra-cards > #card:nth-child(5) {
  animation-delay: 2s;
  z-index: 4;
}
#extra-cards > #card:nth-child(6) {
  animation-delay: 2s;
  z-index: 3;
}
#extra-cards > #card:nth-child(7) {
  animation-delay: 1s;
  z-index: 2;
}
#extra-cards > #card:nth-child(8) {
  animation-delay: 1s;
  z-index: 1;
}

.main:hover ~ #extra-cards {
  opacity: 1;
}
@media only screen and (min-width: 2200px) and (max-width: 2300px) {
  .main-header-area2 .logo {
    padding-left: 90px;
  }
}
@media only screen and (min-width: 1900px) and (max-width: 2000px) {
  .main-header-area2 .logo {
    padding-left: 70px;
  }
}
@media only screen and (min-width: 1600px) and (max-width: 1800px) {
  .main-header-area2 .logo {
    padding-left: 50px;
  }
}
@media only screen and (min-width: 1200px) and (max-width: 1300px) {
  .main-header-area2 .logo {
    padding-left: 13px;
  }
}
