/* Optional 300 x 600 / four-story layout. Compact v5 is preserved separately.
 * The ad service owns iframe/creative dimensions. Never stretch a 300 x 250 ad.
 * Existing Freestar IDs, insertion targets and original block ancestry remain. */
html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage {
    margin: 0 !important;
    min-width: 0;
}
@media (min-width: 1101px) {
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 300px;
        grid-template-rows: min-content min-content minmax(0, 1fr);
        column-gap: 32px;
        row-gap: 0;
        align-items: start;
        min-height: 622px;
    }
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage > .np-full-home,
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage > .np-full-home > .wp-block-group__inner-container,
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage .np-daybreak-ad-row,
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage .np-daybreak-ad-row > .wp-block-group__inner-container {
        display: contents !important;
    }
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage .np-daybreak-panel,
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage .np-daybreak-ad-row .np-daybreak {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        min-width: 0;
        min-height: 272px;
        width: 100%;
        margin: 0 !important;
    }
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage .np-daybreak-ad {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: start;
        min-height: 622px;
    }
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage .np-daybreak-ad-frame {
        min-height: 600px !important;
    }
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage > .np-c-trending-heading {
        grid-column: 1;
        grid-row: 2;
        margin: 32px 0 4px !important;
        min-width: 0;
    }
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage > .np-curated-row {
        grid-column: 1;
        grid-row: 3;
        min-width: 0;
        margin: 0 !important;
    }
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage .np-c-trending [data-posts] {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
}
/* Retain the current tablet/mobile flow and ad size; only the story count is four. */
@media (min-width: 781px) and (max-width: 1100px) {
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage .np-c-trending [data-posts] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}
@media (max-width: 780px) {
    html body.np-home-layout-tall-ad #post-22101 .np-home-tall-ad-stage .np-c-trending [data-posts] {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
