/* WRAPPER */
#biggym_jobs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start; /* otherwise the sidebar can't be sticky, since otherwise the height would be the same as the flexbox parent */
    --biggym-jobs-max-width: 1600px;
}



/* HEADINGS */
#biggym_jobs h2 {
    margin-top: 0px;
    margin-bottom: 0px;
}
#biggym_jobs h2:not(:last-child) {
    margin-bottom: 5px; /* this should stack with the 'gap' inside of flexboxes */
}



/* ELEMENTS */
#biggym_jobs label {
    font-size: 16px; /* was 20px */
    font-weight: 500;
    margin-bottom: 0px;
}
#biggym_jobs input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
#biggym_jobs textarea,
#biggym_jobs select {
    appearance: none;
    background-color: #1b1b1b;
    color: #ffffff;
    border: 1px solid #545452;
    border-radius: 0px 10px 0px 10px;
    font-weight: 500;
    font-size: 16px; /* was 20px */
    padding: 8px 16px;
}
#biggym_jobs select {
    cursor: pointer;
}
#biggym_jobs input:not([type="submit"]):not([type="checkbox"]):not([type="radio"])::placeholder,
#biggym_jobs textarea::placeholder {
    opacity: 1;
    color: #ffffff;
}
#biggym_jobs input:-webkit-autofill,
#biggym_jobs input:-webkit-autofill:hover,
#biggym_jobs input:-webkit-autofill:focus,
#biggym_jobs input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: inherit !important;

    -webkit-box-shadow: 0 0 0 1000px #1b1b1b inset !important;
    box-shadow: 0 0 0 1000px #1b1b1b inset !important;

    background-color: #1b1b1b !important;
}
#biggym_jobs input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
#biggym_jobs input[type="checkbox"] {
    appearance: none;
    width: 1.2em;
    height: 1.2em;
    position: relative;
    top: .2em; /* was .1em */
    flex-basis: auto;
    flex-grow: 0;
    flex-shrink: 0;
    background-color: #ffffff;
    border-radius: 0px 5px 0px 5px;
}
#biggym_jobs input[type="checkbox"]:checked {
    background-color: #e6007c;
    background-image: url('../img/checkbox-check.png');
    background-size: 70%;
    background-position: center center;
    background-repeat: no-repeat;
}
.biggym_jobs_checkbox_label {
    display: flex;
    align-items: baseline;
    gap: 15px;
}
.biggym_jobs_checkbox_label .count {
    margin-left: auto;
}
.biggym_jobs_selectbox_label::after {
    content: '✎';
    display: block;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%) scaleX(-1);
    pointer-events: none;
}
.biggym_jobs_selectbox_label + .biggym_jobs_selectbox_label {
    margin-top: -5px;
}


/* HEADER */
#biggym_jobs_header {
    width: 100%;
    position: relative;
    padding-top: 10%;
    margin-bottom: calc(80px + 50px / 2); /* 50px is the height of the search field wrapper */
    border-bottom: 1px solid #e6007c;
}
#biggym_jobs.has-search-typo-suggestion #biggym_jobs_header {
    margin-bottom: calc(80px + 50px / 2 + 10px + 16px); /* (50px + 10px + 16px) is the height of the search field wrapper if it has a typo suggestion */
}
#biggym_jobs_header > img {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}



/* FILTERS */
#biggym_jobs_filters {
    width: 25%;
    max-width: calc(.25 * var(--biggym-jobs-max-width));
    position: relative;
    padding-left: 80px;

    position: sticky;
    top: calc(var(--top-bar-height) + var(--header-height) + 20px);
    z-index: 2;
}
#biggym_jobs_filters.expanded {
    max-height: calc(100vh - var(--top-bar-height) - var(--header-height) - 25px);
    padding-bottom: 25px;
}
#biggym_jobs_filters.expanded #biggym_jobs_filters_scroll_container {
    max-height: calc(100vh - var(--top-bar-height) - var(--header-height) - 25px - 25px - 39.5px);
}

