#360viewer_modal {
    width: 100%;
    height: auto;
    max-height: 500px;
    border: 1px solid #ccc;
    background: #fff;
    z-index: 20000;
}
#spriteModal .modal-body{
    background: #000!important;
}

.controls_360 {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.image360-container{
    margin-top: 10px;
}

.image360-container img{
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    height: 100px;
    padding-left: 2%;
    padding-right: 2%;
    object-fit: contain;
}
.image360-container img {
    opacity: 1;
    border-color: #007bff;
}
.controls_360 button {
    padding: 5px 15px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 5px;
}

.controls_360 button:hover {
    background: #f0f0f0;
}
.360viewer_container{
    width: 100%;
    max-width: 800px!important;
    margin: 0 auto!important;
    padding: 0!important;
}

@media (max-width: 768px) {
    #360viewer_modal {
        max-width: 100%;
        height: auto;
    }
    
    .image360-container img{
        height: 50px;
    }
}

#360viewer_modal {
    width: 100%;
    height: 100%;
    max-width: 90vw; /* 90% of the viewport width */
    max-height: 90vh; /* 90% of the viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#spritespin-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

#spritespin-container {
    width: 100%;
    height: 100%;
}
.mfp-close-btn-in .mfp-close{
    color: #FFF;
}