main {
    margin-top: 4rem;
}

h1 {
    margin-bottom: 1rem;
}

.preview {
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
}

.embeddings {
    width: 224px; /* same as canvas size */
    height: 224px; /* same as canvas size */
    border: 0.062rem solid #ccc;
    text-wrap: wrap;
    word-break: break-all;
    text-align: justify;
    font-size: 0.35rem;
    overflow-y: scroll;
    scrollbar-width: none;
}

.canvasContainer {
    border: 0.062rem solid #ccc;
    width: 224px;
    height: 224px;
}

.clusters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40rem, 1fr));
    gap: 1rem;
    margin-top: 2rem;

    @media (max-width: 50rem) {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cluster {
        border: 0.062rem solid #ccc;
        background: #fafafa;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: start;
        align-self: start;

        @media (max-width: 600px) {
            grid-template-columns: repeat(2, 1fr);
        }

        .block {
            width: 100%;
            aspect-ratio: 1 / 1;
            min-height: 0;

            img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }
}

.sample-channels {
    display: flex;
    gap: 0.4rem;
    margin: 0 1rem;

    ul {
        display: flex;
        gap: 1rem;
        list-style: none;
        padding: 0;
        margin: 0;

        @media (max-width: 700px) {
            flex-direction: column;
        }
    }
}

a,
a:visited {
    color: blue;
}
