/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */


html {
    color: #fff;
	font-family: "Century Gothic", CenturyGothic, AppleGothic,  "Avant Garde", Avantgarde, sans-serif;
	overflow-y: scroll; /* force scrollbars to prevent jumping */
}


body {
    font-size: 16px;
    line-height:1.5em;
    background:#000;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

a{color:#fff;}
.layout-content a:hover{ color:rgba(255,255,255,0.8); background:rgba(0,0,0,0.3); 	border-radius:2px;}


/* ==========================================================================
   Floating Lantern Styles
   ========================================================================== */


/* === GENERAL LAYOUT === */
.page-wrapper{position:relative;}
.layout-content,
.layout-footerA,
.layout-footerB
{width:1028px; margin:0 auto; padding:0;}


.bgA{background:url(../img/bgs/pixel-purple.png);}
.bgB{background:url(../img/bgs/pixel-blue.png);}
.bgC{background:url(../img/bgs/pixel-grey.png);}
.bgD{background:url(../img/bgs/pixel-brown.png);}

.col-full{width:1028px}
.col-half{width:580px}

.col-full .col-inner{padding:15px 30px;}
.col-half .col-inner{padding:10px 30px;}

.round-lg{border-radius:10px; behavior: url(/Lantern/css_pie/PIE.htc);}
.round-md{border-radius:6px; behavior: url(/Lantern/css_pie/PIE.htc);}
.round-sm{border-radius:3px; behavior: url(/Lantern/css_pie/PIE.htc);}

.float-left{float:left}
.float-right{float:right}

.push-down25{margin-top:25px;}
.push-down50{margin-top:50px;}
.push-down75{margin-top:75px;}
.push-down100{margin-top:100px;}




/* === HEADER === */
a.site-name, a.site-name:hover{display:block; float:left; height:75px; width:258px; background:url(../img/logo.png); margin:70px 0 0 0; position:relative; z-index:10;}


/* shadows and z-index settings */
.shadow{position:fixed; left:0; top:0; height:200px; width:100%; background: url(../img/bgs/gradient-black-top.png) repeat-x; z-index:0}
.shadow-bottom{position:fixed; left:0; bottom:0; height:300px; width:100%; background: url(../img/bgs/gradient-black.png) bottom repeat-x; z-index:0}
.full-layout-header{z-index:300; position:relative;}
.layout-content{position:relative; z-index:10;}


/* === NAVIGATION === */
[class|="nav"] ul{
	margin:0;
	padding:0;
}
[class|="nav"] ul li{
	display:inline-block;
}
[class*="nav-block"] ul li{
	display:block;
}

.nav-site{background:#135589 url(../img/bgs/nav-bg.jpg) repeat-x bottom; top:0; left:0; width:100%; position:fixed; z-index:300;}
.nav-site ul{margin:0 auto; width:1080px;  font-size:0;}
.nav-site li{
	display: -moz-inline-stack;
	display:inline-block;
	font-size:13px;
	height:35px;
	margin:0;
	padding:0;
	line-height:35px;
	list-style:none;
	word-spacing:0;
	position:relative;
	*zoom: 1;
    *display: inline;
	*float:left;
}

.nav-site li > a{
	background:url(../img/bgs/dotted-vert.png) repeat-y right;
	color:#fff;
	padding:0 26px;
	text-decoration:none;
}

.nav-site .last > a{background:none;}
.nav-site li:hover{text-shadow:1px 1px 0 #000000; background:#162961;background:rgba(22,41,97,0.5)}
.nav-site li ul,
.topnav-social{
	visibility: hidden;
	display:block;
	width:200px;
	position:absolute;
	background: #162961; background:rgba(22,41,97,0.9);
	top:34px;
	left:0;
	box-shadow:3px 3px 3px 0 rgba(0,0,0,0.5);
}
.nav-site li:hover ul,
.nav-site li:hover .topnav-social{
	visibility: visible;
}
.nav-site li ul li{
	display:block;
	width:auto;
	padding:0;
	height:auto;
	*float:none;
}
.nav-site li ul li a{
	background-image:none;
	line-height:16px;
	display:block;
	padding:10px 20px;
	border-top:1px solid #003366;
	border-bottom:1px solid #142761;
}
.nav-site li ul li a:hover{
	background:#14538a;
}

.topnav-social{
	width:220px; padding:10px 0 10px 20px; right:0;
}



/* === FOOTER === */
.full-layout-footer{
	min-height:300px;
	font-size:12px;
	line-height:14px;
	position:relative;
	text-shadow:1px 1px 1px rgba(0,0,0,0.7);
	letter-spacing: -0.02em;
	z-index:200;
}
.full-layout-footer h6{
	font-size:12px;
	margin:0;
	padding:0;
}
.full-layout-footer li{
	line-height:16px;
}
.full-layout-footer a{
	color:#ffffff;
	text-decoration:none;
}
.full-layout-footer a:hover{
	text-decoration:underline
}
.layout-footerA{
	padding:100px 0 20px 0;
}
.footer-col{
	float:left;
	padding-right:20px;
	max-width:190px;
}
.footer-col-social{
	float:right;
	width:110px;
	margin-right:-30px;
}
.layout-footerB{
	background: url(../img/bgs/gradient-black-wide.png) center repeat-y;
	text-align:center;
	padding:10px;
	font-weight:700;
	color:rgb(255,255,255); /*non rgba browsers*/
	color:rgba(255,255,255,0.5);
	margin:20px auto;
}
.layout-footerB a{
	color:rgb(255,255,255); /*non rgba browsers*/
	color:rgba(255,255,255,0.5);
	padding:0 15px;
}
.layout-footerB a:hover{color:#ffffff; text-decoration:none;}
.nav-foot li{
	*zoom: 1;
    *display: inline;
	*float:left;

}



/* ==========================================================================
   Circle Element styles
   ========================================================================== */

.circle-text > div{

    position:relative;
    width: 100%;
    height:0;
    padding-bottom: 100%;
    background: #9d8a9e;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;

    text-align:center;
	font-weight:bold;
    color:white;
    line-height:1em
}

.lt-ie9 .circle-text > div{
    behavior: url(/Lantern/css_pie/PIE.htc);
    zoom:1;
}

.circle-text {
    width:45%;
	padding:10px;
	opacity:0.8;
  	filter:alpha(opacity=80); /* For IE8 and earlier */
}

.circle-third{
	width:28%;
	margin:0 2%;
	float:left;
	padding:0
}

.circle-small-text {
	font-size:18px;
}

.circle-large-text {
	font-size:21px;
}

.circle-180px {
	width:180px;
}

.circle-150px {
	width:150px;
}

.circle-130px {
	width:130px;
}

.circle-200px {
	width:200px;
}

/*
.circle-text:after {
    content: "";
    display: block;
    width: 100%;
    height:0;
    padding-bottom: 100%;
    background: #9d8a9e;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    behavior: url(/Lantern/css_pie/PIE.htc);
    zoom:1
}
*/


.circle-text:hover {
	/* IE 8 */
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";

  filter: alpha(opacity=100);

  /* Netscape */
  -moz-opacity: 1.0;

  /* Safari 1.x */
  -khtml-opacity: 1.0;

  /* Good browsers */
  opacity: 1.0;

}

.circle-text a{
	text-decoration: none;
	display:block;
	position:absolute;
	width:100%;
	height:100%;
	top:0;
	left:0;
	bottom:0;
	right:0;
}
.circle-text a div{display:block; padding-top:45%}

.circle-text a:hover{

	text-decoration: none;
	background:none;
	color:white;

}

.circle-text .circle-two-liner{
	margin-top:-0.5em;
}

.circle-text .circle-three-liner{
	margin-top:-1.0em;
}

.layoutCirclesU{
	width:100%;
	height:0;
	padding-top:100%;
	margin: auto;
	position:relative;
}
.circle-1{position:absolute;top:25%; left:5%; }
.circle-2{position:absolute;top:10%; left:21%;} .circle-2 img{max-width:95%; height:auto;}
.circle-3{position:absolute;top:0%; left:40%; }
.circle-4{position:absolute;top:5%; left:62%;}
.circle-5{position:absolute;top:20%; left:80%;}
.circle-6{position:absolute;top:41.5%; left:76%;}
.circle-7{position:absolute;top:52%; left:57%;}
.circle-8{position:absolute;top:57%; left:35%;}



/* === ICONS === */
[class|="ico"]{
	display:block;
	text-indent:-800px;
	float:left;
	overflow:hidden;
}
[class*="ico-social"]{
	width:32px;
	height:32px;
	background:url(../img/social-sprite.png);
	margin:2px 2px 0 0;
}
.ico-social-facebook{background-position:-5px -4px;}
.ico-social-facebook:hover{background-position:-5px -75px;}

.ico-social-twitter{background-position:-39px -4px;}
.ico-social-twitter:hover{background-position:-39px -75px;}

.ico-social-youtube{background-position:-71px -4px;}
.ico-social-youtube:hover{background-position:-71px -75px;}

.ico-social-pinterest{background-position:-5px -36px;}
.ico-social-pinterest:hover{background-position:-5px -107px;}

.ico-social-instagram{background-position:-38px -37px;}
.ico-social-instagram:hover{background-position:-38px -107px;}

.ico-social-flickr{background-position:-71px -36px;}
.ico-social-flickr:hover{background-position:-71px -107px;}


/* RWD Video : assumes 16:9 ratio */
.embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16/9 ratio */
    padding-top: 30px; /* IE6 workaround*/
    height: 0;
    overflow: hidden;
}
.embed-container.videoFL{padding-bottom: 50%; /* OVERRIDE THE 16/9 ratio */}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* table styles */
table{border:2px solid #104f8b;}
tr{
	border-top:2px solid #104f8b;

	background:rgba(0,0,0,0.3);
}



/*hide the responsive nav buttons*/
	.nav-btn,
	.close-btn,
	.close-btn-btm{
		display:none;
	}



/* ==========================================================================
   Media Queries
   ========================================================================== */

/* backgrounds for tablets up to desktop */
@media only screen and (min-width: 768px) {


/* === PAGE BACKGROUNDS === */
[class*="bg-page"]{background: no-repeat top center fixed;}
.bg-pageA {background: url(../img/bgs/pageA.jpg)}
.bg-pageB {background: url(../img/bgs/pageB.jpg)}
.bg-pageC {background: url(../img/bgs/pageC.jpg)}
.bg-pageD {background: url(../img/bgs/pageD.jpg)}
.bg-pageE {background: url(../img/bgs/pageE.jpg)}
.bg-pageF {background: url(../img/bgs/pageF.jpg)}
.bg-pageG {background: url(../img/bgs/pageG.jpg)}
.bg-pageH {background: url(../img/bgs/pageH.jpg)}
.bg-pageI {background: url(../img/bgs/pageI.jpg)}
.bg-pageJ {background: url(../img/bgs/pageJ.jpg)}
.bg-pageK {background: url(../img/bgs/pageK.jpg)}
.bg-pageL {background: url(../img/bgs/pageL.jpg)}
.bg-pageM {background: url(../img/bgs/pageM.jpg)}
.bg-pageO {background: url(../img/bgs/pageO.jpg)}

[class*="bg-page"]{
	position:fixed;
	height:100%;
	width:100%;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	background-color: #000;

}

.lt-ie8 .bg-pageA {
	filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bgs/pageA.jpg', sizingMethod='scale');
	  -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bgs/pageA.jpg', sizingMethod='scale')";
}

.lt-ie8 .bg-pageB {
	filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bgs/pageB.jpg', sizingMethod='scale');
	-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bgs/pageB.jpg', sizingMethod='scale')";
}

.lt-ie8 .bg-pageC {
	filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bgs/pageC.jpg', sizingMethod='scale');
	-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bgs/pageC.jpg', sizingMethod='scale')";
}

.lt-ie8 .bg-pageD {
	filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bgs/pageD.jpg', sizingMethod='scale');
	-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bgs/pageD.jpg', sizingMethod='scale')";
}


.lt-ie8 .bg-pageE {
	filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bgs/pageE.jpg', sizingMethod='scale');
	-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bgs/pageE.jpg', sizingMethod='scale')";
}

}

/* desktop, full size template */
@media only screen and (max-width: 1079px) {

	.layout-content,
	.layout-footerA,
	.layout-footerB
	{width:940px; margin:0 auto; padding:0;}

	.col-full{width:100%;}

	.layout-footerA, .layout-footerB {padding:15px 0;}

	/* reduced main nav */
	.nav-site ul {
		font-size: 0;
		margin: 0 auto;
		width: 100%;
		display:table;
	}
	.nav-site li{
		display: -moz-inline-stack;
		display: table-cell;
		font-size:13px;
		height:35px;
		margin:0;
		padding:0;
		line-height:35px;
		list-style:none;
		word-spacing:0;
		position:relative;
		*zoom: 1;
		*display: inline;
		*float:left;
	}

	.nav-site li > a{
		background:url(../img/bgs/dotted-vert.png) repeat-y right;
		color:#fff;
		padding:0 15px;
		text-decoration:none;
	}

	/*form grid*/
	.form-grid {
		width: 500px;
	}

	/*footer*/
	.footer-col{
		max-width:130px;
		padding-right:15px;
	}
	.footer-col-social{margin-right:0;}


	/* gallery thumbnails */
	.thumbnails > li{padding:0; margin:0; width:32%; margin-left:1%; margin-bottom:1%;}
	.thumbnails{margin:0; padding:0;}

}

/* small desktop */
@media only screen and (max-width: 969px) {

	.layout-content,
	.layout-footerA,
	.layout-footerB
	{width:90%; margin:0 auto; padding:0;}

	.full-layout-header,.layout-content{
			width: 100%;
			max-width:562px;
			margin:0 auto;

			position:relative;
	}

	.col-full, .col-half{width:auto; float:none; margin:15px auto;}
	.col-full .col-inner,
	.col-half .col-inner{padding:10px 15px;}

	.round-lg{border-radius:10px; behavior: url(/Lantern/css_pie/PIE.htc);}
	.round-md{border-radius:6px; behavior: url(/Lantern/css_pie/PIE.htc);}
	.round-sm{border-radius:3px; behavior: url(/Lantern/css_pie/PIE.htc);}

	.float-left{float:left}
	.float-right{float:right}

	/*nav*/

	.site-logo{
		position:relative;
		z-index:0;
	}


	/*nav open and close styles */
	#top{
		display:block;
		position:relative;
	}

	/*open and close buttons */
	.nav-btn,
	.close-btn{
		border: 0 none;
		display: block;
		height: 50px;
		padding: 0;
		width: 50px;

		overflow: hidden;
		z-index:15;
		position: absolute;
		right: 20px;
		top: 30px;

		outline: medium none;
		text-indent: 100%;
		white-space: nowrap;
	}

	.ico-open{height:50px; width:50px; display:block; background:url(../img/menu-lantern.png) center no-repeat;}
	.ico-close{height:50px; width:50px; display:block; background:url(../img/menu-close.png) center no-repeat}

	/* close button */
	.nav-btn{
		background:#135589 url(../img/bgs/nav-bg.jpg) repeat-x bottom;
		border-radius:10px;
		box-shadow:inset 0 -1px 1px rgba(255,255,255,0.5), 1px 1px 3px 1px rgba(0,0,0,0.5);
	}

	#nav:target .close-btn{
		display: block;
		margin-right:-20px;
	}
	#nav:target .close-btn-btm {
		display: block;
		text-align:right;
		background: rgba(0,0,0,0.8);
		border-radius:0 0 5px 5px;
		padding:5px;
		width:120px;
		float:right;
	}

	#nav:not(:target) .close-btn{display:none;}


	/* responsive nav styles */
	#nav {
		padding-top: 30px;
		width:260px;

		position: absolute;
		top: 0;
		right:20px;
		left:auto;
		z-index:300;

		background:none;
	}
	#nav:target .block{
		box-shadow: -3px 3px 5px 3px #000;
		border-radius:10px;
		background:#135589 url(../img/bgs/nav-bg.jpg) repeat-x bottom;
	}
	#nav:target .block > ul{
		display:block;
		padding-left:0;
	}
	#nav:not(:target){
		z-index: 1;
		height: 0;
	}
	#nav:not(:target) .block > ul{
		height:0;
	}


	/*adjust the menu for responsive design*/
	.nav-site{
		display:block;
		position:relative;
	}

	.nav-site ul {display:none;}


	.nav-site .block > ul > li{
		width:100%;
		float:none;
		height:auto;
		clear:both;
		padding:10px 0;

		font-weight:bold;
		line-height:20px;
	}
	.nav-site .block > ul > li{
			border-bottom:1px solid #11487E;
			border-top:1px solid #486C8F;
	}
	.nav-site .block > ul > li:first-child{border-top:0;}
	.nav-site .block > ul > li:last-child{border-bottom:0;}
	.nav-site ul li a{background:none; text-shadow:none;}
	.nav-site li ul li a {font-weight:300;}

	.nav-site li ul{
		visibility:visible;
		position:relative;
		display:block;
		clear:both;
		top:0;
		margin-top:0;
		box-shadow:0 0 0 0;
		background:none;
		width:230px;
	}
	.nav-site li ul li{
		background:none;
	}

	.nav-site li ul li a {
		background-image: none;
		display: block;
		padding: 8px 10px;
		border:0;

		font-size:13px;
		line-height: 12px;
	}
	.nav-site ul li ul li:hover, .nav-site ul li ul a:hover{background:none;}
	.nav-site .last{display:none;} /* hide social media */




	/*site logo */
	a.site-name, a.site-name:hover{margin-top:20px;}

	/*form elements */
	.form-grid {
		width: 100%;
	}

	/*footer*/
	.footer-col{
		display:none;
	}
	.footer-col-social{
		float:none;
		width:220px;
		height:75px;
		margin:0 auto;
	}
	.layout-footerB a{
		padding:10px 15px;
		margin:3px;
		display:inline-block;
		background:rgba(255,255,255,0.2);
		border-radius: 5px;
		color:#fff;
	}

	.nav-foot li:last-child{display:block; clear:both; width:100%; padding-top:20px;}

	/* responsive table */

	.memoryTable{
		width:100%;
	}
	.memoryTable tr{
		  display:block;
		  clear:both;
		  width:100%;
		  padding:10px 0;
		  /*border-bottom:2px solid #104f8b; */

		word-wrap: break-word;      /* IE 5+ */
	}
	/* .memoryTable tr:first-child,
	.memoryTable th{display:none;} */

	.memoryTable td{
		display:block;
		clear:both;
		padding:0 10px;
		border:0;

		word-wrap: break-word;      /* IE 5+ */
		overflow-wrap: break-word;
		overflow:hidden;
	}
	.memoryTable td:first-child{font-weight:bold;}
	.memoryTable td:first-child:before{
		/*content: 'In memory of: ';
		text-transform:uppercase;*/
		font-size:11px;
	}


	.layoutCirclesU{
		width:100%;
		height:0;
		padding-top:100%;
		margin: auto;
		position:relative;
	}

	.layoutCirclesU .circle-180px{width:140px;}
	.circle-large-text{font-size:18px;}
	.circle-large-text a div{padding-left:5px; padding-right:5px}

	.circle-text .circle-two-liner-tablet{margin-top:-0.5em}



}

