.folder__grid {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1rem 2rem;
    padding: 1rem;

    @media (width < 768px) {
        justify-content: center;
        gap: 0;
        height: 100%;
        padding: 0;
        overflow-y: auto;
    }
}

/* on mobile a folder is a rounded bubble with its title above the grid */
@media (width < 768px) {
    .window--folder {
        &::after,
        .window__titlebar {
            background: none;
        }

        .window__title {
            position: absolute;
            top: 17vh;
            inset-inline: 0;
            z-index: 1;

            font-size: 2rem;
            text-align: center;
        }

        .window__close {
            bottom: 6vh;
        }

        .window__content {
            flex: none;
            width: 90vw;
            height: 50vh;
            margin: 10vh 5vw 0;
            padding-top: 5ch;
            overflow: hidden;

            background: rgb(var(--bg2) / 0.85);
            border: none;
            border-radius: 10vw;
        }
    }
}
