/* kAPPeL.ru V4.8.4: centered gallery controls and tidy sidebar.
   Loaded after previous app styles. No image dimensions or gallery scrolling change. */
.k4-app-body .k4-gallery { position:relative; }
.k4-app-body .k4-gallery-next,
.k4-app-body .k41-gallery-prev {
  box-sizing:border-box;
  width:42px;
  height:42px;
  min-width:42px;
  min-height:42px;
  display:grid;
  place-items:center;
  padding:0!important;
  margin:0;
  top:50%;
  transform:translateY(-50%);
  line-height:0!important;
  font-size:0!important;
  border-radius:13px;
  text-align:center;
}
/* Text glyphs have uneven ascender/baseline space. These drawn chevrons
   have exactly the same inset above/below and work with the existing JS. */
.k4-app-body .k4-gallery-next::after,
.k4-app-body .k41-gallery-prev::after {
  content:"";
  display:block;
  box-sizing:border-box;
  width:10px;
  height:10px;
  border-right:2px solid currentColor;
  border-top:2px solid currentColor;
  transform:rotate(45deg);
  pointer-events:none;
}
.k4-app-body .k41-gallery-prev::after {transform:rotate(-135deg);}
/* No dead space when the category chip disappears. Other pills are kept. */
.k4-app-body .k4-side-tags:empty {display:none;}
@media(max-width:560px){
  .k4-app-body .k4-gallery-next,
  .k4-app-body .k41-gallery-prev {
    width:40px;height:40px;min-width:40px;min-height:40px;
  }
}
