.product-gallery {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    min-width: 0;
}

.theme-new.component-lepnina #scrollable .offer .product-gallery #slider,
.product-gallery #slider {
    position: relative;
    height: auto;
    flex: 1 0 auto;
}

.product-gallery #slider .pic,
.product-image-modal--gallery .product-image-modal__image {
    touch-action: pan-y pinch-zoom;
    user-select: none;
}

.product-gallery #slider .pic a,
.product-image-modal--gallery .product-image-modal__image { cursor: grab; }

.product-gallery #slider .pic a:active,
.product-image-modal--gallery .product-image-modal__image:active { cursor: grabbing; }

.product-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: rgba(25, 25, 25, .78);
    font: 36px/36px Arial, sans-serif;
    cursor: pointer;
}

.product-gallery__arrow--prev { left: 8px; }
.product-gallery__arrow--next { right: 8px; }
.product-gallery__arrow:hover { background: #222; }
.product-gallery__arrow:focus-visible,
.product-gallery__photos a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.product-gallery__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    justify-content: center;
}

.product-gallery .product-gallery__photos a {
    display: grid;
    flex: 0 0 60px;
    place-items: center;
    border: 1px solid #b6b6b6;
    border-radius: 5px;
    cursor: pointer;
}

.product-gallery .product-gallery__photos a[aria-current="true"] {
    box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px #333;
}

.product-gallery__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
