:is(.stack) > * { 
  margin-block: 0; 
}  

:is(.stack) > * + * { 
  margin-block-start: var(--stack-space); 
}