/*
  credits:
  - https://github.com/MineiToshio/Instagram-Grid/blob/master/main.css
*/
.fullscreen {
  overflow: hidden; }

.hidden {
  display: none; }

.post-image + .navigation {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  position: sticky;
  background-color: transparent;
  bottom: 0px;
  border-top: 1px solid #d1d1d1;
  float: left; }
  .post-image + .navigation .prev-page a, .post-image + .navigation .next-page a {
    bottom: 50px;
    width: 50px;
    height: 50px;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #3f3f3f;
    text-decoration: none; }
    .post-image + .navigation .prev-page a:hover, .post-image + .navigation .prev-page a:focus, .post-image + .navigation .next-page a:hover, .post-image + .navigation .next-page a:focus {
      opacity: .5;
      transition: opacity .15s ease-in; }
    .post-image + .navigation .prev-page a:active, .post-image + .navigation .next-page a:active {
      opacity: .8;
      transition: opacity .15s ease-out; }
  .post-image + .navigation .next-page a {
    right: 5px;
    float: right;
    padding-right: 15px; }
  .post-image + .navigation .prev-page a {
    left: 0;
    float: left;
    padding-left: 15px; }

body {
  margin: 0;
  font-family: Arial;
  background: #fafafa; }
  body #overlay {
    padding: 0;
    margin: 0;
    height: 100%;
    min-height: 100vh;
    width: 100vw;
    min-width: 100vw;
    background-color: #3f3f3f;
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    float: left; }
  body #main section.post-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 293px));
    justify-content: center;
    grid-gap: 28px;
    padding-top: 110px;
    padding-bottom: 100px; }
    body #main section.post-list a.post {
      cursor: pointer;
      position: relative;
      display: block; }
      body #main section.post-list a.post figure.post-image {
        margin: 0; }
        body #main section.post-list a.post figure.post-image img {
          width: 100%;
          vertical-align: top; }
      body #main section.post-list a.post .post-overlay {
        background: rgba(0, 0, 0, 0.4);
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center; }
  body #main section.single-post {
    padding: 0;
    margin: 0 auto;
    height: 100vh;
    width: 60%;
    overflow-y: hidden;
    overflow-x: hidden; }
    body #main section.single-post a {
      max-height: 100%;
      height: 100%; }
    body #main section.single-post figure.post-image {
      background-color: rgba(196, 196, 196, 0.2);
      margin: 70px 0 10vh 0;
      padding: 1rem 1rem 1rem 1rem;
      width: 100%;
      height: 100%;
      cursor: pointer; }
      body #main section.single-post figure.post-image img {
        transition-duration: 0.3s;
        transition-property: padding, position;
        transition-timing-function: ease;
        width: auto;
        max-width: 90%;
        height: auto;
        display: inherit; }
      body #main section.single-post figure.post-image .caption {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
        font-weight: bold;
        padding: 0.5em 1em 1em 0;
        font-size: x-large;
        position: relative;
        z-index: 10;
        color: #3f3f3f;
        display: inherit;
        max-width: 50%; }
    body #main section.single-post figure.post-image__fullscreen {
      min-height: 100vh;
      height: 100vh;
      margin: 0 auto;
      background-color: transparent;
      cursor: pointer; }
      body #main section.single-post figure.post-image__fullscreen img {
        transition-duration: 0.3s;
        transition-property: all;
        transition-timing-function: ease;
        display: block;
        height: 100%;
        margin: 0 auto;
        display: inherit;
        padding: 0;
        top: 0;
        left: 0; }
      body #main section.single-post figure.post-image__fullscreen .caption {
        display: none; }

.post:hover .post-overlay {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center; }

.post-likes,
.post-comments {
  width: 80px;
  margin: 5px;
  font-weight: bold;
  text-align: center;
  display: inline-block; }

.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 55px;
  background: white;
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 293px));
  justify-content: center;
  grid-gap: 28px;
  z-index: 2;
  border-bottom: 1px solid #c4c4c4; }

.header .search-container {
  display: flex;
  align-items: center;
  justify-content: center; }

.header .search {
  color: #bdbdbd;
  position: relative; }

.header .search .fa-search {
  position: absolute;
  top: 4px;
  left: 6px; }

.header .search input {
  border-radius: 3px;
  border: 1px solid #bdbdbd;
  padding: 5px;
  padding-left: 23px; }

.header .icons {
  display: flex;
  align-items: center;
  justify-content: flex-end; }

.header .icons a {
  font-size: 20pt;
  margin-left: 25px;
  color: #868686; }

.header .logo {
  display: flex;
  align-items: center; }

.header .logo a {
  text-decoration: none; }

.header .logo .logo-imagen {
  width: 35px; }

.header .logo .logo-texto {
  height: 30px;
  margin-left: 20px; }

@media screen and (max-width: 768px) {
  .post-list {
    grid-gap: 3px; }
  .header .logo .logo-texto {
    display: none; } }
