.products_list .products__pic.catalog-photo-gallery-slot {
    height: auto;
    line-height: normal;
}

.products_list .catalog-photo-gallery {
    --gallery-size: 200px;
    --gallery-nav-height: 20px;
    position: relative;
    box-sizing: border-box;
    width: var(--gallery-size);
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    line-height: normal;
}

.products_list .catalog-photo-gallery > a.catalog-photo-gallery__track {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: auto;
    min-width: 0;
    aspect-ratio: 1;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.products_list .catalog-photo-gallery__track::-webkit-scrollbar {
    display: none;
}

.products_list .catalog-photo-gallery__slide {
    display: grid;
    flex: 0 0 100%;
    place-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.products_list .catalog-photo-gallery .catalog-photo-gallery__slide > img {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
}

.products_list .catalog-photo-gallery__controls {
    display: none;
}

.catalog-gallery-ready .products_list .catalog-photo-gallery__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--gallery-nav-height);
}

.products_list .catalog-photo-gallery__controls--with-video {
    column-gap: 7px;
}

.products_list .catalog-photo-gallery__dots {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
}

.products_list .catalog-photo-gallery__controls button {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #202124;
    cursor: pointer;
    touch-action: manipulation;
}

.products_list .catalog-photo-gallery__controls button:focus-visible,
.products_list .catalog-photo-gallery__track:focus-visible {
    outline: 2px solid #695900;
    outline-offset: -2px;
}

.products_list .catalog-photo-gallery__controls .catalog-photo-gallery__arrow {
    position: absolute;
    top: calc((100% - var(--gallery-nav-height)) / 2);
    z-index: 1;
    width: 28px;
    height: 28px;
    border: 1px solid #e6e6e6;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgb(0 0 0 / 10%);
    transform: translateY(-50%);
}

.products_list .catalog-photo-gallery__arrow--previous {
    left: 4px;
}

.products_list .catalog-photo-gallery__arrow--next {
    right: 4px;
}

.products_list .catalog-photo-gallery__arrow:disabled {
    visibility: hidden;
}

.products_list .catalog-photo-gallery__arrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateX(-1px) rotate(45deg);
}

.products_list .catalog-photo-gallery__arrow--previous::before {
    transform: translateX(1px) rotate(-135deg);
}

.products_list .catalog-photo-gallery__controls .catalog-photo-gallery__dot {
    flex: 0 1 16px;
    width: 16px;
    min-width: 0;
    height: var(--gallery-nav-height);
}

.products_list .catalog-photo-gallery__dot::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 9px;
    background: #aeb2b6;
}

.products_list .catalog-photo-gallery__dot[aria-current="true"]::before {
    width: 10px;
    background: #ffea00;
    box-shadow: inset 0 0 0 1px #b8a600;
}

.products_list .catalog-card-photo {
    display: contents;
}

.products_list .catalog-card-photo__expand {
    display: none;
}

.products_list .catalog-card-video {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: max-content;
    min-height: 24px;
    margin: 2px auto 0;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #202124;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
}

.products_list .catalog-card-video > svg {
    display: block;
    flex: none;
    width: 14px;
    height: 11px;
    pointer-events: none;
}

.products_list .catalog-photo-gallery__controls > .catalog-card-video {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
    min-height: var(--gallery-nav-height);
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.products_list :is(.catalog-card-video, .catalog-card-photo__expand):focus-visible {
    outline: 2px solid #695900;
    outline-offset: 1px;
}

@media (hover: hover) and (pointer: fine) {
    .products_list .catalog-photo-gallery__controls .catalog-photo-gallery__arrow {
        opacity: 0;
        transition: opacity 140ms ease;
    }

    .products_list .catalog-photo-gallery:hover .catalog-photo-gallery__arrow,
    .products_list .catalog-photo-gallery:focus-within .catalog-photo-gallery__arrow {
        opacity: 1;
    }

    .products_list .catalog-card-video:hover {
        text-decoration: underline;
    }
}

@media (max-width: 1124px) {
    .products_list .catalog-photo-gallery {
        --gallery-size: 153px;
    }
}

@media (max-width: 739px) {
    .products_list .catalog-photo-gallery {
        --gallery-size: clamp(95px, 23vw, 120px);
    }

    .products_list .catalog-photo-gallery__controls .catalog-photo-gallery__arrow {
        display: none;
    }

    .products_list .catalog-photo-gallery__controls--with-video {
        column-gap: 3px;
    }

    .products_list .catalog-photo-gallery__controls--with-video .catalog-photo-gallery__dot {
        flex-basis: 12px;
        width: 12px;
    }

    .products_list .catalog-photo-gallery__controls--with-video .catalog-photo-gallery__dot::before {
        max-width: calc(100% - 1px);
    }

    .products_list .catalog-photo-gallery__controls > .catalog-card-video {
        gap: 2px;
        font-size: 11px;
    }

    .products_list .catalog-photo-gallery__controls > .catalog-card-video > svg {
        width: 12px;
        height: 9px;
    }

    .products_list .catalog-card-photo {
        position: relative;
        display: block;
        width: fit-content;
        max-width: 100%;
    }

    .catalog-gallery-ready .products_list .catalog-card-photo > .catalog-card-photo__expand {
        position: absolute;
        inset-block-start: 2px;
        inset-inline-start: 2px;
        z-index: 2;
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 4px;
        background: transparent;
        box-shadow: none;
        color: #202124;
        cursor: pointer;
        touch-action: manipulation;
    }

    .products_list .catalog-card-photo__expand > svg {
        display: block;
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        filter: drop-shadow(0 0 1px #fff);
        pointer-events: none;
    }

    .products_list .catalog-card-video {
        align-self: flex-start;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .products_list .catalog-photo-gallery__controls .catalog-photo-gallery__arrow {
        transition: none;
    }
}
