/* Masks follow the existing 1024x1536 covers. Printed white areas stay intact. */
:is(.ebooks-stage-page, .ebook-detail-page) img[src$="/collabit-f-gas-compliance-guide-book-cover.png"] {
    --ebook-cover-mask: url('../img/ebooks/f-gas-cover-mask.svg');
}
:is(.ebooks-stage-page, .ebook-detail-page) img[src$="/collabit-ai-planner-guide-book-cover.png"] {
    --ebook-cover-mask: url('../img/ebooks/ai-planner-cover-mask.svg');
}
:is(.ebooks-stage-page, .ebook-detail-page) img[src$="/collabit-automation-to-ai-guide-book-cover.png"] {
    --ebook-cover-mask: url('../img/ebooks/automation-to-ai-cover-mask.svg');
}
:is(.ebooks-stage-page, .ebook-detail-page) img[src$="-guide-book-cover.png"] {
    -webkit-mask-image: var(--ebook-cover-mask, none);
    mask-image: var(--ebook-cover-mask, none);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-origin: content-box;
    mask-origin: content-box;
    -webkit-mask-clip: content-box;
    mask-clip: content-box;
    object-fit: contain;
    object-position: center;
}
