body.psg-no-scroll { overflow: hidden !important; }

.psg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px 72px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.97);
}
.psg-lightbox.psg-open { display: flex; }
.psg-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
}
.psg-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}
.psg-close, .psg-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.psg-close {
  top: 12px;
  right: 20px;
  width: 48px;
  height: 48px;
  font-size: 42px;
  font-weight: 300;
}
.psg-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 72px;
  font-size: 36px;
  border-radius: 4px;
}
.psg-prev { left: 12px; }
.psg-next { right: 12px; }
.psg-close:hover, .psg-nav:hover { background: rgba(255, 255, 255, 0.15) !important; }
.psg-close:focus-visible, .psg-nav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.psg-counter {
  margin-top: 10px;
  color: #ddd;
  font: 14px/1.4 Arial, sans-serif;
  text-align: center;
}
.psg-lightbox [hidden] { display: none !important; }

@media (max-width: 600px) {
  .psg-lightbox { padding: 54px 8px 28px; }
  .psg-image { max-width: 100%; max-height: calc(100vh - 100px); }
  .psg-nav { width: 42px; height: 58px; font-size: 28px; background: rgba(0, 0, 0, 0.6) !important; }
  .psg-prev { left: 2px; }
  .psg-next { right: 2px; }
  .psg-close { top: 5px; right: 7px; width: 42px; height: 42px; font-size: 36px; }
}
