/* Overlay (mit Fade) */
.tkk-lb {
  position: fixed;
  inset: 0;
  z-index: 999999;

  /* statt display:none -> opacity/visibility für Transition */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  background: rgba(0, 0, 0, 0.86);
  transition: opacity 300ms ease, visibility 0ms linear 180ms;
}



/* sichtbar */
.tkk-lb.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 300ms ease;
}


/* Bildbereich */
.tkk-lb__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.tkk-lb__img {
  max-width: min(1200px, 94vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  background: #111;
}

/* Close + Navigation */
.tkk-lb__close,
.tkk-lb__prev,
.tkk-lb__next {
  position: absolute;
  top: 16px;
  border: 0;
  background: rgba(255,255,255,0.10);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: background .15s ease;
}

.tkk-lb__close:hover,
.tkk-lb__prev:hover,
.tkk-lb__next:hover {
  background: rgba(255,255,255,0.18);
}

.tkk-lb__close { right: 16px; }
.tkk-lb__prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.tkk-lb__next  { right: 16px; top: 50%; transform: translateY(-50%); }

.tkk-lb__counter {
  position: absolute;
  left: 16px;
  top: 16px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
}


/* Klickbares Verhalten signalisieren */
.wp-block-gallery img,
.wp-block-image img {
  cursor: pointer;
}



/* Mobile: Buttons etwas größer */
@media (max-width: 640px) {
  .tkk-lb__prev, .tkk-lb__next {
    padding: 14px 14px;
  }
}
