.PostsList__post_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  overflow-x: hidden;
  overflow-y: scroll;
  background-color: $white;
  // padding: 0 .9rem;
  -webkit-overflow-scrolling: touch;
  backface-visibility: hidden;
}

.PostsList__post_top_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 310;
  height: 3rem;
  overflow-x: hidden;
  overflow-y: scroll;
  border-bottom: 1px solid $light-gray;
}

.PostsList__post_top_bar {
  position: relative;
  width: 100%;
  height: 3rem;
  margin: 0 auto;
  background-color: $white;
  overflow: hidden;
  a {
    span.Icon path {
      fill: map-get($foundation-palette, 'primary');
    }
  }
  > .close-button {
    visibility: hidden;
    top: 1rem;
    right: 0;
  }
}

.PostsList__post_container {
  position: relative;
  @include themify($themes) {
      background-color: themed('moduleBackgroundColor');       
    }
  margin: 1rem auto;
  padding: 2rem 0.9rem 0 0.9rem;
  transform: translateZ(0);
}

body.with-post-overlay {
  overflow: hidden;
}

@media screen and (min-width: 60rem) {
  .PostsList__post_overlay {
    background-color: rgba(0, 0, 0, 0.85);
  }
  .PostsList__post_top_overlay {
    border-bottom: none;
  }
  .PostsList__post_top_bar {
    width: 56rem;
    background-color: transparent;
    > .close-button {
      visibility: visible;
    }
    > .back-button-menu {
      visibility: hidden;
    }
  }
  .PostsList__post_container {
    width: 56rem;
    margin-bottom: 3em;
    @include themify($themes) {
      box-shadow: 5px 5px 0 0 themed('contentBorderAccent');        
    }    
  }
}

@media screen and (min-width: 67rem) {
  .PostsList__post_container {
    width: 62rem;
  }
  .PostsList__post_top_bar {
    width: 62rem;
  }
}
