body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    background-color: #181a1b;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: padding-top 0.3s;
}

.background {
    margin-top: 90px;
    position: relative;
    min-height: 100vh; /* Pokriva ceo ekran */
    background: url(/assets/img/strukturneSlike/hero1.jpg) no-repeat center top;
    background-size: cover; /* Slika se prilagođava veličini ekrana */
    overflow: hidden;
    display: flex;
    justify-content: center;
  }
  
  /* Zatamnjenje pozadine */
  .background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Crni sloj sa 70% providnosti */
    z-index: 1; /* Stavlja sloj iza sadržaja */
  }
  
  .content {
    position: relative;
    z-index: 2; /* Stavlja sadržaj iznad zatamnjene slike */
    color: white; /* Bele boje za kontrast */
    padding: 20px;
    text-align: start;
    font-family: 'TT_Prosto_Sans_Trial_Light', sans-serif;
    width: 70%;
  }

#highlight{
    font-size: 20px;
}

.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Minimalna širina slike */
    grid-auto-rows: 300px; /* Povećana osnovna visina redova */
    gap: 10px; /* Razmak između slika */
    padding: 10px;
    max-width: 70%;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px; /* Dodato za blago zaobljene uglove */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Slika popunjava okvir uz minimalno sečenje */
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Slight zoom effect */
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.see-more{
    background-color: #708564;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    font-family: 'TT_Prosto_Sans_Trial_Light', sans-serif;
}

.see-more:hover {
    background-color: #5d6e53;
    transform: translateY(-2px);
}

.see-more:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Lightbox */
.lightbox {
    display: none; /* Pokazaćemo lightbox kada je aktivan */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}


.lightbox-image-wrapper {
    position: relative;
}

.lightbox-image {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 80%;
    display: block;
    margin: 0 auto;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: #708564;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    border-radius: 10px;
}

.prev {
    left: 25%; /* Strelica levo */
}

.next {
    right: 25%; /* Strelica desno */
}

.prev:hover, .next:hover {
    background: #5d6e53;
    transition: background 0.2s ease-in-out;
}

.prev:not(:hover), .next:not(:hover) {
    transition: background 0.2s ease-in-out;
}

@media (max-width: 600px) {
/* body,html{
    overflow-y: unset;
} */

.content {
    padding: 0px;
    width: 95%;
}

.masonry-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 2fr));
    grid-auto-rows: 150px;
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-item img {
    transition: none;
}

.gallery-item:hover img {
    transform: none;
}

.button-container{
    margin-top: 10px;
}
.prev {
    left: 5%; /* Strelica levo */
}

.next {
    right: 5%; /* Strelica desno */
}
}

@media (min-width: 601px) and (max-width: 1000px) {
    /* body,html{
    overflow-y: unset;
} */

.content {
    padding: 0px;
    width: 90%;
}

.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 10px; /* Space between grid items */
    max-width: 100%; /* Container takes full width */
    margin: 0 auto; /* Centers the container */
    padding: 10px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px; /* Optional: rounded corners */
}

.gallery-item img {
    width: 100%; /* Image fills the grid cell width */
    height: 100%; /* Image fills the grid cell height */
    object-fit: cover; /* Keeps aspect ratio while filling the cell */
    display: block;
    transition: transform 0.3s ease; /* Smooth zoom effect */
}

.gallery-item:hover img {
    transform: none;
}

.button-container{
    margin-top: 10px;
}
}

.prev {
    left: 5%; /* Strelica levo */
}

.next {
    right: 5%; /* Strelica desno */
}

@media (min-width: 1000px) and (max-width: 1500px) {
    .content {
        padding: 0px;
        width: 80%;
    }

    .masonry-gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
        gap: 10px; /* Space between grid items */
        max-width: 100%; /* Container takes full width */
        margin: 0 auto; /* Centers the container */
        padding: 10px;
    }

    .gallery-item {
        overflow: hidden;
        border-radius: 5px; /* Optional: rounded corners */
    }

    .gallery-item img {
        width: 100%; /* Image fills the grid cell width */
        height: 100%; /* Image fills the grid cell height */
        object-fit: cover; /* Keeps aspect ratio while filling the cell */
        display: block;
        transition: transform 0.3s ease; /* Smooth zoom effect */
    }
    .prev {
        left: 10%; /* Strelica levo */
    }
    
    .next {
        right: 10%; /* Strelica desno */
    }
}
@media (min-width: 1510px){
    .masonry-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}