  .slider {
      height: 130px;
      margin: auto;
      position: relative;
      width: 90%;
      display: grid;
      place-items: center;
      overflow: hidden;
  }

  .slider2 {
    height: 135px;
    margin: auto;
    position: relative;
    width: 90%;
    display: grid;
    place-items: center;
    overflow: hidden;
  }



  .slider-track {
      display: flex;
      animation: scroll 40s linear infinite;
  }

  .slider-track:hover {
      animation-play-state: paused;
  }

  @keyframes scroll {
      0% {
          transform: translateX(0);
      }
      100% {
          transform: translateX(calc(-168px * 18)); /* Adjust to accommodate 30 images */
      }
  }

  .slide {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 9px; /* Reduce horizontal padding to decrease space between images */

  }

  .img {
      max-width: 150px; /* Maximum width for all images */
      max-height: 150px; /* Maximum height for all images */
      object-fit: contain; /* Ensure the entire image is visible within the set dimensions */
      transition: transform 1s;
  }

  .img2 {
    max-width: 170px; /* Maximum width for all images */
    max-height: 170px; /* Maximum height for all images */
    object-fit: contain; /* Ensure the entire image is visible within the set dimensions */
    transition: transform 1s;
}


  .img:hover {
      transform: translateZ(20px);
  }

  .slider::before,
  .slider::after {
      content: '';
      position: absolute;
      height: 100%;
      width: 15%;
      z-index: 2;
  }

  .slider::before {
      left: 0;
      top: 0;
      /* background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); */
  }

  .slider::after {
      right: 0;
      top: 0;
      /* background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); */
  }

/* .......................................................... */


.projects .slider {
    height: 250px;
    margin: auto;
    position: relative;
    width: 90%;
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  
  .projects .slider-track {
    display: flex;
    animation: scroll 40s linear infinite;
  }
  
  .projects .slider-track:hover {
    animation-play-state: paused;
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-250px * 9));
    }
  }
  
  .projects .slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px; /* Reduce horizontal padding to decrease space between images */
  }
  
  .projects .img {
    max-width: 400px; /* Increase maximum width for all images */
    max-height: 300px; /* Increase maximum height for all images */
    object-fit: contain; /* Ensure the entire image is visible within the set dimensions */
    transition: transform 1s;
  }
  
  .projects .img:hover {
    transform: translateZ(20px);
  }
  
  .projects .slider::before,
  .projects .slider::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 15%;
    z-index: 2;
  }
  
  .projects .slider::before {
    left: 0;
    top: 0;
    /* background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); */
  }
  
  .projects .slider::after {
    right: 0;
    top: 0;
    /* background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); */
  }
  