.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 */
}

/* İlan detay — Swiper + GLightbox galeri */
.ilan-gallery-wrap {
    margin-bottom: 1rem;
}

.ilan-gallery-modern .ikon-container {
    z-index: 6;
}

.ilan-gallery-main {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
}

.ilan-gallery-main .swiper-slide a {
    display: block;
    outline: none;
}

.ilan-gallery-main-img {
    width: 100%;
    max-height: min(70vh, 560px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    background: #111;
}

.ilan-gallery-nav.swiper-button-prev,
.ilan-gallery-nav.swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 8;
}

.ilan-gallery-nav.swiper-button-prev:after,
.ilan-gallery-nav.swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

.ilan-gallery-nav.swiper-button-prev:hover,
.ilan-gallery-nav.swiper-button-next:hover {
    background: rgba(0, 67, 149, 0.85);
}

.ilan-gallery-thumbs {
    padding: 4px 0 8px;
}

.ilan-gallery-thumbs .swiper-slide {
    width: auto;
    flex-shrink: 0;
    opacity: 0.55;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.ilan-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #004395;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ilan-gallery-thumb-img {
    height: 72px;
    width: auto;
    max-width: 110px;
    object-fit: cover;
    display: block;
}

@media (max-width: 576px) {
    .ilan-gallery-thumb-img {
        height: 56px;
        max-width: 80px;
    }

    .ilan-gallery-nav.swiper-button-prev,
    .ilan-gallery-nav.swiper-button-next {
        width: 36px;
        height: 36px;
    }
}