/* section mehsullar */
.gallery {
  display: grid;
  width: 220px;
}
.gallery > img {
  grid-area: 1/1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 10px solid #f2f2f2;
  box-shadow: 0 0 4px #0007;
  animation: slide 6s infinite;
  aspect-ratio: 1 / 1;
  height: auto;
}
.gallery > img:last-child {
  animation-name: slide-last;
}

.gallery > img:nth-child(2) {
  animation-delay: -2s;
}
.gallery > img:nth-child(3) {
  animation-delay: -4s;
}

@keyframes slide {
  0% {
    transform: translateX(0%);
    z-index: 2;
  }
  16.66% {
    transform: translateX(120%);
    z-index: 2;
  }
  16.67% {
    transform: translateX(120%);
    z-index: 1;
  }
  33.34% {
    transform: translateX(0%);
    z-index: 1;
  }
  66.33% {
    transform: translateX(0%);
    z-index: 1;
  }
  66.34% {
    transform: translateX(0%);
    z-index: 2;
  }
  100% {
    transform: translateX(0%);
    z-index: 2;
  }
}
@keyframes slide-last {
  0% {
    transform: translateX(0%);
    z-index: 2;
  }
  16.66% {
    transform: translateX(120%);
    z-index: 2;
  }
  16.67% {
    transform: translateX(120%);
    z-index: 1;
  }
  33.34% {
    transform: translateX(0%);
    z-index: 1;
  }
  83.33% {
    transform: translateX(0%);
    z-index: 1;
  }
  83.34% {
    transform: translateX(0%);
    z-index: 2;
  }
  100% {
    transform: translateX(0%);
    z-index: 2;
  }
}

/* --- */
#sec-mehsullar {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  color: #000;
  padding: 50px 0;
  margin: 0 auto;
  max-width: 1500px;
}
#sec-mehsullar .mehsullar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

#sec-mehsullar .mehsul {
  padding: 20px 10px;
  max-width: 350px;
  background-color: #444;
  display: flex;
  flex-direction: column;
  margin-right: 150px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
#sec-mehsullar h2 {
  text-align: center;
  padding: 30px 0;
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
}
#sec-mehsullar h3 {
  text-align: center;
  padding: 30px 0;
  letter-spacing: 4px;
}

#sec-mehsullar p {
  text-align: center;
  padding: 30px 0;
}
#sec-mehsullar .btn-bax span {
  color: #000;
}
#sec-mehsullar .btn-bax svg {
  stroke: #000;
}
@media screen and (max-width: 1508px) {
  #sec-mehsullar .mehsul {
    overflow-x: hidden;
    padding: 20px 10px;
    width: 100%;
    margin-right: 20px;
  }
}
@media screen and (max-width: 1112px) {
  #sec-mehsullar .mehsul {
    max-width: 45%;
  }
}
@media screen and (max-width: 742px) {
  #sec-mehsullar .mehsul {
    max-width: 70%;
    margin-right: 0px;
  }
}
@media screen and (max-width: 568px) {
  #sec-mehsullar .mehsul {
    max-width: 90%;
  }
}
