@media print {
    @page                       {margin:0.75in 0.75in 0.75in 0.5in; /* unclear why left margin has to be treated different, but prints ok */}


    /*  DOCUMENT DEFAULTS:
        give the body a defined structure, default typeface */

    body *                          {max-width:100%;}
    body                            {font-family:"Arial", "Helvetica", "sans-serif"; margin:0; padding:0; box-sizing: border-box; width: 7in;/* border: 1px solid #ccc; */}

    /* LINKS: */
    a:after                         {text-decoration:underline;} /* slightly unnecessary, but makes it clear it was a link. */
   
    a[href]:after {
        content: " [" attr(href) "]";
        font-weight: normal;
        font-size: 14px;
        font-style: italic;
        text-decoration: none;
        word-wrap: break-word;
    }
  
    /* Don't show URLs for links that are just anchors */
    a[href^="#"]:after {
        content: "";
    }
    
    /* Don't show URLs for email links */
    a[href^="mailto:"]:after {
        content: "";
    }
    
    /* Don't show URLs for telephone links */
    a[href^="tel:"]:after {
        content: "";
    }

    /*  Extension LOGO:
        Shrink & make them grayscale */
    #ncce-ncsu-brick                {margin-bottom:10px;}
    #ncce-logo-header img           {max-height:75px; width:auto;}
    #ncce-logo-header a:after       {content:'';}    /* <- gets rid of the url */

    /*  HEADINGS: */
    h1,h2,h3,h4,h5,h6           {font-family:"Arial", "Helvetica", "sans-serif"; font-weight:bold; padding:0 !important; margin:0; background:#eee;}
    .page-header                {margin: 0px 0px 0px;} /* really needs a class of .row */
    .page-header h1             {background:none !important;font: bold 37px "Arial", "Helvetica", "sans-serif"; padding-top:0px !important; border:0 !important;line-height: 1.1;}
    .page-header h1 small       {white-space:normal;line-height: 1.2; display:block; padding-top:10px;}
    h1 small span a:after { display: none; }
    .section  h1                {border:0 !important; font-family: "Arial", "Helvetica", "sans-serif"; padding:10px !important;  page-break-after:avoid;}
    .page-header > div          {padding:0 5px;}
    .publication_title          {width: 65%; float: left;/* outline: 1px solid pink; */}
    .logo-left                  {width: 25%; float: right;text-align: right;}
    .collection_pubs h2 a:after {display: none;} /* Hide url for collections in "other pubs" heading */

    /*  HIDE THIS STUFF: */
    div.social,
    #title_text_div,
    #footerContents,
    #footer,
    ol.breadcrumb,
    .author_display br,
    .section a.img_modal_trigger.in_body:after,
    .single-pub-mailchimp-callout {display:none;}

    /*  SECTION DEFAULTS: */
    div.section:nth-child(1) h1         {margin-top:0;}
    div.section                         {padding:0;}
    div.section  p                      {font-size: 14px; padding:0 10px; page-break-before: avoid;}
    div.section  ol, div.section  ul    {font-size: 14px;}
    div.section b,
    div.section strong                  {font-family:"Arial", "Helvetica", "sans-serif"; font-size:16px;} /* <- switching, to use a font-face that supports bold */


    /*  IMAGES: */
    .img-thumbnail                      {width:90%; margin:0 auto !important; display:block;  padding:0 !important; border:0;}
    .img-thumbnail > p.caption          {text-align:center;}
    .img-thumbnail img,
    .img_div img                        {max-width:100%; width:auto !important; margin:0 auto !important; display:block;}
    .img-thumbnail .attribution         {text-align:center; max-width:none; padding-top:5px; display:block;}
    .img-thumbnail .attribution:before  {content:'Attribution: ';}
    .img-thumbnail .attribution a:after {content:''} /* would make attribution text too long */

    .image_row                          { page-break-inside: avoid;}
    div.img-md-2                        { page-break-inside: avoid;}
    div div.img-md-2                    { float:left !important; padding:10px; border: 1px solid #ccc;}
    div div.img-md-2:nth-child(n-3)     {margin-top:2%; width:48%; margin-right: 0%; margin-left: 2%;}
    div div.img-md-2:nth-child(2n+2)    {clear:left; margin-top:0.5in; margin-left:0;}
    div div.img-md-2:nth-child(3n-1)    {clear: left;}

    /*  TABLES:
        make them full-width, enhance borders, AND assume first row headers */
    table                                 {width:100% !important; border-right:1px solid #888 !important; border-left:1px solid #888 !important; border-bottom:1px solid #888 !important; }
    table tr:first-child th             {background:#eee !important; font-weight:bold !important; border-bottom:1px solid #666; border-top:1px solid #888 !important; font-size:15px;}
    table tr + tr td, tbody > tr > td   {border-top:1px solid #888 !important;}
    table td + td,
    table th + th                       {border-left:1px solid #888;}
    thead                               {display:table-header-group; }

    /* AUTHORS: */
    .authors,
    .authors .col-md-12         {margin:0 -15px;} /* fixes bootstrap column margins */
    .author_display dt          {font-family:"Arial", "Helvetica", "sans-serif"; font-size:14px;}
    .print_show                 {display: block; page-break-inside: avoid;}
    .p_required_text,
    .no_break,
    .authors                    {page-break-inside: avoid;}
    iframe                      {display: none;}
    .content                    {padding-bottom: 0;}
    .force_condensed,
    .force_light                {display: none;}
    #djDebug                    {display: none;}

    /* Table of Contents for Collections */
    .collection_pubs > h2       {margin:0.25in 0; page-break-after:avoid;}
    .collection_pubs,
    .collection_pubs ul         {page-break-before:avoid;}
    .container.authors          {padding:0 30px;}
    .collection_pubs a:after    {content: ''; /* removes urls from collection table of contents, can be accessed via QR code */}

    /*table   {table-layout:fixed !important; }*/
    /*.table-responsive > table {display:table !important;}*/
    /*td      {white-space:normal !important;}*/

    div.section > h1,
    .authors > h1 {margin-bottom:10px; padding-bottom:0 !important; font-size:26px;}


}