html.ib-lightbox-open {
  overflow: hidden;
}

[data-ib-lightbox] [data-ib-lightbox-item] {
  display: block;
  cursor: zoom-in;
}

.ib-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  overflow: hidden;
}
.ib-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}
.ib-lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 3.5rem 4rem 3rem;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .ib-lightbox__stage {
    padding: 3.5rem 0.5rem 3rem;
  }
}
.ib-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
}
.ib-lightbox__caption {
  max-width: 60rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  color: #fff;
}
.ib-lightbox__counter {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 2.75rem;
  color: #fff;
}
.ib-lightbox__button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.ib-lightbox__button:hover {
  background: rgba(0, 0, 0, 0.85);
}
.ib-lightbox__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.ib-lightbox__close {
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
}
.ib-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}
.ib-lightbox__nav--prev {
  left: 0.75rem;
}
.ib-lightbox__nav--next {
  right: 0.75rem;
}
.ib-lightbox [hidden] {
  display: none !important;
}
