:root{

    --bg:#0b0c0e;
    --text:#e7e7e7;

    --accent:#ff7a18;

    --wrap:1100px;

    --grid-gap:14px;
    --cols:4;

    --radius:14px;

}




/* =========================
   BASE
========================= */

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:Arial, sans-serif;
}

.wrap{
    width:min(var(--wrap), 92%);
    margin:0 auto;
    padding:100px 0;
}

h1{
    font-size:34px; /* ne monstrum */
    font-weight:900;
    margin-bottom:40px;
}

/* =========================
   GRID
========================= */

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(var(--cols), 1fr);
    gap:var(--grid-gap);
}

.gallery-item{
    aspect-ratio:4/3;
    overflow:hidden;
    border-radius:var(--radius);
    cursor:pointer;
    background:#111;
}

.gallery-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.3s ease;
    filter:contrast(1.05) brightness(0.9);
}

.gallery-item:hover img{
    transform:scale(1.05);
}

/* =========================
   BACK BUTTON
========================= */

.back-home{
    display:flex;
    justify-content:center;
    margin-top:50px;
}

.back-home a{
    padding:12px 18px;
    border-radius:12px;
    text-decoration:none;
    color:var(--text);
    background:rgba(255,122,24,0.10);
    border:1px solid rgba(255,122,24,0.25);
    transition:.2s;
}

.back-home a:hover{
    transform:translateY(-2px);
    background:rgba(255,122,24,0.18);
}

/* =========================
   LIGHTBOX
========================= */

.lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.92);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.lightbox-inner{
    position:relative;
    max-width:90%;
}

.lightbox-inner img{
    max-width:100%;
    max-height:85vh;
    border-radius:12px;
}

/* CLOSE */
.close{
    position: absolute;
    top: 15px;
    right: 15px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
    font-weight: 600;

    cursor: pointer;

    color: #fff;

    background: rgba(118, 118, 118, 0.962);
    border-radius: 8px;

    z-index: 9999;

    transition: 0.2s ease;
}

.close:hover{
    background: rgba(0,0,0,0.85);
    transform: scale(1.05);
}

/* =========================
   NAV (FIXED ON IMAGE)
========================= */

.nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);

    width:50px;
    height:50px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:22px;

    background:rgba(255,122,24,0.12);
    border:1px solid rgba(255,122,24,0.25);
    color:white;

    border-radius:12px;

    cursor:pointer;
    transition:.2s;
}

.nav:hover{
    background:rgba(255,122,24,0.22);
}

/* KEY FIX */
.prev{
    left:-70px;
}

.next{
    right:-70px;
}

/* mobile */
@media(max-width:700px){

    .gallery-grid{
        grid-template-columns:repeat(2, 1fr);
    }

    .prev{ left:10px; }
    .next{ right:10px; }

    h1{
        font-size:26px;
    }
}