/*
Adding print support. The print styles are based on the the great work of
Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272/.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Margins & paddings
# Typography
# Page breaks
# Links
# Visibility
--------------------------------------------------------------*/

@media print {
  /* Margins & paddings */

@page {
    margin: 2cm;
}

  body.scroll-animations--enabled * {
    opacity: 1 !important;
  }

  .site {
    display: unset;
    min-height: unset;
    z-index: unset;
  }

  .header,
  .footer {
    position: relative;
  }

  .header__container,
  .footer__container {
    width: 100%;
  }

  .content {
    padding: 0;
  }

  .content-area > *,
  .main-content > article,
  .author-info,
  .comments-area {
    margin: 0;
  }

  /* Typography */

  body {
    font: 12pt Georgia, "Times New Roman", Times, serif;
    font: 12pt var(--global--font-family-base, Georgia, "Times New Roman", Times, serif);
    line-height: 1.5;
    background: #ffffff !important;
    color: #000000;
  }

  h1,
  .entry__title,
  .page__title {
    font-size: 22pt;
    font-weight: bold;
    line-height: 1.3;
  }

  h2,
  h3,
  h4 {
    font-size: 14pt;
    line-height: 1.3;
  }

  /* Page breaks */

  a {
    page-break-inside: avoid;
  }

  blockquote {
    page-break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  img {
    page-break-inside: avoid;
    page-break-after: avoid;
  }

  table,
  pre,
  figure {
    page-break-inside: avoid;
  }

  ul,
  ol,
  dl {
    page-break-before: avoid;
  }

  .author-info {
    page-break-inside: avoid;
  }

  /* Links */

  a:link,
  a:visited,
  a {
    background: transparent;
    font-weight: bold;
    text-decoration: underline;
    text-align: left;
  }

  a[href^="http"]:after {
    content: " < " attr(href) "> ";
  }

  a:after > img {
    content: "";
  }

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

  a:not(:local-link):after {
    content: " < " attr(href) "> ";
  }

  .entry__title a:after {
    content: "\a< " attr(href) "> ";
    white-space: pre;
    font-size: 14pt;
  }

  .entry__meta a:after,
  .entry__footer a:after,
  .byline a:after {
    content: "";
  }

  /* Visibility */

  form,
  button,
  .button,
  input,
  select,
  textarea,
  .navigation,
  .social-navigation,
  .footer-navigation,
  .main-nav,
  .post-edit-link,
  .page-links,
  .share-links,
  .post-navigation-area,
  .comment-respond,
  .comment-metadata .edit-link,
  .comment-reply-link,
  .pingback .edit-link,
  .button--sidebar-opener,
  embed,
  iframe,
  object,
  .related-posts,
  .author-info__avatar {
    display: none !important;
  }

  .loop-container .grid {
    margin-left: 0;
    margin-right: 0;
  }

  .loop-container .grid__item {
    padding-left: 0;
    padding-right: 0;
  }

  .loop-container--masonry .grid {
    height: auto !important;
  }

  .loop-container--masonry .grid__item {
    opacity: 1 !important;
    position: relative !important;
    left: 0 !important;
    top: unset !important;
  }
}