
/* ===== Desktop: 6 Columns ===== */
.load-more-rows-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid #111111;
}

.load-more-rows-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  
    position: relative;

    box-sizing: border-box;
}

/* Borders */
.load-more-rows-item::after,
.load-more-rows-item::before {
    content: "";
    position: absolute;
    background-color: #111111;
}

/* Right Border */
.load-more-rows-item::after {
    width: 1px;
    height: 100%;
    top: 0;
    right: 0;
}

/* Bottom Border */
.load-more-rows-item::before {
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
}

/* Hide right border for every 6th item */
.load-more-rows-item:nth-child(6n)::after {
    display: none;
}

/* Hide bottom border for last row (JS adds .is-last-row) */
.load-more-rows-item.is-last-row::before {
    display: none !important;
}

/* ===== Tablet: 4 Columns ===== */
@media (max-width: 1024px) {
    .load-more-rows-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .load-more-rows-item::after {
        display: block;
    }

    .load-more-rows-item:nth-child(4n)::after {
        display: none;
    }

    .load-more-rows-item.is-last-row::before {
        display: none !important;
    }
}


/* ===== Mobile: 2 Columns ===== */
@media (max-width: 768px) {
    .load-more-rows-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .load-more-rows-item::after {
        display: block;
    }

    .load-more-rows-item:nth-child(2n)::after {
        display: none;
    }
}