/**
 * user/assets/styles/page.css
 *
 * @author Pablo Rubio
 * @version 0.1
 */

article.page {
  font-size: 1.4em;
  line-height: 1.2em;
}

/*
 * The Title
 */

article .the-title {
  display: none;
}

article .the-title h1 {
  display: none;
}

/*
 * Attachments
 */

article .attachments {
  width: 100%;
  height: auto;
  border: 20px solid #ffffff;
  position: relative;
  margin-bottom: 20px;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.06);
}

article .attachments .item {
  width: 100%;
  height: auto;
}

article .attachments .item .inner {
  position: relative;
  width: 100%;
  height: 280px;

  background-position: center;
  background-size: cover;
}

article .attachments .item .inner .text {
  position: absolute;
  width: 100%;
  height: auto;
  margin: auto 0px 0px 0px;
  bottom: 0px;
  padding: 5px;
  color: #ffffff;
  font-size: 2em;
  line-height: 1.3em;
}

@media screen and (max-width: 760px) {
  article .attachments .item .inner {
    height: 200px;
  }
}

/*
 * The Content
 */

article.page .the-content {
  padding: 20px;
  font-size: 1.16em;
  line-height: 1.4em;
  letter-spacing: 1px;
}

article.page .the-content h2 {
  font-weight: 500;
  font-size: 1.8em;
  line-height: 1.4em;
  margin: 0px;
  padding: 20px 0px 40px 0px;
}

article.page .the-content p {
  padding: 0px 0px 20px 0px;
  margin: 0px;
  font-size: 1.2em;
  line-height: 1.4em;
  letter-spacing: 1px;
}

article.page .gallery {
  margin: 0px 0px 0px 0px;
  width: 100%;
  padding: 10px 10px 10px 10px;
  list-style: none;
}

article.page .gallery li {
  float: left;
  width: 25%;
  height: 200px;
  position: relative;
  padding: 10px;
}

article.page .gallery li .inner {
  cursor: pointer;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 12px solid #ffffff;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

article.page .gallery li .inner:hover {
  transform: translate(0px, -2px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.06), 0 5px 5px rgba(0, 0, 0, 0.03);
}

@media screen and (max-width: 780px) {
  article.page .gallery li {
    width: 33%;
  }
}

@media screen and (max-width: 620px) {
  article.page .gallery li {
    width: 50%;
  }
}

@media screen and (max-width: 420px) {
  article.page .gallery li {
    width: 100%;
  }
}

article.page .children {
  margin: 0px 0px 0px 0px;
  width: 100%;
  padding: 20px 0px 0px 0px;
  list-style: none;
}

article.page .children li {
  float: left;
  width: 33.333333%;
  height: auto;
  position: relative;
  margin: 0px 0px 20px 0px;
}

article.page .children li:nth-of-type(3n + 1) {
  padding-right: 17px;
}

article.page .children li:nth-of-type(3n + 2) {
  padding-right: 8px;
  padding-left: 9px;
}

article.page .children li:nth-of-type(3n + 3) {
  padding-left: 16px;
}

article.page .children li .inner {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.06);

  display: block;
  width: 100%;
  height: 100%;
  border-top: 20px solid #ffffff;
  border-left: 20px solid #ffffff;
  border-right: 20px solid #ffffff;
  background-color: #ffffff;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

article.page .children li .inner:hover {
  transform: translate(0px, -2px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.06), 0 5px 5px rgba(0, 0, 0, 0.03);
}

article.page .children li .inner .thumbnail {
  width: 100%;
  height: 140px;
  margin-bottom: 20px;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

article.page .children li .inner h4 {
  margin: 0px;
  position: absolute;
  padding: 0px;
  top: -20px;
  right: 0px;
  text-align: right;
  line-height: 20px;
  font-size: 1.16em;
  text-transform: lowercase;
}

article.page .children li .inner .excerpt {
  display: block;
  border-top: 1px solid rgba(65, 64, 66, 0.5);
  padding-top: 20px;
  line-height: 1.3em;
  height: 145px;
}

article.page .children li .inner a {
  position: absolute;
  top: 0px;
  left: 0px;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;

  opacity: 0;
  background-color: rgba(255, 255, 255, 0.8);

  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media screen and (max-width: 768px) {
  article.page .children li {
    float: none;
    width: 100%;
  }

  article.page .children li:nth-of-type(3n + 1),
  article.page .children li:nth-of-type(3n + 2),
  article.page .children li:nth-of-type(3n + 3) {
    padding-right: 0px;
    padding-left: 0px;
  }

  article.page .children li .inner {
    padding-left: 160px;
  }

  article.page .children li .inner:after {
    content: '';
    clear: both;
    display: block;
  }

  article.page .children li .inner .thumbnail {
    float: left;
    margin-left: -160px;
    width: 140px;
    min-height: 140px;
    height: 100%;
    margin-bottom: 0px;
  }

  article.page .children li .inner h4 {
    text-align: left;
    margin: 0px;
    position: relative;
    padding: 0px 0px 0px 0px;
    top: 0px;
    right: 0px;
    float: left;
    width: 100%;
  }

  article.page .children li .inner .excerpt {
    display: block;
    float: left;
    width: 100%;
    height: auto;
    padding: 20px 0px 0px 0px;
  }
}

@media screen and (max-width: 520px) {
  article.page .children li .inner {
    padding-left: 0px;
  }

  article.page .children li .inner .thumbnail {
    float: none;
    margin-left: 0px;
    width: 100%;
    min-height: 0px;
    height: 100px;
  }

  article.page .children li .inner h4 {
    padding-top: 20px;
    float: none;
    width: 100%;
  }

  article.page .children li .inner .excerpt {
    float: none;
  }
}
