/* ═══════════════════════════════════════
   STACKABLE POSTS BLOCK OVERRIDE
   ═══════════════════════════════════════ */

/* ── OUTER CONTAINER ── */
.stk-block-posts.alignfull {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.stk-block-posts > .stk-inner-blocks {
    max-width: 1224px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 40px 24px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* ── GRID ── */
.stk-block-posts__items {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    row-gap: 48px !important;
    width: 100% !important;
    align-items: start !important;
}

/* ── CARD ── */
.stk-block-posts__item > .stk-container {
    display: none !important;
}

#single-article .stk-block-posts__item > .stk-container{
    display: initial !important;
}
#single-article .stk-block-posts__item > .stk-container .stk-block-posts__image-card-overlay{
    display: none !important;
}

.stk-block-posts__item {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-width: 100% !important;
    align-self: start !important;
}

/* ── AFBEELDING ── */
.stk-block-posts__item > .fauna-items:has(.stk-img-wrapper) {
    width: 100% !important;
}
.stk-block-posts .stk-img-wrapper {
    aspect-ratio: 16 / 10 !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    background: #eeeeee !important;
    display: block !important;
}
.stk-block-posts .stk-img-wrapper img,
.stk-block-posts .stk-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 4px !important;
    transition: transform .3s ease;
}
.stk-block-posts__image-link:hover .stk-img {
    transform: scale(1.03);
}

/* ── TEKST BLOK ── */
.stk-block-posts__item > .fauna-items:has(.stk-block-posts__title) {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding-top: 16px !important;
}

/* ── AUTEUR verbergen ── */
.stk-block-posts__meta {
    display: none !important;
}

/* ── EXCERPT verbergen ── */
.stk-block-posts__excerpt {
    display: none !important;
}

/* ── CATEGORIE ── */
.stk-block-posts__category {
    font-family: 'Special Gothic Condensed One', sans-serif !important;
    font-size: 18px !important;
    line-height: 18px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #955A3E !important;
    margin: 0 !important;
    padding: 8px 0 0 !important;
}
.stk-block-posts__category a {
    color: #955A3E !important;
    text-decoration: none !important;
}

/* ── TITEL ── */
.stk-block-posts__title {
    font-family: 'Orelega One', serif !important;
    font-weight: 400 !important;
    font-size: 32px !important;
    line-height: 36px !important;
    color: #061A0A !important;
    margin: 0 !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
}
.stk-block-posts__title a {
    color: inherit !important;
    text-decoration: none !important;
}
.stk-block-posts__title a:hover {
    opacity: .75;
}

/* ── LEES MEER ── */
.stk-block-posts__readmore {
    font-family: 'Special Gothic Condensed One', sans-serif !important;
    font-size: 18px !important;
    line-height: 20px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #061A0A !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    display: inline-block !important;
}
.stk-block-posts__readmore:hover {
    opacity: .65;
}

/* ══════════════════════════════════════
   DROPDOWNS — categorie & jaar
   ══════════════════════════════════════ */

.wp-block-stackable-columns:has(.wp-block-categories) {
    max-width: 1224px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 40px 24px 0 !important;
    box-sizing: border-box !important;
}

.wp-block-stackable-columns:has(.wp-block-categories) .stk-row {
    display: flex !important;
    gap: 16px !important;
    justify-content: center !important;
    align-items: center !important;
}

.wp-block-stackable-columns:has(.wp-block-categories) .stk-block-column {
    flex: 0 0 auto !important;
    width: auto !important;
}

.wp-block-stackable-columns:has(.wp-block-categories) select,
.postform,
.wp-block-archives select {
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 16px !important;
    color: #19352B !important;
    background-color: #ffffff !important;
    border: 1.5px solid #19352B !important;
    border-radius: 58px !important;
    padding: 10px 40px 10px 20px !important;
    cursor: pointer !important;
    min-width: 220px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2319352B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    transition: background-color .15s !important;
    box-sizing: border-box !important;
}
.wp-block-stackable-columns:has(.wp-block-categories) select:hover,
.postform:hover,
.wp-block-archives select:hover {
    background-color: #f5f7f5 !important;
}

.wp-block-categories__label,
.wp-block-archives__label {
    display: none !important;
}

/* ══════════════════════════════════════
   STACKABLE PAGINERING
   Stijl: actief = donkergroen gevuld, rest = outline
   ══════════════════════════════════════ */

.stk-block-pagination {
    margin-top: 40px !important;
}

.stk-block-pagination .stk-button-group {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

/* Overschrijf Stackable CSS variabelen op het wrapper niveau */
.stk-block-pagination {
    --theme-palette-color-1: transparent !important;
    --theme-palette-color-8: #19352B !important;
}

/* Alle knoppen: outline stijl */
.stk-block-pagination .stk-button {
    font-family: 'Special Gothic Condensed One', sans-serif !important;
    border-radius: 58px !important;
    padding: 10px 18px !important;
    background: transparent !important;
    border: 1.5px solid #19352B !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    position: relative !important;
}

/* Verberg Stackable hover pseudo-element */
.stk-block-pagination .stk-button:after {
    display: none !important;
}

/* Tekst alle knoppen: donkergroen */
.stk-block-pagination .stk-button .stk-button__inner-text {
    font-family: 'Special Gothic Condensed One', sans-serif !important;
    font-size: 18px !important;
    letter-spacing: 0.05em !important;
    color: #19352B !important;
    line-height: 1 !important;
}

/* Actieve knop: gevuld donkergroen, witte tekst */
.stk-block-pagination .stk-button.is-active,
.stk-block-pagination span.stk-button {
    background: #19352B !important;
    border-color: #19352B !important;
    --theme-palette-color-1: #19352B !important;
    --theme-palette-color-8: #ffffff !important;
}
.stk-block-pagination .stk-button.is-active .stk-button__inner-text,
.stk-block-pagination span.stk-button .stk-button__inner-text {
    color: #ffffff !important;
}

/* Hover op niet-actieve knoppen */
.stk-block-pagination .stk-button:hover:not(.dots):not(.is-active) {
    background: #f5f7f5 !important;
}

/* Dots: geen border */
.stk-block-pagination .stk-button.dots {
    background: transparent !important;
    border-color: transparent !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .stk-block-posts__items {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .stk-block-posts__title {
        font-size: 26px !important;
        line-height: 30px !important;
    }
}
@media (max-width: 600px) {
    .stk-block-posts__items {
        grid-template-columns: 1fr !important;
    }
    .stk-block-posts > .stk-inner-blocks {
        padding: 24px 16px !important;
    }
    .wp-block-stackable-columns:has(.wp-block-categories) .stk-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}
