body {
    font-family: Arial, sans-serif;
    background-image: url('../images/bodyimage2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 35px;
  }

  .slideshow-container {
    position: relative;
    width: 90% !important;
    overflow: hidden;
    height: auto !important;
  }

  .slides-wrapper {
    display: flex;
    transition: transform 1.0s ease-in-out;
    height: auto !important;
  }

  .slide {
    min-width: calc(100% / 3); /* 3 slike prikazane */
    box-sizing: border-box;
    padding: 10px;
  }

  .slide img {
    width: 100%;
    height: 850px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
  }

  .prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    font-size: 18px;
  }

  .prev { left: 10px; }
  .next { right: 10px; }

  
@media (min-width: 1500px) {
    .slideshow-container {
        max-width: 1400px;  
        margin: 0 auto;
    }

    .slide img {
        height: 780px;
    }
}

@media (max-width: 1200px) and (min-width: 900px) {

    .slideshow-container {
        max-width: 900px;
        margin: 0 auto;
    }

    .slide {
        min-width: 50%;
    }

    .slide img {
        height: 600px;
    }

    .prev, .next {
        font-size: 20px;
        padding: 8px 12px;
    }
}

@media (max-height: 500px) and (min-width: 900px) {

    .slideshow-container {
        max-width: 1100px;
        margin: 0 auto;
    }

    .slide img {
        height: 350px; 
    }

    .slide {
        min-width: 33.33%;
    }
}



@media (max-width: 480px) {
    html, body {
        display: flex;
        justify-content: center;
        align-items: center;
        
        margin: 0;
        padding: 0;
        height: 100%;
        overflow: hidden;   
        touch-action: none;
        overscroll-behavior: none;
        
    }
    .slide {
        min-width: 100% !important;
        height: 70vh !important;

        display: flex;
        justify-content: center;
        align-items: center;
    }
    .slide a {
        width: 100%;
        height: 100%;
        display: block;
    }

    .slide img {
        height: 100% !important;
        width: 100%;
        object-fit: cover;
        object-position: center !important;
    }

    .slides-wrapper {
        height: 100% !important;
        display: flex;
        align-items:center !important;
    }

    .slideshow-container {
        height: 90vh !important;
        width: 100%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }


    .prev, .next {
        font-size: 14px;
        padding: 6px;
        top: 45%;
    }
}