@import url('https://fonts.googleapis.com/css?family=Lato:400,700|Lora|Playfair+Display:700i,900');

html,
body {
  margin: 0;
  width: 100%;
  direction: rtl;
}

h1,
h2,
p,
i,
a,
.first-letter,
.authorName a {
  color: rgba(0, 0, 0, 0.84);
  text-rendering: optimizeLegibility;
}

header {
  background-color: #111;
  padding: 1em;
  text-align: center;
}
header p {
  color: whitesmoke;
  padding: 0;
}
header a {
  color: white
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  text-align: right;
  margin-bottom: 8px;
}

h2 {
  font-family: "Lato", sans-serif;
  font-size: 26px;
  font-weight: 700;
  padding: 0;
  margin: 56px 0 -13px -1.883px;
  text-align: right;
  line-height: 34.5px;
  letter-spacing: -0.45px;
}

h3 {
  font-family: "Lato", sans-serif;
  font-size: 22px;
  font-weight: 700;
  padding: 0;
}

p, ul, ol, 
i,
a {
  margin-top: 21px;
  font-family: "Open Sans Hebrew","Helvetica Neue",tahoma,Helvetica,Arial,sans-serif;
  font-size: 21px;
  letter-spacing: -0.03px;
  line-height: 1.58;
}

a {
  text-decoration: underline;
}

blockquote {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-style: italic;
  letter-spacing: -0.36px;
  line-height: 44.4px;
  overflow-wrap: break-word;
  margin: 55px 0 33px 0;
  /* text-align: center; */
  color: rgba(0, 0, 0, 0.68);
  padding: 0 50px 0 0;
}

code {
  font-size: 18px;
  background: rgba(0, 0, 0, .05);
  border-radius: 2px;
  padding: 3px 5px;
}

.align-left {
  text-align: left;
  direction: ltr;
}

.align-center {
  text-align: center;
}

.highlighted {
  background: #7DFFB3;
}

.first-letter {
  overflow-wrap: break-word;
  font-family: "Playfair Display", serif;
  font-size: 60px;
  line-height: 60px;
  display: block;
  position: relative;
  float: right;
  margin: -15px -5px 0 7px;
}

.subtitle {
  font-family: "Lato", sans-serif;
  color: rgba(0, 0, 0, 0.54);
  margin: 0 0 24px 0;
}

/* ##################################################################################
########################################  LAYOUT  ###################################
##################################################################################### */

.container {
  display: -ms-grid;
  display: grid;
  grid-template-columns: auto 166px 740px 166px auto;
  grid-template-rows: 450px auto 150px;
  grid-template-areas:
    ". img img img ."
    ". . article . ."
    ". . footer . .";
}

.meta {
  grid-area: img;
  margin: 10px;
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "info image";
}

.image {
  grid-area: image;
  background-size: cover;
  background-repeat: no-repeat;
}


.info {
  grid-area: info;
  padding: 60px 0px 0 60;
  margin-bottom: 30px;
}

.author {
  display: grid;
  grid-template-columns: 60px auto;
  grid-template-rows: 60px;
  grid-template-areas:
    "authorImage authorInfo";
  margin-bottom: 10px;
}

.authorImage {
  grid-area: authorImage;
  border: 2px solid #7DFFB3;
  border-radius: 50%;
  background: url('https://www.coding-academy.org/images/team/yaron.jpg');
  background-size: cover;
}

.authorInfo {
  grid-area: authorInfo;
  padding-right: 10px;
}

.authorName,
.authorSub {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin-top: 6px;
}

.authorName a {
  font-size: inherit;
  font-family: inherit;
  text-decoration: none;
}

.authorName a:hover {
  text-decoration: underline;
}

.authorSub {
  color: rgba(0, 0, 0, 0.54);
}

.median-divider {
  padding: 0 6px;
}

.lineLength {
  border: 2px dashed rgba(0, 0, 0, 0.54);
}

.article {
  grid-area: article;
  margin: 40px 10px;
}

.footer {
  grid-area: footer;
  background: #333333;
}


.article img {
  max-width: 100%;
  width: 600px;  
  display: block;
  margin: auto;
  /* width: 100%; */
  /* height: 400px; */
  /* object-fit: cover; */
  /* object-position: bottom; */
}

.blog {
  padding: 0 1em;
}

.story-list {
  display: flex;
  flex-wrap: wrap;
}

.story-preview {
  width: 30%;
  margin-inline-end: 1em;
}

.story-preview img {
  width: 100%;
  /* height: auto; */
}


@media screen and (max-width: 1072px) {
  .container {
    grid-template-columns: auto 740px auto;
    grid-template-areas:
      ". img ."
      ". article ."
      ". footer  .";
  }
}

@media screen and (max-width: 740px) {
  .container {
    grid-template-rows: auto auto 150px;
    grid-template-columns: auto;
    grid-template-areas:
      "img"
      "article"
      "footer";
  }

  .meta {
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "image";
  }

  .info {
    padding-top: 0;
  }

  .story-list {
    display: block;
  }
  
  .story-preview {
    width: unset;
    padding-bottom: 1em;
    margin-bottom: 2.2em;
    border-bottom: 1px solid #aaa;
  }  
}

.page-footer {
  background-color: #ecf5fe;
  color: whitesmoke;
  text-align: center;
  padding: 2em;
  margin-top: 3em;
}

.page-footer img{
  display: block;
  max-width: 200px;
  margin: auto;
}