/* ==========================================
   PREMIUM GALERIJA
========================================== */

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
    margin-top:50px;
}

.gallery-item{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border-radius:20px;
    background:#111;
    box-shadow:0 15px 35px rgba(0,0,0,.25);
    transition:.35s ease;
    cursor:pointer;
    padding:15px;
    min-height:280px;
}

.gallery-item img{
    width:100%;
    height:auto;
    max-height:320px;
    display:block;
    object-fit:contain;
    transition:transform .45s ease;
}

/* Hover */

.gallery-item:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 50px rgba(0,0,0,.45);
}

.gallery-item:hover img{
    transform:scale(1.05);
}

/* Tamni overlay */

.gallery-item::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top,
    rgba(0,0,0,.65),
    rgba(0,0,0,0));
    opacity:0;
    transition:.35s;
}

/* Ikonica */

.gallery-item::before{
    content:"\f002";
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%) scale(.5);
    width:60px;
    height:60px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#d4af37;
    color:#fff;
    font-size:22px;
    z-index:5;
    opacity:0;
    transition:.35s;
}

.gallery-item:hover::after{
    opacity:1;
}

.gallery-item:hover::before{
    opacity:1;
    transform:translate(-50%,-50%) scale(1);
}

/* ==========================================
   NASLOVI SEKCIJA
========================================== */

.section-head{
    text-align:center;
    max-width:800px;
    margin:auto;
}

.section-head .muted{
    font-size:18px;
    line-height:1.8;
    margin-top:18px;
}

/* ==========================================
   LIGHTBOX
========================================== */

.lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.94);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    transition:.35s;
    z-index:99999;
}

.lightbox.active{
    opacity:1;
    visibility:visible;
}

.lightbox-content{
    position:relative;
    max-width:92%;
    max-height:92%;
}

.lightbox img{
    max-width:92vw;
    max-height:88vh;
    object-fit:contain;
    border-radius:15px;
    box-shadow:0 25px 80px rgba(0,0,0,.6);
}

.lightbox button{
    position:absolute;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    color:#fff;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    transition:.3s;
}

.lightbox button:hover{
    background:#d4af37;
}

.lightbox-close{
    top:-65px;
    right:0;
}

.lightbox-prev{
    left:-80px;
    top:50%;
    transform:translateY(-50%);
}

.lightbox-next{
    right:-80px;
    top:50%;
    transform:translateY(-50%);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:992px){

.gallery-grid{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

.gallery-grid{
grid-template-columns:1fr;
}

.gallery-item{
min-height:240px;
padding:12px;
}

.gallery-item img{
max-height:250px;
}

.lightbox-prev{
left:10px;
}

.lightbox-next{
right:10px;
}

.lightbox-close{
top:15px;
right:15px;
}

.lightbox img{
max-width:95vw;
max-height:80vh;
}

}

@media(max-width:480px){

.gallery-item{
border-radius:16px;
min-height:200px;
padding:10px;
}

.gallery-item img{
max-height:200px;
}

}