.nfc-banner-placement { container-type: inline-size; }
.nfc-banner-panel { padding: 16px 0 20px; }
.nfc-banner-panel > p { margin: 0 0 8px; text-align: center; font: inherit; font-size: .75rem; }
.nfc-banner-row { display: flex; flex-wrap: nowrap; justify-content: center; gap: 20px; min-height: min(250px, 83.33cqw); }
.nfc-banner-row > .nfc-banner-item {
    flex: 0 1 300px;
    width: 300px;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 6 / 5;
    display: block;
}
.nfc-banner-row img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* The camera profile and its last grid both add bottom space before the footer.
 * Use the ad panel's spacing while a banner placement is visible. */
@media (scripting: enabled) {
    body.single-nfc_cam .nfc-main:has(+ .nfc-banner-placement > .nfc-banner-panel:not([hidden])) .nfc-cam-profile,
    body.single-nfc_cam .nfc-main:has(+ .nfc-banner-placement > .nfc-banner-panel:not([hidden])) .nfc-cam-discovery__section:last-child > .nfc-cam-grid {
        margin-bottom: 0;
    }

    body.single-nfc_cam .nfc-main + .nfc-banner-placement > .nfc-banner-panel {
        padding-top: 32px;
    }
}

@media (scripting: none) {
    .nfc-banner-panel { display: none; }
}
