.tlb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.tlb-overlay.tlb-open {
  display: flex;
  opacity: 1;
}
.tlb-image-wrap {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tlb-image {
  max-width: 95vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
}
.tlb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tlb-btn:hover, .tlb-btn:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  outline: none;
}
.tlb-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.tlb-prev { left: 12px; }
.tlb-next { right: 12px; }
.tlb-close {
  top: 16px;
  right: 16px;
  transform: none;
  width: 44px;
  height: 44px;
  font-size: 22px;
}
.tlb-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.tlb-caption {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  max-width: 80vw;
  text-align: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .tlb-btn { width: 44px; height: 44px; font-size: 24px; }
  .tlb-prev { left: 8px; }
  .tlb-next { right: 8px; }
  .tlb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .tlb-counter { bottom: 12px; font-size: 13px; }
  .tlb-caption { bottom: 48px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .tlb-overlay { transition: none; }
}
body.tlb-locked { overflow: hidden; }
