/* Kankacım, Galeri Sayfası - MAVİ & TURUNCU KONSEPT */

/* --- SAYFA BAŞLIĞI --- */
.page-header {
    background-color: #111;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../uploads/genelicerik/galeri.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: white;
    margin-bottom: 80px;
    background-attachment: fixed;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.breadcrumb {
    font-size: 1.1rem;
    color: #ddd;
    background-color: rgba(0,0,0,0.6);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.breadcrumb a {
    /* Linkler TURUNCU (#e68f23) */
    color: #e68f23;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb span {
    margin: 0 10px;
    color: #fff;
}

/* --- GALERİ ALANI --- */
.gallery-page-section {
    padding-bottom: 100px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.gallery-intro h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    font-weight: 800;
    margin-bottom: 20px;
}

.gallery-intro p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Grid Yapısı (Eşit Kutular) */
.gallery-grid {
    display: grid;
    /* Masaüstünde yan yana sığabildiği kadar (min 350px) */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Galeri Kartı */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background-color: #fff;
    border: 1px solid #eee;
    
    /* SABİT ORAN: 4:3 (Klasik Fotoğraf Oranı) */
    aspect-ratio: 4 / 3; 
    
    /* Animasyon Başlangıcı */
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.4s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(49, 125, 168, 0.2); /* Mavi gölge */
    border-color: #317da8; /* Mavi border */
}

/* KANKACIM İŞTE O TASARIMSAL DOKUNUŞ: Sağ Köşe Dekoru */
.gallery-item::before {
    content: '\f00e'; /* FontAwesome Büyüteç/Plus ikonu kodu */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    /* İkon arka planı MAVİ (#317da8) */
    background-color: #317da8;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    font-size: 16px;
    opacity: 0; /* Başlangıçta gizli */
    transform: scale(0) rotate(-45deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Sağ Üst Köşe Mavi Üçgen (Her zaman görünen) */
.gallery-item::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 80px;
    height: 80px;
    /* Köşe üçgeni MAVİ (#317da8) */
    background-color: #317da8;
    transform: rotate(45deg);
    z-index: 9;
    transition: all 0.4s ease;
    opacity: 0.8;
}

/* Hover Durumları */
.gallery-item:hover::before {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.gallery-item:hover::after {
    /* Hover olunca koyu mavi */
    background-color: #256286;
    transform: rotate(45deg) scale(1.5); /* Köşe büyüsün */
}

/* Resim */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya doldur, taşanı kes */
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.15); /* Resim daha çok yaklaşsın */
}

/* Overlay (Hafif karartma) */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Maviye çalan siyah gradient */
    background: linear-gradient(to bottom, transparent 0%, rgba(37, 98, 134, 0.6) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 5;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- LIGHTBOX (TAM EKRAN) --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 5px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

/* Kapat Butonu */
.lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.lb-close:hover {
    /* Kapat butonu TURUNCU (#e68f23) */
    color: #e68f23;
}

/* Yön Okları */
.lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background-color: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: 0.3s;
}

.lb-prev:hover, .lb-next:hover {
    /* Yön okları MAVİ (#317da8) */
    background-color: #317da8;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .lb-prev, .lb-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
        background-color: rgba(0,0,0,0.5);
    }
    
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }
}