.page {
  display: grid;
  grid-template-columns: 1fr min(600px, 90%) 1fr;
  /* width: 90%;
  max-width: 600px;
  margin: 1rem auto 2rem; */
  color: #333;
}

.page > * {
  grid-column: 2;
}

.page table {
  margin-bottom: 1rem;
}

.page table td {
  color: #333;
  border: none;
  font-weight: 200;
}

.page table tr {
  border-top: 1px solid #ccc;
}

.page table tr:last-child {
  border-bottom: 1px solid #ccc;
}

.page h1 {
  background-image: url('../images/h2_back.svg');
  background-position: center center;
  background-repeat: no-repeat;
  padding: 28px 4px;
  text-wrap: balance;
  text-align: center;
  margin-bottom: 2rem;
}

.post_header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.page figure {
  margin: 0 auto 1rem;
}

.page .wp-block-image, .wp-block-post-featured-image img {
  width: 100%;
  max-width: 1040px;
  grid-column: 1 / -1;
}

.page .wp-block-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media screen and (min-width:600px) {
  /* only Big screen */
  .page .wp-block-image img, .wp-block-post-featured-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
    max-width: 1040px;
  }
  
}

.page p {
  text-align: justify;
  margin-bottom: 1rem;
  line-height: 1.6rem;
  font-weight: 200;
}

.page ul.wp-block-list {
  list-style: url('../images/list.svg');
  margin: 0 0 1rem 1rem;
  line-height: 1.6;
}

.page ol.wp-block-list, .wp-block-footnotes {
  margin-left: 1rem;
  margin-bottom: 1rem;
}

.page ul.wp-block-list li, .page ol.wp-block-list li {
  color: #333;
  font-weight: 200;
}

.page .wp-block-quote {
  margin: 0 0 1rem;
  background-color: #ddd;
  background-image: url(../images/bq_line_left.svg), url(../images/bq_line_right.svg);
  background-repeat: no-repeat;
  background-position: top left, bottom right;
  padding: 1.5rem;
}

.page .wp-block-quote cite {
  font-style: normal;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 85%;
  margin: auto 0 auto auto;
}

.page .wp-block-quote p:last-child {
  padding-bottom: 0;
}

.page .wp-block-quote::before {
  
}

.page h2 {
  margin-top: 0.5rem;
  border: 1px solid #b0e1b7;
  border-radius: 24px;
  padding: 5px;
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: 1.2rem;
}

.page h2::before {
  content: '';
  display: inline-block;
  vertical-align: -8px;
  margin-right: 4px;
  background-image: url('../images/h2_back.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left;
  width: 32px;
  height: 32px;
}

.page h3 {
  font-weight: 200;
}

.page ul.post-categories {
  display: inline-block;
}

.page .author_photo img {
  display: block;
  width: 100%;
  /* max-width: 320px; */
  margin: 0 auto 1rem;
  
}

@media screen and (max-width:600px) {
  .page .author_photo img {
    object-fit: cover;
    aspect-ratio: 1;
  }
}

.page article {
  /* display: flex; */
  /* gap: 1rem; */
  /* margin-bottom: 0.5rem; */
}

article p.time {
  font-size: 0.8rem;
}

.page .social_media_link ul {
  display: flex;
  gap: 6px;
  align-items: center;
}
@media screen and (min-width:600px) {
  .author_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.page .author-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

@media screen and (min-width:600px) {
.page .author-list {
  grid-template-columns: 1fr 1fr 1fr;
  }
}

.author-details {
  padding: 4px;
}

.author-details p {
  font-size: 0.9rem;
}

.page .author-list img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.posts_container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 1rem;
}

@media screen and (min-width:600px) {
  .posts_container{
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.posts_container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.page .post_date {
  font-size: 0.8rem;
}

.page .post-content {
  padding: 4px;
}

.page .pagination, .nav-links {
  display: flex;
  gap: 4px;
  overflow: hidden;
  overflow-x: scroll;
}

.page .pagination a, .page .pagination span {
  display: block;
  padding: 4px 6px;
  border: 1px solid #627941;
  color: #627941;
  text-decoration: none;
}

.page .pagination span {
  border: none;
}

.page .wp-block-table {
  width: 90%;
  max-width: 500px;
}

.page .wp-block-accordion, .page .wp-block-details {
  margin-bottom: 1rem;
}