.asset-single {

    & .asset-title {
        font-size: 70px;
        line-height: 82px;
        margin-bottom: 20px;
        color: #000;
    }

    & .asset-header {
        display: flex;
        align-items: center;
        justify-content: space-between;

        & .btn {
            background-color: #000;
        }
    }

    & .asset-gallery {

        & img {
            border-radius: 12px;
        }
    }

    & .asset-form,
    & .asset-details {
        background-color: #fff;
        border-radius: 12px;
        padding: 24px 30px;
    }

    & .asset-details {
        margin-bottom: 30px;
    }

    & .asset-form {

        & h3 {
            font-size: 33px;
            line-height: 39px;
            margin-bottom: 5px;
            padding: 0;
        }

        & p {
            font-size: 15px;
            margin-bottom: 15px;
            padding: 0;
        }

        & .evf-field-container {
            padding: 0;
        }

        & input,
        & select,
        & textarea {
            background-color: #F8F8F8 !important;
            border-radius: 6px;
            border: 1px solid #707070;
        }

        & .everest-forms-submit-button {
            background-color: #000 !important;
            color: #fff !important;
        }

        & .evf-submit-container,
        & .evf-container {
            margin: 0;
            padding: 0;
        }
    }

    & .asset-content {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;

        & .asset-content-left {
            width: calc(100% - 540px);

            & .asset-gallery {
                margin-bottom: 40px;
            }

            & .asset-description {
                font-size: 18px;
                line-height: 24px;
                
                & h4 {
                    font-size: 33px;
                    line-height: 39px;
                    margin-bottom: 15px;
                    font-family: Raleway;
                }
            }
        }

        & .asset-content-right {
            width: 500px;

            & .price {
                font-family: Raleway;
                font-size: 40px;
                font-weight: 700;
            }

            & .tax {
                font-size: 15px;
                color: #000;
                margin-bottom: 15px;
            }

            & .asset-details-row {
                display: flex;
                justify-content: space-between;
                padding: 5px;
                border-top: 1px solid #ccc;
                font-size: 14px;

                & .label {
                    font-weight: 700;
                    display: flex;
                    align-items: center;
                    gap: 10px;
                }
            }
        }
    }
}

.assets {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;

    & .assets-sidebar {
        width: 300px;

        & h3 {
            color: #707070;
            font-size: 20px;
            margin-bottom: 10px;
            line-height: 20px;
        }

        & .sidebar-box {
            margin-bottom: 55px;

            & .price-box {
                margin-bottom: 20px;
            }
        }

        & .fancy-select-wrap {
            padding-top: 0 !important;
        }

        & .btns {
            display: flex;
            gap: 20px;
        }

        & .noUi-connect {
            background: #000 !important;
        }

        & .btn-clear {
            border: 1px solid #000;
            color: #000;
            font-family: Plus Jakarta Sans;
            background-color: transparent;
            cursor: pointer;

            &:hover {
                box-shadow: 0 20px 38px rgba(0,0,0,0.16);
                -ms-transform: translateY(-3px);
                transform: translateY(-3px);
                -webkit-transform: translateY(-3px);
            }
        }

        & button[type="submit"] {
            background-color: #000;
        }
    }

    & .assets-main {
        flex: 1;
        border-top: 1px solid #ccc;
        margin-top: 30px;
        padding-top: 22px;
    }

    & .asset-loop {
        border-bottom: 1px solid #ccc;
        margin-bottom: 20px;

        & .asset-title {
            font-size: 30px;
            font-weight: 700;
            margin-bottom: 15px;
            
            & a {
                color: #000;
            }
        }

        &:hover {

            & .asset-featured-image img {
                transform:scale(1.1);
            }
        }
    }

    & .asset-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        padding-bottom: 20px;

        & .asset-featured-image {
            width: 30%;
            overflow: hidden;
            border-radius: 20px;

            & img {
                aspect-ratio: 16/9;
                object-fit: cover;
                width: 100%;
                height: 100%;
                border-radius: 20px;
                transition: all 0.5s ease-out;
            }
        }

        & .asset-details {
            flex: 1;
        }

        & .asset-btns {
            width: 25%;
            display: flex;
            flex-direction: column;

            & .price {
                font-family: Raleway;
                font-size: 40px;
                font-weight: 700;
                margin-bottom: 5px;
            }

            & .btns {
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            & .btn {
                text-align: center;
                border: 1px solid #000;
                background-color: #000;
                color: #fff;
                border-radius: 100px;
                font-weight: 700;
                margin-top: auto;
                max-width: 120px;
                transition: opacity .45s cubic-bezier(0.25,1,0.33,1),transform .45s cubic-bezier(0.25,1,0.33,1),border-color .45s cubic-bezier(0.25,1,0.33,1),color .45s cubic-bezier(0.25,1,0.33,1),background-color .45s cubic-bezier(0.25,1,0.33,1),box-shadow .45s cubic-bezier(0.25,1,0.33,1);

                &:hover {
                    box-shadow: 0 20px 38px rgba(0,0,0,0.16);
                    -ms-transform: translateY(-3px);
                    transform: translateY(-3px);
                    -webkit-transform: translateY(-3px);
                }
            }

            & .tax {
                font-size: 15px;
                color: #000;
            }
        }

        & .asset-details-row {
            display: flex;
            padding: 5px;
            border-top: 1px solid #ccc;
            font-size: 14px;
            

            & .label {
                display: flex;
                align-items: center;
                gap: 10px;
                font-weight: 600;
            }

            & > div {
                width: 50%;
            }
        }
    }
}

