.kartela-buton {
    width: 28%;
    height: 40px;
    margin-left: 100px;
    transition: background-color 0.8s, color 0.8s; /* Geçiş efekti */
    background-color: #e1251b;
    display: flex; /* Flexbox kullanarak içeriği hizalayalım */
    align-items: center; /* Dikey hizalama */
    justify-content: center; /* Yatay hizalama */
    text-decoration: none; /* Alt çizgiyi kaldır */
    color: white; /* Varsayılan metin rengi */
    border-radius: 6px;
}

.kartela-buton:hover {
    background-color: #004a98; /* Hover sırasında arka plan rengi */
    color: #ffffff; /* Hover sırasında metin rengi */
}

.kartela-buton a {
    text-decoration: none; /* Linkin altını çizmemek için */
    color: inherit; /* Ebeveyn rengini miras al */
    display: flex; /* Flexbox kullanarak içeriği hizalayalım */
    align-items: center; /* Dikey hizalama */
}

.kartela-buton a img {
    width: 20px; 
    height: auto;
    margin-right: 10px;
}

.kartela-buton a span {
    font-weight: bolder;
}
/* Ana galeri container'ı */
.gallery {
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto; /* Dikey kaydırma */
    max-height: auto; /* Maksimum yükseklik ayarı */
}

/* Her bir küçük resim container'ı */
.image-container {
    width: calc(25% - 20px); /* 4 resmi yanyana sığdırmak için */
    padding: 10px;
    
}

/* Küçük resim */
.thumbnail {
    width: 100%;
    height: 200px;
    cursor: pointer;
}

/* Overlay container */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Dikey kaydırma */
    z-index: 1000; /* Diğer içeriklerin üstünde olması için */
}

/* Büyük resim */
.popup {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 50%;
}

/* Altındaki küçük resimler container'ı */
.additional-images {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 10px; /* Alt kenara yakın */
    left: 50%; /* Orta hizaya getir */
    transform: translateX(-50%); /* Merkezden kaydır */
    top: 85%;
 
}

/* Altındaki küçük resim */
.additional-image {
    width: 150px;
    height: auto;
    margin: 5px;
    cursor: pointer;
 border: 5px solid rgb(0, 17, 255);
    
}

/* Popup kapatma düğmesi */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    font-size: 35px;
    z-index: 1001; /* Popup'ın üstünde olması için */
}
