@charset "UTF-8";
/*! Gutenberg reset — adapted from Normalize */
@import url(https://web-archive.nli.org.il/National_Library/20160930123623cs_/https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic);
html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%; }

body {
  margin: 0; }

/* HTML5 display definitions
   ========================================================================== */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary,
cite,
code,
small {
  display: block; }

body,
article,
section,
footer,
header,
div,
input,
nav,
article ol,
article ul,
blockquote,
figure {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; }

audio,
canvas,
progress,
video {
  display: inline-block;
  /* 1 */
  vertical-align: baseline;
  /* 2 */ }

audio:not([controls]) {
  display: none;
  height: 0; }

[hidden],
template {
  display: none; }

/* Links
   ========================================================================== */
a {
  background: transparent; }

a:active,
a:hover {
  outline: 0; }

/* Text-level semantics
   ========================================================================== */
abbr {
  letter-spacing: 0.1em; }

abbr[title] {
  border-bottom: 1px dotted; }

b,
strong {
  font-weight: bold; }

dfn {
  font-style: italic; }

mark {
  background: #ff0;
  color: #000; }

small {
  font-size: 70%; }

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline; }

sup {
  top: -0.5em; }

sub {
  bottom: -0.25em; }

em,
i {
  line-height: 0;
  position: relative;
  vertical-align: baseline; }

/* Embedded content
   ========================================================================== */
img {
  border: 0; }

svg:not(:root) {
  overflow: hidden; }

/* Grouping content
   ========================================================================== */
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0; }

pre {
  overflow: auto; }

code,
kbd,
pre,
samp {
  font-family: monospace, monospace; }

/* Tables
   ========================================================================== */
table {
  border-collapse: collapse;
  border-spacing: 0; }

td,
th {
  padding: 0; }

/* Images
   ========================================================================== */
img {
  max-width: 100%;
  display: block;
  margin: inherit auto; }

/* Configuration
   ========================================================================== */
/* Mixins
   ========================================================================== */
/* Calculations
   ========================================================================== */
/* Mixins
   ========================================================================== */
/* Font themes
   ========================================================================== */
/* Defaults
   ========================================================================== */
