/* Simple Gallery Lightbox styles */
#sgl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}
#sgl-overlay.sgl-open { display: flex; }
#sgl-overlay .sgl-inner {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#sgl-overlay img.sgl-media {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  border-radius: 6px;
}
#sgl-overlay .sgl-caption {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  text-align: center;
  color: #f2f2f2;
  font-size: 14px;
  line-height: 1.4;
  padding: 8px 16px;
  max-width: 92vw;
  margin: 0 auto;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
#sgl-overlay .sgl-close,
#sgl-overlay .sgl-prev,
#sgl-overlay .sgl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: background .2s ease;
}
#sgl-overlay .sgl-close { top: 24px; right: 24px; transform: none; }
#sgl-overlay .sgl-prev { left: 24px; }
#sgl-overlay .sgl-next { right: 24px; }
#sgl-overlay .sgl-btn-icon { font-size: 22px; color: #fff; line-height: 1; }
#sgl-overlay .sgl-close:hover,
#sgl-overlay .sgl-prev:hover,
#sgl-overlay .sgl-next:hover { background: rgba(255,255,255,0.18); }
@media (max-width: 640px) {
  #sgl-overlay img.sgl-media { max-height: 70vh; }
  #sgl-overlay .sgl-prev, #sgl-overlay .sgl-next { width: 40px; height: 40px; }
}
