.nf-ad {
    --nf-ad-max: 970px;
    position: relative;
    display: block;
    width: 100%;
    max-width: var(--nf-ad-max);
    margin: 1rem auto;
    text-align: center;
    background: transparent;
}

.nf-ad__link {
    display: block;
    line-height: 0;
}

.nf-ad__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    aspect-ratio: auto;
    background: rgba(255, 255, 255, 0.03);
}

.nf-ad__label {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.45);
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    pointer-events: none;
}

.nf-ad--leaderboard { --nf-ad-max: 728px; }
.nf-ad--large { --nf-ad-max: 970px; }
.nf-ad--rectangle { --nf-ad-max: 300px; }
.nf-ad--mobile { --nf-ad-max: 320px; }
.nf-ad--hero { --nf-ad-max: 100%; margin: 0; }
.nf-ad--hero .nf-ad__image { width: 100%; max-height: 360px; object-fit: cover; }
.nf-ad--sidebar { --nf-ad-max: 300px; margin: 0.75rem 0; }
.nf-ad--inline { margin: 1.25rem auto; }

.nf-ad-slot {
    width: 100%;
    padding: 0 1rem;
}

.nf-ad-slot--home-top { padding-top: 0.5rem; }
.nf-ad-slot--home-middle,
.nf-ad-slot--home-bottom { padding: 0.5rem 1rem 1rem; }

.nf-ad-slot--mobile {
    display: none;
}

html.is-mobile-device .nf-ad-slot--mobile {
    display: block;
    padding: 0.5rem 0.75rem 0;
}

@media (max-width: 768px) {
    .nf-ad--leaderboard,
    .nf-ad--large {
        --nf-ad-max: 100%;
    }
}
