/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

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

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

/*
 * A better looking default horizontal rule
 */

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

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    position: relative;
    float: left;
    height: 100%;
    width: 100%;
    
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
}

#contact-page, #about-page {
    padding-top: 100px;
    text-align: center;
}

#staircases-page, #handrails-page {
    margin-top: 70px;
    text-align: center;
}

h1 {
    color: #746d63;
    font-size: 3rem;
    letter-spacing: 6px;
    font-weight: 300;
    margin-bottom: 50px;
}

h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 300;
    color: #746d63;
    letter-spacing: 3px;
    margin: 32px 0;
}

h3 {
    font-size: 1.6rem;
}

.container img {
    width: 100%;
}

@media (min-width: 768px) {
    h2 {
        font-size: 3rem;
        letter-spacing: 6px;
        margin: 64px 0;
    }
    
    h3 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
}

 /*overwrite bootstrap max container*/ 
@media (min-width: 1200px) {    
    .container {
        width: 80%;
    }    
}

/* --------------------------------- */

/* --BURGER MENU-- */
/* burger menu needs to be outside header so it can appear above menu */
.burger-menu {
    padding: 11px 0;
    position: absolute;
    top: 14px;
    left: 30px;
    cursor: pointer;
    transition: right 0.7s;
    z-index: 200;
}

.burger-layer-one, .burger-layer-two, .burger-layer-three {
    width: 20px;
    height: 3px;
    background-color: #c99e67;
    margin: 0 0 4px 0;
    transition: all 0.8s;
}

.burger-rotate1 {
  -ms-transform: rotate(45deg); /* IE 9 */
  -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
  transform: rotate(45deg);
  margin-top: 6px!important;
}

.burger-rotate2 {
  -ms-transform: rotate(-45deg); /* IE 9 */
  -webkit-transform: rotate(-45deg); /* Chrome, Safari, Opera */
  transform: rotate(-45deg);
  margin-top: -16px!important;
}

.burger-layer-two-hide {
  opacity: 0;
}

@media (min-width: 768px) {
    .burger-menu {
        top: 40px;
        left: 60px;
    }
    
    .burger-layer-one, .burger-layer-two, .burger-layer-three {
        width: 40px;
        height: 5px;
        margin: 0 0 8px 0;
    }
    
    .burger-rotate1 {
        margin-top: 11px!important;
    }

    .burger-rotate2 {
        margin-top: -28px!important;
    }
}

/* END BURGER MENU */

/* HEADER */

header {
    padding-top: 16px;
    height: 67px;
    border-bottom: solid 1px #c99e67;
    text-align: center;
}

.header-logo {
    width: 200px;
    margin-left: 50px;
}

@media (min-width: 376px) {
    
    .header-logo {
        margin-left: 7px;
    }
}

@media (min-width: 768px) {
    header {
        padding-top: 23px;
        height: 133px;
    }
    
    .header-logo {
        width: 500px;
        margin-left: 8px;
    }
}

/* END HEADER*/

/* HERO */

