main {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 810px;
    gap: 4px;
    align-items: stretch;
    justify-items: center;
}

.item-section {
    break-inside: avoid;
    page-break-inside: avoid;
    width: 100%;
    max-width: var(--maxwidth);
    min-height: var(--minheight);
    border: 2px solid darkgreen;
    padding: 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.item-section .itemframe {
    width: 100%;
}

@media (max-width: 1100px) {
    .items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .items-grid {
        grid-template-columns: 1fr;
        min-width: 0;
        width: 100%;
    }
}
