Looking for a way to target the first HTML element that contains more than 2 children. Another option is to access the children elements of the first parent element.
<div class="market-template-2-columns">
<button type="button" class="market-button">
<span class="button-title">Option1</span>
</button>
<button type="button" class="market-button">
<span class="button-title">Option2</span>
</button>
</div>
<div class="market-template-2-columns">
<button type="button" class="market-button">
<span class="button-title">Option1</span>
</button>
<button type="button" class="market-button">
<span class="button-title">Option2</span>
</button>
<button type="button" class="market-button">
<span class="button-title">Option3</span>
</button>
<button type="button" class="market-button">
<span class="button-title">Option4</span>
</button>
</div>
<div class="market-template-2-columns">
<button type="button" class="market-button">
<span class="button-title">Option1</span>
</button>
<button type="button" class="market-button">
<span class="button-title">Option2</span>
</button>
<button type="button" class="market-button">
<span class="button-title">Option3</span>
</button>
<button type="button" class="market-button">
<span class="button-title">Option4</span>
</button>
</div>