.hero {
    text-align: center;
    color: #fff;
    font-family: 'Libre Baskerville', serif;
    padding: 40px 10% 100px 10%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero p {
    position: relative;
    line-height: 1.9;
    z-index: 99;
}

.hero a, .hero h2 {
    position: relative;
    z-index: 99;
}

.hero-logo {
    position: relative;
    max-width: 231px;
    width: 100%;
    z-index: 99;
}

@media (min-width: 768px) {
    .hero {
        position: relative;
        padding: 40px 24% 100px 24%;
        overflow: hidden;
    }
    
}

@media (min-width: 1400px) {
    .hero {
        padding: 40px 30% 100px 30%;
    }
    
}

/* END HERO */

/* HOME HERO */

.hero-home {
    background-image: url(/img/headers_carve.jpg);
    padding: 50px 80px;
    font-size: 1.8rem;
}

.hero-home p {
    margin-top: 20px; 
    line-height: 1.6
}


.illustrations img {
    position: absolute;
    width: 70%;
    display: none;
}

.left-compass {
    max-width: 672px; 
    left: -5%;
    bottom: -27%;
}

.left-curve {
    max-width: 427px; 
    left: -6%;
    bottom: -34%;
}

.right-compass {
    max-width: 464px; 
    top: -20%;
    right: -3%;
}

.right-curve {
    max-width: 427px; 
    top: -20%;
    right: -3%;
}

@media (min-width: 487px) {
    
    .hero-home {
        font-size: 2.4rem;
    }
    
}

@media (min-width: 768px) {
    
    .hero-home {
        background-color: #000;
        background-image: none;
    }
    
    .hero-home p {
        position: relative;
        margin-top: 40px;
        margin-bottom: 40px;
        z-index: 10;
    }
    
    .illustrations img {
        display: inline;
        transition: opacity 5s, transform 7s;
        opacity: 0;
    }
    
    .hero-home .illustrations img {
        display: inline;
        transition: opacity 5s, transform 80s;
        opacity: 0;
    }
    
    .illustrations img.reveal-ill {
        opacity: 1;
    }
    
    .left-compass, .right-compass {
        -ms-transform: rotate(-45deg); /* IE 9 */
        -webkit-transform: rotate(-45deg); /* Chrome, Safari, Opera */
        transform: rotate(-45deg);
    }
    
    .hero-home .left-compass, .hero-home .right-compass {
        -ms-transform: rotate(-445deg); /* IE 9 */
        -webkit-transform: rotate(-445deg); /* Chrome, Safari, Opera */
        transform: rotate(-445deg);
    }
    
    .left-compass {
        transform-origin: 41% 61%;
    }
    
    .right-compass {
        transform-origin: 91% 36%;
    }
    
    .illustrations .rotate {
        -ms-transform: rotate(0deg); /* IE 9 */
        -webkit-transform: rotate(0deg); /* Chrome, Safari, Opera */
        transform: rotate(0deg);
    }
    
    @media (min-width: 851px) {
        
        .hero-home {
            font-size: 3.9rem;
        }
        
    }
    
    @media (min-width: 1366px) {
        
        .hero-home {
            padding: 100px 160px;
            font-size: 5.3rem;
        }
        
    }
    
}

/* END HOME HERO */

/* NON HOME HEROs */

.hero-contact {
    background-image: url(/img/headers_stairdetail.jpg);   
}

.hero-about {
    background-image: url(/img/headers_chisel.jpg);   
}

.non-home-hero.hero-about h2 {
    font-family: 'Libre Baskerville', serif;
}

.hero-staircases {
    background-image: url(/img/headers_raildetail.jpg);   
}

.hero-staircases-trad {
    background-image: url(/img/headers_stairdetail2.jpg);   
}

.hero-staircases-contemp {
    background-image: url(/img/headers_stairdetail3.jpg);   
}

.hero-handrails {
    background-image: url(/img/headers_rails.jpg);   
}

.hero.hero-staircases {
    padding: 30px 0 30px 0;
}

.hero.hero-handrails {
    padding: 30px 0 40px 0;
}

.non-home-hero h2 {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
}

.non-home-hero p {
    font-size: 1.5rem;
}

@media (min-width: 768px) {

    .hero.hero-staircases {
        padding: 30px 0 0 0;
    }
    
    .hero.hero-handrails {
        padding: 30px 0 40px 0;
    }

}

@media (min-width: 992px) {
    
    .non-home-hero p {
        font-size: 1.7rem;
    }
    
}

/* END NON HOME HEROS */

/* STAIRCASE HEROS */

.hero-staircases__link {
    display: block;
    font-family: 'Montserrat', sans-serif;
    color: #b19158;
    font-size: 1.3rem;
    letter-spacing: 2px;
    padding-bottom: 10px;
}

.hero-staircases__link--active, .hero-staircases__link:hover {
    text-decoration: none;
    color: #fff;
}

.vert-divider {
    display: none;
    background-color: #b19158;
    height: 48px;
    width: 2px;
    margin: 40px 20px -18px 20px;
    
}

@media (min-width: 768px) {
    
    .hero-staircases__link {
        padding-bottom: 40px;
    }
    
    .hero-staircases__link--active, .hero-staircases__link:hover {
        border-bottom: solid 4px #b19158;
        padding-bottom: 6px;
        padding-bottom: 36px;
    }
    
    .hero-staircases__link, .vert-divider {
        display: inline-block;
    }
    
}

@media (min-width: 992px) {
    
    .hero-staircases__link {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }
    
    .vert-divider {
        height: 48px;
        margin: 40px 32px -18px 32px;

    }
    
}

/* END STAIRCASE HEROS */

/*  CONTENT BLOCK */

.content-block {
    padding: 47px 40px;
}

.content-block__link {
    display: inline-block;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    font-style: italic;
    letter-spacing: 1px;
    padding-top: 20px;
}

.content-block__link:hover {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
}

.content-block__link img {
    width: auto;
    margin-right: 14px;
    margin-top: -4px;
}

.content-block-brown {
    background-color: #b19158;
}

.content-block-brown p, .content-block-brown h3 {
    color: #fff;
}

.content-block-brown__link {
    color: #fff;
}

.content-block-grey {
    background-color: #efe8de;
}

.content-block-grey p, .content-block-grey h3 {
    color: #9d7437;
}

.content-block-grey__link {
    color: #9d7437;
}

.content-block-darkbrown {
    background-color: #34220f;
}

.content-block-darkbrown h3 {
    color: #b17f43;
}

.content-block-darkbrown p {
    color: #d7c1a1;
}

.content-block-darkbrown__link {
    color: #b17f43;
}



@media (min-width: 768px) {
    
    .content-block {
        padding: 94px 80px;
    }
    
    .content-block__link {
        font-size: 2rem;
    }
    
}

/* END CONTENT BLOCK */

/* IMAGE BLOCK */

.image-block {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    
    width: 100%;
}

@media (min-width: 992px) {
    
    .image-block img {
        display: none;
    }
    
    .trad-stair {
        background-image: url(/img/traditional_staircase.jpg); 
    }
    
    .mod-stair {
        background-image: url(/img/modernstaircase.jpg); 
    }
    
    .trad-stair2 {
        background-image: url(/img/traditional_staircase2.jpg); 
    }
    
    .mod-stair2 {
        background-image: url(/img/contemporary_staircase.jpg); 
    }
    
    .hand-rail {
        background-image: url(/img/handrail.jpg); 
    }
    
}

/* END CONTENT BLOCK */

/* FULLSCREEN CENTER TEXT BLOCK */

.fullscreen-center-block {
    padding: 140px 10%;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.8;
}

.fullscreen-bg {
    font-family: 'Libre Baskerville', serif;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

#about-us {
    margin-top: 100px;
    background-image: url(/img/about_video_placeholder.jpg);
    color: #fff;
    
}

.fullscreen-center-block__h2 {
    color: #fff;
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    
    .fullscreen-center-block {
        padding: 240px 24%;
        font-size: 1.6rem;
    }
    
    .fullscreen-center-block__h2 {
        font-size: 5.4rem;
    }
}

/* END FULLSCREEN CENTER TEXT BLOCK */

/* BUTTONS */

.excel-btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    margin-top: 24px;
    padding: 8px 19px;
}

