.root {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-16);
    box-sizing: border-box;
}

.contentImg {
    display: flex;
    width: 60px;
    height: 60px;
    padding: 0 2px;
    flex-shrink: 0;
}

.container {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: repeat(3, max-content);
    grid-template-rows: repeat(2, auto);
    gap: var(--spacing-8);
}

.item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    user-select: none;
    color: var(--color-neutral-500);
}

.link {
    line-height: var(--line-height-sm);
    text-decoration: none;
    cursor: pointer;

    &:hover {
        color: var(--color-text-primary-inverted);
    }
}

@media (width < 1440px) {
    .container {
        display: grid;

        grid-template-columns: repeat(2, max-content);
        grid-template-rows: repeat(4, auto);
    }
    .container > *:nth-child(1) {
        grid-row: 1;
        grid-column: 1;
    }
    .container > *:nth-child(2) {
        grid-row: 1;
        grid-column: 2;
    }
    .container > *:nth-child(3) {
        grid-row: 2;
        grid-column: 1 / span 2;
    }
    .container > *:nth-child(4) {
        grid-row: 3;
        grid-column: 1 / span 2;
    }
    .container > *:nth-child(5) {
        grid-row: 4;
        grid-column: 1 / span 2;
    }
}

@media (width < 1024px) {
    .container {
        grid-template-columns: repeat(3, max-content);
        grid-template-rows: repeat(3, auto);
    }
    .container > *:nth-child(1) {
        grid-row: 1;
        grid-column: 1;
    }
    .container > *:nth-child(2) {
        grid-row: 1;
        grid-column: 2;
    }
    .container > *:nth-child(3) {
        grid-row: 1;
        grid-column: 3;
    }
    .container > *:nth-child(4) {
        grid-row: 2;
        grid-column: 1 / span 3;
    }
    .container > *:nth-child(5) {
        grid-row: 3;
        grid-column: 1 / span 3;
    }
}

@media (width < 768px) {
    .contentImg {
        display: flex;
        width: 45px;
        height: 45px;
    }
}

@media (width < 520px) {
    .root {
        align-self: flex-start;
    }
    .contentImg {
        display: flex;
        width: 45px;
        height: 45px;
    }
    .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-8);
    }
}
