﻿/* === Galeri Özel Stilleri === */


.gallery-container {
    padding: 0 15px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    aspect-ratio: 4/5; /* Tüm fotoğrafların dikey ve eşit boyutta olması için */
    opacity: 0; /* jQuery animasyonu için */
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

/* Hover Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    color: #f8f5ee;
    font-size: 2rem;
    font-weight: 300;
}

/* === Lightbox (Büyük Fotoğraf) Stilleri === */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    z-index: 1000;
    display: none; /* jQuery ile açılacak */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    touch-action: none; /* Mobilde istemsiz ekran kaymasını/yakınlaşmasını önler */
}

    #lightbox img, .lightbox-clone {
        max-width: 85%;
        max-height: 90vh;
        border-radius: 4px;
        box-shadow: 0 0 30px rgba(0,0,0,0.8);
        user-select: none;
        -webkit-user-drag: none;
    }

.lightbox-clone {
    position: absolute;
    z-index: 999;
    pointer-events: none;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f8f5ee;
    font-size: 3rem;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    line-height: 1;
    transition: color 0.3s;
    z-index: 1001;
}

    .close-lightbox:hover {
        color: rgba(248, 245, 238, 0.6);
    }

/* Navigation (Önceki/Sonraki) Butonları */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f8f5ee;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s, transform 0.3s;
    font-family: 'Lato', sans-serif;
    z-index: 1001;
}

    .nav-btn:hover {
        color: rgba(248, 245, 238, 0.6);
        transform: translateY(-50%) scale(1.1);
    }

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Responsive Ayarlar */
@media (min-width: 768px) {
    .menu-toggle {
        top: 40px;
        right: 40px;
        width: 38px;
        height: 26px;
    }

    .menu-links a {
        font-size: 2.5rem;
    }

    

    

    .nav-btn {
        font-size: 4rem;
    }

    .prev-btn {
        left: 40px;
    }

    .next-btn {
        right: 40px;
    }
}

@media (max-width: 576px) {
    /* Mobilde butonları biraz daha gizle/küçült, çünkü artık kaydırma (swipe) kullanılacak */
    .nav-btn {
        font-size: 2rem;
        padding: 10px;
        opacity: 0.7;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    #lightbox img, .lightbox-clone {
        max-width: 95%;
    }
}
