.modal-dialog.modal-bg-bg {
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

#modal-360 {
    margin-top: 0%;
    width: 100%;
    height: 100%;
    z-index: 103500;
    padding-right: 0px !important;
    overflow: hidden
}

#modal-360 .modal-header {
    min-height: 0px;
    padding: 0px 15px 0px;
}

#modal-360 .modal-body {
    padding: 7px 15px 15px;
    /* height: calc(100vh - 15px); */
    height: 100vh;
    /* height: 100%; */
    display: flex;
    border: 0px solid red;
    align-items: stretch;
    align-content: center;
    flex-direction: column;
    justify-content: space-between;
}

#modal-360 .modal-body .nav-tabs {
    margin-bottom: 15px;
    height: 45px;
    border: none;
}

@media (max-width: 419px) {
    #modal-360 .modal-body .nav-tabs {
        height: 42px;
    }
}

#modal-360 .modal-content {
    min-height: 100%
}

#modal-360 .nav-tabs>li>a {
    font-size: 16px;
    font-weight: 600;
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus {
    color: #000;
}

#modal-360 .tab-content {
    height: 100%;
}

#modal-360 .tab-content>.tab-pane {
    height: 100%;
    /* border: 1px solid #00f600; */
}

#modal-360 .tab-content>.tab-pane.active#view360 {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

#modal-360 #view360 .container-full {
    /*height:100%*/
}

#modal-360 #view360 .row-content {
    /* height:100% */
}

#modal-360 .tab-content .tab-pane#video {
    /* height: 100%;
display: flex;
align-items: center;
justify-content: center;
align-content: center; */
}

#modal-360 .tab-content .tab-pane.active#video {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#modal-360 .tab-content .tab-pane.active#video .row-content {
    height: 100%;
}

#modal-360 .video-content {
    height: 100%;
}


/* PHOTOS */

#images .container-full,
#video .container-full,
#view360 .container-full {
    /* max-width:1500px; */
    margin: 0 auto;
    width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 0px 175px;
    max-width: 1829px;
    position: relative;
    /* border: 1px solid blue; */
    max-height: calc(100% - 28px);
    max-height: calc(100% - 23px);
    max-height: calc(100% - 35px);
    align-content: center;
    flex-direction: column;
    justify-content: space-between;
    display: flex;
}

#images .container-full,
#video .container-full,
#view360 .container-full {
    gap: 20px;
    justify-content: space-between;
}

.video-content {
    height: 100%;
    /* padding: 0px; */
}

#additional-carousel-image .owl-item,
#modal-360 .thumbnails.thubnails-view-video li {
    margin: 5px;
    max-width: 122px !important;
}

@media (min-width: 1440px) and (max-width: 1919px) {
    #additional-carousel-image .owl-item,
    #modal-360 .thumbnails.thubnails-view-video li {
        max-width: 108px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    #additional-carousel-image .owl-item,
    #modal-360 .thumbnails.thubnails-view-video li {
        max-width: 103px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    #additional-carousel-image .owl-item,
    #modal-360 .thumbnails.thubnails-view-video li {
        max-width: 91px !important;
    }
}

#modal-360 .owl-pagination {
    display: none !important
}

#sync-image.owl-carousel .owl-buttons .owl-prev,
#sync-image.owl-carousel .owl-buttons .owl-next {
    background: url(/image/catalog/design/line-orange-left.svg) calc(50% - 2px) 50% no-repeat;
    margin: 0px;
    width: 40px;
    height: 80px;
    border: 0px solid #ddd;
    border-radius: 0px;
    top: calc(50% - 40px);
    left: 0px;
}

@media (max-width: 991px) {
    #sync-image.owl-carousel .owl-buttons .owl-prev,
    #sync-image.owl-carousel .owl-buttons .owl-next {
        width: 20px;
    }
}

#sync-image.owl-carousel .owl-buttons .owl-next {
    transform: rotate(180deg);
    -webkit-transfrom: rotate(180deg);
    -moz-transfrom: rotate(180deg);
    -ms-transfrom: rotate(180deg);
    left: auto;
    right: 0px;
}

