.gallery-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

/* --- YENİ SLIDER YAPISI --- */
.gallery-slider-container {
    position: relative;
    width: 100%;
    margin-top: 40px;
    display: flex;
    align-items: center;
}

.gallery-track {
    display: flex;
    gap: 25px;
    overflow-x: auto; /* Mobilde kaydırma */
    scroll-behavior: smooth;
    padding: 10px 5px 20px 5px; /* Gölge kesilmesin diye */
    width: 100%;
    
    /* Scrollbar'ı gizle */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Chrome, Safari ve Opera için scrollbar gizleme */
.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto; /* Küçülmesin, yan yana dursun */
    width: 350px;   /* Sabit Genişlik */
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding: 10px; 
    border: 1px solid #eee;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Resim Kapsayıcı */
.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Efekti */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 50, 56, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.hover-content {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.hover-content i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    display: block;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.gallery-item:hover .hover-overlay { opacity: 1; }
.gallery-item:hover .hover-content { transform: translateY(0); }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
    padding: 15px 5px 5px 5px;
    text-align: center;
}

.gallery-caption h3 { font-size: 1.1rem; color: var(--primary-dark); font-weight: 700; margin-bottom: 5px; }
.gallery-caption p { font-size: 0.9rem; color: #777; }


/* --- ANA GALERİ NAVİGASYON OKLARI --- */
.slider-nav-btn {
    background: #fff;
    border: 1px solid #eee;
    color: var(--primary-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex; /* Masaüstünde görünür */
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: absolute; /* Slider üzerine bindir */
}

.slider-nav-btn:hover {
    background: var(--primary-gold);
    color: #fff;
    transform: scale(1.1);
}

.slider-nav-btn.prev-btn { left: -60px; } /* Dışarı taşı */
.slider-nav-btn.next-btn { right: -60px; }

/* --- LIGHTBOX (MODAL) --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Biraz daha koyu arka plan */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.lightbox-modal.active { opacity: 1; visibility: visible; }

.lightbox-content {
    background-color: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.lightbox-modal.active .lightbox-content { transform: scale(1); }

/* Lightbox Kapatma Butonu */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover { background: var(--primary-dark); color: #fff; transform: rotate(90deg); }

/* LIGHTBOX NAVİGASYON OKLARI (YENİ) */
.lightbox-nav-btn {
    position: fixed; /* Ekrana sabitle */
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001; /* Modaldan üstte */
}

.lightbox-nav-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.lb-prev { left: 30px; }
.lightbox-nav-btn.lb-next { right: 30px; }


/* Lightbox İçerik Yapısı */
.lightbox-body {
    display: flex;
    flex-direction: column; 
}

@media (min-width: 769px) {
    .lightbox-body { flex-direction: row; height: 500px; }
}

.lightbox-image-container {
    flex: 3;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image-container img { width: 100%; height: 100%; object-fit: cover; }

.lightbox-details {
    flex: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.lightbox-details h3 { font-size: 1.8rem; color: var(--primary-dark); font-weight: 800; margin-bottom: 15px; line-height: 1.2; }
.lightbox-divider { width: 60px; height: 4px; background-color: var(--primary-gold); margin-bottom: 20px; border-radius: 2px; }
.lightbox-details p { font-size: 1rem; color: #555; line-height: 1.6; margin-bottom: 30px; flex-grow: 1; }
.lightbox-btn { text-align: center; width: fit-content; }

/* MOBİL AYARLAR */
@media (max-width: 992px) {
    .slider-nav-btn { display: none; } /* Ana Galeri okları mobilde gizle */
    .gallery-item { width: 280px; } 
}

@media (max-width: 768px) {
    .lightbox-image-container { height: 250px; }
    .lightbox-details { padding: 30px 20px; text-align: center; }
    .lightbox-details h3 { font-size: 1.5rem; }
    .lightbox-divider { margin: 0 auto 20px auto; }
    .lightbox-btn { width: 100%; }
    
    /* LIGHTBOX OKLARI - MOBİL ÖZEL AYAR (SİYAH OK) */
    .lightbox-nav-btn { 
        width: 40px; 
        height: 40px; 
        font-size: 1rem;
        
        /* Renk Değişimleri */
        background-color: #fff;  /* Arkaplan Beyaz */
        color: #000;             /* Ok Rengi Siyah */
        border: 1px solid #fff;  /* Kenarlık Beyaz */
        opacity: 0.9;            /* Çok hafif şeffaflık */
        box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Belirgin olsun diye gölge */
    }

    /* Konumlandırma */
    .lightbox-nav-btn.lb-prev { left: 10px; }
    .lightbox-nav-btn.lb-next { right: 10px; }
}