

/* Start:/local/templates/kvant/assets/css/product-image-lightbox.css?17930248742116*/
/* Product detail image zoom. Kept independent of the site's form modals. */
.product-gallery__zoom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-gallery__zoom:focus-visible {
    outline: 2px solid #1570ef;
    outline-offset: -2px;
}

/* Reserve the original vertical scrollbar's space even while the modal locks scrolling.
   This prevents the header and the rest of the page from jumping horizontally. */
html:has(.product-image-lightbox) {
    scrollbar-gutter: stable;
}

.product-image-lightbox {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(800px, calc(100% - 40px), calc((100dvh - 40px) * 1.333333));
    height: auto;
    aspect-ratio: 4 / 3;
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.product-image-lightbox:not([open]) {
    display: none;
}

.product-image-lightbox::backdrop {
    background: rgba(0, 0, 0, .25);
}

.product-image-lightbox__photo {
    aspect-ratio: 4 / 3;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
}

.product-image-lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #9da4ae;
    cursor: pointer;
    transition: color .2s ease;
}

.product-image-lightbox__close:hover {
    color: #111927;
}

.product-image-lightbox__close:focus-visible {
    outline: 2px solid #1570ef;
    outline-offset: 0;
}

body.kvant-image-lightbox-open {
    overflow: hidden;
}

@media (max-width: 680px) {
    .product-image-lightbox {
        width: min(calc(100% - 24px), calc((100dvh - 24px) * 1.333333));
    }

    .product-image-lightbox__close {
        top: 8px;
        right: 8px;
    }
}

/* End */


/* Start:/local/templates/kvant/styles.css?179137144283*/
/* Стили проекта подключаются из assets/css/main.css. */

/* End */
/* /local/templates/kvant/assets/css/product-image-lightbox.css?17930248742116 */
/* /local/templates/kvant/styles.css?179137144283 */
