/**
 * Add any custom CSS for the Morf Curator here.
 *
 * This file will be loaded after all other theme stylesheets.
 */


/*morf-viewer{*/
/*    float: left;*/
/*    width: 64%;*/
/*}*/

#morf-3d-model{
    height: auto;
}

morf-model-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
#morf-360-viewer {
    cursor: grab;
    height: 100%;
    width: 100%;
    img {
        width: 100%;
        transition: transform 0.3s ease;
        transform-origin: center center;
    }
    .morf-progress {
        position: absolute;
        top: 0;
        left: 50%;
        width: 100%;
        height: 10px;
        background: #c8c8c866;
        border-radius: 4px;
        overflow: hidden;
        transform: translate(-50%, -50%);
        z-index: 10;
    }
    .morf-progress-bar {
        display: block !important;
        height: 100%;
        width: 0%;
        background: rgba(0,0,0,0.4);
        transition: width 0.3s;
    }
}

#morf-viewer-container {
    .morf-swiper-wrapper {
        display: block;
        height: 100%;
        position: relative;
    }
    .morf-swiper-wrapper:hover {
        .gallery-thumbs {
            opacity: 1;
        }
    }
    /* Thumbnails - horizontal */
    .gallery-thumbs {
        position: unset;
        width: 100%;
        height: 100px;
        /*opacity: 0;*/
        transition: opacity ease-in-out 300ms;
    }
    .gallery-thumbs .swiper-wrapper {
        transform: translate3d(0px, 0px, 0px);
        transition-duration: 0ms;
        justify-content: left;
        transition-delay: 0ms;
    }
    .gallery-thumbs .swiper-slide {
        width: auto;
        height: 100%;
        cursor: pointer;
        opacity: 0.9;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition-property: transform;
        backface-visibility: hidden;
        margin-bottom: 5px;
    }

    .gallery-thumbs .swiper-slide-thumb-active {
        opacity: 1;
        border: 1px solid #000;
    }

    .thumb-img {
        width: 100px;
        height: 100%;
        object-fit: cover;
    }

    /* Main image area */
    .gallery-top {
        flex: 1;
        height: 100%;
        overflow: hidden;
        position: relative;
    }

    .gallery-top .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        /*aspect-ratio: 1 / 1;*/
        .main-img {
            height: 100%;
            width: 100%;
        }
    }

    .custom-build-img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .swiper-pagination-bullet {
        display: none;
        opacity: 1;
        margin: 0 4px;
        font-size: 0;
        background: #e5e7eb;
        height: 0.125rem;
        width: 1.75rem;
        border-radius: unset;
    }
    .swiper-pagination-bullet.swiper-pagination-bullet-active {
        background: #000;
    }

    /* Fade out current image */
    .main-img.fade-out {
        transition: opacity 0.4s ease;
        opacity: 0;
    }

    /* Fade in animation */
    .fade-in {
        animation: fadeIn 0.8s ease forwards;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.98);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .icon {
        fill: currentColor;
        display: inline-block;
        vertical-align: middle;
        height: 20px;
        width: 17px;
    }

    .thumb-3d .icon-3d {
        position: absolute;
        background: #ffffff6b;
        color: #000000;
        font-size: 15px;
        pointer-events: none;
        z-index: 2;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

#controls {
    position: absolute;
    bottom: 20px;
    right: 65px;
    max-width: unset;
    transform: unset;
    pointer-events: auto;
    z-index: 100;
    display: flex;
    align-items: center;
    label{
        margin: 0;
    }
}

.dot {
    display: none;
}
.glass {
    background: rgba(255, 255, 255, 0.37);
    backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
    -webkit-backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem;
    border-radius: 0.5rem;
}
.dim {
    border-radius: 4px;
    border: none;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    color: rgba(0, 0, 0, 0.8);
    display: block;
    font-family: Futura, Helvetica Neue, sans-serif;
    font-size: 1em;
    font-weight: 700;
    max-width: 128px;
    overflow-wrap: break-word;
    padding: 0.5em 1em;
    position: absolute;
    width: max-content;
    height: max-content;
    transform: translate3d(-50%, -50%, 0);
    pointer-events: none;
    --min-hotspot-opacity: 0;
}
@media only screen and (max-width: 800px) {
    .dim {
        font-size: 3vw;
    }
}
.dimensionLineContainer {
    pointer-events: none;
    display: block;
}
.dimensionLine {
    stroke: #16A5E6;
    stroke-width: 2;
    stroke-dasharray: 2;
}
.hide {
    display: none;
}

@media(max-width: 991px) {
    morf-viewer {
        float: inherit !important;
        width: 100% !important;
  }
}