/* Site-wide image lightbox */
#gc-lb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.92);
  padding: 24px;
  box-sizing: border-box;
}
#gc-lb.is-open { display: flex; }
#gc-lb__img-wrap {
  position: relative;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#gc-lb__img {
  max-width: 96vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  user-select: none;
  -webkit-user-drag: none;
}
#gc-lb__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.2rem;
  color: #eee;
  text-align: center;
  font: 13px/1.4 Verdana, Geneva, sans-serif;
  opacity: .9;
}
#gc-lb__counter {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #ddd;
  font: 13px/1 Verdana, Geneva, sans-serif;
  letter-spacing: .04em;
}
#gc-lb__close,
#gc-lb__prev,
#gc-lb__next {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
#gc-lb__close:hover,
#gc-lb__prev:hover,
#gc-lb__next:hover { background: rgba(255,255,255,.25); }
#gc-lb__close { top: 16px; right: 16px; font-size: 32px; }
#gc-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
#gc-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
#gc-lb__prev[hidden],
#gc-lb__next[hidden],
#gc-lb__counter[hidden] { display: none !important; }

@media (max-width: 700px) {
  #gc-lb__prev, #gc-lb__next { width: 40px; height: 40px; font-size: 22px; }
  #gc-lb { padding: 12px; }
}

/* hint that content images are clickable */
.entry-content a[rel^="lightbox"] img,
.entry-content a[href*="/wp-content/uploads/"] img,
.entry-content img.wp-image,
#content .entry-content img[class*="wp-image"] {
  cursor: zoom-in;
}
