/* =====================================================
   GALERİ LİGHTBOX - IZBEL
   Modern popup galeri slider için CSS stilleri
   ===================================================== */

/* Temel Galeri Grid */
.izbel-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.izbel-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.izbel-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.izbel-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.izbel-gallery-item:hover img {
    transform: scale(1.1);
}

.izbel-gallery-item::after {
    content: '\f00e';
    /* Font Awesome search-plus */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(30, 58, 95, 0.9);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.izbel-gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* =====================================================
   LIGHTBOX POPUP
   ===================================================== */
.izbel-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.izbel-lightbox.active {
    display: flex;
    opacity: 1;
}

/* Kapat Butonu */
.izbel-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.izbel-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Resim Container */
.izbel-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.izbel-lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.izbel-lightbox.active .izbel-lightbox-image {
    opacity: 1;
    transform: scale(1);
}

/* Navigasyon Okları */
.izbel-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.izbel-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.izbel-lightbox-prev {
    left: 20px;
}

.izbel-lightbox-next {
    right: 20px;
}

/* Sayaç */
.izbel-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
}

/* Thumbnail Strip */
.izbel-lightbox-thumbnails {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    max-width: 80%;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
}

.izbel-lightbox-thumbnails::-webkit-scrollbar {
    display: none;
}

.izbel-lightbox-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.izbel-lightbox-thumb:hover,
.izbel-lightbox-thumb.active {
    opacity: 1;
}

.izbel-lightbox-thumb.active {
    border-color: #D4AF37;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .izbel-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .izbel-lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .izbel-lightbox-prev {
        left: 10px;
    }

    .izbel-lightbox-next {
        right: 10px;
    }

    .izbel-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .izbel-lightbox-thumbnails {
        display: none;
    }
}

/* Swipe Gesture İpucu (Mobil) */
@media (max-width: 768px) {
    .izbel-lightbox-content::before {
        content: 'Kaydır →';
        position: absolute;
        bottom: -40px;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255, 255, 255, 0.5);
        font-size: 12px;
        animation: swipeHint 2s ease-in-out 3;
    }

    @keyframes swipeHint {

        0%,
        100% {
            opacity: 0.5;
            transform: translateX(-50%);
        }

        50% {
            opacity: 1;
            transform: translateX(-30%);
        }
    }
}

/* Yükleme Animasyonu */
.izbel-lightbox-loading {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: lbSpin 1s linear infinite;
}

@keyframes lbSpin {
    to {
        transform: rotate(360deg);
    }
}