/* Image pop-up (lightbox). Works with js/lightbox.js. Uses colors from styles.css. */
.lb-trigger { cursor: zoom-in; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 7, 9, 0.9);
  color: var(--text);
}
.lb::backdrop { background: transparent; }
.lb[open] { display: flex; align-items: center; justify-content: center; }

.lb-frame {
  margin: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 72px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-frame img.lb-media {
  display: block;
  max-width: min(1400px, 100%);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.lb-frame svg.lb-media {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.lb-close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 14px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lb-close:hover { border-color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .lb[open] { animation: lb-fade 0.15s ease-out; }
  @keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 700px) {
  .lb-frame { padding: 68px 10px 16px; }
}
