#gallery_preview .knm_thumbnail play-wrap {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
}

#gallery_wrapper .knm_vids {
    display: flex;
    max-height: 100%;
}

#gallery_preview:not(.slick-initialized) > .square.square-image:nth-child(n + 7) {
    display: none;
}

#gallery_preview_wrapper .square-image .inner.knm_thumbnail {
    display: flex;
}

#gallery_preview_wrapper .knm_thumbnail img {
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    margin: auto;
    top: 0;
    left: 0;
    transform: none;
}

#gallery_wrapper .knm_vids, #gallery_preview play-wrap, #gallery_preview .slick-slide .js-gallery-images * {
    cursor: zoom-in;
}

#gallery_wrapper .knm_vids .knm_vid {
    cursor: pointer;
}

#gallery .knm_vids_container {
    justify-content: center;
    display: flex!important;
    height: 100%;
}
#gallery .knm_vids_container .inner.knm_vids{
    height: auto;
    display: flex;
    align-items: center;
}

.knm_iframe_container {
    margin: auto;
}


#gallery play-wrap, #gallery_preview play-wrap {
    pointer-events: none;
    display: flex;
}

#image_wrapper .knm_vids, #image_wrapper .knm_vids div, #image_wrapper video.knm_vid, #gallery .slick-list, #gallery .slick-track {
    max-height: 100%;
}

#image_wrapper .knm_vids .knm_custom, #image_wrapper .knm_custom video.knm_vid {
    width: auto !important;
}

.product-gallery .knm_custom video.knm_vid {
    max-height: 100% !important;
}

#image_wrapper .knm_vids {
    display: flex;
}

.knm_thumb_overlay {
    pointer-events: none;
    position: absolute;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    z-index: 1;
}
.knm_thumb_overlay play-wrap {
    display: flex;
}

.knm_consent-box {
    position: absolute;
    z-index: 2;
    height: fit-content !important;
    top: 12px;
}

.knm_custom {
    display: flex;
}

.knm_custom video {
    margin: auto;
    width: auto;
    max-width: 100%;
    height: auto;
}

.knm_play_btn {
    width: 14px;
    height: 14px;
    border-width: 7px 0 7px 14px;
    border-style: solid;
    box-sizing: border-box;
    border-color: transparent transparent transparent #202020;
    margin: auto;
}

/* ADMORRIS */

#gallery .slick-track {
    display: flex;
}

#gallery .slick-slide {
    height: auto;
}

#gallery .slick-slide > div {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gallery_preview_wrapper li {
    display: flex;
    align-items: center;
    max-width: 40px;
    min-height: 20px;
    position: relative;
}


#gallery_preview_wrapper li .js-gallery-images {
    width: auto;
    max-width: 100%;
}


.productdetails-gallery:not(.vertical) #gallery_preview_wrapper li .js-gallery-images {
    width: 100%;
}


#gallery_preview_wrapper li .js-gallery-images .knm_thumb_overlay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
}

#gallery_preview_wrapper li .js-gallery-images .knm_thumb_overlay i {
    position: initial;
}

.productdetails-gallery__image-thumbs li.active .knm_thumbnail .knm_thumb_overlay {
    opacity: .4;
}

#buy_form .pswp__item {
    max-width: 100% !important;
}

#buy_form .pswp__item a.knm_consent-box {
    margin: 0 60px;
    max-width: calc(100% - 120px);
}

#buy_form .pswp__item .pswp__zoom-wrap {
    display: flex;
    justify-content: center;
}

#buy_form .pswp__item .knm_custom {
    height: 100% !important;
    width: auto!important;
}

#buy_form .pswp__item .knm_custom  video {
    width: auto!important;
    height: auto!important;
    max-width: 100%!important;
    max-height: 100%!important;
}

.youtube {
    min-height: 0!important;
}

@media (max-width: 991px) {
    .slick-slide .knm_yt_container .knm_consent-box {
        top: 53.1%;
    }
}
#gallery_preview_wrapper li { min-width: 40px }

@media (max-width: 991px) {
    .productdetails-gallery__image-thumbs li {
        min-width: 0!important;
        margin: 8px 12px 0 0;
    }
}