/* --- SAYFAYI ORTALAYAN VE SOLA YAPIŞMAYI ENGELLEYEN KOD (EKSİK OLAN KISIM) --- */
.container {
    width: 100%;
    max-width: 1200px; /* Sayfanın maksimum genişliği */
    margin: 0 auto;    /* Sayfayı tam ortaya hizalar */
    padding: 0 20px;   /* Mobilde kenarlara yapışmasını engeller */
}

/* GALERİ SAYFASI GENEL AYARLAR */
.galeri-sayfasi {
    background-color: #f8fafc;
    padding-bottom: 80px;
    min-height: 70vh;
}

/* Üst Başlık (Hero) Alanı */
.galeri-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.galeri-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.galeri-hero h1 span {
    color: #ef4444; 
}

.galeri-hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Kategori Başlıkları */
.galeri-kategori {
    margin-bottom: 70px;
}

.kategori-baslik-alani {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.kategori-baslik-alani i {
    font-size: 1.8rem;
    color: #ef4444;
}

.kategori-baslik-alani h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Grid Yapısı (Fotoğrafların Dizilimi - Orantısızlığı Çözen Kısım) */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Resim Kartları */
.galeri-kart {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.galeri-kart:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* --- BOŞ FOTOĞRAF ALANI (YERTUTUCU) TASARIMI --- */
.gorsel-yertutucu {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.galeri-kart:hover .gorsel-yertutucu {
    background: #e2e8f0;
    border-color: #ef4444;
    color: #ef4444;
}

.gorsel-yertutucu i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    transition: 0.3s;
}

.galeri-kart:hover .gorsel-yertutucu i {
    transform: scale(1.1);
}

.gorsel-yertutucu span {
    font-size: 0.95rem;
    font-weight: 600;
}

.galeri-kart img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.galeri-kart:hover img {
    transform: scale(1.08);
}
/* Yağ gibi kaydırma efekti */
html {
    scroll-behavior: smooth;
}

/* Üst menü (Header) başlığı ezmesin diye üstten pay bırakıyoruz */
#sivama, #ultrasonik {
    scroll-margin-top: 120px; 
}