/* Reset i osnovni stil */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    background-image: url('../images/background_spartanac.png');
}

.galerija-container {
    max-width: 1200px;
    margin: 0px auto;
    padding: 150px 20px;
    text-align: center;
    
}

.galerija-container h1 {
    margin-bottom: 30px;
    color: #2a7a62;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.galleryImage {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.galleryImage:hover {
    transform: scale(1.03);
}

/* Fullscreen overlay */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1999;
}

.fullscreen.active {
    display: flex;
}

.fullscreen img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .galerija-container {
        padding: 100px 15px;
    }

    .fullscreen img {
        max-width: 100%;
        max-height: 100%;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .galerija-container {
        padding: 80px 10px;
    }

    .fullscreen img {
        max-width: 100%;
        max-height: 100%;
    }
}