@media (min-width: 768px) {
    
    .excel-btn {
        margin-top: 48px;
        padding: 16px 38px;
    }
    
}

.excel-btn--clear {
    border: solid 2px #b19158;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 300;
    letter-spacing: 1px;
}

.excel-btn--clear:hover {
    background-color: #b19158;
    color: #34220f;
    text-decoration: none;
}

.excel-btn--filled {
    background-color: #ebe4da;
    font-weight: 400;
    color: #655b4a;
    letter-spacing: 3px;
}

.excel-btn--filled:hover {
    background-color: #fff;
    border: solid 2px #ebe4da;
    padding: 6px 19px;
}

@media (min-width: 768px) {
    
    .excel-btn--clear {
        border: solid 2px #b19158;
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .excel-btn--filled:hover {
        padding: 14px 38px;
    }
    
}

/* END BUTTONS */

#contact {
    padding: 100px 10%;
}

@media (min-width: 992px) {
    
    #contact, #contact-page {
        background-image: url(/img/curve.png);
        background-repeat: no-repeat;
        background-position: 114%;
    }
    
}

@media (min-width: 1400px) {
    
    #contact {
        padding: 100px 24%;
    }
    
}

/* FORM */

form {
    color: #655b4a;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.form-control {
    border: none;
    border-radius: 0;
    background-color: #d7cab7;
    padding: 20px 16px;
}

.form-control:focus, textarea:focus {
    border-color: transparent;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
    box-shadow: none;
}

.message-group {
    margin-top: 30px;
}

textarea {
    width: 100%;
    border: none;
    border-radius: 0;
    background-color: #d7cab7;
    padding: 14px;
}

.form__button {
    width: 100%;
    background-color: #ebe4da;
    border: none;
    border-radius: 0;
    padding: 14px;
    color: #655b4a;
    letter-spacing: 2px;
    
}

.help-block {
    text-align: left;
}

/* END FORM */


/* CONTACT INFO BLOCK */

.contact-info {
    text-align: center;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.6rem;
}

.line {
    height: 2px;
    width: 90px;
    display: inline-block;
    margin: 0;
}

#contact .line {
    margin-bottom: 70px;
}

.line--brown {
    background-color: #b19158;
}

#staircases-page .line--brown {
    margin-bottom: 40px;
}

.contact-info__logo {
    margin-top: 20px;
    width: 100%;
    padding-bottom: 40px;
}

.contact-info__h {
    color: #b17f43;
    text-transform: capitalize;
    font-variant: small-caps;
}

.contact-info__email {
    text-transform: lowercase;
    font-variant: small-caps;
}

.contact-info__post {
    margin-top: 20px;
}

.contact-info__CRN {
    margin-top: 36px;
}

