:root {
    --hotspot-scale: 0.7;
    --hotspot-scale-fov: 0;
}
@media screen and (max-width: 1024px) {
    :root {
        --hotspot-scale: 0.5;
    }
}
@media screen and (max-width: 768px) {
    :root {
        --hotspot-scale: 0.4;
    }
}
@media screen and (max-width: 640px) {
    :root {
        --hotspot-scale: 0.3;
    }
}

/* PANNELLUM WINDOW */
#panorama {
    position: absolute;
    top:120px;
    right: 0;
    height: calc(100vh - 120px);
    /*left: 15vw;
    transition: left 0.3s ease, width 0.3s ease;*/
    width: 100vw;
}

/* Custom styles for the product card modal */
#productCardModal .modal-dialog {
    width: 50vw; /* Set the width to 50% of the viewport */
    height: 50vh; /* Set the height to 50% of the viewport */
    max-width: none; /* Override Bootstrap's max-width */
    margin: auto; /* Center the modal horizontally */
    display: flex;
    align-items: center; /* Center the modal vertically */
    justify-content: center; /* Center the modal horizontally */
}

#productCardModal .modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#productCardModal .modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: auto; /* Ensure content is scrollable if it overflows */
}

#productCardModal .product-image-carousel img {
    max-width: 800px;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* OLD ANIM SIZING
#panorama.expanded {
    left: 0;
    width: 100vw;
    transition: width 0.3s ease;
}
*/

/* Both hotspot-custom for pannellum , lightbox and sidemenu */
.side-menu .hotspot-custom, .hotspot-custom .hotspot-wrapper, .lightbox .hotspot-custom {
    border-radius: 50%;
    padding: .25rem;
    width: auto;
    min-width: 2rem;
    justify-content: center;
    align-items: center;
    margin-right: .5rem;
    z-index: 10;
}

/* Hotspot-custom for only pannellum */
#panorama .hotspot-custom .hotspot-wrapper {
    min-width: 2rem; /* Adjust the size as needed */
    min-height: 2rem;
    padding: .25rem;
    background-color: inherit;
    color: inherit;

    border-radius: 50%; /* Make it a circle */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px; /* Adjust the font size */
    font-weight: 500;
    position: absolute; /* Positioning within the panorama */

    /** 
    Center hotspot 
    scale based on --hotspot-scale variable + fov adjustment (pannellum zoom) 
    - bigger hotspot when zoomed in (fov smaller)
    - smaller hotspot when zoomed out (fov bigger)
    */
    transform: translate(-50%, -50%) scale(calc(var(--hotspot-scale) + var(--hotspot-scale-fov)));
    aspect-ratio: 1;
    height: auto;
}

#panorama .hotspot-custom:hover {
    z-index: 11;
}
/* Hotspot-custom for only sidemenu */
.side-menu .hotspot-custom {

}

/* Limit image size in hotspots */
#panorama .hotspot-custom img {
    max-width: 2.5rem;
}

/* Hotspots only on panorama view */
/* #panorama .hotspot-custom {
    aspect-ratio: 1;
    height: auto;
} */

.hotspot-product {
    color: white;
    background-color: red;
}

.hotspot-scene {
    background-color: var(--success);
    color: white;
}

.hotspot-external {
    background-color: var(--dark);
    color: white;
}

.hotspot-html {
    background-color: var(--dark);
    color: white;
}

#panorama .hotspot-has-icon.hotspot-custom {
    background: none;
}

/* MAIN DIV */
.panorama-view {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}
.panorama-view .panorama-header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 100vw;
    background: var(--primary);
}
.panorama-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.panorama-header #variation-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    margin: 15px;
    gap: 10px;  /* Adjust the gap between buttons as needed */
}
.panorama-header #variation-buttons .variation {
    flex: 1 1 calc(25% - 20px);
    max-width: 100px; /* Adjust the max width as needed */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* CUSTOM CONTEXT MENU */
.custom-menu {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 10000;
}
.custom-menu div {
    padding: 5px 10px;
    cursor: pointer;
}
.custom-menu div:hover {
    background-color: #f0f0f0;
}

/* SIDE MENU */
.side-menu {
    position: absolute;
    top: 120px;
    left: 0;
    width: 15vw;
    height: calc(100vh - 120px);
    padding: 1rem;
    box-shadow: 0, 2px 5px rgba(0,0,0,0,1);
    background: rgba(0, 0, 0, 0.9); /* Slight opacity */
    color: var(--primary);
    transition: transform 0.3s ease;
    transform: translateX(0%); /* Initially hidden */
    z-index: 1000;
}
.side-menu.collapsed {
    transform: translateX(-100%);
}
.side-menu h3 {
    margin-top: 0;
}
/* SIDE MENU ITEMS */
.main-category-item,
.second-category-item,
.third-category-item {
    cursor: pointer;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}
