

.gallery-container {
    max-width: 470px;
    margin: 10px auto;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background-color: #eee;
    touch-action: pan-x pinch-zoom; 
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-controls {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.thumbnails-container {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    background-color: white;
    gap: 5px;
    justify-content: center;
}

.thumbnail {
    width: 90px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover {
    border-color: #D94645;
}

.thumbnail.active {
    border-color: #D94645;
}

.counter {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 12px;
}

.main-nav-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
}

.main-arrow {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.main-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Full Screen Modal Styles */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: hidden;
}

.fullscreen-slider {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-x pinch-zoom; /* Yatay kaydırma ve pinch-zoom'a izin ver */
    cursor: grab; /* El imleci göster (kaydırılabilir) */
}

.fullscreen-close{
    transition: color 0.3s;
    }


.fullscreen-close:hover{
color: #D94645;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    touch-action: pan-x pan-y pinch-zoom;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1010;
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    box-sizing: border-box;
    transform: translateY(-50%);
    z-index: 1010;
}

.fullscreen-nav-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 20px;
}

.fullscreen-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.fullscreen-counter {
    position: absolute;
    bottom: 20px;
    left: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
}

.navigation-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background-color: white;
    gap: 8px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-dot.active {
    background-color: #D94645;
}

.nav-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    background-color: transparent;
    border: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-arrow:hover {
    color: #D94645;
}

.button-container {
    display: flex;
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    justify-content: center;
}

.gallery-button {
    background-color: #f8f9fa;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #212529;
    transition: color 0.2s;
}

.gallery-button:hover {
    color: #D94645;
}

.gallery-button.active {
    color: #212529;
    font-weight: 500;
    
}


/* Yeni eklenen stil - thumbnails için sayfalama */
.thumbnail-page {
    display: none;
    width: 100%;
    justify-content: center;
    gap: 5px;
}

.thumbnail-page.active {
    display: flex;
    flex-direction: column;
}

/* Thumbnail sayacı için yeni stil */
.thumbnail-counter {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    text-align: left;
    padding-left: 5px;
}

/* Thumbnail wrapper */
.thumbnail-wrapper {
    display: flex;
    justify-content: center;
    gap: 5px;
}
/* Video modal için CSS stilleri */
.video-container {
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    margin: 0 auto;
    position: relative;
}

.video-player {
    width: 100%;
    height: 100%;
    display: none;
    max-height: 80vh;
    object-fit: contain;
}

.video-frame {
    width: 100%;
    height: 80vh;
    display: none;
}

.video-active {
    display: block;
}

.video-counter {
    text-align: center;
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Video butonunun aktif durumu için stil */
.gallery-button.active-video {
    color: #D94645;
    font-weight: 500;
    border-bottom: 2px solid #D94645;
}



@media (max-width: 1600px) {
    .page-header {
        margin-bottom: -280px;
    }
}
@media (max-width: 1399px) {
    .page-header {
        margin-bottom: -280px;
    }
   
}
@media (max-width: 991px) {
    .page-header {
        margin-bottom: -230px;
    }
   
}
@media (max-width: 768px) {
    .page-header {
        margin-bottom: -200px;
    }
    .gallery-container {
        margin-bottom: -50px;

    }
    
}
@media (max-width: 575px) {
    .page-header {
        margin-bottom: -180px;
    }
   
}
@media (min-width: 1600px) {
.page-header {
margin-bottom: -250px;
}
}
.gallery-content ul li {
font-family: var(--noile-font, "Sora", sans-serif) !important;
font-size: 16px;
color:#777777;
font-weight: normal;
padding-bottom: 10px;
}
/* Mobil için geçersiz kılma kuralları */
@media only screen and (max-width: 991px) {
    /* Galeri header'ın altında görünsün */
    .gallery-container {
        margin-top: 10px;
    }
    
    /* Küçük resimler (thumbnail'ler) ve navigasyon noktaları gizlensin */
    .thumbnails-container {
        display: none;
    }
    
    .navigation-dots {
        display: none;
    }
    
    /* Ana görüntü için dokunmatik kaydırma desteği */
    .main-image-container {
        touch-action: pan-y pinch-zoom;
    }
    .main-arrow {
        display: none;
    }
}



/* Mobil cihazlar için özel stiller */
@media only screen and (max-width: 768px) {
    /* Ana galeri için mobil düzenlemeler */
    .gallery-container {
        margin-top: 0;
    }
    .main-image-container {
        position: relative;
        width: 100%;
        height: 300px;
        overflow: hidden;
        background-color: #eee;
    }
    
    /* Küçük resimler ve navigasyon noktaları gizlensin */
    .thumbnails-container {
        display: none;
    }
    
    .navigation-dots {
        display: none;
    }
    
    /* Ana görüntü için dokunmatik kaydırma desteği */
    .main-image-container {
        touch-action: pan-y pinch-zoom;
    }
    
    /* Ana görüntüdeki ok butonları gizlensin */
    .main-arrow {
        display: none;
    }
    
    /* Tam ekran modunda ok butonları gizlensin */
    .fullscreen-nav-btn {
        display: none; /* Mobil cihazlarda okları tamamen gizle */
    }
    
    /* Tam ekran sliderı için dokunmatik stil */
    .fullscreen-slider {
        touch-action: pan-x pinch-zoom; /* Yatay kaydırma ve pinch-zoom'a izin ver */
        cursor: grab; /* El imleci göster (kaydırılabilir) */
    }
    
    /* Daha büyük dokunma alanları */   
    .fullscreen-counter {
        padding: 10px 20px;
        font-size: 11px;
    }
    
    .fullscreen-close {
        font-size: 36px;
        padding: 10px;
    }
}


/* Masaüstü cihazlar için özel stiller */
@media only screen and (min-width: 991px) {
    /* Tam ekran sliderı için fare davranışı */
    .fullscreen-slider {
        cursor: default; /* Masaüstünde normal imleç göster */
        touch-action: pan-x pinch-zoom; /* Yatay kaydırma ve pinch-zoom'a izin ver */
    }
    
    /* Tam ekran modunda ok butonlarını göster */
    .fullscreen-nav-btn {
        display: flex; /* Masaüstünde okları göster */
    }
}

@media only screen and (max-width: 991px) {
    .about-one .row .col-lg-6:has(.solution-one__img-col) {
        order: 0 !important; /* Galeri üstte */
        margin-bottom: 20px; /* Galeri ile bilgi arasında boşluk */
    }
    .about-one .row .col-lg-6:has(.solution-one__main-tab-box) {
        order: 1 !important; /* Bilgi altta */
    }
}

@media only screen and (max-width: 576px) {
    
    .main-image-container {
        position: relative;
        width: 100%;
        height: 250px;
        overflow: hidden;
        background-color: #eee;
    }
}