Currently, I am designing a diamond grid system using CSS. I am facing an issue where I need to shift the 5th block to the left and then every 7th subsequent block after that (12th, 19th, 26th, etc). Is there a way to create a dynamic nth selector for this in CSS?
.diamond-grid > div:nth-child(5n+6) {
margin-left: 182px;
}