The grid columns used in the display banner are too wide (at some viewport widths) to place multiple display banners in a grid next to one another. Removing the grid columns allows the display banners to conform to the width of its container. Here are the changes:
<div class="dcf-bleed unl-bg-darkest-gray unlcms-display-banner">
<div class="dcf-d-grid dcf-row-gap-4 unlcms-display-banner-grid">
<div class="dcf-wrapper dcf-z-1 dcf-w-100% dcf-w-max-lg unlcms-display-banner-text unlcms-display-banner-text-c">
<header class="unlcms-display-banner-header">
<p class="dcf-mb-3 dcf-txt-xs dcf-lh-3 dcf-uppercase dcf-bold unl-ls-2 unl-cream"><span class="unl-bg-darkest-gray unlcms-display-banner-subhead">Cras mattis consectetur purus sit amet fermentum</span></p>
<h2 class="dcf-d-inline dcf-txt-h1 unl-cream unl-bg-darkest-gray unlcms-display-banner-heading">Troy Finds Ways to Serve Others on Campus and in Career</h2>
</header>
<p>Max 480 characters. Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Aenean lacinia bibendum nulla sed consectetur. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Nulla vitae elit libero, a pharetra augue. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget quam.</p>
</div>
<div class="unlcms-display-banner-img dcf-ratio dcf-ratio-16x9">
<picture>
<source srcset="https://www.unl.edu/styles/16x9_3200x1800/public/images/hero/troy-hero%281%29.jpg?itok=RXYUWolL&timestamp=1673973237 1.5x, https://www.unl.edu/styles/16x9_1920x1080/public/images/hero/troy-hero%281%29.jpg?itok=LYtekXDq&timestamp=1673973237 1x, https://www.unl.edu/styles/16x9_3200x1800/public/images/hero/troy-hero%281%29.jpg?itok=RXYUWolL&timestamp=1673973237 2x" media="(min-width: 1600px)">
<source srcset="https://www.unl.edu/styles/16x9_2400x1350/public/images/hero/troy-hero%281%29.jpg?itok=X-YcEfBM&timestamp=1673973237 1.5x, https://www.unl.edu/styles/16x9_1600x900/public/images/hero/troy-hero%281%29.jpg?itok=MNkLh4lu&timestamp=1673973237 1x, https://www.unl.edu/styles/16x9_3200x1800/public/images/hero/troy-hero%281%29.jpg?itok=RXYUWolL&timestamp=1673973237 2x" media="(min-width: 1044px)">
<source srcset="https://www.unl.edu/styles/16x9_1920x1080/public/images/hero/troy-hero%281%29.jpg?itok=LYtekXDq&timestamp=1673973237 1.5x, https://www.unl.edu/styles/16x9_1280x720/public/images/hero/troy-hero%281%29.jpg?itok=ST8459GL&timestamp=1673973237 1x, https://www.unl.edu/styles/16x9_2560x1440/public/images/hero/troy-hero%281%29.jpg?itok=LC0tOyMJ&timestamp=1673973237 2x" media="(min-width: 980px)">
<source srcset="https://www.unl.edu/styles/16x9_1440x810/public/images/hero/troy-hero%281%29.jpg?itok=mjUV88IF&timestamp=1673973237 1.5x, https://www.unl.edu/styles/16x9_960x540/public/images/hero/troy-hero%281%29.jpg?itok=Kf0oyF1R&timestamp=1673973237 1x, https://www.unl.edu/styles/16x9_1920x1080/public/images/hero/troy-hero%281%29.jpg?itok=LYtekXDq&timestamp=1673973237 2x" media="(min-width: 768px)">
<source srcset="https://www.unl.edu/styles/16x9_960x540/public/images/hero/troy-hero%281%29.jpg?itok=Kf0oyF1R&timestamp=1673973237 1.5x, https://www.unl.edu/styles/16x9_640x360/public/images/hero/troy-hero%281%29.jpg?itok=BEWTDPIz&timestamp=1673973237 1x, https://www.unl.edu/styles/16x9_1280x720/public/images/hero/troy-hero%281%29.jpg?itok=ST8459GL&timestamp=1673973237 2x" media="(min-width: 480px)">
<source srcset="https://www.unl.edu/styles/16x9_720x405/public/images/hero/troy-hero%281%29.jpg?itok=P-iUIfst&timestamp=1673973237 1.5x, https://www.unl.edu/styles/16x9_480x270/public/images/hero/troy-hero%281%29.jpg?itok=qKo_hzRB&timestamp=1673973237 1x, https://www.unl.edu/styles/16x9_960x540/public/images/hero/troy-hero%281%29.jpg?itok=Kf0oyF1R&timestamp=1673973237 2x" media="(min-width: 0px)">
<img class="dcf-ratio-child dcf-obj-fit-cover unlcms-slow-zoom-in" fetchpriority="high" src="https://www.unl.edu/styles/16x9_960x540/public/images/hero/troy-hero%281%29.jpg?itok=Kf0oyF1R&timestamp=1673973237" alt="">
</picture>
</div>
<!-- if more than one button -->
<div class="dcf-wrapper dcf-d-flex dcf-flex-wrap dcf-gap-3 dcf-z-1 dcf-w-100% dcf-w-max-lg unlcms-display-banner-btn-group unlcms-display-banner-btn-group-c" role="group">
<a href="https://go.unl.edu/0wk7" class="dcf-btn dcf-btn-primary">Learn More<span class="dcf-sr-only"> about Troy</span></a>
<a href="https://go.unl.edu/v6zf" class="dcf-btn dcf-btn-primary">Explore Admissions</a>
</div>
<!-- else only one button (to test: comment out button group above, uncomment line below) -->
<!-- <div class="dcf-wrapper dcf-d-flex dcf-flex-wrap dcf-gap-3 dcf-z-1 dcf-w-100% dcf-w-max-lg unlcms-display-banner-btn-group unlcms-display-banner-btn-group-c">
<a href="https://go.unl.edu/v6zf" class="dcf-btn dcf-btn-primary">Explore Admissions</a>
</div> -->
</div>
</div>
Added an additional wrapper <div> and moved the dcf-bleed unl-bg-darkest-gray unlcms-display-banner classes to this <div>
Replaced unlcms-grid-cols with unlcms-display-banner-grid
Added dcf-wrapper dcf-w-100% dcf-w-max-lg to unlcms-display-banner-text and unlcms-display-banner-btn-group<div>s
Changed dcf-col-gap-3 dcf-row-gap-3 to dcf-gap-3 in the button group <div>
One more thing: it looks like role="group" isn't being removed if there is only one button. See example in the commented markup in the button group above.
The grid columns used in the display banner are too wide (at some viewport widths) to place multiple display banners in a grid next to one another. Removing the grid columns allows the display banners to conform to the width of its container. Here are the changes:
CSS This can replace all of the old CSS.
HTML
<div>
and moved thedcf-bleed unl-bg-darkest-gray unlcms-display-banner
classes to this<div>
unlcms-grid-cols
withunlcms-display-banner-grid
dcf-wrapper dcf-w-100% dcf-w-max-lg
tounlcms-display-banner-text
andunlcms-display-banner-btn-group
<div>
sdcf-col-gap-3 dcf-row-gap-3
todcf-gap-3
in the button group<div>
One more thing: it looks like
role="group"
isn't being removed if there is only one button. See example in the commented markup in the button group above.