.PostsList__post_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  overflow-x: hidden;
  overflow-y: scroll;
  -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;
  @include themify($themes) {
    border-bottom: themed('border');  
  } 
  @media screen and (min-width: 60rem) {  
    @include themify($themes) {
      border-bottom: themed('borderTransparent');  
    } 
  }
}

.PostsList__post_top_bar {
  position: relative;
  width: 100%;
  height: 3rem;
  margin: 0 auto;
  overflow: hidden;
  @include themify($themes) {
    background-color: themed('navBackgroundColor');
  } 
  @media screen and (min-width: 60rem) {  
    @include themify($themes) {
      background-color: themed('backgroundTransparent');  
    } 
  }
  a {
    span.Icon path {
      @include themify($themes) {
        fill: themed('textColorAccent');  
      } 
    }
  }
  > .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;
  }
}
