/*
 * PostList Styles
 *
 * Provides styling for the PostList shortcode and related wrappers,
 * including layout resets, search filters, category links, pagination,
 * responsive column classes, and hover states.
 *
 * @package     iw-wp-utils
 * @subpackage  assets/style/PostList
 * @since       1.0.0
 -------------------------------------------------------------- */

/* List Shortcode */
.iw-slider,
.iw-post-list {
    margin-left: -15px;
    margin-right: -15px;
}

.iw-post-list form {
    max-width: 790px;
    margin: 15px auto;
}

.iw-post-list svg {
    fill: #101010;
}

/* Slider Fallback: Hide items until JS initializes to prevent FOUC */
.iw-slider .iw-post-list__items {
    overflow: hidden;
    max-height: 0;
}

.iw-slider .iw-slider__fallback {
    display: block;
}

.iw-slider.iw-slider--initialized .iw-post-list__items {
    max-height: none;
}

.iw-slider.iw-slider--initialized .iw-slider__fallback {
    display: none;
}

/* Carousel (getCarouselWrapper): collapse the stacked slides until Slick init, but only when a
   first-slide fallback reserves the height — otherwise the carousel must stay visible without JS. */
.iw-slider.iw-carousel.iw-slider--has-fallback .content-wrapper {
    overflow: hidden;
    max-height: 0;
}

.iw-slider.iw-carousel.iw-slider--has-fallback.iw-slider--initialized .content-wrapper {
    max-height: none;
    overflow: visible;
}

/* Typation. The .list_type_area selectors cover the legacy markup the vynst satellites
   still hand-build instead of calling ShortcodeListElements::getTypation(); PostList.js
   binds both generations, so both get the same chrome here. */
.iw-post-list .iw-post-list__typation,
.iw-post-list .list_type_area {
    display: flex;
    gap: 17px;
    padding: 17px;
}

.iw-post-list .iw-post-list__typation .list_style_type_button button,
.iw-post-list .list_type_area .list_style_type_button button {
    cursor: pointer;
    border: none;
    background: none;
}

.iw-post-list .iw-post-list__typation .list_style_type_button button svg,
.iw-post-list .list_type_area .list_style_type_button button svg {
    fill: #17EFEF;
}

.iw-post-list .iw-post-list__typation .list_style_type_button button.active svg,
.iw-post-list .list_type_area .list_style_type_button button.active svg {
    fill: #EF17EF;
}

/* Search Filter */
.iw-post-list .iw-post-list__search {
    padding: 0 0 50px 0;
}

.iw-post-list .liw-post-list__search form.search_form,
.iw-post-list form {
    max-width: 790px;
    margin: 0 auto;
}

.iw-post-list .iw-post-list__search input[type="text"] {
    font-size: 16px;
    line-height: 21px;
    width: calc(100% - 54px);
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #EF17EF;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
}

.iw-post-list .iw-post-list__search.two_buttons input[type="text"] {
    width: calc(100% - 108px);
}

.iw-post-list .iw-post-list__search input::-webkit-input-placeholder {
    color: red;
}

.iw-post-list .iw-post-list__search input::-moz-placeholder {
    color: red;
}

.iw-post-list .iw-post-list__search input:-ms-input-placeholder {
    color: red;
}

.iw-post-list .iw-post-list__search input::-ms-input-placeholder {
    color: red;
}

.iw-post-list .iw-post-list__search input::placeholder {
    color: red;
}

.iw-post-list .iw-post-list__search input:focus:not(:focus-visible) {
    outline: none;
}

.iw-post-list .iw-post-list__search button.search_button {
    border: none;
    cursor: pointer;
    width: 54px;
    height: 54px;
    background-color: inherit;
    padding: 17px;
}

.iw-post-list .iw-post-list__search button.search_button:focus:not(:focus-visible) {
    outline: none;
}

.iw-post-list .iw-post-list__search .search_button svg {
    width: 20px;
    height: 20px;
}

.iw-post-list .iw-post-list__search .search_notification {
    min-height: 26px;
}

