/* =====================================================================
   Lightbox: slayt resmine tıklayınca büyük sürüm (en fazla 1920px)
   yüklenir ve tam ekran gösterilir. Büyük resim SADECE tıklanınca
   indirilir, sayfanın açılışını yavaşlatmaz.
   ===================================================================== */

.lb-arka {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    background: rgba(12, 16, 18, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lb-arka.lb-acik {
    opacity: 1;
    visibility: visible;
}

.lb-arka img {
    max-width: 94vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 70px rgba(0, 0, 0, 0.65);
    -webkit-tap-highlight-color: transparent;
}

/* Yükleme göstergesi (büyük resim indirilirken) */
.lb-arka.lb-yukleniyor::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lb-don 0.8s linear infinite;
}

@keyframes lb-don {
    to { transform: rotate(360deg); }
}

/* Butonlar */
.lb-kapat,
.lb-onceki,
.lb-sonraki {
    position: absolute;
    background: rgba(20, 25, 28, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 21px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.15s ease, transform 0.15s ease;
    padding: 0;
}

.lb-kapat:hover,
.lb-onceki:hover,
.lb-sonraki:hover {
    background: rgba(63, 162, 56, 0.85);
    transform: scale(1.06);
}

.lb-kapat {
    top: 16px;
    right: 16px;
}

.lb-onceki {
    left: 14px;
    top: 50%;
    margin-top: -23px;
}

.lb-sonraki {
    right: 14px;
    top: 50%;
    margin-top: -23px;
}

/* Sıra göstergesi / başlık */
.lb-baslik {
    position: absolute;
    bottom: 14px;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Inter", sans-serif;
    font-size: 0.95em;
    letter-spacing: 0.04em;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 700px) {
    .lb-onceki,
    .lb-sonraki {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-top: -20px;
    }

    .lb-kapat {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }
}
