:root{
  --lb-max-w: 1200px;
  --lb-padding: 24px;
}

/* Sayfa içi görseller (thumbnail) */
.page-wrap img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  cursor: zoom-in;
}

/* Overlay */
.vt-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.88);
  display: none;             /* .open olduğunda görünür */
  align-items: center;
  justify-content: center;
  padding: var(--lb-padding);
  overflow: auto;            /* klavye ile yukarı/aşağı kayabilsin */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.vt-lightbox.open{ display: flex; }

/* İç sahne */
.vt-lb-stage{
  position: relative;
  width: min(var(--lb-max-w), 96vw);
  margin: auto;
}

/* Büyük görsel */
.vt-lb-img{
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 120px); /* üst/alt boşluklara pay */
  object-fit: contain;
  background: #000;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,.45);
}

/* Alt yazı */
.vt-lb-cap{
  color: #ddd;
  text-align: center;
  margin-top: 10px;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  word-break: break-word;
}

/* Gezinme düğmeleri – her zaman görünür */
.vt-lb-btn{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.45);
  cursor: pointer;
  line-height: 48px;
  font-size: 20px;
  user-select: none;
}
.vt-lb-btn:hover{ background: rgba(0,0,0,.65); }
.vt-lb-prev{ left: 16px; }
.vt-lb-next{ right: 16px; }

/* Kapat düğmesi */
.vt-lb-close{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.55);
  cursor: pointer;
  font-size: 22px;
  line-height: 40px;
}
.vt-lb-close:hover{ background: rgba(0,0,0,.75); }

/* Sayaç (opsiyonel) */
.vt-lb-count{
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font: 13px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  border-radius: 999px;
  pointer-events: none;
}

/* Mobil dokunuşları */
@media (max-width:640px){
  .vt-lb-btn{ width:44px; height:44px; line-height:44px; }
  .vt-lb-prev{ left: 8px; }
  .vt-lb-next{ right: 8px; }
}