/* Radius Filter */
.iw-post-list__radius_filter {
    display: none;
    padding: 15px;
}

.iw-post-list__radius_filter.active {
    display: flex;
}

/* Input Checkbox Switch */
.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    float: left;
    margin: 3px 15px 0 15px;
}

.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch .switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch .switch:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch input:checked + .switch {
    background-color: #ef17ef;
}

.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch input:focus + .switch {
    box-shadow: 0 0 1px #ef17ef;
}

.iw-post-list__radius_filter .radius-filter-active-switch-wrapper .iw-custom-input-checkbox-switch input:checked + .switch:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper {
    display: flex;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper .iw-custom-input-range {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper .iw-custom-input-range input[type="range"] {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #ccc;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper .iw-custom-input-range input[type="range"]:focus:not(:focus-visible) {
    outline: none;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper .iw-custom-input-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ef17ef;
    cursor: pointer;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper .iw-custom-input-range input[type="range"]:disabled::-webkit-slider-thumb {
    background: #ccc;
    cursor: not-allowed;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper .iw-custom-input-range input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ef17ef;
    cursor: pointer;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper .iw-custom-input-range input[type="range"]:disabled::-moz-range-thumb {
    background: #ccc;
    cursor: not-allowed;
}

.iw-post-list__radius_filter .radius-filter-range-input-wrapper #radius-filter-range-text {
    padding-left: 10px;
}

/* Category Link Style */
.iw-post-list .taxonomy_link_wrapper a.taxonomy_link {
    text-decoration: none;
}

.iw-post-list .taxonomy_link_wrapper a.taxonomy_link:hover {
    color: #efef17;
}

.iw-post-list .taxonomy_link_wrapper.active a.taxonomy_link {
    color: #efef17;
}

/* Category Wrapper - Multi Line */
.iw-post-list .iw-post-list__taxonomies {
    padding: 17px;
}

.iw-post-list .iw-post-list__taxonomies.hide_taxonomies {
    padding: 0;
}

.iw-post-list .iw-post-list__taxonomies .category_wrapper_inner.clearfix {
    padding: 17px;
}

.iw-post-list .taxonomy_link_wrapper {
    padding: 17px;
}

.iw-post-list .iw-post-list__taxonomies.multi_line .iw-post-list__categories_headline {
    float: left;
    padding: 17px;
}

.iw-post-list .iw-post-list__taxonomies.multi_line .all_links {
    float: left;
}

.iw-post-list .iw-post-list__taxonomies.multi_line .category_wrapper_inner .taxonomy_link_wrapper {
    float: left;
}

.iw-post-list .iw-post-list__taxonomies.multi_line button.open_rect {
    border: none;
    cursor: pointer;
    width: 54px;
    height: 54px;
    background-color: inherit;
    padding: 17px;
}

.iw-post-list .iw-post-list__taxonomies.multi_line button:focus:not(:focus-visible) {
    outline: none;
}

/* PostList.js sets .active while the categories are open. */
.iw-post-list .iw-post-list__taxonomies.multi_line .open_rect.active svg {
    transform: rotate(180deg);
}

.iw-post-list .iw-post-list__taxonomies.multi_line .open_rect svg {
    width: 20px;
    height: 20px;
}

.iw-post-list .iw-post-list__taxonomies.multi_line .category_wrapper_inner {
    padding: 17px;
    display: none;
}

/* Category Wrapper - One Line */
.iw-post-list .iw-post-list__taxonomies.single_line .taxonomy_link_wrapper_area {
    display: flex;
    display: -ms-flexbox;
    justify-content: flex-start;
    flex-wrap: wrap;
    -ms-flex-flow: wrap;
}

.iw-post-list .iw-post-list__taxonomies.single_line .taxonomy_link_wrapper_area .taxonomy_link_wrapper {
    flex-wrap: wrap;
    -ms-flex-flow: wrap;
    text-align: left;
    flex-grow: 0;
}

/* Post List */
.iw-post-list .iw-post-list__items {
    display: flex;
    flex-wrap: wrap;
}

.iw-post-list .iw-post-list__item {
    padding: 17px;
    display: flex;
    flex-direction: column;
}

.iw-post-list .iw-post-list__item .post_thumbnail_area {
    overflow: hidden;
    position: relative;
    background: transparent;
}

.iw-a11y-hide_images .iw-post-list .iw-post-list__item .post_thumbnail_area {
    border: 2px solid #101010;
}

.iw-post-list .iw-post-list__item .post_thumbnail_area img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.iw-a11y-hide_images .iw-post-list .iw-post-list__item .post_thumbnail_area img {
    visibility: hidden;
}

.iw-post-list .iw-post-list__item .post_thumbnail_area.no-image {
    background: #ef17ef;
}

.iw-post-list .iw-post-list__item .post_thumbnail_area.no-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.iw-post-list .no-image-icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.iw-post-list .no-image-icon-wrapper .no-image-icon {
    width: 48px;
    height: 48px;
    fill: #ccc;
}

.iw-post-list .post_thumbnail_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    text-align: center;
    background: none;
    transition: all 300ms;
}

.iw-a11y-hide_images .iw-post-list .post_thumbnail_overlay {
    display: none;
}

.iw-post-list .post_thumbnail_overlay:hover {
    background: rgba(255, 255, 255, 0.6);
}

.iw-post-list .post_thumbnail_overlay .post_thumbnail_overlay_text_wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 300ms;
    visibility: hidden;
    opacity: 0;
}

.iw-post-list .post_thumbnail_overlay:hover .post_thumbnail_overlay_text_wrapper {
    visibility: visible;
    opacity: 1;
}

.iw-post-list .post_thumbnail_overlay_text_wrapper .post_thumbnail_overlay_text {
    color: #EF17EF;
    font-size: 17px;
    line-height: 17px;
}

.iw-post-list .iw-post-list__item .post_content_area,
.iw-post-list .iw-post-list__item.even .post_content_area {
    background-color: #EFEF17;
    margin: 17px;
    flex: 1;
}

.iw-post-list .iw-post-list__item .post_content_area_headline a {
    margin: 0;
    padding: 0;
    font-size: unset;
    line-height: unset;
    font-weight: unset;
    text-decoration: none;
}

.iw-post-list .iw-post-list__item .post_content_area_headline a p.headline {
    padding: 17px;
    display: -webkit-box;
    height: 52px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 17px;
    line-height: 17px;
    margin: 17px;
}

.iw-post-list .iw-post-list__item p.excerpt {
    padding: 17px;
    display: -webkit-box;
    height: 86px;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 17px;
    line-height: 17px;
    margin: 17px;
}

.iw-post-list .iw-post-list__item span.meta_info {
    padding: 17px;
}

/* Card subline (date / category line, emitted by iw-cpt-events and the vynst news/events
   satellites). Layout only — the color is the theme's decision. */
.iw-post-list .iw-post-list__item p.subline {
    margin: 17px;
    font-size: 14px;
    line-height: 17px;
}

/* Loading and no result */
.iw-post-list .loading_results,
.iw-post-list .no_result {
    text-align: center;
    width: 100%;
}

/* Pagination */
.iw-post-list .iw-post-list__pagination {
    display: flex;
    display: -ms-flexbox;
    justify-content: center;
    -ms-flex-pack: center;
    flex-wrap: wrap;
    -ms-flex-flow: wrap;
    padding: 17px;
    width: 100%;
}

.iw-post-list.without_pagination .iw-post-list__pagination {
    display: none;
}

.iw-post-list .iw-post-list__pagination .page {
    flex-wrap: wrap;
    -ms-flex-flow: wrap;
    padding: 0 17px;
}

.iw-post-list .iw-post-list__pagination .prev_area,
.iw-post-list .iw-post-list__pagination .next_area {
    cursor: pointer;
    flex-wrap: wrap;
    -ms-flex-flow: wrap;
    padding: 0 17px;
    visibility: hidden;
    opacity: 0;
}

.iw-post-list .iw-post-list__pagination .prev_area.active,
.iw-post-list .iw-post-list__pagination .next_area.active {
    visibility: visible;
    opacity: 1;
}

/* When the prev/next areas render as real <a> links (crawlable GET pagination), reset the inherited
   theme link styling so they look identical to the previous <div> arrows. */
.iw-post-list .iw-post-list__pagination a.prev_area,
.iw-post-list .iw-post-list__pagination a.next_area {
    text-decoration: none;
    color: inherit;
}

.iw-post-list .iw-post-list__pagination .prev_arrow,
.iw-post-list .iw-post-list__pagination .next_arrow {
    width: 20px;
    height: 20px;
}

.iw-post-list .iw-post-list__pagination .prev_text {
    float: left;
    margin: 0 0 0 17px;
}

.iw-post-list .iw-post-list__pagination .prev_arrow {
    float: left;
}

.iw-post-list .iw-post-list__pagination .next_text {
    float: left;
    text-align: right;
    margin: 0 17px 0 0;
}

.iw-post-list .iw-post-list__pagination .next_arrow {
    float: right;
}

.iw-post-list .iw-post-list__pagination .prev_area .prev_arrow svg,
.iw-post-list .iw-post-list__pagination .next_area .next_arrow svg {
    width: 20px;
    height: 20px;
}

/* Numbered pagination variant (getNumberedPagination) — real GET page links. Shares the flex
   container above; the number items reset the inherited theme link styles so an <a> renders like
   the surrounding UI, not an underlined blue link. */
.iw-post-list .iw-post-list__pagination--numbered .iw-post-list__pagination__number,
.iw-post-list .iw-post-list__pagination--numbered .iw-post-list__pagination__ellipsis {
    display: inline-block;
    min-width: 1.5em;
    padding: 0 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.iw-post-list .iw-post-list__pagination--numbered a.iw-post-list__pagination__number:hover,
.iw-post-list .iw-post-list__pagination--numbered a.iw-post-list__pagination__number:focus {
    text-decoration: underline;
}

.iw-post-list .iw-post-list__pagination--numbered .iw-post-list__pagination__number.active {
    font-weight: bold;
    text-decoration: underline;
}

.iw-post-list .iw-post-list__pagination--numbered .iw-post-list__pagination__ellipsis {
    color: #b3b3b3;
    user-select: none;
}

/* Combined GET filter form (getFilterForm / renderFilterCheckboxGroup) — the search input plus one
   fieldset of checkboxes per filter dimension, submitted together. */
.iw-post-list .iw-post-list__filter {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 15px 20px 15px;
}

.iw-post-list .iw-post-list__filter-search input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.iw-post-list .iw-post-list__filter-group {
    border: none;
    margin: 0;
    padding: 0;
}

.iw-post-list .iw-post-list__filter-group legend {
    font-weight: bold;
    padding: 0 0 8px 0;
}

.iw-post-list .iw-post-list__filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    cursor: pointer;
}

.iw-post-list .iw-post-list__filter-option input[type="checkbox"] {
    cursor: pointer;
}

.iw-post-list .iw-post-list__filter button[type="submit"] {
    align-self: flex-start;
}

/* Filter bar and filter layer (getFilterBar / getFilterLayer). Layout, sizes and states are the
   default; the colors are this file's loud placeholders (#EF17EF accent), a theme sets its own on
   top. The layer opens through :target without JavaScript and through .is-open with the list
   runtime. */
.iw-post-list .iw-post-list__screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* The bar sits inside the flex-wrapping items container, so it claims the whole row itself. */
.iw-post-list .iw-post-list__filter-bar {
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px 20px 15px;
}

.iw-post-list .iw-post-list__filter-open {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px 8px 10px;
    border: 2px solid #EF17EF;
    border-radius: 10px;
    background-color: #FFFFFF;
    color: #101010;
    font-size: 14px;
    line-height: 22px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.iw-post-list .iw-post-list__filter-open svg,
.iw-post-list .iw-post-list__filter-head-icon svg {
    display: block;
    fill: #EF17EF;
}

.iw-post-list .iw-post-list__filter-open-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 11px;
    background-color: #EF17EF;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 22px;
}

.iw-post-list .iw-post-list__filter-chips {
    display: contents;
    list-style: none;
    margin: 0;
    padding: 0;
}

.iw-post-list .iw-post-list__filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 5px 10px 5px 15px;
    border-radius: 10px;
    background-color: #EAECED;
    color: #101010;
    font-size: 16px;
    line-height: 26px;
}

