
body {
    font-family: "Fjalla One", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.navbar {
    z-index: 1;
}

.detail-background {
    background: url(../../images/garage/garage-bg.jpg) no-repeat center;
    background-size: cover;
    width: 100vw;
    height: 100vh;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.detail-main {
    position: relative;
    z-index: 1;

    font-size: 16px;
}

.detail-main .content {
    display: flex;
    flex-direction: column;

    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 960px;
    width: 100%;
    background: #EBEBEB;

    position: relative;
}

.detail-main .content .h3 {
    font-family: 'Impact';
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: unset;
    margin-bottom: unset;
}


.detail-main .content > a.back {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    cursor: pointer;
}

.detail-main .content > a.back img {
    filter: drop-shadow(0px 4px 4px rgba(0,0,0,0.25));
}

.detail-main .content > a.back:hover {
    opacity: 0.7;
}

.detail-main .content .image-gallery {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: black;
    position: relative;
}

.detail-main .content .image-gallery .lSAction > a {
    height: 64px;
    margin-top: -32px;
    background-image: unset;
    opacity: 1;
}

.detail-main .content .image-gallery .lSAction > a:hover {
    opacity: 0.8;
}

.detail-main .content .image-gallery .lSAction > .lSPrev {
    transform: rotate(180deg);
}

.detail-main .content .image-gallery .lSAction > .lSNext {

}

.detail-main .content .image-gallery.only-one .lSAction > a,
.detail-main .content .image-gallery.start .lSAction > .lSPrev,
.detail-main .content .image-gallery.end .lSAction > .lSNext {
    opacity: 0.1;
}

.detail-main .content .image-gallery ul {
    padding: unset;
    margin: unset;
    list-style: none;
}

.detail-main .content .image-gallery.loading ul li:not(:first-child) {
    display: none;
}

.detail-main .content .image-gallery ul li img {
    width: calc(min(100vw, 960px));
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.detail-main .content .image-gallery .lSSlideOuter .lSPager.lSpg {
    position: absolute;
    z-index: 1;
    bottom: 24px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    display:flex;
    align-items: center;
    justify-content: center;
}

.detail-main .content .image-gallery .lSSlideOuter .lSPager.lSpg > li a {
    width: 13px;
    height: 13px;
    border-radius: 13px;
    background: #8B8888;
}

.detail-main .content .image-gallery .lSSlideOuter .lSPager.lSpg > li.active a {
    width: 17px;
    height: 17px;
    border-radius: 17px;
    background: #D9D9D9;
}

.detail-main .content .content-inner {
    display: flex;
    flex-direction: column;
    padding: 20px 50px;
}

.detail-main .content .actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.detail-main .content .actions .share {
    position: relative;
}

.detail-main .content .actions a,
.detail-main .content .actions button {
    background: #201E1E;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 8px;

    outline: none;
    border: unset;
    cursor: pointer;
}

.detail-main .content .actions a:hover,
.detail-main .content .actions button:hover {
    text-decoration: none;
    opacity: 0.8;
}

.detail-main .content .actions a.disabled,
.detail-main .content .actions button.disabled {
    pointer-events: none;
    opacity: 0.8;
}

.detail-main .content .actions a.garage-likes-container,
.detail-main .content .actions button.garage-likes-container {
    position: unset;
}

.detail-main .content .actions .likes-wrapper {
    position: absolute;
    display: none;
    z-index: 1;
}

.detail-main .content .actions .likes-container:hover .likes-wrapper {
    display: block;
}

.detail-main .content .actions .likes-container.active .likes-wrapper {
    position: fixed;
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.1);
}

.detail-main .content .actions .likes-container.active .likes-inner {
    display: block;
    position: relative;
}

.detail-main .content .actions .likes-inner a.close {
    background: unset;
    position: absolute;
    right: 0;
    top: 0;
    color: white;
    opacity: 1;
    width: 40px;
    height: 40px;
    display: none;
}

.detail-main .content .actions .likes-inner a.close:hover {
    opacity: 0.8;
}

.detail-main .content .actions .likes-container.active .likes-inner a.close {
    display: flex;
    align-items: center;
    justify-content: center;
}


.detail-main .content .actions .likes {
    background: #201E1E;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    max-height: 530px;
    overflow: scroll;
    position: relative;
}

.detail-main .content .actions .likes .like-item {
    display: flex;
    align-items: center;
}

.detail-main .content .actions .likes .like-item .portrait {
    width: 38px;
    height: 38px;
    border-radius: 38px;
    background: rgba(0,0,0,0.2);
}

.detail-main .content .actions .likes .like-item .portrait img {
    width: 38px;
    height: 38px;
    border-radius: 38px;
    object-fit: cover;
    overflow: hidden;
}

.detail-main .content .actions .likes .like-item a {
    font-size: 20px;
    color: white;
    background: unset;
}
.detail-main .content .profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.detail-main .content .profile .portrait {
    width: 38px;
    height: 38px;
    border-radius: 38px;
    background: rgba(0,0,0,0.2);
}

.detail-main .content .profile .portrait img {
    width: 38px;
    height: 38px;
    border-radius: 38px;
    object-fit: cover;
    overflow: hidden;
}

.detail-main .content .profile .username {
    font-size: 20px;
    color: #000;
}

.detail-main .content .model {
    margin-bottom: 8px;
}

.detail-main .content .model a {
    color: #000;
}

.detail-main .content .car-name {
    font-family: 'Impact';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.detail-main .content .attrs {
    margin-top: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.detail-main .content .attrs .attr {
    min-width: 170px;
}

.detail-main .content .attrs .attr:nth-child(2n + 1) {
    float:left;
}

.detail-main .content .attrs .label {
    font-family: 'Impact';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.2;
    padding: unset;
    color: #000;
}

.detail-main .content .owner-actions {
    margin-bottom: 16px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap:16px;
}

.detail-main .content .owner-actions a {
    flex: 1 1 auto;

    cursor: pointer;

    font-size: 14px;
    line-height: 1.2;
    text-transform: uppercase;

    color: #E82126;
    background: #FFFFFF;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-main .content .owner-actions a:hover {
    text-decoration: none;
    opacity: 0.7;
}

.detail-main .content .owner-actions a img {
    margin-right: 10px;
}

.detail-main .content .owner-actions a.red {
    background: #E82126;
    color: white;
}

.detail-main .content .comments {
    margin-bottom: 16px;
}

.rm-listings {
    margin-left: -10px;
    margin-right: -10px;
}

.grid-sizer, .grid-item {
    width: 50%;
    padding: 10px;
}

@media (max-width: 767px) {
    .detail-main {
        font-size: 14px;
    }

    .detail-main .content {
        min-height: calc(100vh - 60px);
        margin-top: 0px;
        margin-bottom: 0px;
        font-size: 14px;
    }

    .detail-main .content > a.back img {
        width: 30px;
        height: 30px;
    }

    .detail-main .content .content-inner {
        padding: 15px;
    }

    .detail-main .content .actions {
        margin-bottom: 8px;
    }

    .detail-main .content .actions a,
    .detail-main .content .actions button {
        padding: 4px;
    }

    button.favorite .favorite-icon {
        width: 20px;
        height: 20px;
    }

    .garage-likes-container .garage-like {
        width: 20px;
        height: 20px;
    }

    .garage-likes-container .garage-likes-count {
        margin-left: 4px;
        font-size: 10px;
    }

    button.share .share-icon {
        width: 20px;
        height: 20px;
    }

    button.flag .flag-icon {
        width: 20px;
        height: 20px;
    }

    .detail-main .content .actions .likes-container:hover:not(.active) .likes-wrapper {
        display: none;
    }

    .detail-main .content .actions .likes {
        max-height: 360px;
    }

    .detail-main .content .actions .likes::-webkit-scrollbar {
        -webkit-appearance: none;
    }
    .detail-main .content .actions .likes::-webkit-scrollbar:vertical {
        width: 10px;
    }
    .detail-main .content .actions .likes::-webkit-scrollbar:horizontal {
        height: 0px;
    }
    .detail-main .content .actions .likes::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
        border: 2px solid rgba(0, 0, 0, 0);
    }
    .detail-main .content .actions .likes::-webkit-scrollbar-track {
        border-radius: 10px;
        background-color: rgba(0,0,0,0.5);
    }

    .detail-main .content .actions .likes .like-item .portrait {
        width: 20px;
        height: 20px;
        border-radius: 20px;
    }

    .detail-main .content .actions .likes .like-item .portrait img {
        width: 20px;
        height: 20px;
        border-radius: 20px;
    }

    .detail-main .content .actions .likes .like-item a {
        font-size: 14px;
    }

    .detail-main .content .profile {
        margin-bottom: 4px;
    }

    .detail-main .content .profile .portrait {
        width: 20px;
        height: 20px;
        border-radius: 20px;
    }

    .detail-main .content .profile .portrait img {
        width: 20px;
        height: 20px;
        border-radius: 20px;
    }
    .detail-main .content .profile .username {
        font-size: 14px;
    }
    .detail-main .content .h3 {
        font-size: 24px;
    }
    .detail-main .content .car-name {
        font-size: 16px;
    }

    .detail-main .content .attrs .attr {
        width: 50%;
        float: left;
    }

    .detail-main .content .attrs .attr:nth-child(2n) {
        padding-left: 16px;
    }

    .detail-main .content .attrs .label {
        font-size: 16px;
    }

    .rm-listing-info {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 4px;
    }
}
