@page {
    size: A4;
    margin: 16mm 14mm 17mm;
}

@media print {
    html,
    body {
        width: auto !important;
        min-width: 0 !important;
    }

    .vh-pdf-question,
    .pk-pdf-card,
    .vd-pdf-question,
    .pdf-testlet-context,
    .testlet-context {
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    .vh-pdf-question__head,
    .vh-pdf-options > li,
    .vh-pdf-answer > summary,
    .pk-pdf-question-head,
    .pk-pdf-option,
    .pk-question-answer-title,
    .pk-question-explanation-title,
    .vd-pdf-question > header,
    .vd-pdf-options > li,
    .vd-pdf-answer > summary,
    .vh-demo-figure,
    .pk-pdf-image,
    .vd-demo-figure,
    .pdf-testlet-context h2,
    .testlet-context h2,
    pre {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .vh-demo-richtext,
    .pk-pdf-content,
    .vd-richtext,
    .pdf-testlet-context__scenario,
    .testlet-context__scenario {
        orphans: 3;
        widows: 3;
    }

    .vh-demo-figure img,
    .pk-pdf-image img,
    .vd-demo-figure img,
    .pdf-testlet-context img,
    .testlet-context img {
        width: auto !important;
        max-width: 100% !important;
        max-height: 250mm !important;
        object-fit: contain;
    }
}
