/* Temel Stiller */
:root {
    --primary-color: #007bff; /* Mavi aksan */
    --text-color: #333;
    --bg-color: #f8f9fa;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}



.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Galeri Bölümü */
.gallery-section {
    text-align: center;
    padding: 40px 0;
}

.gallery-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gallery-section p {
    color: #777;
    margin-bottom: 30px;
}

/* Filtre Düğmeleri */
.filter-buttons {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    background: #ff0000;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover, .btn.active {
    background: var(--primary-color);
    color: #ff0000;
    border-color: var(--primary-color);
}

/* Responsive Galeri Izgarası (CSS Grid) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive */
    gap: 20px;
}

/* Masaüstü için varsayılan 4 sütun */
@media (minmax-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet için 2 sütun */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil için 1 sütun */
@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Galeri Öğesi ve Hover Efekti */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Sabit yükseklik, orantıyı korur */
    object-fit: cover; /* Resmi sığdırır */
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1); /* Hafif büyüme */
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.overlay i {
    font-size: 1.5rem;
}

/* Lightbox (Büyük Resim) */
/* --- Lightbox (Büyük Resim) Bölümü - GÜNCEL --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Başlangıçta gizlidir */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* JavaScript resmi açtığında bu sınıf devreye girer */
.lightbox.active {
    display: flex; 
}

.lightbox-content {
    position: relative;
    max-width: 70%; /* Genişlik sınırı */
    text-align: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 75vh; /* Yükseklik sınırı - Ekrana sığdırır */
    border: 5px solid #fff;
    border-radius: 5px;
    object-fit: contain;
}

#lightbox-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
}

/* Mobil Menü */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Mobilde varsayılan gizli */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    nav ul.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}








/* --- Lightbox Sağ-Sol Ok Butonları --- */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 15px;
    z-index: 3000;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.lightbox-btn:hover {
    background: var(--primary-color);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* Mobil Cihazlar İçin Responsive Ayarı */
@media (max-width: 768px) {
    .lightbox-btn {
        font-size: 1.5rem;
        padding: 10px 14px;
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

.prev-btn i, .next-btn i {
    pointer-events: none;
}


/* OKLARI ZORLA EN ÜSTE AL VE TIKLANABİLİR YAP */
.lightbox-btn {
    z-index: 99999 !important; 
    pointer-events: auto !important;
}
.lightbox-btn i {
    pointer-events: none !important; /* İkonun tıklamayı çalmasını engeller */
}


.lightbox-content {
    pointer-events: none;
}

.lightbox-btn,
.close-lightbox {
    pointer-events: auto;
}