.main-category-item:hover,
.second-category-item:hover,
.third-category-item:hover {
    background: #f9f9f9;
}
.second-category-item {
    padding-left: 15px;
}
.third-category-item {
    padding-left: 30px;
}
.hotspot-item {
    cursor: pointer;
    padding: 5px;
    border-bottom: 1px solid #ddd;
    padding-left: 45px;
}
.hotspot-item:hover {
    background: #f9f9f9;
}
.hotspot-id {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    text-align: center;
    /*background-color: red;*/
    color: white;
    border-radius: 50%;
    margin-right: .75em;
    vertical-align: middle;
}
.hotspot-id-hotspot-custom-red {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    text-align: center;
    /*background-color: red;*/
    color: white;
    border-radius: 50%;
    margin-right: .75em;
    vertical-align: middle;
    background-color: red;
}
.hotspot-id-hotspot-custom-blue {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    text-align: center;
    /*background-color: red;*/
    color: white;
    border-radius: 50%;
    margin-right: .75em;
    vertical-align: middle;
    background-color: blue;
}
/* TOGGLE BUTTON */
#toggle-menu {
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    z-index: 1001;
    width: 5rem;
    height: 5rem;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, right 0.3s ease;
}
.side-menu.collapsed #toggle-menu {
    right: -75px;
    transform: translateY(-50%) rotate(180deg);
}

/* ANIMS */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

.main-scenes {
    position: absolute;
    display: flex;
    right: 0;
    top:120px;
    /* transform: translateY(-50%); */
    flex-wrap: column;
    flex-direction: column;
    z-index: 1005;
    gap: 10px;
    padding: 1rem;
    height: calc(100vh - 120px);
    overflow-y: auto;
    pointer-events: none;
    justify-content: flex-start;
    /* background: rgba(250, 0, 0, 0.5); */
}

.main-scenes .main-scene-item {
    display: flex;
    flex-wrap: column;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-items: center;
    pointer-events: auto;
}

.main-scenes .main-scene-item {
    border-radius: 100%;
    cursor: pointer;
}
/** EXPERIMENTAL LIGHTBOX **/

.lightbox {
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-dialog {
    position: relative;
    width: auto;
    /* max-width: 2000px; */
    max-width: 100vw;
    margin: 1.75rem auto;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: .3rem;
    outline: 0;
    max-height: 80vh;
}

.lightbox-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: .3rem;
    border-top-right-radius: .3rem;
    background-color: var(--primary);
}

.lightbox-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    overflow: auto;
}

.lightbox-header .close {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    justify-self: right;
}
.lightbox-title h3 {
    margin: 0;
    padding: 0;
    color: white;
}

.lightbox-title span.identifier {
    aspect-ratio: 1;
    display: inline-flex;
    vertical-align: middle;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.lightbox-title span.identifier span.identifier-text {
    margin-top: 5px;
}

    div.custom-tooltip span {
        visibility: hidden;
        position: absolute;
        border-radius: 3px;
        background-color: #fff;
        color: #000;
        text-align: center;
        max-width: 250px;
        padding: 5px 10px;
        margin-left: 0px !important;
        cursor: default;
        width: 250px !important;
        font-size: 1.3rem;
        font-family: 'new-hero' !important;
    }
    div.custom-tooltip:hover span{
        visibility: visible;
    }
    div.custom-tooltip:hover span:after {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        border-width: 10px;
        border-style: solid;
        border-color: #fff transparent transparent transparent;
        bottom: -20px;
        left: -10px;
        margin: 0 50%;
    }

/* Overrides */
.side-menu {
    color: var(--white);
    background-color: rgba(2, 0, 61, 0.75);
    width: 90vw;
}

.side-menu > #menu {
    height: 100%;
    overflow-y: scroll;
}

.side-menu button#toggle-menu {
    top: unset;
    bottom: 3rem;
    border: 2px solid var(--white) !important;
    width: unset;
    height: 4.25rem;
}

.side-menu button#toggle-menu > i {
    font-size: 1.5rem;
}

.main-category-item, .second-category-item, .third-category-item {
    border-color: #5a5a5a;
    font-size: 1.25rem;
}

.main-category-item:hover, .second-category-item:hover, .third-category-item:hover, .hotspot-item:hover {
    background-color: rgba(85,141,196, 0.8);
}

