/* koristi posts grid kao blog */
.posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* ALBUM GRID */
.album-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    padding: 10px;
}

.big img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.small-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
}

.small-grid img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    border-radius: 10px;
}

/* hover */
.post-card:hover img {
    transform: scale(1.03);
    transition: 0.3s;
}

/* responsive */
@media (max-width: 768px) {
    .posts {
        grid-template-columns: 1fr;
    }

    .album-grid {
        grid-template-columns: 1fr;
    }

    .small-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: none;
    }

    .small-grid img {
        height: 80px;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}
.album-viewer {
    max-width: 900px;
    margin: 30px auto;
}

/* glavna slika */
.main-image {
    position: relative;
}

.main-image img {
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: contain;
    background: #000; /* opcionalno - crna pozadina kao galerije */
}
/* strelice */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
}

.arrow.left {
    left: 15px;
}

.arrow.right {
    right: 15px;
}

/* thumbnails */
.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
}

.thumbnails img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

.thumbnails img:hover {
    opacity: 1;
}