/* ==========================================================
   Inline image lightbox — overlay styles shared by all drawers.
   Activated by img-lightbox.js whenever a [data-lightbox-src]
   trigger is clicked.
   ========================================================== */

.tj-lightbox[hidden] { display: none; }
.tj-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 26, 46, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 32px 32px;
  cursor: zoom-out;
  animation: tjLightboxFade .18s ease-out;
}
@keyframes tjLightboxFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.tj-lightbox-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  cursor: zoom-out;
}
.tj-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  cursor: default;
  background: #fff;
}
.tj-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}
.tj-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
}
body.tj-lightbox-open { overflow: hidden; }

@media (max-width: 720px) {
  .tj-lightbox { padding: 48px 14px 14px; }
}
