/*.wy-side-nav-search {*/
/*    background-color: #449837;*/
/*}*/

/*.wy-menu-vertical header, .wy-menu-vertical p.caption {*/
/*    color: #449837;*/
/*}*/

.wy-nav-content {
    max-width: none !important;
}

.wy-table-responsive table td, .wy-table-responsive table th {
    white-space: normal;
}

.wy-table-responsive {
    margin-bottom: 24px;
    max-width: 100%;
    overflow: visible;
}

.rst-content div[class^=highlight] div[class^=highlight] pre {
    white-space: break-spaces;
}

.rst-content img{
  max-width: 100%;
  height: auto;
}

/* Единый размер рисунков (_fig): ограничение ширины при полноширинном контенте */
.rst-content figure img {
  max-width: min(800px, 100%);
}

/* Модальное окно (lightbox) для рисунков (_fig): открытие по клику, см. custom.js */
.rst-content figure img.fig-lightbox-enabled {
  cursor: zoom-in;
}

.fig-lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.8);
  cursor: zoom-out;
}

.fig-lightbox[hidden] {
  display: none;
}

.fig-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  cursor: default;
}

.fig-lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  color: #333333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.fig-lightbox-close:hover,
.fig-lightbox-close:focus {
  background: #ffffff;
}

body.fig-lightbox-open {
  overflow: hidden;
}
  .fast {
    image-rendering: optimizeQuality !important;
  }
