/* Falkenberg layout compatibility. Kept separate from generated main.css. */
@media (min-width: 992px) {
    #masthead .megamenu-wrapper .megamenu.megamenu--minimal > li {
        flex: 0 0 auto;
    }
}

/* The figure owns the aspect ratio; its link/picture must fill that same box. */
.link-boxes-section .link-box.standard figure[data-lb-ar] > a,
.link-boxes-section .link-box.standard figure[data-lb-ar] > picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.link-boxes-section .link-box.standard figure[data-lb-ar] picture,
.link-boxes-section .link-box.standard figure[data-lb-ar] img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Column heroes use the same width and gutters as this site's content. */
.entry-column-header:not(.fullscreen) {
    width: 100%;
    max-width: 105rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 992px) {
    .entry-column-header:not(.fullscreen) {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@media (min-width: 1280px) {
    .entry-column-header:not(.fullscreen) {
        padding-left: clamp(3.97rem, 4.9vw, 5.51rem);
        padding-right: clamp(3.97rem, 4.9vw, 5.51rem);
    }
}

/* Older parent templates already put a grid container inside the hero wrapper.
   Keep one set of gutters, matching the navigation and newer row markup. */
.entry-column-header:not(.fullscreen) > .column-header.grid-container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
