.ff_ajax {
    transition: opacity .6s ease;
    position: relative;
}
.ff_ajax.filter_loading,
.ff_ajax.loading {
    opacity: 1;
}
.ff_ajax.filter_loading .loop:after,
.ff_ajax.loading .loop:after {
    content: '\e90f';
    font-family: 'icomoon';
    position: absolute;
    color: #000;
    font-weight: 400;
    animation: fa-spin 1.5s linear infinite;
    left: 50%;
    translate: -50% -50%;
    top: 50%;
    font-size: 30px;
    opacity: 0.5;
}

.load-more-btn {
    margin-top: 40px;
}
.load_more_loading .load-more-btn {
    position: relative;
    pointer-events: none;
}
.load_more_loading .load-more-btn:after {
    content: '\e90f';
    font-family: 'icomoon';
    position: absolute;
    right: -25px;
    color: #000;
    font-weight: 400;
    animation: fa-spin 1.5s linear infinite;
}

.filter-con {
    position: relative;
}
.filter-con .label {
    display: block;
}

.search-con input,
.filter-date input {
    padding-right: 20px;
}
.filter-con .field_clear {
    position: absolute;
    right: 4px;
    top: 50%;
    cursor: pointer;
    line-height: 1;
    translate: 0 -50%;
}
.filter-con .field_clear:after {
    content: '\e9df';
    font-family: 'icomoon';
    font-size: 16px;
    color: inherit;
}
.filter-con .field_clear:hover {
    color: #ef3434;
}

.filter_indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    line-height: 1;
    margin-top: 10px;
}
.filter_indicators .indicator {
    line-height: 1;
    border: 1px solid #e0e1e4;
    padding: 6px 8px 6px 12px;
    display: inline-flex;
    gap: 8px;
    background: #fbfbfb;
    color: inherit;
    font-size: 12px;
    align-items: center;
}
.filter_indicators .indicator .remove {
    cursor: pointer;
    transition: color .3s ease;
}
.filter_indicators .indicator .remove:before {
    content: '\e9df';
    font-family: 'icomoon';
    font-size: 16px;
    color: inherit;
}
.filter_indicators .indicator .remove:hover {
    color: #ef3434;
}

.ff_ajax_filter_buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}
.ff_ajax_filter_buttons button {
    padding: 7px 14px;
    min-height: initial;
    border-radius: 4px;
    border: 2px solid #eee;
    background: #eee;
    color: #495056;
}
.ff_ajax_filter_buttons button.selected {
    border-color: #495056;
}

.ff_ajax .intro-animate {
    animation: fade-in-bottom 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}


.flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.grid {
    display: grid;
}
.grid.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.grid.cols-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
.gap-20 {
    gap: 20px;
}

.mt-30 {
    margin-top: 30px;
}


