/*
 * MagForest publisher catalogue card width repair.
 *
 * archive-publisher.php lets the lower info/action panel occupy the full
 * Masonry/grid column, while the medium cover image can remain at its
 * intrinsic rendered width on very wide screens. Make the visual cover area
 * fill the same card width and keep the footer inside that width.
 */

body.mf-publisher-card-width-fix .edd-download-grid .grid-list-wrap > article.grid,
body.mf-publisher-card-width-fix .edd-download-grid .grid-list-wrap > article.grid .grid-inner,
body.mf-publisher-card-width-fix .edd-download-grid .grid-list-wrap > article.grid .edd-download-info-wrap {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

/* The publisher template outputs the cover without an explicit width rule. */
body.mf-publisher-card-width-fix .edd-download-grid .grid-list-wrap > article.grid .grid-inner > a,
body.mf-publisher-card-width-fix .edd-download-grid .grid-list-wrap > article.grid picture.grid-list-image,
body.mf-publisher-card-width-fix .edd-download-grid .grid-list-wrap > article.grid picture.grid-list-image img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.mf-publisher-card-width-fix .edd-download-grid .grid-list-wrap > article.grid picture.grid-list-image img {
    height: auto !important;
}

/* Keep the title/action footer within exactly the same card boundary. */
body.mf-publisher-card-width-fix .edd-download-grid .grid-list-wrap > article.grid .edd-download-info-wrap {
    width: 100% !important;
    overflow: hidden;
}

body.mf-publisher-card-width-fix .edd-download-grid .grid-list-wrap > article.grid .edd-download-info,
body.mf-publisher-card-width-fix .edd-download-grid .grid-list-wrap > article.grid .edd-download-actions,
body.mf-publisher-card-width-fix .edd-download-grid .grid-list-wrap > article.grid .edd_download_purchase_form,
body.mf-publisher-card-width-fix .edd-download-grid .grid-list-wrap > article.grid .edd_purchase_submit_wrapper {
    box-sizing: border-box !important;
}

body.mf-publisher-card-width-fix .edd-download-grid .grid-list-wrap > article.grid .edd-download-actions {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
