#tc-lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(1rem);
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

#tc-lb-overlay.tc-lb-open {
  display: flex;
}

#tc-lb-overlay img {
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 1rem;
  transition: opacity 0.2s;
  user-select: none;
  -webkit-user-drag: none;
}

#tc-lb-overlay img.tc-lb-loading {
  opacity: 0.25;
}

#tc-lb-overlay button {
  position: absolute;
  border: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #ccc;
  cursor: pointer;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
}

#tc-lb-overlay button:hover,
#tc-lb-overlay button:focus-visible {
  color: #fff;
  outline: none;
}

#tc-lb-close {
  top: 1rem;
  right: 1rem;
}

#tc-lb-left {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

#tc-lb-right {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

#tc-lb-counter {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #eee;
  direction: ltr;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 5rem;
  -moz-font-feature-settings: "ss02";
  -webkit-font-feature-settings: "ss02";
  font-feature-settings: "ss02";
  font-size: 0.85rem;
}

#tc-lb-overlay.tc-lb-single #tc-lb-left,
#tc-lb-overlay.tc-lb-single #tc-lb-right,
#tc-lb-overlay.tc-lb-single #tc-lb-counter {
  display: none;
}

html.tc-lb-lock {
  overflow: hidden;
}

@media (max-width: 600px) {
  #tc-lb-overlay button {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}
