.nfc-banner-placement { container-type: inline-size; }
.nfc-banner-panel { padding: 16px 0 20px; }
/* Keep layout space reserved without showing a label, link or broken-image
 * alt text before a successful load. The hidden attributes also work before
 * the stylesheet loads. IntersectionObserver still sees the reserved geometry. */
.nfc-banner-panel[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.nfc-banner-panel > p[hidden] { display: block; visibility: hidden; }
.nfc-banner-row > .nfc-banner-item[hidden] { display: block; visibility: hidden; pointer-events: none; }
.nfc-banner-panel > p { margin: 0 0 8px; text-align: center; font: inherit; font-size: .75rem; }
/* Fixed native-size slots; only the number of selected banners changes. */
.nfc-banner-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    min-height: var(--nfc-row-height, 250px);
}
.nfc-banner-row > .nfc-banner-item {
    flex: 0 0 var(--nfc-ad-width, 300px);
    width: var(--nfc-ad-width, 300px);
    height: var(--nfc-ad-height, 250px);
    display: block;
}
.nfc-banner-row img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Footer spacing is owned here, not by provider skins. The runtime marks the
 * adjacent Discovery main only while a compatible footer panel reserves space.
 * When it becomes empty, disabled for this layout or fails to load, the normal
 * content margins return. Keep earlier discovery sections and other placements
 * untouched. The mobile swipe track retains its original 2px bottom padding. */
.nfc-banner-placement--footer > .nfc-banner-panel { padding: 24px 0 20px; }
.nfc-banner-placement--footer > .nfc-banner-panel > p { margin-bottom: 10px; }
body.single-nfc_cam .nfc-main.nfc-main--footer-ad .nfc-cam-profile,
body.single-nfc_cam .nfc-main.nfc-main--footer-ad .nfc-cam-discovery__section:last-child > .nfc-cam-grid,
body.single-nfc_cam .nfc-main.nfc-main--footer-ad .nfc-cam-profile > .nfc-related:last-child > .nfc-cam-grid {
    margin-bottom: 0;
}
.nfc-main.nfc-main--footer-ad .nfc-home-discovery { padding-bottom: 0; }

@media (scripting: none) {
    .nfc-banner-panel { display: none; }
}
.nfc-banner-panel[hidden] { display: none; }
.nfc-banner-item > a { display: block; width: 100%; height: 100%; }
/* Extra placements must fit their own content box; only footer has a 300px minimum. */
@container (width < 300px) {
    .nfc-banner-placement:not(.nfc-banner-placement--desktop) > .nfc-banner-panel { display: none; }
}
.nfc-banner-placement--desktop, .nfc-banner-placement--responsive { min-width: 0; width: 100%; }
.nfc-banner-placement--desktop .nfc-banner-panel, .nfc-banner-placement--responsive .nfc-banner-panel { padding: 12px 0 16px; }
.nfc-banner-placement--desktop .nfc-banner-row, .nfc-banner-placement--responsive .nfc-banner-row { min-height: var(--nfc-row-height, 0px); }
.nfc-banner-placement--desktop .nfc-banner-item > img,
.nfc-banner-placement--desktop .nfc-banner-item > a > img,
.nfc-banner-placement--responsive .nfc-banner-item > img,
.nfc-banner-placement--responsive .nfc-banner-item > a > img { max-width: none; }
@media (max-width: 960px) {
    .nfc-banner-placement--desktop { display: none !important; }
}


/* Initial geometry for fit-responsive native banners. These attributes are
 * emitted only for eligible formats; the runtime removes them on ownership.
 * No image, anchor or tracking request is created by this reservation. */
@media (scripting: enabled) {
    @container (width >= 300px) {
        [data-nfc-initial-fit][data-nfc-initial-mobile] > .nfc-banner-panel[hidden] {
            display: block;
            --nfc-row-height: 250px;
        }
    }
    @container (width >= 720px) {
        [data-nfc-initial-fit="720"]:is([data-nfc-initial-desktop], [data-nfc-initial-mobile]) > .nfc-banner-panel[hidden] { display: none; }
        [data-nfc-initial-fit="720"][data-nfc-initial-desktop] > .nfc-banner-panel[hidden] {
            display: block;
            --nfc-row-height: 90px;
        }
    }
    @container (width >= 728px) {
        [data-nfc-initial-fit="728"]:is([data-nfc-initial-desktop], [data-nfc-initial-mobile]) > .nfc-banner-panel[hidden] { display: none; }
        [data-nfc-initial-fit="728"][data-nfc-initial-desktop] > .nfc-banner-panel[hidden] {
            display: block;
            --nfc-row-height: 90px;
        }
    }
    @container (width >= 970px) {
        [data-nfc-initial-fit="970"]:is([data-nfc-initial-desktop], [data-nfc-initial-mobile]) > .nfc-banner-panel[hidden] { display: none; }
        [data-nfc-initial-fit="970"][data-nfc-initial-desktop] > .nfc-banner-panel[hidden] {
            display: block;
            --nfc-row-height: 90px;
        }
    }
}