#biggym_jobs_filters > form {
    height: 100%;
}
#biggym_jobs_filters_scroll_container {
    height: 100%;
    overflow-y: scroll;
}
#biggym_jobs_filters details > summary {
    list-style: none;
    margin-bottom: 25px;
    font-family: "eurostile-extended", Sans-serif;
    font-size: 30px;
    font-weight: 600;
    text-transform: uppercase;
}
#biggym_jobs_filters details > summary::-webkit-details-marker {
    display: none;
}
#biggym_jobs_filters details > summary svg {
    height: 1.2em;
    width: auto;
    vertical-align: -.25em;
    margin-right: .1em;
    pointer-events: none;
    display: none !important;
}
#biggym_jobs_filters details[open] > summary {
    
}
#biggym_jobs_filters form details > div {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#biggym_jobs_filters form label:not(#biggym_jobs_extra_filters_search_wrapper) {
    position: relative;
}
/*#biggym_jobs_filters form label > span {
    display: block;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 1;
    transition: opacity .3s ease;
}
#biggym_jobs_filters form label.has_focus > span {
    opacity: 0;
}*/
#biggym_jobs_filters form fieldset {
    padding: 0px;
    border: none;
}
#biggym_jobs_filters form fieldset > div {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#biggym_jobs_filters_active {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    transition: opacity .3s ease;
}
#biggym_jobs_filters_active:not(:empty) {
    margin-bottom: 20px;
}
.biggym_jobs_filters_active_filter {
    border: 2px solid #e6007c !important;
    border-radius: 0px 10px 0px 10px !important;
    padding: 2px 9px 4px 9px !important;
    color: #ffffff !important;
    font-family: "eurostile-extended", sans-serif !important;
    text-transform: uppercase !important;
    font-size: 12px !important; /* was 14px */
    font-weight: 600 !important;
    max-width: 100% !important;
    white-space: normal !important;
    text-align: left !important;
    word-break: break-word;
}
.biggym_jobs_filters_active_filter:hover,
.biggym_jobs_filters_active_filter:active {
    background-color: #e6007c !important;
}


/* SEARCH */
#biggym_jobs_extra_filters_search_wrapper {
    position: absolute;
    bottom: calc(100% + 80px);
    left: 75%;
    width: 250%;
    /*transform: translateY(50%);*/ /* No longer necessary, because the header already has an extra margin bottom equal to half the height of the search field */
}
#biggym_jobs_extra_filters_search {
    padding: 12px calc(1em * 1.5 + 12px * 2) 12px calc(24px + 1em + 15px) !important;
    background-color: #000000 !important;
}
#biggym_jobs #biggym_jobs_extra_filters_search:-webkit-autofill,
#biggym_jobs #biggym_jobs_extra_filters_search:-webkit-autofill:hover,
#biggym_jobs #biggym_jobs_extra_filters_search:-webkit-autofill:focus,
#biggym_jobs #biggym_jobs_extra_filters_search:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #000000 inset !important;
    box-shadow: 0 0 0 1000px #000000 inset !important;

    background-color: #000000 !important;
}
#biggym_jobs_extra_filters_search_wrapper svg {
    position: absolute;
    top: calc(50px / 2); /* 50px is the height of the search input field */
    left: 24px;
    transform: translateY(-50%);
    width: 1em;
    height: 1em;
    pointer-events: none;
}
/*#biggym_jobs_extra_filters_search:not(:placeholder-shown) {
    padding-left: 24px;
}
#biggym_jobs_extra_filters_search:not(:placeholder-shown) ~ svg {
    opacity: 0;
}*/
#biggym_jobs_extra_filters_search_clear {
    position: absolute;
    top: calc(50px / 2); /* 50px is the height of the search input field */
    right: 0px;
    transform: translateY(-50%);
    padding: 0;
    line-height: 1;
    border: none;
    font-size: 2em;
    color: #ffffff;
    height: calc(1em / 2 * 1.5 + 12px * 2);
    width: calc(1em / 2 * 1.5 + 12px * 2);
}
#biggym_jobs_extra_filters_search_clear:hover,
#biggym_jobs_extra_filters_search_clear:focus {
    background-color: transparent !important;
    color: #e6007c !important;
}
#biggym_jobs_extra_filters_search_typo_suggestion {
    /*position: absolute;
    top: calc(100% + 10px);
    left: 0px;*/
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 0px;
}
#biggym_jobs_extra_search_filters_search_auto_suggestions {
    position: absolute;
    z-index: 100;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 320px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;

    background: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
