* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, Arial;
    background: #0f0f0f;
    color: white;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(20,20,20,0.9);
    backdrop-filter: blur(10px);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.buttons {
    display: flex;
    gap: 10px;
}

.btn {
    background: #2563eb;
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
}

/* GRID */
#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    padding: 15px;
}

/* CARD */
.card {
    background: #1a1a1a;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s ease;
}

/* IMAGE */
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .25s ease;
}

/* HOVER ZOOM (desktop) */
.card:hover img {
    transform: scale(1.08);
}

.card:hover {
    transform: translateY(-4px);
}

/* INFO */
.info {
    padding: 10px;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download {
    color: #60a5fa;
    text-decoration: none;
}

/* LOADER */
#loader {
    text-align: center;
    padding: 30px;
    opacity: 0.6;
}

/* 📱 MOBILE OPTIMIZATION */
@media (max-width: 600px) {
    #gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .card img {
        height: 160px;
    }
}

@media (max-width: 400px) {
    #gallery {
        grid-template-columns: 1fr;
    }
}