.custom-posts-archive-with-filter{
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: var(--column-gap);
    row-gap: var(--row-gap);
    align-items: start;
}

.custom-posts-archive-with-filter.animate__animated{
    animation-name: fadeIn;
    
}

.custom-posts-archive-with-filter > *{
    width: 100%;
    max-width: var(--wide-width);
    margin: 0 auto;
}

.custom-posts-archive-with-filter-heading{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: var(--column-gap);
    align-items: end;
}

.custom-posts-archive-with-filter-heading p{
    margin: 0;
}

.custom-posts-archive-with-filter-inner{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: var(--column-gap);
    row-gap: var(--row-gap);
    align-items: start;
    padding: var(--block-margin) 0;
}

.custom-posts-archive-with-filter-filters-title{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.1rem solid;
    padding-bottom: calc(var(--row-gap) / 2);
}

.custom-posts-archive-with-filter-filters-title h3{
    font: var(--font-headline-5);
    margin: 0;
}

.custom-posts-archive-with-filter-filters{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: calc(var(--row-gap) / 2);
}

.custom-posts-archive-with-filter-filters-group{
    padding-bottom: calc(var(--row-gap) / 2);
    border-bottom: 0.1rem solid;
}

.custom-posts-archive-with-filter-filters-group-heading{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-posts-archive-with-filter-filters-group-clear{
    position: absolute;
    top: 50%;
    right: 3rem;
    max-width: 5ch;
    height: calc(100% - 0.2rem);
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
    text-align: right;
}

.custom-posts-archive-with-filter-filters-group-clear:disabled{
    cursor: default;
}

.custom-posts-archive-with-filter-filters-group-clear.visible{
    opacity: 1;
}

.custom-posts-archive-with-filter-filters-group-title{
    display: block;
    width: 100%;
    position: relative;
}

.custom-posts-archive-with-filter-filters-group-title:focus{
    outline: none;
}

.custom-posts-archive-with-filter-filters-group-title h4{
    font: var(--font-headline-7);
    margin-bottom: 0;
}

.custom-posts-archive-with-filter-filters-group-title::after{
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    width: 1rem;
    height: 1rem;
    border-right: 0.2rem solid var(--title-color);
    border-bottom: 0.2rem solid var(--title-color);
    transform: translateY(-75%) rotateZ(45deg) translateX(-50%);
    transition: all 0.3s ease;
}

.custom-posts-archive-with-filter-filters-group.open .custom-posts-archive-with-filter-filters-group-title::after{
    transform: translateY(-25%) rotateZ(-135deg) translateX(50%);
}

.custom-posts-archive-with-filter-filters-group-options{
    transition: all 0.3s ease;
    max-height: 0;
    overflow: auto;
    scrollbar-color: var(--text-color);
    scrollbar-width: thin;
    padding: 0;
}

.custom-posts-archive-with-filter-filters-group-options::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 0.3rem;
}

.custom-posts-archive-with-filter-filters-group-options::-webkit-scrollbar-thumb {
    border-radius: 0.7rem;
    background-color: var(--text-color);
}

.custom-posts-archive-with-filter-filters-group.open .custom-posts-archive-with-filter-filters-group-options{
    max-height: 47rem;
    padding: 0.8rem 0;
    margin-top: 1rem;
}

.custom-posts-archive-with-filter-filters-group-options-item{
    overflow: hidden;
    position: relative;
    display: flex;
}

.custom-posts-archive-with-filter-filters-group-options-item:not(:last-child){
    margin-bottom: calc(var(--item-row-gap) / 2);
}

.custom-posts-archive-with-filter-filters-group-options-item input{
    position: absolute;
    bottom: calc(100% + 1rem);
    cursor: pointer;
}

.custom-posts-archive-with-filter-filters-group-options-item label{
    cursor: pointer;
    margin: 0;
    transition: all 0.3s ease;
    font: var(--font-body);
    display: flex;
    align-items: baseline;
    column-gap: 1rem;
}

.custom-posts-archive-with-filter-filters-group-options-item label:is(:hover, :focus, :active){
    color: var(--title-color);
}

.custom-posts-archive-with-filter-filters-group-options-item label::before{
    content: '';
    display: block;
    width: 1em;
    height: 1em;
    border: 0.1rem solid;
    margin-right: 0.3em;
    flex-shrink: 0;
    position: relative;
    top: 0.2rem;
}

.custom-posts-archive-with-filter-filters-group-options-item input:checked ~ label::before{
    border-color: var(--color-vibrant-blue);
    background-color: var(--color-vibrant-blue);
}

