/* Language switcher in the site header */
#block-8 {
  position: fixed;
  top: 50px;
  right: max(24px, calc((100vw - 1200px) / 2));
  z-index: 1000;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.admin-bar #block-8 {
  top: 82px;
}

#block-8 .widget-content {
  margin: 0;
  padding: 0;
}

#block-8 .wp-block-polylang-language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
}

#block-8 .lang-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

#block-8 .lang-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

#block-8 .lang-item a::after {
  font-size: 13px;
  line-height: 1;
  letter-spacing: .04em;
}

#block-8 .lang-item-en a::after { content: "EN"; }
#block-8 .lang-item-lv a::after { content: "LV"; }

#block-8 .lang-item a:hover,
#block-8 .lang-item a:focus {
  border-color: #c21919;
  background: #f7f7f7;
  color: #c21919;
}

#block-8 .current-lang a {
  border-color: #c21919;
  background: #c21919;
  color: #fff;
}

@media (max-width: 700px) {
  #block-8 {
    top: 18px;
    right: 62px;
  }

  body.admin-bar #block-8 {
    top: 64px;
  }

  #block-8 .wp-block-polylang-language-switcher {
    gap: 5px;
  }

  #block-8 .lang-item a {
    min-width: 36px;
    min-height: 34px;
    padding: 6px 7px;
  }

  #block-8 .lang-item a::after {
    font-size: 12px;
  }
}	


/* Remove the empty desktop sidebar and widen the content */
@media (min-width: 701px) {
  .content {
    width: 100%;
  }

  .content::before {
    right: 0;
  }

  .sidebar {
    float: right;
    width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .sidebar > *:not(#block-8) {
    display: none;
  }
}	


/* Remove the former sidebar background and divider */
@media (min-width: 701px) {
  .wrapper::after {
    display: none;
    content: none;
    border: 0;
    background: transparent;
  }
}	


/* Hide the Jetpack Like this block below posts */
.sharedaddy.sd-like {
  display: none !important;
}	

/* Show category archive titles without the Category prefix */
.archive .page-title h4 {
  font-size: 0;
}

.archive .page-title h4 span {
  font-size: 0.85rem;
  line-height: 1.1;
}