.iw-post-list .iw-post-list__filter-chip-remove {
    display: inline-flex;
}

.iw-post-list .iw-post-list__filter-chip-remove svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: #313D47;
}

.iw-post-list .iw-post-list__filter-reset-all {
    color: #EF17EF;
    font-size: 16px;
    line-height: 26px;
}

.iw-post-list .iw-post-list__filter-layer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
}

/* :target only without the runtime: history.replaceState() does not update :target, so a scripted
   layer would stay open after its fragment was removed. The runtime promotes a targeted layer to
   .is-open itself. */
.iw-post-list .iw-post-list__filter-layer:not(.iw-post-list__filter-layer--scripted):target,
.iw-post-list .iw-post-list__filter-layer.is-open {
    display: block;
}

.iw-post-list .iw-post-list__filter-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(16, 16, 16, 0.5);
}

.iw-post-list .iw-post-list__filter-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #FFFFFF;
    color: #101010;
}

.iw-post-list .iw-post-list__filter-layer-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: none;
    margin: 0;
}

.iw-post-list .iw-post-list__filter-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 40px 40px 0 40px;
}

.iw-post-list .iw-post-list__filter-title {
    flex: 1;
    margin: 0;
    font-size: 20px;
    line-height: 32px;
    font-weight: 800;
}

