/* Küçük resim ve overlay stil */
.image-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    cursor: pointer;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover .thumbnail {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 40px;
    color: white;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.text {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Modal stil */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Kapatma çarpısını en üste getir */
}

.close:hover {
    color: #ccc;
    background-color: rgba(0, 0, 0, 0.8);
}
.modal-content-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Modal'ın tam yüksekliğini kullan */
    padding: 20px; /* Modal kenarlarına boşluk ekle */
}


.modal-content {
    display: block;
    max-width: 90%; /* Ekran genişliğinin %90'ı kadar büyüyebilir */
    max-height: 90vh; /* Ekran yüksekliğinin %90'ı kadar büyüyebilir */
    width: auto; /* Resmin oranlarını koru */
    height: auto; /* Resmin oranlarını koru */
    border-radius: 10px;
    object-fit: contain; /* Resmin oranlarını koruyarak sığdır */
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    transition: background-color 0.3s ease;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.modal-text {
    text-align: center;
    color: white;
    font-size: 18px;
    margin-top: -80px; /* Resimle yazı arasındaki boşluk */
    padding: 4px;
    background-color: rgba(0, 0, 0, 0.7); /* Yazı arka planı */
    border-radius: 5px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    position: relative; /* Yazıyı normal akışta tut */
    z-index: 1; /* Yazıyı thumbnail'lerin üstüne getir */
}

.thumbnails-container {
    display: flex;
    justify-content: center;
   
    gap: 10px;
    position: relative; /* Thumbnail'leri normal akışta tut */
    bottom: auto; /* Bottom özelliğini kaldır */
    left: auto; /* Left özelliğini kaldır */
    transform: none; /* Transform özelliğini kaldır */
    width: 100%; /* Thumbnail'lerin genişliğini tam ekran yap */
    padding: 0 20px; /* Kenarlara boşluk ekle */
    box-sizing: border-box; /* Padding'i genişliğe dahil et */
}

.thumbnails-container img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnails-container img.active {
    opacity: 1;
    border-color: #007bff;
}