/* -------------------------------------------------------------------------
   Galeri Sayfası (galeri.php) Özel Stilleri
   ------------------------------------------------------------------------- */

/* Genel kapsayıcı */
main {
    padding-bottom: 50px; /* Footer öncesi boşluk */
}

/* Sayfa Başlığı / Hero Alanı Stilleri (Hizmetlerimiz sayfasıyla aynı yeşil-sarı tonlar) */
.page-hero {
    background-color: #f0fff0; /* Çok açık yeşil tonu */
    padding: 60px 0;
    text-align: center;
    border-bottom: 5px solid #28a745; /* Canlı yeşil çizgi */
    margin-bottom: 40px;
}

.page-hero h1 {
    font-size: 2.8rem;
    color: #28a745; /* Canlı yeşil metin */
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.2rem;
    color: #ffc107; /* Sarı tonu metin */
    margin: 0;
}

/* Galeri Izgara Yapısı */
.galeri-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.galeri-grid {
    display: grid;
    /* Masaüstünde 4 sütunlu düzen */
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; /* Resimler arası boşluk */
}

.galeri-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* 1:1 en-boy oranı için */
    padding-bottom: 100%; 
    height: 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.galeri-item:hover {
    transform: translateY(-5px);
}

.galeri-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi tam sığdır, gerekirse kırp */
    display: block;
    transition: transform 0.5s ease;
}

/* Hover Efekti ve Overlay */
.galeri-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Yarı şeffaf siyah */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeri-item:hover .overlay {
    opacity: 1;
}

.overlay i {
    color: #fff;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 992px altı tablet uyum: 3 sütun */
@media (max-width: 992px) {
    .galeri-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 768px altı mobil uyum: 2 sütun */
@media (max-width: 768px) {
    .page-hero {
        padding: 40px 0;
        margin-bottom: 30px;
    }
    .page-hero h1 {
        font-size: 2rem;
    }
    .page-hero p {
        font-size: 1rem;
    }
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
