.output_block {
  margin-bottom: 3rem;
}
.output_block_wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.output_block_wrapper__article_category {
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(137, 137, 137, 0.25);
  padding-inline: 2rem;
  padding-top: 2rem;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  transition: transform 0.5s ease;
}
.output_block_wrapper__article_category:hover {
  transform: scale(1.05);
}
.output_block_wrapper__category_link {
  position: absolute;
  inset: 0;
}
.output_block_wrapper__article_category img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}
.output_block_wrapper__category_title {
  font-weight: 700;
  font-size: 1.5rem;
  color: #263062;
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}
.output_block_wrapper__article_category .read-more {
  display: block;
  color: red;
  text-decoration: underline;
  align-self: flex-end;
  transition: color 0.25s ease;
  text-underline-offset: 0.375rem;
}

.single-post_wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 5.5rem;
  margin-bottom: 3rem;
}
.single-post_right {
  grid-column: 1 / 3;
}

.single-post_wrapper__article a {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 2;
}
.single-post_wrapper p, .single-post_wrapper ul, .single-post_wrapper li, .single-post_wrapper ol, .single-post_wrapper a, .single-post_wrapper span {
  color: #000;
}
.article__content .single-post_wrapper__article_title {
  position: relative;
}
.single-post_wrapper__article_title:after {
  position: absolute;
  content: '';
  width: 100%;
  bottom: -0.625rem;
  height: 1px;
  background-color: #D9DADC;
  left: 0;
}

.pagination .nav-links {
  display: flex;
  width: max-content;
  margin-inline: auto;
  gap: 2rem;
  align-items: center;
}
.page-numbers {
  color: #444444;
  font-size: 1.5rem;
}
.page-numbers.current {
  color: var(--active--);
}
.article_block_wrapper {
  margin-bottom: 1.5rem;
}
.article__content p, .article__content a, .article__content span, .article__content div, .article__content input, .article__content ul, .article__content li, .article__content ol {
  font-size: 1rem;
}
.article__content {
  color: #444444;
}
.single-post_right__content > p:not(:first-child), .article__content > p:not(:first-child) {
  padding-top: 1.2rem;
}
.single-post_right__content img {
  display: block;
  padding-block: 0.75rem;
}
.single-post__top_articles {
      background: #263062;
      color: #f9f9f9;
      font-size: 1.25rem;
      font-weight: 700;
}
.single-post_wrapper__articles {
      padding-top: 0.5rem;
      background: #f9f9f9;
      padding-bottom: 1rem;
}
.single-post_wrapper__article, .video_page__left_buttons .video_page__left_button, .single-post__top_articles {
      padding: 1.875rem;
      border: 1px solid transparent;
      transition: all 0.45s ease-in-out;
      background: #f9f9f9;
      color: #263062;
      display: block;
}

.single-post__top_articles {
  background: #263062;
  color: #f9f9f9;
  font-size: 1.25rem;
  font-weight: 700;
}
.single-post_wrapper__article {
  padding-block: 1rem;
  position: relative;
}

.both_buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.both_buttons button {
  padding-block: 0.66rem;
  border-radius: 4px;
  width: 275px;
  font-size: 1.5rem;
  transition: all 0.5s ease-in;
}
.both_buttons button:first-child {
  background: red;
  color: #fff;
  border: 1px solid red;
}
.both_buttons button:first-child:hover {
  color: red;
  background-color: #fff;
  border: 1px solid red;
}
.both_buttons button:last-child {
  color: red;
  background-color: #fff;
  border: 1px solid red;
}
.both_buttons button:last-child:hover {
  background: red;
  color: #fff;
  border: 1px solid red;
}
.output_block_wrapper__category_text, 
.output_block_wrapper__category_text *,
.output_block_wrapper__article_category .read-more {
  font-size: 0.875rem;
}
@media screen and (min-width: 1280px) {
  .article__content .single-post_wrapper__article_title {
    font-size: 1.125rem;
  }
}

@media screen and (max-width: 767px) {
  .output_block_wrapper, .single-post_wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
  .single-post_right {
    grid-column: auto;
  }
  .output_block_wrapper__article_category img {
    height: 150px;
  }
  .output_block_wrapper__category_title {
    font-size: 1.25rem;
  }
  .output_block_wrapper__category_text p {
    font-size: 1rem;
  }
  .single-post__top_articles {
    background-color: #f9f9f9;
    color: #263062;
    border: 1px solid #263062;
    text-align: center;
    padding-block: 1rem;
    position: relative;
    display: flex;
    justify-content: center;
  }
  .single-post_left {
    overflow: hidden;
  }
  .mobile-switcher {
    padding-block: 0;
  }
  .mobile-switcher-trigger:after {
    position: static;
    display: block;
    align-self: flex-start;
    padding-right: 1rem;
    margin-top: 0.66rem;
    background-image: url(/wp-content/themes/ist-realtor/assets/images/bottom_hide_arrow.svg);
    width: 18px;
    height: 9px;
    content: '';
    margin-left: 0.5rem;
    transform: translateY(-0.2rem);
  }
  .both_buttons button {
    width: 100%;
  }
}
@media screen and (min-width: 768px) and (max-width: 1279px) {
  .output_block_wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .single-post_wrapper {
    column-gap: 1.5rem;
  }
}