.custom-posts-archive-with-filter-filters-group-options-item input:checked ~ label::after{
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0.3em;
    height: 0.5em;
    border-bottom: 0.2rem solid;
    border-right: 0.2rem solid;
    border-color: var(--color-white);
    transform: translate(0.35em, calc(100% - 0.1em)) rotate(45deg);
}

.custom-posts-archive-with-filter-filters-group-options-subitems-toggle{
    margin-left: auto;
    width: 2.7rem;
    flex-shrink: 0;
}

.custom-posts-archive-with-filter-filters-group-options-subitems-toggle svg{
    transform: rotate(180deg);
    transition: all 0.3s ease;
}

.subitems-open .custom-posts-archive-with-filter-filters-group-options-subitems-toggle svg{ 
    transform: rotate(0); 
}

.custom-posts-archive-with-filter-filters-group-options-subitems{
    padding-left: calc(0.5em + 0.5rem);
    margin-left: 0.5em;
    border-left: 0.1rem solid;
    margin-top: calc(var(--item-row-gap) / -4);
    margin-bottom: calc(var(--item-row-gap) / 4);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.subitems-open + .custom-posts-archive-with-filter-filters-group-options-subitems{
    padding-top: calc(var(--item-row-gap) / 4);
    padding-bottom: calc(var(--item-row-gap) / 4);
    max-height: 100rem;
}

.custom-posts-archive-with-filter-sorting{
    display: flex;
    justify-content: space-between;
    margin-top: calc( var(--small-row-gap) / 2);
    margin-bottom: var(--item-row-gap);
} 

.custom-posts-archive-with-filter-sorting-group{
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
}

.custom-posts-archive-with-filter-sorting-group label{
    margin-bottom: 0;
}

body .custom-posts-archive-with-filter .custom-posts-archive-with-filter-sorting .custom-posts-archive-with-filter-sorting-group select{
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 0;
    cursor: pointer;
    appearance: auto;
}

body .blocks-container .custom-posts-archive-with-filter .custom-posts-archive-with-filter-sorting .custom-posts-archive-with-filter-sorting-group select:is(:hover, :focus){
    border-color: var(--link-color);
}

.custom-posts-archive-with-filter-content-loading{
    display: none;
    color: var(--accent-color);
}

.custom-posts-archive-with-filter-content-loading svg{
    display: block;
    width: 15rem;
    height: auto;
    margin: 0 auto;
}

.custom-posts-archive-with-filter-content-grid{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: var(--item-column-gap);
    row-gap: var(--item-row-gap);
}

.custom-posts-archive-with-filter-content-grid article a .read-more {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: 0.3s ease all;
}

.custom-posts-archive-with-filter-content-grid article a:is(:hover, :focus) .read-more {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-color: var(--link-color);
    transition: 0.3s ease all;
}

body.blog .custom-posts-archive-with-filter-content-grid article a .read-more{
    display: none;
}

.custom-posts-archive-with-filter-content-grid .post-loop-inner {
    display: flex;
    flex-direction: column;
    --title-and-body-gap: 2.4rem;
    row-gap: var(--title-and-body-gap);
}

.custom-posts-archive-with-filter-content-grid article a .post-loop-image:not(:has(img)) {
    display: none;
}

.custom-posts-archive-with-filter-content-grid article:is(.webinar) a .post-loop-image img {
    height: auto;
}

@media (min-width: 768px){
    .custom-posts-archive-with-filter-heading{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: flex-end;
    }

    .custom-posts-archive-with-filter-heading h2{
        margin: 0;
    }

    .custom-posts-archive-with-filter-sorting{
        column-gap: var(--column-gap);
    }
}

@media (min-width: 992px){
    .custom-posts-archive-with-filter-inner{
        grid-template-columns: 28rem minmax(0, 1fr);
    }

    .custom-posts-archive-with-filter-filters-group-clear{
        right: 0;
    }

    .custom-posts-archive-with-filter-filters-group-options{
        max-height: 47rem;
        padding: 0.8rem 0;
        margin-top: 1rem;
        padding-right: 1rem;
    }

    .custom-posts-archive-with-filter-filters-group-title{
        cursor: default;
    }

    .custom-posts-archive-with-filter-filters-group-title:is(:hover, :active, :focus) {
        text-decoration: none;
    }

    .custom-posts-archive-with-filter-filters-group-title::after{
        display: none;
    }

    .custom-posts-archive-with-filter .post-loop a:has(.post-loop-image img) {
        grid-template-columns: 25rem auto;
    }

    .custom-posts-archive-with-filter .post-loop .post-loop-inner:first-child:last-child{
        grid-column: span 2;
    }
} 