@media print {
/* Hide elements not needed for printing */
header, footer, aside, nav, form, iframe, .menu, .hero, .adslot, .no-print {
  display: none !important; 
         } 
/* Example html code */
/* <div class="no-print"> */
/*   <img src="../images/747.jpg" width="640" height="640" border="0" alt="test" /> */
/* </div> */

/* Adjust layout for printing */
body {
 background-color: #fff; /* Ensure white background */
 color: #000; /* Ensure black text */
     }
.main-content {
 width: 100%; /* Expand content area */
 margin: 0;
 padding: 0;
 }

/* Control page breaks */
 h1 {
 page-break-before: always; /* Start new page before each h1 */
 }
 p {
 page-break-inside: avoid; /* Prevent page breaks within paragraphs */
 }

/* Remove underlining and properties from links */
A:link, A:visited, A:active { text-decoration: none }
A:link { color: #0000FF }
A:visited { color: #660066 }
A:active { color: #000000 }

/* Hide all images */
/* img, svg { display: none !important; } */

/* Display images with the 'print' class (This does not work) */
/* img.print, svg.print { display: block !important; max-width: 100%; } */

}
