/* Keep the photo frame stable while its contents move horizontally. */
.product .image.catalog-gallery {
    position: relative;
    z-index: 0;
    line-height: normal;
}
.product:has(> .catalog-gallery) > .wishcomp { z-index: 3; }
.product .catalog-gallery .catalog-gallery-viewport {
    position: absolute;
    top: 8px;
    left: 0;
    display: block;
    width: 100%;
    height: calc(100% - 30px);
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.product .catalog-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 300ms ease;
}
.product .catalog-gallery.is-dragging .catalog-gallery-track { transition: none; }
.product .catalog-gallery.is-dragging .catalog-gallery-viewport { cursor: grabbing; }
.product .catalog-gallery-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}
.product .image.catalog-gallery .catalog-gallery-slide img {
    display: block;
    width: 90%;
    height: 100%;
    max-width: 90%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    object-fit: contain;
    transform: none;
    transition: none;
    -webkit-user-drag: none;
}
.product .catalog-gallery-dots {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    justify-content: safe center;
    overflow-x: auto;
    scrollbar-width: none;
    line-height: normal;
}
.product .catalog-gallery-dots[hidden] { display: none; }
.product .catalog-gallery-dots::-webkit-scrollbar { display: none; }
.product .catalog-gallery .catalog-gallery-dot {
    box-sizing: border-box;
    flex: 0 0 20px;
    width: 20px;
    min-width: 20px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}
.product .catalog-gallery-dot::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    margin: auto;
    border: 1px solid #458500;
    border-radius: 50%;
    background: #fff;
}
.product .catalog-gallery-dot[aria-current="true"]::after { background: #458500; }
.product .catalog-gallery-dot:focus-visible,
.product .catalog-gallery-viewport:focus-visible { outline: 2px solid #458500; outline-offset: -2px; }
.product .catalog-gallery-slide.is-loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #d9e8cc;
    border-top-color: #458500;
    border-radius: 50%;
    animation: catalog-gallery-loading 800ms linear infinite;
}
.product .catalog-gallery-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
@keyframes catalog-gallery-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .product .catalog-gallery-track { transition: none; }
    .product .catalog-gallery-slide.is-loading::after { animation: none; }
}
