/* Gallery thumbnails: the plugin's JS used to scale each image to fill its
   square and center it. Same result in plain CSS. */
.bwg-standard-thumbnails .bwg-item2 img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
}

.klb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
}
.klb.klb-open { display: flex; }
.klb-fig {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.klb-img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.klb-cap {
  margin-top: 10px;
  color: #eee;
  font: 14px/1.4 "Open Sans", Arial, sans-serif;
  text-align: center;
}
.klb button {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 300 48px/1 Arial, sans-serif;
  padding: 8px 16px;
  opacity: 0.8;
}
.klb button:hover,
.klb button:focus { opacity: 1; }
.klb-close { top: 8px; right: 8px; }
.klb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.klb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.klb.klb-single .klb-prev,
.klb.klb-single .klb-next { display: none; }
