/* Modal pozadina */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}


/* Modal kutija */
.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 700px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-wrapper {
    max-height: 70vh;
    overflow-y: auto;
    margin-top: 15px;
    border-radius: 10px;
}

.img-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* X gumb */
.close {
    position: absolute;
    top: 2px;
    right: 15px;
    font-size: 30px;
    font-weight: lighter;
    cursor: pointer;
    color: #333;
    z-index: 1100;
}

.close:hover {
    color: #64C37C;
}

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
}


.carousel-item {
    display: none;
    text-align: center;
}

.carousel-item img {
    max-width: 100%;
    border-radius: 10px;
}

/* Strelice */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 30px;
    color: #333;
    padding: 10px;
    transform: translateY(-50%);
    user-select: none;
    transition: color 0.3s;
}

.prev:hover, .next:hover {
    color: #64C37C;
}

.prev { left: 0; }
.next { right: 0; }

/* Aktivni slide */
.carousel-item.active {
    display: block;
}
