.kmk-post-document{margin-block:2rem;padding-top:1rem;border-top:1px solid var(--wp--preset--color--line,#ddd)}
.kmk-post-document-preview{display:block;box-sizing:border-box;width:100%;height:850px;border:1px solid var(--wp--preset--color--line,#ddd);border-radius:8px;background:#fff}
.kmk-document-editor{padding:1.25rem;border:1px solid #ccc;border-radius:8px}
@media(max-width:600px){.kmk-post-document-preview{height:650px}}
@media(min-width:1024px){.kmk-post-document-pdf .kmk-post-document-preview{width:120%;max-width:calc(100vw - 4rem);margin-left:50%;transform:translateX(-50%)}}

/* Festival news: documents span the text and featured-image columns. */
@media(min-width:1025px){
 body:is(.postid-49,.postid-748) main#sisu:has(> .wp-block-post-content > .kmk-post-document-pdf) > .wp-block-post-content{display:contents}
 body:is(.postid-49,.postid-748) main#sisu > .wp-block-post-content:has(> .kmk-post-document-pdf) > :not(.kmk-post-document){grid-column:1}
 body:is(.postid-49,.postid-748) main#sisu > .wp-block-post-content:has(> .kmk-post-document-pdf) > :first-child{grid-row:3;margin-top:1rem}
 body:is(.postid-49,.postid-748) main#sisu > .wp-block-post-content > .kmk-post-document-pdf{grid-column:1/-1;width:100%;max-width:none;margin-inline:0;box-sizing:border-box}
 body:is(.postid-49,.postid-748) main#sisu > .wp-block-post-content > .kmk-post-document-pdf .kmk-post-document-preview{width:100%;max-width:100%;margin-left:0;transform:none}
}

@media(min-width:1025px){
 body.postid-748 main#sisu:has(> .wp-block-post-content > .kmk-post-document-pdf){display:grid;grid-template-columns:minmax(0,62fr) minmax(0,38fr);column-gap:2rem;max-width:1100px;margin-inline:auto}
 body.postid-748 main#sisu:has(> .wp-block-post-content > .kmk-post-document-pdf)>*{min-width:0;width:100%;max-width:none;box-sizing:border-box}
 body.postid-748 main#sisu:has(> .wp-block-post-content > .kmk-post-document-pdf)>:is(.wp-block-post-title,.wp-block-post-date,.wp-block-group){grid-column:1/-1}
 body.postid-748 main#sisu:has(> .wp-block-post-content > .kmk-post-document-pdf)>.wp-block-post-featured-image{grid-column:2;grid-row:3;max-width:none;margin:1rem 0 0;align-self:start}
 body.postid-748 main#sisu:has(> .wp-block-post-content > .kmk-post-document-pdf)>.wp-block-post-featured-image img{width:100%;height:auto;max-height:none;object-fit:contain}
}
