/* ── Lightbox Overlay ────────────────────────────────── */
#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#lb-overlay.active { display: flex; }

#lb-box {
  position: relative;
  background: #fff;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: none;
}

/* Button bar */
#lb-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 12px 27px 4px 27px;
  background: #fff;
  flex-shrink: 0;
}

#lb-close, #lb-toggle {
  background: #f5f5f5;
  color: #111;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  padding: 0;
  height: 32px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#lb-close  { width: 32px; font-size: 1.1rem; font-family: Arial, sans-serif; padding-top: 1px; }
#lb-toggle { padding: 6px 8px 2px 8px; }
#lb-close:hover, #lb-toggle:hover { background: #e8e8e8; }

/* Image area */
#lb-img-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 12px 12px 12px;
}

#lb-img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: max-width 0.3s;
  border-radius: 10px;
}

/* Full-size mode: show at natural size, scroll vertically */
#lb-img.lb-full {
  max-width: none;
  width: auto;
}

/* Info bar */
#lb-info {
  padding: 0.5rem 1rem;
  background: #fff;
  color: #333;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

#lb-title { color: #111; font-size: 0.95rem; }

/* Map — sits below image in scroll area */
#lb-map {
  width: 100%;
  margin-top: 12px;
}

#lb-map iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
}
