/* Sidebar'ın içindeki ana taşıyıcıyı (Parent) serbest bırakıyoruz */
.site-content .ast-container {
    display: flex !important;
    align-items: stretch !important;
    overflow: visible !important;
}

/* Sidebar (Kenar Çubuğu) Ayarları */
#secondary {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 30px !important; 
    height: fit-content !important;
    align-self: flex-start !important;
    z-index: 99;
}

/* Masaüstü Ekranlar İçin Genişlik Payları */
@media (min-width: 922px) {
    .ast-left-sidebar #secondary {
        flex: 0 0 20%;
        max-width: 20%;
    }
    .ast-left-sidebar #primary {
        flex: 0 0 80%;
        max-width: 80%;
    }
}

/* Mobil Görünüm (Sabitleme Devre Dışı) */
@media (max-width: 921px) {
    .ast-left-sidebar #content > .ast-container {
        flex-direction: column !important;
    }
    #secondary {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .ast-left-sidebar:not(.single) #secondary { order: -1; margin-bottom: 20px; }
    .single.ast-left-sidebar #secondary { order: 2; margin-top: 20px; }
    .ast-left-sidebar #primary { order: 1; }
}

/* Çakışan Overflow Kurallarını Temizliyoruz */
html, body {
    overflow: visible !important;
    height: auto !important;
}

#page, .site, .site-content {
    overflow: visible !important;
}

/* Eğer ID üzerinden gitmek gerekirse (Görseldeki özel ID) */
    div[id^="gt-wrapper-"] {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
.active-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 10px auto !important;
    width: 100% !important;
}
.wp-block-query,
.wp-block-post-template,
.wp-block-post-template li,
.wp-block-posts-list,
.is-layout-grid {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

img {
    max-width: 100% !important;
    height: auto !important;
}