
.documents-main{
  position: relative;
}
.documents-inner{
  margin-top: -0.9rem;
  background-color: white;
  box-shadow: 0 0 15px black;
}

.documents-title{
  position: relative;
  text-align: center;
  font-size: 2rem;
  padding: 1.5rem 0 1rem 0;
}

.documents-content{
  margin: auto;
  text-align: justify;
  font-size: 1.4rem;
  padding-bottom: 2rem;
  padding: 2rem;
}

.documents-notfound{
  min-height: 8rem;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.5rem;
}

.documents-content{
  margin: auto;
  width: 90%;
  /*
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;*/

  display: grid;
  grid-template-columns: repeat(auto-fill, 22%);
  justify-content: space-between;
  grid-gap: 20px;
}

.records-wrapper{
  margin-top: 1.0rem;
  width: 100%;
  /*width: 22% */ /*flexes megoldással*/
}

.records-thumbnail{
  width: 100%;
  max-height: 15rem;
  object-fit: cover;
  height: 15rem;
}
/*Visszaemlékezesek full height! */
.records-thumbnail-type-4{
  max-height: none;
}
.records-thumbnail-type-5{
  max-height: none;
}
.records-info{
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content:space-between;
  margin-top: 0.15rem;
}
.records-wrapper a{
  color: black !important;
  text-decoration: none !important;
}

.records-wrapper a:hover{
  color: black !important;
  text-decoration: none !important;
}
.records-title{
  font-size: 0.9rem;
  text-align: left;
}

.info-button{
  height: max-content;
  width: 8%;
  visibility: hidden;
}

.documents-header{
  width: 85%;
  margin: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.document-title{
  text-align: center;
  font-size: 2rem;
}

.back-button{
  text-transform: uppercase;
  margin: auto;
  font-size: 0.9rem;
  color: #444444;
}
.back-button a{
  text-decoration: none !important;
}
.back-button a:hover{
  text-decoration: none !important;
}


@media only screen and (max-width: 1200px) {
  .records-wrapper{
    margin-top: 1.5rem;
    /*width: 40%;*/
  }
}
@media only screen and (max-width: 960px) {
  .documents-content{

    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .records-wrapper{
    margin-top: 1.5rem;
    width: 85%;
  }
}


/** SINGLE DOCUMENT SITE */

.document-main{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: #444444;
}

.document-image-wrapper{
  width: 49%;
}
.document-main-image{
  width: 100%;
  cursor: pointer;
}

.document-data-wrapper{
  width: 48%;
  padding: 1.5rem;
  padding-top: 0;
}

.document-main-title{
  padding-bottom: 1.5rem;
  border-bottom: 5px solid black;
}
.document-sub-data{
  margin-top: 1.5rem;
  font-size: 1.0rem;
}

.document-pager-wrapper{
  width: 85%;
  margin: auto;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  min-height: 5rem;
}
.pager-text{
  color: #444444 !important;
  font-size: 1.2rem;
  text-transform: uppercase;
}
.pager-text a{
  color: #444444 !important;
}

.pager-right-img{
  margin-left: 50%;
}

.audio-wrapper audio{
  width: 100%;
  margin: 1rem;
}

.document-overflow{
  white-space: pre-line;
 /*
  overflow: hidden;
  text-overflow: ellipsis;*/
}

@media only screen and (max-width: 1600px) {
  .document-main{
      flex-direction: column;
      align-items: center;
  }
  .document-image-wrapper{
    width: 95%;
  }
  .document-data-wrapper{
    margin-top: 3rem;
    width: 95%;
  }

  .document-main-title{
    font-size: 1.8rem;
  }
  .document-sub-data{
    font-size: 1.15rem;
  }

}
@media only screen and (max-width: 960px) {
  .document-pager-wrapper{
    width: 70%;
    margin: auto;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    min-height: 5rem;
  }
}
