/*
 * Globals
 */

  @media (min-width: 768px) {
  html {
    font-size: 18px;
  }
}

body {
  color: #222;
  font-family: "Playfair Display", serif
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4 {
  font-weight: normal;
  color: #222;
  a, a:hover, a:focus {
    color: inherit;
    text-decoration: none;
  }
}

h2, .h2,
h3, .h3
{
  margin: 1.5rem 0;
}

/* Nav links */
.nav-link {
  position: relative;
  font-size: .8rem;
  padding: .5rem .5rem;
  letter-spacing: .15em;
  color: #666;
}

@media (min-width: 768px) {
  .nav-link {
    font-size: 1rem;
    padding: .5rem 1rem;
    letter-spacing: .15em;
  }
}

.nav-link:hover,
.nav-link:focus {
  color: #222;
  background-color: transparent;
}

/* Active state gets a caret at the bottom */
.nav-link.active {
  color: #222;
}

@media (min-width: 768px) {
  .nav-link.active:after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -.3rem;
    vertical-align: middle;
    content: "";
    border-right: .3rem solid transparent;
    border-bottom: .3rem solid;
    border-left: .3rem solid transparent;
  }
}


/*
 * Blog name and description
 */

.blog-title {
  /*margin-bottom: .5rem;
  margin-top: 1.5rem;*/
  /*font-size: 1.3rem;*/
  font-family: 'Caveat', cursive;
  color: #222;
  font-weight: normal;
}

/*@media (min-width: 768px) {
  .blog-title {
    font-size: 3rem;
  }
}*/

/*
 * Blog posts
 */

.blog-post {
  margin-bottom: 4rem;
}

.blog-post-title {
  margin-bottom: .25rem;
  font-size: 2.5rem;
}

.blog-post-meta {
  margin-bottom: 1.25rem;
  color: #999;
}

article img {
  max-width: 100%;
  height: auto;
  //margin: 13px auto;
}

article div.highlight {
  padding: 5px 5px 0px 5px;
}

/*
 * Footer
 */

.blog-footer {
  padding: 2.5rem 0;
  color: #666;
  text-align: center;
  background-color: #f9f9f9;
  border-top: .05rem solid #e5e5e5;
}

.blog-footer p:last-child {
  margin-bottom: 0;
}

.img-with-text {
    position: relative;
    width: 100%;
}

.text-over-img {
  position: absolute;
  font-size: 1em;
  font-weight: bold;
  bottom: 10%;
  left: 0;
  text-align: center;
  width: 100%;
  color: #ddd;
  padding: 0 2rem;
  text-shadow: 1px 1px 10px black;
}

@media (min-width: 768px) {
  .text-over-img {
    font-size: 2rem;
  }
}
