.stack {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.stack * {
    margin-block: 0;
}

.stack * + * {
    margin-block-start: var(--space, 10px);
}

.stack:only-child {
    block-size: 100%;
}

.stack-exception,
.stack-exception + * {
    --space: 3rem;
}

/*split space after element 3*/
/*.stack > :nth-child(3) {
    margin-block-end: auto;
}*/

.box {
    padding: var(--space-s);
}

.box * {
    color: inherit;
}

.box.invert {
    color: var(--color-light);
    background-color: var(--color-dark);
}

.frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.frame > img,
.frame > video {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

.icon {
    width: 0.75em;
    width: 1cap;
    height: 0.75em;
    height: 1cap;
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space, 10px);
    justify-content: flex-start;
    align-items: center;
}

.cover {
    display: flex;
    flex-direction: column;
    min-block-size: 100vh;
}

.cover > article {
    margin-block: auto;
}

.cover > :last-child:not(section) {
    margin-block-end: 0;
}

.reel {
    width: auto;
    display: flex;
    block-size: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: #fff #000;
}

.reel::-webkit-scrollbar {
    block-size: 10px;
}

.reel::-webkit-scrollbar-track {
    background-color: #000;
}

.reel::-webkit-scrollbar-thumb {
    background-color: #000;
    background-image: linear-gradient(
        #000 0,
        #000 0.25rem,
        #fff 0.25rem,
        #fff 0.75rem,
        #000 0.75rem
    );
}

.reel > * {
    flex: 0 0 auto;
}

.reel > * + * {
    margin-inline-start: 1rem;
}

.reel.overflowing {
    padding-block-start: 10px;
    padding-block-end: 10px;
}

.grid {
    display: grid;
    gap: 10px;
}

.grid.aboveMin {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid.above300 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.center {
    box-sizing: content-box;
    margin-inline: auto;
    max-inline-size: var(--measure);
}