#acf-filter {

    & .fancy-select-wrap {
        margin-bottom: 20px;
    }

    & button {
        width: 100%;
    }
}

.everest-forms .evf-field-container .evf-frontend-row:not(.wp-list-table) {
    margin-left: 0;
    margin-right: 0;

    & > div {
        padding: 0 !important;
    }
}

.asset-gallery {
    & .slider-thumbnails { 
        padding: 0 40px;

        & .slick-slide {
            transition: transform 0.3s ease-out;
            padding: 10px;

            &:focus img {
                box-shadow: 0 0 5px rgba(0,0,0,0.6);
            }

            & img {
                max-width: 100%;
                box-sizing: border-box;
                aspect-ratio: 4/3;
                object-fit: cover;
                width: 100%;
                height: 100%;
            }
        }
    }

    & .slider {
        box-sizing: border-box;
        margin-bottom: 15px;

        & .slick-slide img {
            width: 100%;
            height: 100%;
            aspect-ratio: 4/3;
            object-fit: cover;
        }
    }

    & .slick-prev,
    & .slick-next {
        width: 30px;
        height: 30px;
        opacity: 1 !important;
        z-index: 1;
        background-size: 11px 23px;
        background-position: center;
        background-repeat: no-repeat;
    }

    & .slick-prev {
        left: 5px;
    }

    & .slick-next {
        right: 5px;
    }

    /* General slick slider styling */
    & .slick-slide:focus,
    & .slick-slide:focus {
        outline: none;
        /* remove default outline when on :focus */
    }

    /* hide dots and arrow buttons when slider is not hovered */
    & .slick-slider:not(:hover) .slick-arrow,
    & .slick-slider:not(:hover) .slick-dots {
        opacity: 0;
    }

    /* transition effects for opacity */
    & .slick-arrow {
        transition: opacity 0.5s ease-out;
    }

    /* Loading effects for main slider */
    & .slider {
        background: url(img/tail-spin.svg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100px 100px;
        min-height: 100px;
    }
    & .slider img.slick-loading {
        opacity: 0;
    }
    & .slider img {
        transition: opacity 0.3s ease 0s;
    }
    & .slider .slick-loading:after {
        content:'loading'
    }

    & .slick-prev {
        background-image: url(./images/arrow-prev.png);

        &:before {
            display: none;
        }
    }

    & .slick-next {
        background-image: url(./images/arrow-next.png);

        &:before {
            display: none;
        }
    }

    & .slider-counter {
        text-align: center;
        font-size: 20px;
    }
}

.new-asset-form {
    padding: 80px 0;

    & .acf-fields {
        display: flex;
        flex-wrap: wrap;
        
        & .acf-field {
            width: 50%;
        }
        
        & .acf-field[data-name="images"] {
            width: 100%;
        }
    }
}

@media(max-width: 980px){
    .asset-content {
        & .asset-content-right,
        & .asset-content-left {
            width: 100%;
        }
    }
    .assets {
        & .assets-sidebar,
        & .assets-main { 
            width: 100%;
            flex: auto;
        }

        & .asset-meta {
            & .asset-featured-image,
            & .asset-details,
            & .asset-btns {
                width: 100%;
            }
        }
    }

    .new-asset-form {

        & .acf-fields {
            
            & .acf-field {
                width: 100%;
            }

        }
    }
}

@media(max-width: 640px){
    .asset-single {
        & .asset-content {
            & .asset-content-right {
                & .asset-details-row {
                    flex-wrap: wrap;

                    & > div {
                        width: 100%;
                    }
                }
            }
        }
    }
}