catalog-card-gallery {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    isolation: isolate;
}

.catalog-gallery-viewport {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.catalog-gallery-viewport::-webkit-scrollbar {
    display: none;
}

.catalog-gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
}

.catalog-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
}

catalog-card-gallery button[hidden] {
    display: none;
}

.catalog-gallery-arrow {
    position: absolute;
    z-index: 1;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    appearance: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(51, 65, 85, .56);
    font-size: .75rem;
    text-shadow: none;
    cursor: pointer;
    transform: translateY(-50%);
}

.catalog-gallery-prev {
    inset-inline-start: 0;
}

.catalog-gallery-next {
    inset-inline-end: 0;
}

.catalog-gallery-arrow:dir(rtl) i {
    transform: scaleX(-1);
}

.catalog-gallery-arrow:hover,
.catalog-gallery-arrow:focus-visible {
    color: #334155;
}

.catalog-gallery-arrow:focus:not(:focus-visible) {
    outline: none;
}

.catalog-gallery-progress {
    position: absolute;
    bottom: .55rem;
    left: 50%;
    display: flex;
    gap: 3px;
    transform: translateX(-50%);
    pointer-events: none;
}

.catalog-gallery-progress span {
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: rgba(51, 65, 85, .28);
    box-shadow: 0 0 1px rgba(255, 255, 255, .8);
}

.catalog-gallery-progress .is-current {
    background: rgba(51, 65, 85, .8);
}

.art-picture-block:has(> .art-price-table) .catalog-gallery-progress {
    bottom: 3.65rem;
}

catalog-card-gallery :focus-visible {
    outline: 2px solid #145ca7;
    outline-offset: 2px;
}

.catalog-gallery-slide:focus-visible {
    outline-offset: -3px;
}

@media (max-width: 991.98px) {
    .art-picture-block:has(> .art-price-table) .catalog-gallery-progress {
        bottom: 3.1rem;
    }
}

@media (pointer: coarse) {
    .catalog-gallery-arrow {
        min-width: 44px;
        min-height: 44px;
    }
}