/* tablets and large smart phones */
@media only screen and (max-width: 767px) {


	/* === PAGE BACKGROUNDS === */
	[class*="bg-page"]{background: no-repeat top center fixed;}

	.bg-pageA,
	.bg-pageB,
	.bg-pageC,
	.bg-pageD,
	.bg-pageE,
	.bg-pageF,
	.bg-pageG,
	.bg-pageH,
	.bg-pageI,
	.bg-pageJ,
	.bg-pageK,
	.bg-pageL,
	.bg-pageM {
		background-image: url(../img/bgs/pageMOBILE.jpg);
		display:none;
	} /* override the download of all large page backgrounds, then add display none so we can move the background to the body*/

	body{background: #000 url(../img/bgs/pageMOBILE.jpg) no-repeat top center fixed;}

	[class*="bg-page"]{
		position:fixed;
		height:100%;
		width:100%;
		-webkit-background-size: auto;
		-moz-background-size: auto;
		-o-background-size: auto;
		background-size: auto;
		background-color: #000;
	}

	.layout-content,
	.layout-footerA,
	.layout-footerB
	{width:95%; max-width:580px; margin:0 auto; padding:0;}

	.layout-footerB{background:none;}

	/*default fulll width images */
	.col-inner img{
			width:100%;
			max-width:562px;
			height:auto;
		}

	.float-left{float:left}
	.float-right{float:right}

	/* form elements */
	.form-grid-75,
	.form-grid-50,
	.form-grid-25{width:100%;}

	.circle-small-text {font-size:16px;}


	.layoutCirclesU{padding-top:20px; margin:auto; max-width:300px}

	.layoutCirclesU .circle-180px{
		width:48%;
		padding:1%;
		position:relative;
		left:auto;
		top:auto;
		float:left;
	}
	.circle-large-text{font-size:18px;}



}


/* tablets and large smart phones */
@media only screen and (max-width: 479px) {
	.layout-footerB li{
		width:44%;
	}
	.layout-footerB a{
		width:auto; display:block;
	}

	.circle-third{
	width:31%;
	margin:0 1%;
	}
	.circle-small-text {font-size:12px;}
	.circle-large-text{font-size:14px;}

}



/* IE8 and below navigation edits - show on hover */
.lt-ie9 .close-btn, .lt-ie9 .close-btn .ico-close{display:none;}

.lt-ie9 #top:hover #nav,
.lt-ie9 #nav:hover{z-index:10;}

.lt-ie9 #top:hover #nav .block,
.lt-ie9 #nav:hover .block{
		box-shadow: -3px 3px 5px 3px #000;
		border-radius:10px;
		background:#135589 url(../img/bgs/nav-bg.jpg) repeat-x bottom;
		margin-top:40px;
		z-index:10;
	}
.lt-ie9 #top:hover	#nav .block > ul,
.lt-ie9 #nav:hover .block >ul{
		display:block;
		padding-left:0;
	}
.lt-ie9 .footer-col{
		display:block;
		float: none;
		width: 240px;
		height: auto;
		margin: 15px auto;

}


@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}


/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
