#global-lightbox {
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
}

.lb-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  display: block;
}

#lightbox-img:not([src=""]) {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  min-width: 300px;
  min-height: 300px;
  cursor: zoom-out;
}

#lightbox-img.loaded {
  background: none;
  animation: none;
}

#lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-family: inherit;
  font-size: 1rem;
  pointer-events: none;
  transition: opacity 0.2s;
}

#lightbox-img:not(.loaded) ~ #lightbox-caption {
  opacity: 0;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.lightbox-thumb { height: 200px; cursor: zoom-in; }