.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 15px;
}

@media (min-width: 600px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 900px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}


/* General Styles */

.card {
    padding: 10px;
    background: var(--color-surface);
    color: var(--color-brand);
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px var(--shadow-color-soft);
}

.image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-brand);
    -webkit-mask: var(--image) center / contain no-repeat;
    mask: var(--image) center / contain no-repeat;
    -webkit-user-drag: none;
}

.text {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}