#biggym_jobs_extra_search_filters_search_auto_suggestions li {
    margin: 0;
    padding: 0;
}
#biggym_jobs_extra_search_filters_search_auto_suggestions button {
    display: -webkit-box;
    overflow: hidden;

    white-space: normal;
    overflow-wrap: break-word;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    line-height: 1.3 !important;

    width: 100%;
    padding: 10px 12px;

    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 6px;

    font: inherit;
    text-align: left;
    cursor: pointer;

    transition:
        background-color 120ms ease,
        color 120ms ease;
}
#biggym_jobs_extra_search_filters_search_auto_suggestions button:hover,
#biggym_jobs_extra_search_filters_search_auto_suggestions button:focus-visible,
#biggym_jobs_extra_search_filters_search_auto_suggestions button.active {
    background: rgba(255, 255, 255, 0.09);
}
#biggym_jobs_extra_search_filters_search_auto_suggestions button:active {
    background: rgba(255, 255, 255, 0.14);
}



/* RESULTS */
#biggym_jobs_results {
    width: 75%;
    max-width: calc(.75 * var(--biggym-jobs-max-width));
    position: relative;
    padding-right: 80px;
    padding-left: 40px;
}
#biggym_jobs_results > ul {
    list-style: none;
    padding: 0px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
#biggym_jobs_results > ul ul {
    list-style: disc;
    padding-left: 1em;
}
#biggym_jobs_results > ul ul > li:not(:last-child) {
    margin-bottom: 15px;
}
#biggym_jobs_results_message_no_results {
    font-size: 18px;
}
.biggym_jobs_results_item {
    position: relative;
    border: 1px solid #585856;
    border-radius: 0px 10px 0px 10px;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: auto 242px;
}
.biggym_jobs_results_item > figure {
    display: flex;
    flex-wrap: wrap;
}
.biggym_jobs_results_item > figure > img {
    width: 240px;
    min-height: 240px;
    object-fit: cover;
    object-position: center center;
}
.biggym_jobs_results_item > figure > figcaption {
    padding: 25px; /* was 20px */
    background-color: #1b1b1b;
    flex-basis: 1px;
    flex-grow: 1;
    font-style: normal;
    color: inherit;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    text-wrap: balance;
}
.biggym_jobs_results_item > figure > figcaption > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.biggym_jobs_results_item > figure > figcaption > div:nth-child(1):not(:only-child) {
    width: calc(60% - 20px / 2);
}
.biggym_jobs_results_item > figure > figcaption > div:nth-child(2) {
    width: calc(40% - 20px / 2);
    margin-top: auto;
    margin-bottom: auto;
}
.biggym_jobs_results_item > figure > figcaption > div:only-child {
    width: 100% !important;
}
.biggym_jobs_results_item > figure > figcaption > * {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
}
.biggym_jobs_results_item_location {
    font-family: "eurostile-extended", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 1px 10px 4px 10px;
    background-color: #e6007c;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    width: max-content;
    border-radius: 0px 10px 0px 10px;
    margin-bottom: 15px !important;
}
.biggym_jobs_results_item_title {
    color: #ffffff;
    font-size: 30px !important;
}
.biggym_jobs_results_item_title > a {
    color: inherit !important;
}
.biggym_jobs_results_item_data {
    text-transform: uppercase;
    font-family: "eurostile-extended", Sans-serif;
    font-size: 20px;
    margin-bottom: 15px !important;
}
.biggym_jobs_result_item_view_button {
    display: inline-block;
    line-height: 1;
    text-align: center;
    transition: all .3s;
    padding: 15px 40px 15px 40px;
    border: 2px solid #e6007f;
    border-radius: 0px 10px 0px 10px;
    background-color: transparent;
    color: #ffffff !important;
    font-family: "eurostile-extended", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;

    margin-top: auto;
}
/*.biggym_jobs_result_item_view_button::after {
    content: '';
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 1;
}*/
.biggym_jobs_result_item_view_button:hover {
    background-color: #e6007f;
}
@media (min-width: 1300px) and (max-width: 1439.98px) {
    .biggym_jobs_results_item_title {
        font-size: calc(30px + 4 * (100vw - 1439.98px) / (1439.98 - 1300)) !important;
    }
}
@media (min-width: 1300px) {
    body.admin-bar #biggym_jobs_filters {
        top: calc(var(--top-bar-height) + var(--header-height) + var(--wp-admin--admin-bar--height));
        max-height: calc(100vh - var(--top-bar-height) - var(--header-height) - var(--wp-admin--admin-bar--height));
    }
    body.admin-bar #biggym_jobs_filters #biggym_jobs_filters_scroll_container {
        max-height: calc(100vh - var(--top-bar-height) - var(--header-height) - var(--wp-admin--admin-bar--height) - 20px);
    }
    #biggym_jobs_filters details > summary svg {
        display: none;
    }
    #biggym_jobs_filters_active:not(:empty) {
        margin-top: 20px;
    }
    #biggym_jobs_filters_actions {
        display: none;
    }
}
@media (max-width: 1299.98px) {
    #biggym_jobs_filters_actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 20px;
    }
    #biggym_jobs_filters_actions button {
        font-family: "eurostile-extended", Sans-serif;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;

        padding: 8px 15px;
        background-color: #1b1b1b;
        border: 2px solid #e6007c;
        color: #ffffff;
        width: max-content;
        border-radius: 0px 10px 0px 10px;
        transition: all .3s;

        width: calc(100% / 2 - 20px / 2);
    }
    #biggym_jobs_filters_actions #biggym_jobs_filters_save {
        background-color: #e6007c;
    }
    #biggym_jobs_filters.expanded {
        padding: 25px;
        margin-top: -25px;
        background-color: #1b1b1b;
        /*border: 1px solid #585856;*/
        /*border-radius: 0px 10px 0px 10px;*/
        max-height: calc(100vh - var(--top-bar-height) - var(--header-height));
        top: calc(var(--top-bar-height) + var(--header-height));
    }
    #biggym_jobs_filters details > summary {
        padding: 8px 30px;
        background-color: #000000;
        border: 2px solid #e6007c;
        width: max-content;
        border-radius: 0px 10px 0px 10px;
        transition: all .3s;
    }
    /*#biggym_jobs_filters details > summary:hover,*/
    #biggym_jobs_filters details[open] > summary {
        background-color: #e6007c;
        display: none;
    }
    #biggym_jobs_filters details > summary {
        font-size: 16px;
    }
    #biggym_jobs #biggym_jobs_filters input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
    #biggym_jobs #biggym_jobs_filters textarea,
    #biggym_jobs #biggym_jobs_filters select {
        background-color: #000000;
    }
    #biggym_jobs #biggym_jobs_filters input:-webkit-autofill,
    #biggym_jobs #biggym_jobs_filters input:-webkit-autofill:hover,
    #biggym_jobs #biggym_jobs_filters input:-webkit-autofill:focus,
    #biggym_jobs #biggym_jobs_filters input:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 1000px #000000 inset !important;
        box-shadow: 0 0 0 1000px #000000 inset !important;

        background-color: #000000 !important;
    }
    .biggym_jobs_results_item_title {
        font-size: 26px !important;
    }
    #biggym_jobs_filters {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 80px;
    }
    #biggym_jobs_results {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 80px;
    }
    #biggym_jobs_extra_filters_search_wrapper {
        left: 80px;
        width: calc(100% - 80px * 2);
    }
    #biggym_jobs_filters.expanded #biggym_jobs_extra_filters_search_wrapper {
        bottom: calc(100% + 80px - 25px)
    }
    #biggym_jobs_filters details[open] {
        margin-bottom: 20px;
    }
    #biggym_jobs_filters details > summary {
        cursor: pointer;
    }
    #biggym_jobs_filters > form > details:not([open]) ~ #biggym_jobs_filters_active {
        display: none;
    }
    #biggym_jobs_filters:not(.expanded) #biggym_jobs_filters_active,
    #biggym_jobs_filters:not(.expanded) #biggym_jobs_filters_actions {
        display: none;
    }
    #biggym_jobs_filters_active:empty {
        margin-bottom: 5px;
    }
}
@media (max-width: 1023.98px) {
    #biggym_jobs_header {
        padding-top: 20%;
        margin-bottom: calc(40px + 50px / 2);
    }
    #biggym_jobs.has-search-typo-suggestion #biggym_jobs_header {
        margin-bottom: calc(40px + 50px / 2 + 10px + 16px);
    }
    #biggym_jobs_extra_filters_search_wrapper {
        bottom: calc(100% + 40px);
        left: 25px;
        width: calc(100% - 25px * 2);
    }
    #biggym_jobs_filters.expanded #biggym_jobs_extra_filters_search_wrapper {
        bottom: calc(100% + 40px - 25px);
    }
    #biggym_jobs_filters,
    #biggym_jobs_results {
        padding-left: 25px;
        padding-right: 25px;
    }
    /*.biggym_jobs_results_item > figure > img {
        width: 180px;
        min-height: 180px;
    }*/
}
@media (min-width: 820px) and (max-width: 1023.98px) {
    .biggym_jobs_results_item_title {
        font-size: calc(26px + 3 * (100vw - 1023.98px) / (1023.98 - 820)) !important;
    }
    .biggym_jobs_results_item_data {
        font-size: calc(20px + 2 * (100vw - 1023.98px) / (1023.98 - 820)) !important;
    }
}
@media (max-width: 819.98px) {
    /*.biggym_jobs_results_item > figure > img {
        width: 200px;
        min-height: 200px;
    }*/
    .biggym_jobs_results_item_title {
        font-size: 23px !important; /* was 24px */
    }
    .biggym_jobs_results_item_data {
        font-size: 18px;
    }
    .biggym_jobs_results_item > figure > figcaption {
        gap: 0px;
        flex-direction: column;
    }
    .biggym_jobs_results_item > figure > figcaption > div {
        width: 100% !important;
    }
    .biggym_jobs_results_item > figure > figcaption > div:nth-child(1):not(:only-child) {
        display: contents;
    }
    .biggym_jobs_results_item > figure > figcaption > div:nth-child(1):not(:only-child) > .biggym_jobs_result_item_view_button {
        order: 9999; /* always at the end */
        width: max-content;
        max-width: 100%;
    }
    .biggym_jobs_results_item > figure > figcaption > div:not(:nth-child(1)) {
        margin-bottom: 20px;
    }
    #biggym_jobs_results > ul ul {
        font-size: 15px;
    }
    #biggym_jobs_results > ul ul > li:not(:last-child) {
        margin-bottom: 7.5px;
    }
}
@media (max-width: 680.98px) {
    .biggym_jobs_results_item {
        contain-intrinsic-size: auto calc(213.1875px + ((100vw - 20px * 2 - 1px * 2) * 9 / 16 + 1px * 2));
        /* 213.1875px = height of <figcaption> */
        /* 20px * 2 = page padding left & right */
        /* 1px * 2 = result item border left & right */
        /* 9 / 16 = ratio of image height vs image width */
        /* 1px * 2 = result item border top & bottom */
    }
    .biggym_jobs_results_item > figure > img {
        width: 100%;
        min-height: auto;
        aspect-ratio: 16 / 9;
    }
    .biggym_jobs_results_item > figure > figcaption {
        flex-basis: 100%;
    }
}
@media (min-width: 601px) and (max-width: 1299.98px) {
    body.admin-bar #biggym_jobs_filters {
        top: calc(var(--top-bar-height) + var(--header-height) + 25px + var(--wp-admin--admin-bar--height));
    }
    body.admin-bar #biggym_jobs_filters.expanded {
        top: calc(var(--top-bar-height) + var(--header-height) + var(--wp-admin--admin-bar--height));
        max-height: calc(100vh - var(--top-bar-height) - var(--header-height) - var(--wp-admin--admin-bar--height));
    }
    body.admin-bar #biggym_jobs_filters.expanded #biggym_jobs_filters_scroll_container {
        max-height: calc(100vh - var(--top-bar-height) - var(--header-height) - var(--wp-admin--admin-bar--height) - 25px * 2 - 39.5px);
    }
}
@media (max-width: 600.98px) {
    
}
@media (max-width: 479.98px) {
    .biggym_jobs_results_item_title {
        font-size: 22px !important;
    }
}
@media (max-width: 374.98px) {
    .biggym_jobs_results_item_title {
        font-size: 18px !important;
    }
    .biggym_jobs_results_item_data {
        font-size: 14px;
    }
    .biggym_jobs_results_item_location {
        font-size: 14px;
    }
    .biggym_jobs_result_item_view_button {
        padding: 10px 20px;
        font-size: 12px;
    }
    #biggym_jobs_results > ul ul {
        font-size: 14px;
    }
}