#sync-image.owl-carousel .owl-buttons .owl-prev i,
#sync-image.owl-carousel .owl-buttons .owl-next i {
    display: none
}

#modal-360 .thumbnails.thubnails-view-modal li .item .thumbnail {
    width: auto;
    max-width: 100%;
    display: flex;
    /* max-height: calc(100% - 120px); */
    align-items: flex-start;
    /* max-height:calc(100% - 120px); */
    border-radius: 16px;
}

#modal-360 .thumbnails.thubnails-view-modal #sync-image li.image-additional-main .item .thumbnail {
    padding: 0px;
    border: 0px;
}

#modal-360 .thumbnails.thubnails-view-modal #sync-image li.image-additional-main .item .thumbnail img {
    /* border:1px solid orange; */
    width: auto;
    height: 100%;
    max-height: calc(100vh - 220px) !important;
    /* max-height: calc(100vh - 115px)!important; */
    max-height: 100%;
}

#modal-360 .thumbnails.thubnails-view-modal #sync-image li.image-additional .item .thumbnail img {
    /* border:1px solid blue; */
    width: auto;
}

@media (max-width: 767px) {
    #modal-360 .thumbnails.thubnails-view-modal #sync-image li.image-additional-main .item .thumbnail img {
        height: auto
    }
}

#additional-carousel-image {
    margin-bottom: 0px;
    margin: 0px;
}


/* VIDEO */

div#video #video-popup {
    text-align: center;
    /* max-height: calc(100vh - 115px)!important; */
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
}

div#video #video-popup iframe {
    /* max-height: calc((100vw - 30px - 175px*2 - 17px)*0.563)!important; */
    aspect-ratio: 1920/1080;
}

#modal-360 .thumbnails {
    display: flex !important;
    width: 100% !important;
    /* max-height: 100%; */
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    margin: auto;
}

#modal-360 .thumbnails.thubnails-view-video li {
    /* display: none!important; */
    margin: 5px;
    text-align: center;
    display: flex;
    justify-content: center;
    width: 103px;
}

#modal-360 .thumbnails.thubnails-view-video li .item {
    display: flex;
    /* width: 95%; */
    float: none;
    align-items: center;
    /* border: 1px solid #ccc; */
    margin: 0 0 5px 0;
}

.thumbnails.thubnails-view-video li .item .thumbnail {
    display: flex;
    align-items: center;
    border: none;
    width: 25%;
    background-size: 66px !important;
    padding: 0px;
    padding: 5px;
}

.thumbnails.thubnails-view-video li .item {
    border: 1px solid transparent;
}

.thumbnails.thubnails-view-video li .item.active {
    border: 1px solid var(--primary)
}

.thumbnails.thubnails-view-video li .item .thumbnail img {
    margin: 0;
}

#modal-360 .thumbnails .thumbnail:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}

#modal-360 .thumbnails .item {
    position: relative;
}

.thumbnails.thubnails-view-video li .item .video-name {
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 0px;
    width: 75%;
    display: none;
}

#additional-carousel-image .image-additional {
    max-width: 100%;
    display: flex;
    margin: 0 auto;
    align-items: center;
}

#additional-carousel-image .owl-item {
    margin: 5px;
    text-align: center;
    display: flex;
    border-radius: 16px;
    justify-content: center;
}

#additional-carousel-image .owl-item img {
    /* width:66px; */
}

#additional-carousel-image .owl-item li a {
    border: 1px solid #fff;
    border-radius: 16px;
}

#additional-carousel-image .owl-item {
    width: auto !important;
}

#additional-carousel-image .owl-item {
    border: 1px solid #fff;
}

#additional-carousel-image .owl-item.current {
    border: 1px solid var(--orange)
}

.thubnails-view-modal #additional-carousel .owl-controls,
#additional-carousel-image .owl-controls {
    display: none !important;
}

