@media only screen and (max-width: 1024px) and (orientation: portrait) { .gm-2-table-row { flex-wrap: wrap; justify-content: center; } .gm-2-product-cell-x-2 { width: 50%; border-bottom: 1px solid #d9d9d9; } .gm-2-product-cell-x-2:nth-child(2n) { border-right: none; } .gm-2-product-cell-x-2:last-child, .gm-2-product-cell-x-2:nth-last-child(2):nth-child(2n+1) { border-bottom: none; } .gm-2-product-cell-x-2:nth-child(2n+1):last-child { width: 100%; border-left: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; } }