#ulightboxOverlay {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}

#ulightboxModal {
  background: #f4f4f6;
  border: 2px solid #444;
  padding: 0;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  overflow: hidden; /* скрываем скролл у внешней рамки */
}

.scroll-container {
  padding: 15px;
  max-height: calc(100vh - 100px);
  overflow: auto;
  border-radius: 10px;
}

/* Кастомный скроллбар: WebKit */
.scroll-container::-webkit-scrollbar {
  width: 8px;
}
.scroll-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 8px;
}
.scroll-container::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 8px;
}

/* Кастомный скроллбар: IE / Edge legacy */
.scroll-container {
  -ms-overflow-style: auto;
  scrollbar-face-color: #888;
  scrollbar-track-color: #e0e0e0;
  scrollbar-shadow-color: #666;
  scrollbar-highlight-color: #aaa;
  scrollbar-3dlight-color: #ccc;
  scrollbar-darkshadow-color: #444;
}

/* Firefox частичная стилизация */
@supports (scrollbar-width: thin) {
  .scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #888 #e0e0e0;
  }
}

#ulightboxImage {
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 4px;
}

#ulightboxClose {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}



