/* Shared lightbox styles (used by county + feature pages) */

.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}
.lb-overlay.lb-open { display: flex; }

.lb-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: .2rem .5rem;
  opacity: .75;
  transition: opacity .15s;
  z-index: 2001;
}
.lb-close:hover { opacity: 1; }

.lb-img-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lb-img {
  max-width: min(85vw, 1100px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.lb-nav {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-nav[hidden] { visibility: hidden; pointer-events: none; }

.lb-caption {
  margin: .85rem 0 0;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  text-align: center;
  max-width: 80vw;
}
.lb-caption a { color: rgba(255,255,255,.95); text-decoration: underline; }
