/* ==================
 * POSTS PAGINATION
 * ================== */
.posts_list {
  margin: 1rem;
}

.posts_list--rows > *:not(:last-child) {
  margin-bottom: 1rem;
}

/* (rows display) */
.posts_list--rows .posts_list__item {
  display: flex;
  align-items: flex-start;
}

.posts_list--rows .posts_list__thumbnail,
.posts_list--rows .posts_list__thumbnail--placeholder {
  width: 150px;
  height: auto;
  margin: 0 1rem 0 0;
}

/* (grid display) */
.posts_list--grid {
  display: grid;
}
/*  (> phone) */
@media only screen and (max-width: 480px) {
  .posts_list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1rem;
    column-gap: 0.5rem;
  }
}
/*  (> tablet) */
@media only screen and (min-width: 481px) and (min-width: 481px) {
  .posts_list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1rem;
    column-gap: 1rem;
  }
}
/*  (> desktop) */
@media only screen and (min-width: 769px) {
  .posts_list--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1rem;
    column-gap: 1rem;
  }
}
/*  (> large desktop) */
@media only screen and (min-width: 1000px) {
  .posts_list--grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 1rem;
    column-gap: 1rem;
  }
}

.bb-header__main_menu {
  margin-right: 1rem;
}

.posts_list--grid .posts_list__thumbnail {
  height: auto;
  margin: 0 0 1rem 0;
}
/*  (> phone) */
@media only screen and (max-width: 480px) {
  .posts_list--grid .posts_list__thumbnail {
    max-width: 120px;
  }
}
/*  (> tablet + desktop) */
@media only screen and (min-width: 481px) {
  .posts_list--grid .posts_list__thumbnail {
    max-width: 200px;
  }
}

/* (shared) */
.posts_list__title {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--c-clickable) !important;
}
.posts_list__title:hover {
  color: var(--c-clickable--hover) !important;
}

/* ========================
 * SINGLE POST CONTENT
 * ======================== */
.post_content {
  height: 100%;
  display: grid;
  margin-top: -1rem;
  max-width: 1232px;
  margin-left: auto;
  margin-right: auto;
}
/*  (> phone) */
@media only screen and (max-width: 480px) {
  .post_content__sidebar {
    grid-template-rows: 1fr auto;
  }
}
/*  (> tablet + desktop) */
@media only screen and (min-width: 481px) {
  .post_content {
    grid-template-columns: 1fr minmax(200px, auto);
  }
}

.post_content__main {
  padding: 0.5rem 1rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.post_content__header {
  margin-bottom: 2rem;
}

.post_content__content {
  margin-bottom: 2rem;
}

@media only screen and (max-width: 480px) {
  .post_content__main img {
    max-width: 100%;
  }
}
@media only screen and (min-width: 481px) {
  .post_content__main img {
    max-width: 500px;
  }
}

/* ========================
 * SIDEBAR
 * ======================== */
/*  (> phone) */
@media only screen and (max-width: 480px) {
  .post_content__sidebar {
    padding: 0.5rem;
  }
}
/*  (> tablet + desktop) */
@media only screen and (min-width: 481px) {
  .post_content__sidebar {
    padding: 0 2rem 0 1rem;
    border-left: 1px solid var(--c-border);
  }  
}

/* ========================
 * SINGLE POST METADATA
 * ======================== */
.post_content__header__thumbnail {
  margin-right: 1rem;
}

.posts__categories_list {
  font-size: 0.85em;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.posts__categories_list > a {
  color: var(--c-clickable--light);
}
.posts__categories_list > a:hover {
  color: var(--c-clickable--light--hover);
}
.posts__categories_list > *:not(:last-child) {
  margin-right: 0.5rem;
}
.posts__categories_list > *:not(:last-child)::after {
  content: ",";
}

.post__tags_list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.25rem;
}
.post__tags_list > *:not(:last-child) {
  margin-right: 0.5rem;
}

.post__tags_list-item {
  height: 0.8rem;
  color: var(--c-clickable--light) !important;
  text-decoration: none;
  padding: 0.25rem;
  border: 1px solid var(--c-border);
  font-size: 0.7em;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.post__tags_list-item:hover {
  color: var(--c-clickable--hover) !important;
  border-color: var(--c-border--hover);
}

/* ========================
 * SINGLE POST NAVIGATION
 * ======================== */
.post__navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.post__navigation > *:not(:last-child) {
  margin-right: 1rem;
}

.post__navigation button {
  display: flex;
  align-items: center;
}
.post__navigation button svg:first-child {
  margin-right: 0.5rem;
}
.post__navigation button svg:last-child {
  margin-left: 0.5rem;
}

/* ========================
 * TAG CLOUD
 * ======================== */
.posts__tag_cloud-wrapper {
  margin-top: 1rem;
}

.posts__tag_cloud {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 0.9;
}
/*  (> tablet + desktop) */
@media only screen and (min-width: 481px) {
  .posts__tag_cloud {
    max-width: 20vw;
  }  
}
/*  (> large desktop) */
@media only screen and (min-width: 481px) {
  .posts__tag_cloud {
    max-width: 12vw;
  }  
}

.posts__tag_cloud > a {
  color: var(--c-clickable);
  text-decoration: none;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.posts__tag_cloud > a:hover {
  opacity: 1;
}

/* ========================
 * SIDEBAR CATEGORIES LIST
 * ======================== */
 .posts__sidebar_categories_list {
  margin-top: 1rem;
}

.posts__sidebar_categories_list a {
  color: var(--c-clickable);
  text-decoration: none;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.posts__sidebar_categories_list a:hover {
  opacity: 1;
}

/* ========================
 * SIDEBAR CATEGORIES DATES
 * ======================== */
.posts__sidebar_dates {
  margin-top: 1rem;
}

.posts__sidebar_dates .posts__sidebar_date .title {
  color: var(--c-clickable);
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  display: flex;
  justify-content: space-between;
}
.posts__sidebar_dates .posts__sidebar_date .title:hover {
  opacity: 1;
}

.posts__sidebar_dates .posts__sidebar_date.open .icon-closed {
  display: none;
}
.posts__sidebar_dates .posts__sidebar_date:not(.open) .icon-open {
  display: none;
}

.posts__sidebar_dates .posts__sidebar_date:not(.open) .content {
  display: none;
}

.posts__sidebar_dates .posts__sidebar_date .content {
  font-size: 0.9rem;
  margin: 0.5rem;
}
.posts__sidebar_dates .posts__sidebar_date .content > a {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.posts__sidebar_dates .posts__sidebar_date .content > a:not(:last-child) {
  padding-bottom: 0.25rem;
}

/* ========================
 * SIDEBAR FAVORITES LIST
 * ======================== */
 .posts__sidebar_favorites_list {
  margin-top: 1rem;
}

.posts__sidebar_favorites_list a {
  color: var(--c-clickable);
  text-decoration: none;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.posts__sidebar_favorites_list a:hover {
  opacity: 1;
}

/* ========================
 * SIDE ELEMENTS
 * ======================== */
.posts__search_bar {
  margin-bottom: 1em;
}

/* ========================
 * MISC ELEMENTS
 * ======================== */
.posts_list__read-more {
  font-size: 0.8rem;
}
.posts_list__read-more::after {
  content: '>';
  margin-left: 4px;
}