#sync1.owl-carousel .owl-buttons .owl-next {
    background: url(/image/catalog/design/line-orange-left.svg) calc(50% - 2px) 50% no-repeat;
    /* background-size: 12px auto !important; */
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
}

#additional-carousel-image .owl-wrapper {
    display: flex !important;
    width: 100% !important;
    flex-wrap: wrap;
    left: 0;
    position: unset;
    transform: unset !important;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#sync-image.owl-carousel {
    margin-bottom: 0px;
    max-height: 100%;
    height: auto;
    max-height: 100%;
    display: flex !important;
}

#modal-360 .price-block1 {
    display: flex;
    align-content: center;
    align-items: center;
}

#modal-360 .col-preview {
    position: absolute;
    right: 0px;
    top: 0px;
    height: calc(100% - 60px);
    width: 175px;
    display: flex;
    display: none;
    align-items: center;
    /* border: 1px solid red; */
}

@media (min-width:992px) {
    #modal-360 .col-preview {
        overflow-y: scroll;
        align-items: flex-start;
    }
    #modal-360 .col-preview::-webkit-scrollbar {
        background-color: #f1f1f1;
        width: 3px;
    }
    #modal-360 .col-preview::-webkit-scrollbar-thumb {
        background-color: rgb(178, 178, 178);
        background-color: var(--orange);
        border-radius: 9em;
    }
}

#modal-360 .video-content {
    max-height: 100%;
}

.price-buy-block {
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin: 0 15px;
}

.price-buy-block .price {
    float: left;
}

.price-buy-block .buy-block {
    margin: 0px;
    float: right
}

#button-cart-modal {
    font-size: 17px;
    font-weight: bold;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 12px;
}

#button-cart-modal:before {
    content: "";
    display: inline-flex;
    width: 14px;
    height: 17px;
    background: url(/image/catalog/design/button-cart.svg) center no-repeat;
    margin-right: 8px;
    background-size: 100% auto;
    margin-top: -3px;
}

.row-zagol {
    font-size: 19px;
    font-weight: bold;
    text-align: center;
}

.row-content {
    /* height: calc(100vh - 119px); */
    /* display: flex;
align-items: center; */
    /* position: relative; */
    /* border: 1px solid orange; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.col-360 {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    align-content: center;
    /* border: 1px solid red; */
    height: 100%;
}

#syns-image.owl-theme .owl-controls {
    margin: 0px;
}

#container3601 iframe {
    /* border:1px solid blue */
    height: 100%;
}

@media (min-width: 992px) {
    div#video #video-popup {
        width: calc(100% + 30px);
        margin: 0 -15px;
    }
}

@media (max-width: 991px) and (orientation: portrait) {
    .row-content {
        height: calc(100vh - 211px);
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        /* border:1px solid green; */
    }
    #images .row-content,
    #images .row-content {
        /* padding-bottom: 106px; */
    }
    div#video #video-popup {
        width: calc(100% + 30px);
        width: 100%;
        /* margin: 0 -15px; */
    }
    div#view360 .col-360 {
        width: calc(100% + 30px);
        margin: 0 -15px;
    }
    .price-buy-block {
        margin: 0px;
    }
}

@media (min-width:768px) and (max-width: 991px) and (orientation: portrait) {
    #additional-carousel-image .owl-item,
    #modal-360 .thumbnails.thubnails-view-video li {
        max-width: 122px !important;
        width: 122px !important
    }
}

@media (min-width: 576px) and (max-width: 767px) and (orientation: portrait) {
    #additional-carousel-image .owl-item,
    #modal-360 .thumbnails.thubnails-view-video li {
        max-width: 135px !important;
    }
}

@media (min-width: 480px) and (max-width: 575px) and (orientation: portrait) {
    #additional-carousel-image .owl-item,
    #modal-360 .thumbnails.thubnails-view-video li {
        max-width: 33.3333 !important;
    }
}

