.b5sg-no-scroll {
  overflow: hidden;
}

.b5sg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: none;
}

.b5sg-lightbox.b5sg-lightbox--open {
  display: block;
}

.b5sg-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.b5sg-lightbox-dialog {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}
.b5sg-lightbox.b5sg-lightbox--open .b5sg-lightbox-dialog {
  opacity: 1;
  transform: scale(1);
}

.b5sg-lightbox-topbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  text-align: center;
  z-index: 1100;
}

.b5sg-lightbox-counter {
  white-space: nowrap;
}

.b5sg-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1100;
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
}

.b5sg-lightbox-close img,
.b5sg-lightbox-close svg {
  width: 55%;
  height: 55%;
  transition: transform 0.15s ease-out;
  pointer-events: none;
}
.b5sg-lightbox-close:hover img,
.b5sg-lightbox-close:hover svg {
  transform: scale(1.23);
}

.b5sg-lightbox-pdf-toolbar {
  position: fixed;
  top: 1rem;
  right: 4.5rem;
  display: none;
  gap: 0.6rem;
  z-index: 1100;
}
.b5sg-lightbox-pdf-btn {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}
.b5sg-lightbox-pdf-btn img {
  fill: #ffffff;
  width: 65%;
  height: 65%;
  pointer-events: none;
  transition: transform 0.15s ease-out;
}
.b5sg-lightbox-pdf-btn:hover img {
  transform: scale(1.18);
}
.b5sg-lightbox-pdf-btn.b5sg-disabled {
  opacity: 0.25;
  pointer-events: none;
}

.b5sg-lightbox-inner {
  position: relative;
  max-width: 100%;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b5sg-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.b5sg-lightbox-inner img.b5sg-visible {
  opacity: 1;
}

.b5sg-lightbox-caption {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 0.6rem 0.9rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 0.75rem;
  font-size: 1rem;
  text-align: center;
  display: none;
  z-index: 1100;
}
.b5sg-lightbox-caption--visible {
  display: block;
}
.b5sg-lightbox-caption-text {
  margin: 0;
}

.b5sg-lightbox-prev,
.b5sg-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}
.b5sg-lightbox-prev {
  left: 1rem;
}
.b5sg-lightbox-next {
  right: 1rem;
}

.b5sg-lightbox-prev.b5sg-disabled,
.b5sg-lightbox-next.b5sg-disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

.b5sg-gallery {
  margin-bottom: 1rem;
}
.b5sg-gallery .col {
  margin-bottom: 0.5rem;
}

.b5sg-gallery .b5sg-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #9b9b9b;
  box-shadow: 0 0 12px 0px #b3b3b3;
}
.b5sg-gallery .b5sg-figure:hover {
  box-shadow: 0 0 12px 0px #7a7a7a;
}

.b5sg-gallery .b5sg-figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

.b5sg-gallery .b5sg-figure img.b5sg-vert {
  height: 100%;
  width: auto;
}

.b5sg-gallery .b5sg-figure img.b5sg-horiz {
  width: 100%;
  height: auto;
}

.b5sg-gallery .b5sg-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.35rem 0.55rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.85rem;
  text-align: left;
  z-index: 4;
}

.b5sg-gallery .b5sg-item {
  text-decoration: none;
  color: inherit;
}

.b5sg-gallery .b5sg-figure::before,
.b5sg-gallery .b5sg-figure::after {
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.b5sg-gallery .b5sg-figure::before {
  content: "";
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 5;
}

.b5sg-gallery .b5sg-figure::after {
  content: "";
  width: 3rem;
  height: 3rem;
  background-image: url("../img/zoom-plus.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
}

.b5sg-gallery .b5sg-item:hover .b5sg-figure::before,
.b5sg-gallery .b5sg-item:hover .b5sg-figure::after {
  opacity: 1;
}

.b5sg-gallery .b5sg-item,
.b5sg-gallery .b5sg-figure,
.b5sg-gallery .b5sg-figure img,
.b5sg-lightbox-inner img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  -webkit-user-drag: none;
}
.b5sg-lightbox-prev,
.b5sg-lightbox-next,
.b5sg-lightbox-close,
.b5sg-lightbox-pdf-btn {
  outline: none;
}

@media (max-width: 791.98px) {
  .b5sg-lightbox-pdf-toolbar {
    top: 4.2rem;
    right: 1rem;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
  }
  .b5sg-lightbox-pdf-btn[data-b5sg-pdf-action="print"] {
    display: none;
  }
}