/* CNPR Instagram lightbox — self-contained, no dependencies. */
.cnpr-ig-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(10, 15, 25, 0.88);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.cnpr-ig-lightbox.is-open {
  opacity: 1;
}

.cnpr-ig-lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}

.cnpr-ig-lightbox__caption {
  max-width: 92vw;
  margin: 0;
  color: #f4f7fb;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.cnpr-ig-lightbox__caption:empty {
  display: none;
}

.cnpr-ig-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cnpr-ig-lightbox__close:hover,
.cnpr-ig-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}

body.cnpr-ig-lightbox-open {
  overflow: hidden;
}