html {
  font-size: 16px;
  font-size: 100%;
  font-family: Open Sans, Arial, Helvetica, Sans-serif;
  color: #222; }

* {
  line-height: 26px;
  line-height: 1.625rem;
  margin: 0px 0px 26px;
  margin: 0rem 0rem 1.625rem; }

/* Paragraph
   ========================================================================== */
/* Headings
   ========================================================================== */
h1 {
  font-size: 40px;
  font-size: 2.5rem;
  line-height: 52px;
  line-height: 3.25rem;
  margin-top: 104px;
  margin-top: 6.5rem;
  margin-bottom: 26px;
  margin-bottom: 1.625rem; }

h2 {
  font-size: 27px;
  font-size: 1.6875rem;
  line-height: 39px;
  line-height: 2.4375rem;
  margin-top: 65px;
  margin-top: 4.0625rem;
  margin-bottom: 13px;
  margin-bottom: 0.8125rem; }

h3 {
  font-size: 22px;
  font-size: 1.375rem;
  line-height: 26px;
  line-height: 1.625rem;
  margin-top: 52px;
  margin-top: 3.25rem;
  margin-bottom: 13px;
  margin-bottom: 0.8125rem; }

h4 {
  font-size: 19.2px;
  font-size: 1.2rem;
  line-height: 26px;
  line-height: 1.625rem;
  margin-top: 39px;
  margin-top: 2.4375rem;
  margin-bottom: 13px;
  margin-bottom: 0.8125rem; }

h5 {
  font-size: 16px;
  font-size: 1rem;
  line-height: 26px;
  line-height: 1.625rem;
  margin-top: 65px;
  margin-top: 4.0625rem;
  margin-bottom: 13px;
  margin-bottom: 0.8125rem; }

h6 {
  font-size: 16px;
  font-size: 1rem;
  line-height: 26px;
  line-height: 1.625rem;
  margin-top: 65px;
  margin-top: 4.0625rem;
  margin-bottom: 13px;
  margin-bottom: 0.8125rem; }

h1 + h2 {
  margin-top: 26px;
  margin-top: 1.625rem; }

h2 + h3,
h3 + h4,
h4 + h5 {
  margin-top: 13px;
  margin-top: 0.8125rem; }

h5 + h6 {
  margin-top: -13px;
  margin-top: -0.8125rem; }

h6 {
  font-style: italic;
  font-weight: normal; }

/* Links
   ========================================================================== */
a {
  color: #222;
  transition: all .3s; }
  a:hover {
    color: #222; }
  a:visited {
    color: #888; }
    a:visited:hover {
      color: #222; }
  a:active {
    color: #f00; }

/* Figures & other elements
   ========================================================================== */
figcaption {
  line-height: 26px;
  line-height: 1.625rem;
  color: #222;
  font-size: .8125rem;
  font-style: italic;
  margin-bottom: 0;
  text-align: center; }

blockquote {
  font-style: italic;
  padding-left: 1.4375rem; }

cite {
  font-style: normal; }

figure blockquote {
  padding: 26px 0px;
  padding: 1.625rem 0rem; }
  figure blockquote p {
    font-size: 27px;
    font-size: 1.6875rem;
    line-height: 39px;
    line-height: 2.4375rem; }

ul li,
ol li {
  margin-bottom: 0; }

hr {
  margin-top: 52px;
  margin-top: 3.25rem;
  margin-bottom: 52px;
  margin-bottom: 3.25rem;
  border: 0;
  color: #222;
  display: block;
  height: 26px;
  height: 1.625rem;
  margin-right: auto;
  margin-left: auto;
  background-size: 100% 26px;
  background-size: 100% 1.625rem;
  background-image: linear-gradient(to bottom, transparent 1px, transparent 11px, #222 11px, #222 15px, transparent 15px, transparent 26px);
  width: 100px; }

small {
  line-height: 13px;
  line-height: 0.8125rem; }

code {
  padding: 26px;
  padding: 1.625rem; }

.attention-grabber {
  font-size: 19.2px;
  font-size: 1.2rem; }

/* Grid
   ========================================================================== */
.grid, .grid-double {
  background-image: linear-gradient(to bottom, rgba(0, 170, 255, 0.3) 1px, transparent 1px);
  background-position: left top;
  background-repeat: repeat;
  background-size: 100% 26px;
  background-size: 100% 1.625rem; }

.grid-double {
  background-image: linear-gradient(to bottom, rgba(0, 170, 255, 0.3) 1px, transparent 1px, transparent 13px, rgba(0, 170, 255, 0.2) 13px, transparent 14px, transparent 26px); }

/* Gutenberg defaults
   ========================================================================== */
article,
body > footer {
  width: 80%;
  margin: 0 auto; }

.toggleWrapper {
  display: block;
  position: fixed;
  top: 26px;
  right: 26px;
  background-color: #231F20;
  border-radius: 25px;
  padding: 0 10px 0 20px;
  height: 32px; }

.btnToggleGrid {
  background: url("/National_Library/20160930123623oe_/http://gridbyexample.com/assets/images/grid-icons.png") top right no-repeat;
  background-size: 32px;
  display: block;
  font-size: 14px;
  text-decoration: none;
  padding-right: 35px;
  height: 32px;
  line-height: 34px;
  font-family: Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff; }
  .btnToggleGrid:hover {
    color: #fff; }
  .btnToggleGrid:active {
    color: #f00; }

.double-grid {
  background-position-y: -32px; }

.grid-off {
  background-position-y: -64px; }

.alignLeft {
  text-align: left; }

.alignCenter {
  text-align: center; }

.alignRight {
  text-align: right; }

.uppercase {
  letter-spacing: .1em;
  text-transform: uppercase; }

/* Put your styles below this line
   ========================================================================== */
.wrapper {
  margin: 0 auto;
  width: 90%;
  max-width: 1050px; }

.header {
  background-color: rgba(0, 0, 0, 0.98);
  background-image: url("/National_Library/20160930123623oe_/http://gridbyexample.com/img/inflicted.png");
  color: #fff;
  padding: .5rem 0;
  margin: 0; }

.main {
  border-bottom: 1px solid #222; }

.main .nav {
  list-style: none;
  margin: 0 auto;
  width: 90%;
  max-width: 1050px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between; }

.subnav {
  list-style: none;
  margin: 0 auto;
  width: 90%;
  max-width: 1050px;
  padding: 0;
  display: flex;
  flex-direction: column; }

.subnav a:link,
.subnav a:visited {
  text-decoration: none;
  display: block;
  padding: .5rem;
  margin: 0 0 5px 0;
  background-color: #ccc;
  color: #000;
  border-radius: 3px; }

.subnav a:hover,
.subnav a.selected:link,
.subnav a.selected:visited {
  background-color: #333;
  color: #fff; }

@media screen and (min-width: 640px) {
  .main .nav {
    flex-direction: row;
    justify-content: space-between; } }

.main .nav a:link,
.main .nav a:visited {
  text-decoration: none;
  display: block;
  padding: .5rem;
  margin: 0; }

.subnav {
  flex-direction: row; }

.subnav li {
  margin-right: 10px; }

h1 small {
  display: block;
  padding: 0.5rem 0 0 0;
  color: #666;
  line-height: 1.4; }

.box {
  border: 1px solid #999;
  border-radius: 3px;
  padding: 1rem; }

.box *:last-child {
  margin-bottom: 0; }

@media screen and (min-width: 640px) {
  .home-layout {
    display: grid;
    grid-gap: 40px;
    grid-template-columns: 3fr 1fr; }
  .home-content {
    max-width: 800px;
    float: left;
    width: 75%; }
  .examples-listing {
    margin-top: 78px;
    margin-top: 4.875rem;
    float: right;
    width: 22%; }
  @supports (grid-gap: 10px) {
    .home-content {
      float: none;
      grid-column: 1;
      width: auto; }
    .examples-listing {
      float: none;
      grid-column: 2;
      width: auto;
      min-width: 1%; } } }

.examples-listing ul {
  list-style: none;
  padding: 0;
  margin: 0; }

.examples-listing li {
  margin-top: 26px;
  margin-top: 1.625rem; }

.example footer {
  padding: 0 0 1em 0;
  text-align: right;
  border-bottom: 1px solid #ccc; }

figure.codefig,
figure.codefig div {
  margin: 0; }

.example figcaption {
  text-align: left; }

.examples-detail-list {
  list-style: none;
  margin: 0;
  padding: 0; }

@media screen and (min-width: 640px) {
  .example .body:after {
    content: "";
    display: block;
    clear: both; }
  .example .imagefig {
    float: left;
    width: 45%;
    min-width: 1%; }
  .example .description {
    float: right;
    width: 45%;
    min-width: 1%; }
  .example footer {
    clear: both; }
  @supports (grid-gap: 10px) {
    .example .body {
      display: grid;
      grid-gap: 2em;
      grid-template-columns: 1fr 1fr; }
    .example .body::after {
      content: "";
      clear: none; }
    .example .description,
    .example .imagefig {
      float: none;
      width: auto; }
    .example .codefig {
      grid-column: 1 / 3; }
    .example footer {
      grid-column-end: span 2; } } }

code {
  display: inline;
  padding: 0; }

h1 a:link, h1 a:visited, h1 a:hover, h1 a:visited:hover, h1 a:visited {
  color: #fff;
  text-decoration: none; }

.card-listing {
  list-style: none;
  margin: 0 0 1em 0;
  padding: 0; }

.card-listing li {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12); }

.card-listing h3 {
  background-color: #fff;
  color: #fff;
  margin: 0;
  padding: .8rem 20px; }

.card-listing li:hover h3 {
  transition: all;
  transition-duration: 1s; }

.card-listing .type-article h3 {
  background-color: rgba(50, 205, 235, 0.3); }

.card-listing li h3:before {
  content: "Article";
  font-size: 0.7rem;
  font-weight: normal;
  background-color: #000;
  border-radius: 10px;
  float: right;
  padding: 0 5px; }

.card-listing .type-article:hover h3 {
  background-color: rgba(50, 205, 235, 0.8); }

.card-listing .type-video h3 {
  background-color: rgba(255, 108, 129, 0.3); }

.card-listing .type-video:hover h3 {
  background-color: rgba(255, 108, 129, 0.8); }

.card-listing .type-video h3:before {
  content: "Video"; }

.card-listing .type-spec h3 {
  background-color: rgba(119, 213, 129, 0.3); }

.card-listing .type-spec:hover h3 {
  background-color: rgba(119, 213, 129, 0.8); }

.card-listing .type-spec h3:before {
  content: "Video"; }

.card-listing .type-browsers h3 {
  background-color: rgba(253, 137, 78, 0.3); }

.card-listing .type-browsers:hover h3 {
  background-color: rgba(253, 137, 78, 0.8); }

.card-listing .type-browsers h3:before {
  content: "Browsers"; }

.card-listing .type-discussion h3 {
  background-color: rgba(155, 131, 209, 0.3); }

.card-listing .type-discussion:hover h3 {
  background-color: rgba(155, 131, 209, 0.8); }

.card-listing .type-discussion h3:before {
  content: "Discuss"; }

.card-listing .type-example h3 {
  background-color: rgba(249, 175, 70, 0.3); }

.card-listing .type-example:hover h3 {
  background-color: rgba(249, 175, 70, 0.8); }

.card-listing .type-example h3:before {
  content: "Code"; }

.card-listing h3 a:link,
.card-listing h3 a:visited {
  color: #000;
  text-decoration: none;
  font-weight: normal;
  display: block;
  margin: 0; }

.card-listing .details {
  padding: .8rem 20px 0.2rem 20px; }

@media screen and (min-width: 800px) {
  @supports (grid-gap: 10px) {
    .card-listing {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-gap: 20px; } } }

.imagegrid {
  margin: 0;
  padding: 0;
  list-style: none; }

.imagegrid img {
  border-radius: 5px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12); }

@media screen and (min-width: 600px) {
  .imagegrid li {
    float: left;
    max-width: 49%;
    padding: 10px; }
  .patterncontent {
    clear: both; }
  @supports (grid-gap: 10px) {
    .imagegrid {
      display: grid;
      grid-template-columns: 2fr 3fr;
      grid-gap: 10px; }
    .imagegrid li {
      float: none;
      max-width: 100%;
      padding: 0; }
    .imagegrid li:first-child {
      grid-row: 1 / 3; } } }

.examples-listing,
.video-list,
.blog-list,
.blog-list-home {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%; }

.video-list li,
.blog-list li .blog-list-home li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  margin: 0;
  padding: 0; }

.video-list p,
.video-list h3 {
  margin: 0;
  padding: 0; }

.video-list li a {
  display: block;
  text-decoration: none;
  margin: 0;
  padding: 1rem 0; }

.video-list li a:hover {
  background-color: rgba(0, 0, 0, 0.05); }

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%; }

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