


/*--------------------- naslov --------------------------------*/
.uvod{
    display: flex;
    width: 100vw;
    height: 40vh;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: -100;
    background-color: #151515;
    color: #e6e6e6;
}

.uvod > h1{
    font-size: 3.125em;
}

.uvod > p{
    font-size: 1.25em;
}

/*------------------- dio sa slikama -------------------------*/
.galerija{
    width: 100vw;
    height: 120vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #e6e6e6;
    overflow-x: hidden;
    z-index: 900;
}

#img-galerija{
    width: 60vw;
    height: 1200px;
    max-height: 1000px;
}

#current-image{
    width: 100%;
    height: 100%;
}

#img-thumbs {
    display: flex;
    width: 90vw;
    height: 15vh;
    justify-content: center;
    margin-top: 40px;
    overflow: hidden;
    z-index: 200;
}

.thumb {
    width: 140px;
    height: 140px;
    object-fit: cover;
    margin-right: 10px;
    cursor: pointer;
}

.current_img_buttons{
    width: 100vw;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#next_img, #previous_img{
    width: 8vw;
    height: 15vh;
    font-size: 4em;
    border: none;
    background-color: inherit;
    cursor: pointer;
    transition: 300ms;
}

#next_img:hover, #previous_img:hover{
    color: #909090;
    transition: 300ms;
}

#next_img:active, #previous_img:active{
    color: #6a6a6a;
    transition: 200ms;
}


.container{
    display: flex;
    padding: 0 35px;
    min-height: 31vh;
    align-items: center;
    justify-content: center;
    background-color: #e6e6e6;
}

.wrapper{
    display: flex;
    flex-direction: row;
    width: 80vw;
    height: 30vh;
}
.wrapper i{
    height: 44px;
    width: 44px;
    color: #343F4F;
    cursor: pointer;
    font-size: 1.2rem;
    position: absolute;
    text-align: center;
    line-height: 44px;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: transform 0.1s linear;
}
.wrapper i:active{
    transform: translateY(-50%) scale(0.9);
}
.wrapper i:hover{
    background: #f2f2f2;
}
.wrapper i:first-child{
    left: 8%;
    top: 132%;
    display: none;
}

.wrapper i:last-child{
    top: 132%;
    right: 8%;
}

.wrapper .carousel{
    font-size: 0;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
}
.carousel.dragging{
    cursor: grab;
    scroll-behavior: auto;
}
.carousel.dragging img{
    pointer-events: none;
}
.carousel img{
    height: 340px;
    object-fit: cover;
    user-select: none;
    margin-left: 14px;
    width: calc(100% / 3);
}
.carousel img:first-child{
    margin-left: 0;
}

@media screen and (max-width: 900px) {
    .carousel img{
        width: calc(100%/2);
    }

    .current_img_buttons{
        width: 100vw;
        justify-content: center;
        overflow-x: hidden;
    }

    #next_img, #previous_img{
        width: 6vw;
        z-index: 500;
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #previous_img{
        left: 0;
    }

    #next_img{
        right: 0;
    }

    #img-galerija{
        height: auto;
        width: 500px;
    }
}

@media screen and (max-height: 790px){
    #img-galerija{
        max-height: 900px;
    }
}


