.sbm-lightbox-img {
  cursor: zoom-in;
}

.sbm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(4px);
}

.sbm-lightbox[hidden] {
  display: none !important;
}

.sbm-lightbox__figure {
  margin: 0;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.sbm-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.sbm-lightbox__caption {
  margin: 0;
  max-width: 60ch;
  text-align: center;
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.sbm-lightbox__btn {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.sbm-lightbox__btn:hover,
.sbm-lightbox__btn:focus-visible {
  background: rgba(247, 198, 0, 0.85);
  color: #1e293b;
  outline: none;
}

.sbm-lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.75rem;
  line-height: 1;
}

.sbm-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.sbm-lightbox__nav--prev {
  left: clamp(0.5rem, 2vw, 1.25rem);
}

.sbm-lightbox__nav--next {
  right: clamp(0.5rem, 2vw, 1.25rem);
}

.sbm-lightbox__nav[hidden],
.sbm-lightbox__caption:empty {
  display: none !important;
}

body.sbm-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .sbm-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .sbm-lightbox__img {
    max-height: calc(88vh - 2.5rem);
  }
}
