.gallery {
    position: relative;
    padding: 5px;
}

.kucuk-resim-listesi {
    display: flex;
    overflow-x: auto;
}

.kucuk-resim-listesi li {
    margin: 0 5px 0 0
}

.kucuk-resim {
    max-width: 150px;
    height: 100px;
    margin-right: 10px;
    cursor: pointer;
    object-fit: contain;
}


.buyuk-resim {
    max-width: 100%;
    height: auto;
    display: none;
}

/* CSS stilleri aynı kalabilir */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    overflow: auto;
}

.modal .modal-icerik {
    top: 200px;
}


.modal-icerik {
    display: inline-block;
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 1em auto;
}

/* Sağ buton stilini özelleştir */
.sag-buton {
    left: 15px;
    background-color: #007bff;
    /* Arka plan rengini değiştirin */
    color: white;
    /* Metin rengini değiştirin */
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 5px;
    /* Kenar yuvarlatma ekleyin */
}

/* Sol buton stilini özelleştir */
.sol-buton {
    right: 15px;
    background-color: #007bff;
    /* Arka plan rengini değiştirin */
    color: white;
    /* Metin rengini değiştirin */
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 5px;
    /* Kenar yuvarlatma ekleyin */
}


@media (max-width: 768px) {
    .modal {
        width: 100%;
        /* Modal penceresinin genişliğini ayarlayın */
        height: auto;
        /* Yüksekliği otomatik olarak ayarlayın */
        padding: 200px 0 0 0;
    }

    .modal-icerik {
        max-width: 100%;
        /* İçerik genişliğini ayarlayın */
        max-height: 80vh;
        /* İçerik yüksekliğini sınırlayın */
    }

    .modal .modal-icerik {
        top: 0px;
    }

    .sag-buton {
        left: 15px;
        background-color: #007bff;
        /* Arka plan rengini değiştirin */
        color: white;
        /* Metin rengini değiştirin */
        border: none;
        padding: 5px 5px;
        cursor: pointer;
        font-size: 12px;
        position: absolute;
        top: 80%;
        transform: translateY(-50%);
        z-index: 1;
        border-radius: 5px;
        /* Kenar yuvarlatma ekleyin */
    }

    /* Sol buton stilini özelleştir */
    .sol-buton {
        right: 15px;
        background-color: #007bff;
        /* Arka plan rengini değiştirin */
        color: white;
        /* Metin rengini değiştirin */
        border: none;
        padding: 5px 5px;
        cursor: pointer;
        font-size: 12px;
        position: absolute;
        top: 80%;
        transform: translateY(-50%);
        z-index: 1;
        border-radius: 5px;
        /* Kenar yuvarlatma ekleyin */
    }

}

.kapat {
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* CSS stilleri aynı kalabilir */

.modal-icerik {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    cursor: pointer;
}

/* Yakınlaştırma için stil */
.modal-icerik.yakindirma {
    width: auto;
    height: auto;
}

/* İkonun stilini güncelle */
.ikon-container {
    position: absolute;
    background-color: #004395;
    padding: 10px;
    color: white;
    font-weight: bold;
    top: 15px;
    /* İkonun yüksekliğini ayarlayın */
    left: 15px;
    /* İkonun sağ köşede olmasını sağlayın */
    z-index: 2;
    /* İkonun diğer öğelerin üzerinde görünmesini sağlayın */
}