.car360-viewer {
    position: relative;
    width: 100vw !important;
    height: auto !important;
    max-width: 960px;
    aspect-ratio: 960 / 438;
    margin: 0 auto;
    cursor: grab;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.car-360-wrapper {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}
.car360-viewer img,
.car360-viewer canvas,
.car360-viewer video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.car360-viewer:active {
    cursor: grabbing;
}

/* Loading Spinner */
.car360-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    inset: 0;
    z-index: 9;
    background-color: #f1f1f1cc;
}

.car360-loader .spiner {
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top: 5px solid #b2151a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Color label */
.car360-viewer .color-name {
    /* font-weight: bold; */
    font-size: 1.6vw;
    color: #000;
    /* font-family: 'FbSpoilerBold'; */
    font-family: 'AlmoniBold';
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    line-height: normal;
}
.car360-viewer .color-name:before {
    content: "";
    display: inline-block;
    width: 127px;
    height: 18px;
    background-image: url(/wp-content/themes/buy-kia/images/dragto.png);
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    top: -15px;
    right: 0;
    left: 0;
    margin: auto;
}
/* Wrapper & Fade Animation */
.car-360-wrapper {
    animation: fadeInAnimation ease 1s;
    animation-fill-mode: forwards;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
}

@keyframes fadeInAnimation {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 360 Icon */
.car360-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    /* background: rgba(0, 0, 0, 0.7); */
    color: white;
    font-size: 1rem;
    padding: 3px 10px 2px;
    border-radius: 20px;
    display: flex !important;
    gap: 5px;
    z-index: 10;
    animation: fadeIn360 2s ease-out;
    pointer-events: none;
    align-items: center;
    justify-content: center;
}
.car360-indicator img{
	width:auto;
}
@keyframes fadeIn360 {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Notes & Prices */
.car-360-wrapper .color-note,
.prices-wrapper .price {
    /* font-weight: bold; */
    font-size: 20px;
    text-align: center;
    color: #58595b;
    color: #000;
}

.prices-wrapper .price {
    color: #b2151a;
    display: none;
}

.prices-wrapper .price.active {
    display: block;
}

/* Thumbnails */
.car-360-wrapper .slider-nav-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1vw;
    max-width: 95vw;
    margin: 15px 0;
}

.slider-nav-thumbnails .viewer-slide {
    width: 50px;
    height: 50px;
    position: relative;
}

.slider-nav-thumbnails .pagination-bullet {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #616469;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

/* Active checkmark */
.slider-nav-thumbnails .pagination-bullet.active:before {
    content: "\2713";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 20px;
    color: white;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.car360-viewer canvas{
	margin-top: -30px;
}
/* Responsive scaling */
@media (max-width: 900px) {
	.car360-viewer canvas{
		margin-top: -20px;
	}
    .car360-viewer .color-name,
    .prices-wrapper .price {
        font-size: 16px;
        padding: 0 0px;
    }
     .car-360-wrapper .color-note{
          font-size: 14px;
          margin-bottom: 20px;
          padding: 0px 20px;
     }
    .slider-nav-thumbnails .viewer-slide {
        width: 40px;
        height: 40px;
    }
	.car-360-wrapper .slider-nav-thumbnails {
	    gap: 2vw;
	    max-width: 100vw;
	    margin: 15px 0;
		margin-top:5px;
	}
    .car360-indicator {
        top: 0px;
        font-size: 1rem;
    }
	.car360-viewer {padding-bottom: 36px;}
}