.iw-post-list .iw-post-list__filter-close {
    display: inline-flex;
}

.iw-post-list .iw-post-list__filter-close svg {
    display: block;
    fill: #313D47;
}

.iw-post-list .iw-post-list__filter-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    padding: 25px 40px;
}

.iw-post-list .iw-post-list__filter-layer-search {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 10px;
}

.iw-post-list .iw-post-list__filter-layer-search label {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
}

.iw-post-list .iw-post-list__filter-layer-search input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 15px;
    border: 1px solid #CCCCCC;
    border-radius: 10px;
    font-size: 16px;
}

.iw-post-list .iw-post-list__filter-layer-group {
    padding-bottom: 15px;
    border-bottom: 1px solid #DEDEDE;
}

.iw-post-list .iw-post-list__filter-layer-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 5px 0;
    font-size: 16px;
    line-height: 26px;
    font-weight: bold;
    list-style: none;
    cursor: pointer;
}

.iw-post-list .iw-post-list__filter-layer-group-head::-webkit-details-marker {
    display: none;
}

.iw-post-list .iw-post-list__filter-layer-group-count {
    color: #EF17EF;
}

.iw-post-list .iw-post-list__filter-layer-group-count.is-empty {
    display: none;
}

.iw-post-list .iw-post-list__filter-layer-group-chevron {
    display: inline-flex;
    margin-left: auto;
    transition: transform 200ms;
}