@media (min-width: 992px) {
    
    .contact-info {
        text-align: left;
        padding-left: 34px;
        font-size: 1.8rem;
    }
    
    .contact-info__logo {
        margin-top: -20px;
        width: 85%;
    }
    
}

/* END CONTACT INFO BLOCK */

/* SITE MAP LINE */

.site-map {
    font-family: 'Libre Baskerville', serif;
    padding: 50px 0;
    margin: 0;
}

.site-map span {
    color: #a47d44;
    padding: 0 10px;
    font-size: 1.4rem;
}

/* END SITE INFO LINE */

/* GALLERY */

.gallery__title-container {
    padding: 0 10% 60px 10%;
}

.gallery__title-container h2 {
    color: #9d7437;
    font-weight: 400;
    margin: 0 0 40px 0;
}

/* nice little trick - 
put margin on bottom of all columns so 
even when they stack there 
is space between  */
.gallery__row > div {
    margin-bottom: 28px;
}

.gallery__title-container.more-padding {
    padding-top: 100px;
}

@media (min-width: 992px) {

    .gallery__title-container {
        padding: 0 17% 60px 17%;
        
    }
    
}

@media (min-width: 1400px) {
    
    .gallery__title-container {
        padding: 0 36% 60px 36%;
    }
    
}

/* END GALLERY */

/* VIDEO */

.videos {
    background-color: #f6f6f6;
    margin-top: 100px;
    padding: 100px 0;
}

/* END VIDEO */

/* FOOTER */

footer {
    background-color: #9a9183;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.3rem;
    padding: 26px 13% 14px 13%;
}

footer a {
    color: #fff;
}

@media (min-width: 992px) {

    .text-leftt {
        text-align: left;
    }

    .text-rightt {
        text-align: right;
    }
    
}

@media (min-width: 1400px) {
    
    footer {
        padding: 26px 20% 14px 20%;
    }
    
}

/* END FOOTER */

/* NAV MENU */

.menu {
    display: none;
    transition: left 1s;
    text-align: center;
    position: absolute;
    top: 0;
    left: -562px;
    background-color: #fff;
    width: 100%;
    height: 100%;
    padding-top: 133px;
    z-index: 150;
}

.menu__logo {
    width: 26%;
    margin-bottom: 40px;
}

.menu a {
    display: block;
    font-size: 2.2rem;
    color: #9d7437;
    letter-spacing: 3px;
    padding: 24px 0 20px 0;
}

.menu a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.submenu {
    margin-bottom: 20px;
}

.submenu a {
    font-size: 1.4rem;
    letter-spacing: 3px;
    padding: 14px 0;
}

.the-black {
    opacity: 0;
    display: none;
    transition: opacity 1s;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.85);
    width: 100%;
    height: 100%;
    z-index: 100;
}

@media (min-width: 562px) {
    
    .menu {
        width: 562px;
    }
    
}

@media (min-width: 1700px) {

    .menu a {
        font-size: 3rem;
        padding: 32px 0 24px 0;
    }
    
    .submenu a {
        font-size: 1.4rem;
        letter-spacing: 3px;
    }
    
}

/* END NAV MENU */

#nohero {
    margin-top: 60px;
    margin-bottom: 60px;
    max-width: 992px;
}

#nohero h3 {
    text-align: left;
    margin-top: 0;
}

#nohero .row {
    margin-top: 50px;
}

#nohero .h3__moretopmargin {
    margin-top: 40px;
}

.sitemap ul {
    list-style: none;
    font-size: 20px;
}

.site-map a {
    color: #333;
}

/* LIGHT BOX */

@media (min-width: 768px) {
    
    .has-light-box img {
        cursor: pointer;
    }

    .has-light-box img:hover {
        opacity: 0.8;
    }

}

.light-box {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,0.9);
    z-index: 99999999;
    background-size: 50%;
    background-position: center center;
    background-repeat: no-repeat;
    transition: opacity 1s;
    opacity: 0;
    display: none;
}

.light-box__img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 75%;
    background-color: #fff;
}

.light-box__img img {
    width: 100%;
}

/* --------- */

/* -----VIDEO---- */

video { 
    position: absolute;
    top: 50%;
    left: 50%;
    width: 146%;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    transition: 1s opacity;
    opacity: 0;
}

@media (min-width: 1065px) {
        
    video { 
        width: 110%;
    }
        
}

/* -------------- */

/* ---- Modifiers ----- */

.reveal {
    opacity: 1;
    left: 0;
}

.reveal1 {
    opacity: 1;
}

.on {
    display: block;
}

/* --------------------- */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*LUKE'S HELPER CLASSES*/

.no-gutter > [class*='col-'] {
    padding-right:0;
    padding-left:0;
}

.nowrap {
    white-space: nowrap;
}

/*/////////////////////*/

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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

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