.hotspot-item {
    padding-left: 1.5rem;
    border: none;
}


.hotspot-product:hover:not(.hotspot-custom.hotspot-has-icon),
.hotspot-custom:hover:not(.hotspot-custom.hotspot-has-icon) {
    box-shadow: 1px 1px 10px rgba(0,0,0,0.75);
}

.pnlm-hotspot:hover {
    background-color: 0;
}


.side-menu .hotspot-product {
    display: inline-flex;
    aspect-ratio: 1;
}

.main-scenes .main-scene-item {
    color: var(--white);
    text-shadow: 2px 1px 6px rgba(0,0,0,0.5);;
    font-weight: 700;
}

.main-scenes .main-scene-item img {
    width: 80px;
    border-radius: 50%;
}

.main-scenes .main-scene-item:hover img {
    box-shadow: 1px 0px 20px #fff;
}

.panorama-header img.panorama-header-img {
    max-width: 120px;
    margin-left: .25rem;
}

.panorama-header #previous-button {
    max-width: 40px;
    margin-right: 1em;
    cursor: pointer;
}

.panorama-header #variation-buttons .variation {
    max-width: 60px;
    cursor: pointer;
    width: 70px;
    height: 70px;
}

.panorama-header #variation-buttons .variation img {
    border-radius: 100%;
    width: 80px;
}

.panorama-header #variation-buttons .variation:hover img {
    box-shadow: 1px 0px 20px rgba(0,0,0,.25);
}

.panorama-header #current-scene-title h4 {
    margin-bottom: 0;
    font-size: 1.25rem;
    margin-top: .5rem;
}

.hotspot-custom h6 {
    margin-bottom: -5px;
    line-height: 1;
    font-size: 1.2rem;
}

.pnlm-panorama-info {
    right: 0;
}

.panorama-header {
    flex-wrap: wrap;
}

.panorama-header .logo-row a.btn {
    font-size: .7rem;
}

span.pnlm-about-msg {
    display: none !important;
}

/** Hide product card custom 360 link  */
.block-pannellum #productcard-custom-360-link {
    display: none;
}

@media screen and (max-height: 900px) {
    /* .main-scenes {
        bottom: 3%;
        top: unset;
        transform: translateY(0%);
        height: calc(100vh - 145px);
    } */

    .main-scenes .main-scene-item img {
        width: 60px;
    }
}

@media screen and (min-width: 575px) {
    .panorama-header #current-scene-title h4 {
        font-size: 1.25rem;
    }

    .panorama-header #previous-button {
        max-width: 40px;
    }

    .side-menu {
        width: 70vw;
    }
}

@media screen and (min-width: 768px) {
    /* .panorama-header img.panorama-header-img {
        max-width: 100%;
    } */

    .side-menu {
        width: 50vw;
    }

    .logo-row,
    .info-row {
        width: auto !important;
    }

    .panorama-header #current-scene-title h4 {
        font-size: 1rem;
    }

    .panorama-header #variation-buttons .variation {
        max-width: 80px;
    }
}

@media screen and (min-width: 991px) {
    .side-menu {
        width: 40vw;
    }

    .panorama-header .logo-row a.btn {
        font-size: .87rem;
    }

    .panorama-header #current-scene-title h4 {
        font-size: 2rem;
    }
}

@media screen and (min-width: 1200px) {
    .panorama-header img.panorama-header-img {
        max-width: 300px;
    }

    .side-menu {
        width: 30vw;
    }
}

@media screen and (min-width: 1440px) {
    .side-menu {
        width: 25vw;
    }
}

@media screen and (min-width: 1600px) {
    .side-menu {
        width: 20vw;
    }
}

@media screen and (max-width: 768px) {

    .side-menu .hotspot-item, .side-menu .hotspot-item span, .side-menu .main-category-item {
        font-size: 75%;
    }
    .side-menu .hotspot-item span {
        min-width: 1.5rem;
    }
    .side-menu .hotspot-item {
        padding-left: 0px;
    }
    .side-menu {
        width: 60vw;
    }

    .panorama-header #variation-buttons {
        margin: 0px 15px 0px 0px;
    }

    .panorama-header #variation-buttons .variation {
        width: 40px;
        height: 40px;
    }
    /* #panorama .hotspot-custom .hotspot-wrapper {
        min-width: 1rem !important;
        min-height: 1rem !important;
        font-size: 25px;
        padding: 0.15rem;
    }

    #panorama .hotspot-custom * {
        font-size: 45%;
    } */

    .main-scenes .main-scene-item img {
        width: 30px;
    }
    .main-scenes .main-scene-item {
        font-size: 10px;
    }
}