.ff_ajax .loop {
    margin-top: 40px;
    position: relative;
}
.ff_ajax .item .s1{
    /* aspect-ratio: 302 / 196; has an issue like this https://prnt.sc/OcSJzXpIF8S7 */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.ff_ajax .item .s1:before{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #f0f0f0;
    opacity: 1;
    transition: opacity 0.5s;
    pointer-events: none;
}
.ff_ajax .item .s1:after {
    content: '';
    height: 74px;
    width: 74px;
    background: url('https://nextlevelracing.com/wp-content/uploads/2024/02/video-icon-002.svg') no-repeat center;
    background-size: 74px;
    transition: scale 0.3s, opacity 0.3s;
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    pointer-events: none;
}
.ff_ajax .item .s1:hover:after {
    scale: 1.05;
    opacity: 0.8;
}
.ff_ajax .item .s1:hover:before {
    opacity: 0.8;
}
.ff_ajax .item .s1 img {
    position: relative;
    aspect-ratio: 302 / 196;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: center center;
}
.ff_ajax .item .s2 {
    padding: 20px 0 0;
}
.ff_ajax .item .title {
    font-weight: 800;
    font-size: 18px;
    line-height: 24px;
    color: #000;
    font-family: 'Exo';
    margin-bottom: 6px;
}
.ff_ajax .item .text {
    font-weight: 300;
    font-size: 14px;
    line-break: 17px;
    color: #000;
}

.fancybox-button:after {
    content: none !important;
}

.ff_ajax .r1,
.ff_ajax .r2{
   display: flex;
   gap: 30px;
}
.ff_ajax .c1 {
    width: 322px;
    max-width: 100%;
    position: relative;
    padding: 0 10px;
}
.ff_ajax .c2 {
    flex: 1;
    position: relative;
    padding: 0 10px;
}
.ff_ajax .r1 {
    color: #fff;
    position: relative;
    margin-bottom: 55px;
    align-items: flex-end;
}
.ff_ajax .r1:before {
    content: '';
    position: absolute;
    width: 400%;
    left: 50%;
    translate: -50% 0;
    height: 100%;
    top: 0;
    /* background: #000; */
    pointer-events: none;
}

.ff_ajax .filter-heading {
    font-weight: 900;
    font-size: 18px;
    line-height: 24px;
    font-family: 'Exo';
    text-transform: uppercase;
    
}
.ff_ajax .filter-sub-heading {
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    margin: 5px 0 12px;
}
.ff_ajax .c-link {
    font-weight: 800;
    font-size: 14px;
    line-height: 15px;
    font-family: 'Exo';
    text-transform: uppercase;  
    color: #FF0000;
    display: inline-block;
    position: relative;
    padding-right: 12px;
}
.ff_ajax .c-link:after {
    content: "\e90d";
    font-family: 'icomoon' !important;
    position: absolute;
    top: -1px;
    right: 0;
}
.ff_ajax .r1 > .c2 > .con{
    background: linear-gradient(180deg, #141414 0%, #161616 100%);
    padding: 32px 36px;
    border-radius: 10px 10px 0px 0px;
}
.ff_ajax  .search-con {
    position: relative;
}
.ff_ajax  .search-con:after {
    content: "\e9a8";
    font-family: 'icomoon' !important;
    font-weight: normal !important;
    height: 43px;
    width: 43px;
    background: #FF0000;
    display: inline-grid;
    place-content: center;
    border-radius:  0 10px 10px 0;
    position: absolute;
    right: 0;
    top: 0;
    pointer-events: none;
    font-size: 14px;
}

.ff_ajax  .search-con .cstm_search_field {
    height: 43px;
    background: #191919 0% 0% no-repeat padding-box;
    border: 1px solid #555555;
    border-radius: 10px;
    opacity: 1;  
    color: #929292;
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 400;
    width: 100%;
    outline: none !important;
}
.ff_ajax  .search-con .cstm_search_field::placeholder {
    opacity: 1;
    color: inherit;
}

.ff_ajax .r2 > .c1  .r2-title {
    position: relative;
    font-weight: 900;
    font-size: 22px;
    line-height: 29px;
    font-family: 'Exo';
    color: #000;
    text-transform: uppercase;
}
.ff_ajax .r2 > .c1  .r2-text {
    font-size: 16px;
    line-height: 22px;
    color: #000;
    margin-top: 8px;
}

.ff_ajax .ff_ajax_filter_checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ff_ajax .ff_ajax_filter_checkboxes .checkbox {
    line-height: 1;
}
.ff_ajax .ff_ajax_filter_checkboxes  input[type="checkbox"] {
    appearance: none;
    height: 12px;
    width: 12px;
    border: 1px solid #707070;
    background: #f0f0f0;
    margin: 0;
    transition: all 0.3s;
}
.ff_ajax .ff_ajax_filter_checkboxes  input[type="checkbox"]:checked {
    background: #FF0033;
    border-color: #FF0033;
}
.ff_ajax .ff_ajax_filter_checkboxes label {
    color: #000;
    font-size: 18px;
    line-height: 23px;
    display: inline-flex;
    gap: 16px;
    align-items: center;
}
.ff_ajax .ff_ajax_filter_checkboxes  input[type="checkbox"]:checked  + span{
    font-weight: bold;
    color: #FF0033;
}

.ff_ajax .file-type-con.parent .filter-con {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 40px;
    grid-row-gap: 22px;
    margin-bottom: 50px;
    align-items: flex-start;
}
.ff_ajax .file-type-con.parent button {
    all: initial;
    box-sizing: border-box;
    font-family: 'Exo';
    color: #000;
    font-weight: 900;
    font-size: 18px;
    line-height: 24px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 10px 37px 10px 37px;
    background: #F0F0F0;
    border-radius: 10px;
    
    min-height: 79px;
}
.ff_ajax .file-type-con.parent button.selected {
    background: #000;
    color: #fff;
}
.ff_ajax .file-type-con.children {
    display: grid; 
    gap: 30px;
    margin-bottom: 43px;
}
.ff_ajax .file-type-con.children > .item-child {
    display: none;
    animation: fadeIn 0.3s ease;
}
.ff_ajax .file-type-con.children > .item-child.show {
    display: block;
}
.ff_ajax.filter_loading .file-type-con.children > .item-child.show {
    display: none;
}

.ff_ajax .file-type-con.children .filter-con {
    display: flex; 
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 22px;
}
.ff_ajax .file-type-con.children button {
    all: initial;
    box-sizing: border-box;
    font-family: 'Exo';
    color: #000;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    cursor: pointer;
    padding: 8px 37px 8px 37px;
    background: #fff;
    border-radius: 60px;
    /* place-content: center; */
    border: 1px solid #000;
    position: relative;
}
.ff_ajax .file-type-con.children button:after {
    all: initial;
    content: '\e9df';
    font-family: 'icomoon' !important;
    color: #FF0000;
    font-weight: 300;
    font-size: 10px;
    position: absolute;
    right: 14px;
    top: 11px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ff_ajax .file-type-con.children button.selected {
    background: #000;
    color: #fff;
}
.ff_ajax .file-type-con.children button.selected:after {
    opacity: 1
}

.ff_ajax .file-type-con.children .item-child > .title {
    font-family: 'Exo';
    font-weight: 900;
    font-size: 22px;
    line-height: 29px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 14px;
    
}
.ff_ajax .file-type-con button:after {
    content: none;
}

.ff_ajax .loop {
    display: grid;
    gap: 44px;
}
.ff_ajax .g-heading {
    font-family: 'Exo';
    font-weight: 900;
    font-size: 18px;
    line-height: 24px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 14px;
}
.ff_ajax .popular .g-heading {
    font-size: 22px;
    line-height: 29px;
}
.ff_ajax .sub_items {
    display: grid;
    gap: 12px;
}
.ff_ajax .item-faq {
    overflow: hidden;
    position: relative;
    background: #F6F6F6;
    border-radius: 5px;
}
.ff_ajax .item-faq .item-title {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #000;
    background: #F6F6F6;
    padding: 12px 40px 12px 18px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}
.ff_ajax .item-faq .item-title:after {
    content: '\f0d7';
    font-family: 'fontAwesome';
    position: absolute;
    right: 20px;
    top: 12px;
    transition: rotate 0.3s;   
}
.ff_ajax .item-faq.active .item-title:after {
    rotate: -180deg
}
.ff_ajax .item-faq.active .item-title {
    font-weight: 700;
}
.ff_ajax .item-faq .item-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #000;
    padding: 12px 40px 12px 18px;
}
.ff_ajax .item-faq .item-text ul {
    margin-top: 0!important;
}

.ff_ajax .group {
    display: none;
    animation: fadeIn 0.3s ease;
}
.ff_ajax .group.show {
    display: block;
}

.ff_ajax .group .cols-con {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 26px;
    grid-row-gap: 12px;
}
.ff_ajax .group .cols-con .c1,
.ff_ajax .group .cols-con .c2 {
    width: 100%;
    padding: 0
}

@media (max-width: 1366px) {

    .ff_ajax .file-type-con.parent .filter-con {
        grid-template-columns: repeat(2, 1fr);
    }    
    .ff_ajax .group .cols-con {
        grid-template-columns: 1fr;
    }    
}
@media (max-width: 1023px) {
    .ff_ajax .r2 {
        flex-direction: column;
    }
    .ff_ajax .r2 .c1,
    .ff_ajax .r2 .c2 {
        flex: initial;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .ff_ajax .r1 {
        flex-direction: column;
        padding-bottom: 32px;
        margin-bottom: 50px;
    } 
    .ff_ajax .r1 .c1,
    .ff_ajax .r1 .c2 {
        flex: initial;
        width: 100%;
        padding: 0 36px;
    }  
    .ff_ajax .r2 .c1,
    .ff_ajax .r2 .c2 {
        padding: 0 36px;
    }      
     .ff_ajax .r1 .c1{
         order: 2;
     }
    .ff_ajax .r1 > .c2 > .con {
        padding: 0 0;
    } 

    .ff_ajax .file-type-con .filter-con {
        column-gap: 15px;
        row-gap: 15px;
    }  
    .ff_ajax .loop {
        grid-template-columns: 1fr;
    }   
    .ff_ajax .file-type-con.parent .filter-con {
        grid-template-columns: repeat(1, 1fr);
    }     
}