#custom-lightbox {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#custom-lightbox.active {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

#custom-lightbox .lb-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#custom-lightbox img {
  position: absolute;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  max-width: 90vw;
  max-height: 90vh;
  cursor: grab;
}

#custom-lightbox .lb-controls {
  position: fixed;
  top: 20px;
  right: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  z-index: 100000;
}

#custom-lightbox .lb-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  user-select: none;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

#custom-lightbox .lb-btn:hover {
  opacity: 1;
  background: none;
  color: #fff;
}

#custom-lightbox .lb-close {
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#custom-lightbox .lb-close:hover {
  opacity: 1;
}

@media (max-width: 980px) {
  #custom-lightbox .lb-controls {
    top: 70px;
    right: 20px;
  }
}

/* Понижаем z-index гамбургер-меню */
.t450__burger_container,
.t450__burger_bg {
    z-index: 100 !important;
}

/* Убираем перекрытие от Zero Block */
.t396__filter {
    pointer-events: none !important;
}

.t396__artboard {
    pointer-events: none !important;
}

/* Но оставляем кликабельными элементы внутри Zero Block */
.t396__elem {
    pointer-events: auto !important;
}