.iw-post-list .iw-post-list__filter-layer-group-chevron svg {
    display: block;
    fill: #EF17EF;
}

.iw-post-list .iw-post-list__filter-layer-group:not([open]) .iw-post-list__filter-layer-group-chevron {
    transform: rotate(-90deg);
}

.iw-post-list .iw-post-list__filter-layer-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.iw-post-list .iw-post-list__filter-layer-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 26px;
    cursor: pointer;
}

/* The checkbox stays the control (keyboard, state, no-JS submit); only its look is replaced. */
.iw-post-list .iw-post-list__filter-layer-option input[type="checkbox"] {
    position: absolute;
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.iw-post-list .iw-post-list__filter-layer-box {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 2px solid #313D47;
    border-radius: 5px;
    background-color: #FFFFFF;
}

.iw-post-list .iw-post-list__filter-layer-option input[type="checkbox"]:checked + .iw-post-list__filter-layer-box {
    border-color: #EF17EF;
    background: #EF17EF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%23FFFFFF' d='M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.iw-post-list .iw-post-list__filter-layer-option input[type="checkbox"]:focus-visible + .iw-post-list__filter-layer-box {
    outline: 2px solid #101010;
    outline-offset: 2px;
}

.iw-post-list .iw-post-list__filter-layer-option-label {
    flex: 1;
}

/* Hidden only once the runtime can show them again: without JavaScript every value stays visible. */
.iw-post-list .iw-post-list__filter-layer--scripted .iw-post-list__filter-layer-options:not(.is-expanded) .iw-post-list__filter-layer-option.is-overflow {
    display: none;
}

.iw-post-list .iw-post-list__filter-layer-more {
    display: none;
    align-self: flex-start;
    margin: 0;
    padding: 0 0 0 30px;
    border: none;
    background: none;
    color: #EF17EF;
    font-size: 16px;
    line-height: 26px;
    cursor: pointer;
}

.iw-post-list .iw-post-list__filter-layer--scripted .iw-post-list__filter-layer-options:not(.is-expanded) .iw-post-list__filter-layer-more {
    display: inline-block;
}

.iw-post-list .iw-post-list__filter-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 40px 40px 40px;
    border-top: 1px solid #DEDEDE;
    background-color: #FFFFFF;
}

