.infinite-slider {
    position: relative;
    width: 290px;   
    height: 290px;  
    margin: 0 auto;
    overflow: visible; 
  }
  
  .infinite-slider .slider-item {
    position: absolute;
    width: 100%;   
    height: 100%; 
    transition: left 1.0s ease, transform 1.0s ease, opacity 1.5s ease;
    opacity: 1;
  }
  
  .infinite-slider .slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  
  .pos-left {
    left: 0%;
    top: 60%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1;
  }
  
  .pos-center {
    left: 80%;
    top: 60%;
    transform: translate(-50%, -50%) scale(1.4);
    z-index: 2;
    opacity: 1;
  }
  
  .pos-right {
    left: 160%;
    top: 60%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1;
  }
  @media screen and (max-width: 768px) {
    .infinite-slider {
        width: 200px;
        height: 200px;
        margin: 0 auto; /* Wycentrowanie kontenera */
    }

    .infinite-slider .slider-item {
        width: 160px;  /* Wymuszenie mniejszego rozmiaru obrazków */
        height: 160px;
    }

    .infinite-slider .slider-item img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Dopasowanie obrazków bez obcinania */
    }

    /* Pozycje animowanych obrazków */
    .pos-left {
        left: calc(5% - 30px); 
    }

    .pos-center {
        left: 50%;
        transform: translate(-50%, -50%) scale(1.2);
    }

    .pos-right {
        left: calc(95% + 30px);
    }
}
