/*------------------------------------*\
    $MEDIA ELEMENTS
\*------------------------------------*/

/**
 * Flexible Media
 */
img,
video,
object,
svg,
iframe {
  max-width: 100%;
  border: none;
  display: block;
}

img {
  height: auto;
}

svg {
  max-height: 100%;
}

picture,
picture img {
  display: block;
}
picture img {
  margin-left: auto;
  margin-right: auto;
}

figure {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

figcaption a {
  display: block;
}

/*------------------------------------*\
    $PRINT STYLES
\*------------------------------------*/

@media print {
  *,
  *:before,
  *:after,
  *:first-letter,
  *:first-line {
    background: transparent !important;
    color: rgb(var(--color-text-print)) !important;
    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 rgb(var(--color-border-standard));
    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;
    height: auto;
  }

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

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

  .no-print,
  .c-main-header,
  .c-main-footer,
  .o-ad {
    display: none !important;
  }
}
