/* Genel Kapsayıcı */
.seri-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

/* Sekme Başlıkları Stili */
.tab-links {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ccc;
}

.tab-btn {
    background-color: transparent;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    transition: color 0.3s, border-bottom 0.3s;
}

.tab-btn:hover {
    color: #007bff; /* Mavi tonu */
}

/* Aktif Sekme Stili */
.tab-btn.active {
    color: #007bff;
    border-bottom: 3px solid #007bff;
}

/* Sekme İçerik Alanı */
.tab-content {
    display: none; /* Varsayılan olarak tüm içerikler gizli */
    padding: 20px 0;
    text-align: left;
}

/* Aktif İçeriği Görünür Yap */
.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: #333;
    margin-bottom: 5px;
    text-align: center;
}
.tab-content p {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

/* FOTOĞRAF IZGARASI (Responsive) */
.photo-grid {
    display: grid;
    /* Masaüstü: 3 eşit sütun */
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}

/* Tablet Görünümü: 2 sütun */
@media (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil Görünümü: 1 sütun */
@media (max-width: 600px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

/* FOTOĞRAF KARTI */
.photo-item {
    overflow: hidden; 
    border-radius: 8px; /* Kart köşeleri yuvarlatıldı */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    
    /* Gerekli Flexbox tanımı */
    display: flex; 
    flex-direction: column; 
    text-align: center;
}

/* RESİM STİLİ - ORAN KORUMA */
.photo-item img {
    display: block;
    width: 100%;
    /* Flexbox içinde resmin üst alanı doldurmasını sağlar */
    flex-grow: 1;
    /* Resmin kendi oranlarını koruyarak sığmasını sağlar */
    object-fit: contain; 
    /* Yüksekliği otomatik bırakarak esnemesini engeller */
    height: auto; 
    
    /* İstenmeyen eski stiller kaldırıldı */
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}


/* KARTIN TAMAMI HOVER EFEKTİ */
.photo-item:hover {
    transform: scale(1.03); /* Kartı %3 oranında büyüt (dışa doğru büyüme) */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Hafiften gölge ekle */
    z-index: 10; 
}

/* RESİM ALT BAŞLIĞI STİLİ - KARTIN EN ALTINA YAPIŞIK */
.photo-title {
    /* Başlık, kartın alt kenarlığına tam olarak yapışır. */
    display: block; 
    padding: 10px 5px; 
    background-color: #ffffff; 
    color: #333; 
    font-size: 14px;
    font-weight: 600;
    border-top: 1px solid #eee; 
    text-align: center; 
    
    /* Köşeleri sadece altta yuvarlatır */
    border-bottom-left-radius: 8px; 
    border-bottom-right-radius: 8px;
    
    /* Flexbox içinde alt alana sabit kalmasını sağlar (Gerekli değil ama koruyucudur) */
    flex-shrink: 0;
}


/* POP-UP (MODAL) STİLLERİ */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; /* Çok yüksek bir değer */
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
}

/* Başlık stili güncellendi/eklendi */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 600px;
    text-align: center;
    color: #f1f1f1; /* Açık renkli başlık */
    padding: 15px 0 25px 0; /* Üstten ve alttan boşluk */
    font-size: 1.8rem; /* Daha büyük font */
    font-weight: 700; /* Kalın font */
    line-height: 1.2;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 600px; /* Daha küçük maksimum genişlik */
    max-height: 70vh; /* Ekran yüksekliğinin %70'ini aşmasın (başlığa yer bırakmak için düşürdük) */
    object-fit: contain; /* Resmi oranlı olarak sığdır */
    animation-name: zoom;
    animation-duration: 0.6s;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
}

/* Animasyon */
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/*WhatsApp*/

.whatsapp-float {
    position: fixed; /* Ekrana sabitler */
    width: 60px;
    height: 60px;
    bottom: 40px; /* Alttan boşluk */
    right: 40px; /* Sağdan boşluk */
    background-color: #25d366; /* WhatsApp yeşili */
    color: #FFF;
    border-radius: 50px; /* Yuvarlak yapar */
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000; /* Diğer her şeyin üstünde görünmesini sağlar */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e; /* Daha koyu yeşil */
    transform: scale(1.1);
}

/* Küçük ekranlarda boyutunu küçültme (Opsiyonel) */
@media (max-width: 600px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}