
form.search-form.custom-posts-filter-form {
    background: #dddddd;
    padding: 20px;
}

form.search-form.custom-posts-filter-form {
    display: flex;
    margin: 0px 0px 1rem;
}

.filter-dropdowns {
    display: inline-flex;
    flex-wrap: wrap;
    flex: 1;
    gap: 0.5rem;
    max-width: 100%;
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: space-between;
}

.filter-options > div {
    flex-grow: 1;
}

.filter-options > div > * {
    width: 100%;
}

.search-form.custom-posts-filter-form button.search-submit {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px;
    margin: 0px 1rem;
}

.filter-dropdown select, .search-form.custom-posts-filter-form input.search-field {
    padding: 10px;
    border: 0px;
    height: -webkit-fill-available;
}

div#ce_holder {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

a.ce_group {
    flex: 1 1 calc(33.33% - 1rem); /* Adjust to 3 items per row, subtracting gap */
    max-width: calc(34% - 1rem); /* Prevent overflow */
    box-sizing: border-box; /* Ensure padding is included in the width */
}

.ce_image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ce_overlay {
    height: 100%;
}

.ce_overlay p {
    color: white;
    background-color: rgba(0, 0, 0, 0.267);
    padding: 1rem;
    position: relative;
    bottom: 0px;
}

span.ce_text p {
    margin: 0px;
}

@media (max-width: 768px ) {
    form.search-form.custom-posts-filter-form, .filter-options, div#ce_holder {
        flex-direction: column;
    }
    .search-form.custom-posts-filter-form button.search-submit {
        margin: 1rem 0px 0px;
    }
    a.ce_group {
        flex: 1 1 calc(100% - 1rem);
        max-width: calc(100% - 0rem);
      }

}