/* Основен стил за body */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #a8e6cf, #dcedc1, #ffd3b6, #ffaaa5);
    min-height: 100vh;
    background-size: 400% 400%;
    animation: gradientAnim 15s ease infinite;
}


}

/* Заглавје на страницата */
h1 {
    text-align: center;
    margin-top: 30px;
    color: #2e7d32;
}

/* Back копче */
#backBtn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#backBtn:hover {
    background-color: #1b4f1b;
}

/* Галерија */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Поединечен проект */
.project {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.project:hover {
    transform: scale(1.03);
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.project h3 {
    text-align: center;
    padding: 10px;
    font-size: 16px;
}

/* Lightbox (fullscreen) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

/* Слика во lightbox */
.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

/* Затвори копче */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Стрелки за преминување помеѓу слики */
.lightbox .prev, .lightbox .next {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

/* Мал ефект при hover на стрелки */
.lightbox .prev:hover, .lightbox .next:hover {
    color: #a5d6a7;
}