.iw-post-list .iw-post-list__filter-submit {
    padding: 13px 30px;
    border: none;
    border-radius: 10px;
    background-color: #EF17EF;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 22px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.iw-post-list .iw-post-list__filter-reset {
    color: #101010;
    font-size: 16px;
    font-weight: bold;
}

/* The page behind the open layer does not scroll along. */
body.iw-post-list-filter-open {
    overflow: hidden;
}

@media screen and (max-width: 480px) {
    .iw-post-list .iw-post-list__filter-result {
        flex-basis: 100%;
        margin-left: 0;
    }
}

/* A-Z initial-letter filter (getInitialLetterFilter). The legacy class names stay so existing theme
   CSS keeps applying; this is only the unstyled-list baseline. */
.iw-post-list .iw-post-list__initial-letters .parent-name {
    font-weight: bold;
    padding: 0 0 8px 0;
}

.iw-post-list .iw-post-list__initial-letters .child-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.iw-post-list .iw-post-list__initial-letters .child-category.unavailable {
    color: #b3b3b3;
    cursor: default;
}

.iw-post-list .iw-post-list__initial-letters .child-category.active {
    font-weight: bold;
    text-decoration: underline;
}

.iw-slider .iw-slider__pagination {
    display: flex;
    justify-content: center;
}

.iw-slider.without_pagination .iw-slider__pagination {
    display: none;
}

.iw-slider .iw-slider__pagination .prev_arrow,
.iw-slider .iw-slider__pagination .next_arrow {
    cursor: pointer;
    height: 24px;
}

/* The slider and carousel arrows are buttons (WCAG 2.1.1, 4.1.2). Take the user agent button
   styles away, so they look like the divs they were. :where() keeps the specificity at 0: every
   theme rule for the arrows still wins, only the user agent styles are replaced. */
:where(.iw-slider .iw-slider__pagination button.prev_arrow, .iw-slider .iw-slider__pagination button.next_arrow, .iw-slider.iw-carousel button.fade) {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: inherit;
}

:where(.iw-slider .iw-slider__pagination button.prev_arrow, .iw-slider .iw-slider__pagination button.next_arrow) {
    display: block;
}

.iw-slider .iw-slider__pagination .dots_area {
    text-align: center;
    min-height: 24px;
    height: fit-content;
}

.iw-slider .iw-slider__pagination .dots_area ul.slick-dots {
    padding: 0;
    margin: 0;
    height: 24px;
}

.iw-slider .iw-slider__pagination .dots_area ul.slick-dots li {
    display: inline-block;
    border: none;
    background: none;
    position: relative;
    cursor: pointer;
    margin: 5px;
}

