#cig-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 15px;
}

@media(max-width: 900px) {
    #cig-grid { grid-template-columns: repeat(3, 1fr); }
}

@media(max-width: 600px) {
    #cig-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- THUMBNAILS ---------------- */

.cig-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: 0.2s;
}

.cig-thumb:hover {
    transform: translateY(-3px);
}

.cig-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.cig-check {
    position: absolute;
    top: 8px;
    left: 8px;
    background: white;
    border-radius: 50%;
    padding: 3px 6px;
    display: none;
}

.cig-item.selected .cig-check {
    display: block;
}

/* ---------------- TOOLBAR ---------------- */

#cig-toolbar {
    position: sticky;
    top: 0;
    background: white;
    padding: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#cig-toolbar button {
    padding: 8px 12px;
    cursor: pointer;
}

/* ---------------- LOGIN SCREEN (NO BACKGROUND CHANGE) ---------------- */

#cig-login {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 120px;
    text-align: center;
}

#cig-login h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

/* ---------------- FIXED INPUT + GO INSIDE FIELD ---------------- */

.cig-input-wrap {
    display: flex;
    width: 320px;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.cig-input-wrap input {
    flex: 1;
    border: none;
    padding: 14px;
    font-size: 16px;
    outline: none;
}

.cig-input-wrap button {
    border: none;
    padding: 0 18px;
    background: blue;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.cig-input-wrap button:hover {
    opacity: 0.85;
}
