
.link-grid, .link-grid .block-editor-block-list__layout {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .link-grid, .link-grid .block-editor-block-list__layout {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .link-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.link-grid-item {
    background: #fff;
    padding: 1rem;
    box-sizing: border-box;
}
.link-grid-item__inner{
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    border: 2px dashed var(--wp--preset--color--quinary);
    box-sizing: border-box;
    min-height: 200px;
}
.link-grid .link-grid-item:nth-child(4n+1) {
    background: #efe7e8;
}
.link-grid .link-grid-item:nth-child(4n+2) {
    background: #efeeed;
}
.link-grid .link-grid-item:nth-child(4n+3) {
    background: #f3f0e3;
}
.link-grid .link-grid-item:nth-child(4n) {
    background: #EBEEE2;
}
.link-grid-item h3, .link-grid-item p{
    margin:0;
}
.link-grid-item__inner img {
    max-width: 150px;
    max-height: 90px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}