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

body {
    background-color: #242323; /* İstediğin koyu zemin */
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

a { text-decoration: none; }

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

/* HEADER (LOGO VE BUTON) */
.gallery-header {
    background-color: rgba(36, 35, 35, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-logo {
    height: 50px; /* Logo boyutu */
    width: auto;
    filter: brightness(0) invert(1); /* Logoyu beyaza çevirir (eğer siyahsa) */
}

/* Anasayfaya Dön Butonu */
.back-btn {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.back-btn:hover {
    background-color: #fff;
    color: #242323;
    border-color: #fff;
}

.back-btn .arrow {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 2px;
}

/* MAIN GALERİ ALANI */
.gallery-main {
    padding: 60px 0 100px;
    min-height: 80vh;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h1 {
    font-family: 'Teko', sans-serif;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #fff;
}

.section-title p {
    color: #aaa;
    font-size: 18px;
    font-weight: 300;
}

/* GRID YAPISI */
.gallery-grid {
    display: grid;
    /* Otomatik ve responsive kolonlar */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px;
}

/* Resim Kartları */
.img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Oranı korur */
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: #000;
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

/* Hover Efektleri */
.img-wrapper:hover img {
    transform: scale(1.1); /* Yaklaşma efekti */
    opacity: 0.6;
}

.img-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-wrapper:hover .overlay {
    opacity: 1;
}

.icon-zoom {
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    font-style: normal;
}

/* FOOTER */
.gallery-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

.footer-logo {
    font-family: 'Teko', sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #fff;
}

.copyright {
    color: #666;
    font-size: 14px;
}

/* --- MOBİL DÜZENLEMELER --- */
@media (max-width: 768px) {
    .section-title h1 {
        font-size: 36px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); /* Mobilde tek sütun */
    }
    .back-btn span {
        display: none; /* Mobilde sadece ok kalsın istenirse, şu an metin de var */
    }
}