@media (max-width: 767px) and (orientation: portrait) {
    .row-content {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 419px) and (orientation: portrait) {
    #modal-360 .nav>li>a {
        padding: 10px 7px;
    }
    #modal-360 .nav-tabs>li>a {
        font-size: 14px;
    }
    #product-product h1 {
        margin-bottom: 22px;
        text-align: left;
        font-weight: bold;
        font-size: 28px;
    }
}

@media (min-width: 320px) and (max-width: 379px) and (orientation: portrait) {
    #view360 .row-content {
        height: calc(100vh - 180px);
    }
}


/* mobile */

@media screen and (max-width: 768px) and (orientation: portrait) {
    #video-popup iframe {
        height: 350px;
    }
    .thumbnails.thubnails-view-video li .item {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767px) and (orientation: portrait) {
    #additional-carousel-image .owl-item,
    #modal-360 .thumbnails.thubnails-view-video li {
        width: calc((526px - 50px)/4) !important;
    }
}

@media (max-width: 575px) and (orientation: portrait) {
    #additional-carousel-image .owl-item,
    #modal-360 .thumbnails.thubnails-view-video li {
        width: calc((100% - 50px)/3) !important;
        width: 100px !important;
    }
    #additional-carousel-image .owl-item:first-child {
        margin-left: 0px;
    }
    #additional-carousel-image .owl-item:last-child {
        margin-right: 0px;
    }
    #modal-360 .thumbnails.thubnails-view-video li:first-child {
        margin-left: 0px;
    }
    #modal-360 .thumbnails.thubnails-view-video li:last-child {
        margin-right: 0px;
    }
}

@media (max-width: 991px) {
    #view360 .container-full .row-zagol {
        padding: 0px 15px;
    }
    .container-full .row-zagol>div {
        padding: 0px;
    }
    #modal-360 .col-main {
        height: auto;
        /* border: 1px solid red; */
        display: flex;
        align-items: center;
        padding: 0px;
        justify-content: center;
        aspect-ratio: 1920/1080;
    }
    #modal-360 .video-content {
        /* height: auto; */
        /* border: 1px solid red; */
        display: flex;
        align-items: center;
        padding: 0px;
        justify-content: center;
        align-content: center;
    }
}

@media (max-width: 991px) and (orientation: portrait) {
    #video .video-content {
        /* height: auto!important; */
        /* border: 1px solid red; */
    }
    #images .container-full {
        padding: 0 15px;
        padding: 0 0px;
        /* height: auto; */
        /* justify-content: space-between; */
        /* gap: 20px; */
    }
    #video .container-full {
        padding: 0 0px;
        height: 100%;
    }
    #modal-360 .tab-content .tab-pane.active#video .row-content {
        /* padding-bottom: 106px; */
    }
    #view360 .container-full {
        padding: 0 0px;
        height: auto;
    }
    #modal-360 .col-preview {
        /* position: relative; */
        height: auto;
        margin-top: 0px;
        width: 100%;
        display: flex;
        bottom: 80px;
        top: auto;
        overflow-x: scroll;
        overflow-y: visible;
        height: 122px;
    }
    #modal-360 #images .col-main {
        /* margin: 0px -15px; */
        /* width: calc(100% + 30px); */
    }
    #additional-carousel-image .owl-wrapper {
        /* display: flex!important;
width: 100%!important;
flex-wrap: wrap;
left: 0;
position: unset;
transform: unset!important;
justify-content: flex-start;
flex-direction: row; */
        display: flex !important;
        flex-wrap: nowrap;
        left: 0;
        /*position: unset;*/
        /*transform: unset!important;*/
        justify-content: flex-start;
        flex-direction: row;
        height: 100%;
    }
    #modal-360 .col-preview::-webkit-scrollbar {
        background-color: #f1f1f1;
        height: 3px;
        height: 0px;
    }
    #modal-360 .col-preview::-webkit-scrollbar-thumb {
        background-color: rgb(178, 178, 178);
        background-color: var(--orange);
        border-radius: 9em;
    }
    #modal-360 .thumbnails {
        display: flex !important;
        width: 100% !important;
        justify-content: flex-start;
        max-height: 100%;
        flex-wrap: nowrap;
    }
    #modal-360 #images .thumbnails.thubnails-view-modal {
        /* width: calc(100% + 30px)!important;
margin-left: -15px;
margin-right:  -15px; */
    }
    #modal-360 #images .col-preview .thumbnails.thubnails-view-modal {
        width: auto !important;
    }
    #modal-360 #images .owl-wrapper-outer {
        height: 100% !important;
    }
    div#video #video-popup iframe {
        height: calc((100vw - 30px)*0.563)!important;
        height: calc((100vw - 0px)*0.563) !important;
        max-height: calc((100vw - 30px)*0.563) !important;
    }
}