.iw-slider .iw-slider__pagination .dots_area ul.slick-dots li button {
    display: none;
}

.iw-slider .iw-slider__pagination .dots_area ul.slick-dots li::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid black;
    background-color: white;
}

.iw-slider .iw-slider__pagination .dots_area ul.slick-dots li.slick-active::before {
    background-color: black;
    color: white;
}

/* Columns */
.iw-post-list .col-1-1 {
    width: 100%;
    float: left;
}

.iw-post-list .col-1-2 {
    width: 50%;
    float: left;
}

.iw-post-list .col-1-3 {
    width: 33.333333%;
    float: left;
}

.iw-post-list .col-1-4 {
    width: 25%;
    float: left;
}

.iw-post-list.typation_list .col-1-1,
.iw-post-list.typation_list .col-1-2,
.iw-post-list.typation_list .col-1-3,
.iw-post-list.typation_list .col-1-4 {
    width: 100%;
    float: unset;
}

.iw-post-list.typation_list .post_thumbnail_area {
    display: none;
}

/* Carousel Slider */
.iw-slider.iw-carousel {
    position: relative;
    margin-left: 0;
    margin-right: 0;
}

.iw-slider.iw-carousel .fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    cursor: pointer;
}

.iw-slider.iw-carousel .fade.fade_prev.slick-arrow {
    left: 0;
    justify-content: center;
    flex-direction: column;
}

.iw-slider.iw-carousel .fade.fade_next.slick-arrow {
    right: 0;
    justify-content: center;
    flex-direction: column;
}

.iw-slider.iw-carousel .fade.slick-arrow {
    display: flex;
    cursor: pointer;
}

.iw-slider.iw-carousel .fade.slick-arrow .inner {
    display: flex;
    background: #EF17EF;
    width: 50px;
    height: 50px;
    justify-content: center;
    padding: 13px;
}

.iw-slider.iw-carousel .fade.slick-arrow .outer {
    width: 100px;
}

.iw-slider.iw-carousel .fade svg {
    width: 24px;
    height: 24px;
}

.iw-slider.iw-carousel .fade svg path {
    fill: #17EFEF;
}

/* Carousel Edge Layout */
.iw-slider.iw-carousel-edge.edge-left .iw-carousel-clip {
    clip-path: inset(0 0 0 -100vw);
}

.iw-slider.iw-carousel-edge.edge-right .iw-carousel-clip {
    clip-path: inset(0 -100vw 0 0);
}

.iw-slider.iw-carousel-edge.edge-right .slick-slide {
    direction: ltr;
    text-align: left;
}

.iw-slider.iw-carousel-edge .slick-list {
    overflow: visible !important;
}


.iw-slider.iw-carousel-edge .fade.slick-arrow {
    display: flex !important;
}

.iw-slider.iw-carousel-edge.edge-left .fade.slick-arrow.slick-disabled,
.iw-slider.iw-carousel-edge .fade.slick-arrow.iw-arrow-hidden {
    display: none !important;
}

@media screen and (max-width: 850px) {

    /* Search */
    .iw-post-list .iw-post-list__search {
        width: 66.6666666%;
        margin: 0 auto;
    }

}

@media screen and (max-width: 767px) {

    /* Columns */
    .iw-post-list .col-1-3,
    .iw-post-list .col-1-4 {
        width: 50%;
    }

    /* Pagination */
    .iw-post-list .iw-post-list__pagination .prev_text,
    .iw-post-list .iw-post-list__pagination .next_text {
        display: none;
    }

    .iw-slider.iw-carousel .fade.slick-arrow .outer {
        display: none;
    }

    .iw-slider.iw-carousel .fade.slick-arrow .inner {
        background: transparent;
    }

}

@media screen and (max-width: 640px) {

    /* Columns */
    .iw-post-list .col-1-2,
    .iw-post-list .col-1-3,
    .iw-post-list .col-1-4 {
        width: 100%;
    }

}