@media (orientation:portrait)) {
    #modal-360 .col-preview::-webkit-scrollbar {
        height: 0px;
    }
}

@media (orientation: landscape) {
    #additional-carousel-image .owl-item,
    #modal-360 .thumbnails.thubnails-view-video li {
        /* max-height: calc((100vh - 100px - 60px)/6); */
    }
    #additional-carousel-image .owl-item:first-child {
        margin-top: 0px;
    }
    #additional-carousel-image .owl-item:last-child {
        margin-bottom: 0px;
    }
    .price-buy-block {
        margin: 0px;
    }
}

@media (max-width: 991px) and (orientation: landscape) {
    #modal-360 #view360 .row-content {
        /* height:100% */
    }
    #view360 .row-content {
        height: calc(100vh - 180px);
    }
    #modal-360 #images .container-full {
        height: 100%;
        padding: 0px calc((100vh - 100px)*0.19);
    }
    #modal-360 #view360 .container-full {
        padding: 0px calc((100vh - 100px)*0.19);
    }
    #modal-360 .tab-content .tab-pane.active#video {
        /* flex-direction: column; */
        /* justify-content: space-between; */
        /* display: flex; */
    }
    #modal-360 #video .container-full {
        height: auto;
        padding: 0px calc((100vh - 100px)*0.19);
        height: 100%;
        width: 100%;
    }
    #modal-360 .col-preview {
        width: calc((100vh - 100px)*0.19);
        overflow-y: scroll;
    }
    .row-content {
        /* height: calc(100vh - 120px); */
    }
    .col-preview .thumbnails {
        /* height:100%; */
    }
    #additional-carousel-image .owl-wrapper-outer {
        overflow: visible;
        position: static;
        float: none;
        height: 100%;
    }
    #additional-carousel-image .owl-wrapper {
        display: flex !important;
        width: 100% !important;
        height: 100%;
        flex-wrap: wrap;
        left: 0;
        position: unset;
        transform: unset !important;
        justify-content: center;
        flex-direction: column;
        overflow: visible;
        position: static;
        float: none;
    }
    #modal-360 .thumbnails.thubnails-view-modal #additional-carousel-image li .item .thumbnail img {
        max-height: calc((100vh - 100px - 107px)/6);
    }
    .thumbnails.thubnails-view-video li .item .thumbnail img {
        max-height: calc((100vh - 100px - 107px)/6);
    }
}

.mobile-360 {
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.mobile-360 span {
    font-weight: 500;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 12px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}


/* price */

#modal-360 .price .price-old {
    text-decoration: line-through;
    margin-right: 10px;
}

@media (max-width:339px) {
    #modal-360 .price-block1 {
        display: flex;
        align-content: center;
        align-items: flex-start;
        flex-direction: column;
    }
}

.zoom-button {
    content: '';
    width: 30px;
    height: 30px;
    display: block;
    background: url('/image/catalog/design/zoom-icon.svg') center no-repeat;
    position: absolute;
    top: auto;
    right: 2px;
    bottom: 0;
    left: auto;
    transform: none;
    -webkit-transform: none;
    z-index: 9;
    border: none;
}

.zoom-button-minus {
    background: url('/image/catalog/design/zoom-icon-minus.svg') center no-repeat!important;
}