/* Main product stage: the desktop reference frame is about 650 × 560. */
.product-gallery-fit {
    width: 100%;
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;
}

.product-gallery-fit > .lSSlideOuter > .lSSlideWrapper {
    position: relative;
    height: auto !important;
    max-height: 560px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f7f8fa;
}

/* A percentage spacer also sets the aspect ratio on older Safari. */
.product-gallery-fit > .lSSlideOuter > .lSSlideWrapper::before {
    display: block;
    padding-top: 86.1538%;
    content: "";
}

.product-gallery-fit .lSSlideWrapper > #pro-gallery {
    position: absolute;
    top: 0;
    left: 0;
    height: 100% !important;
    margin: 0;
    padding: 0;
}

.product-gallery-fit .lSSlideWrapper > #pro-gallery > a {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.product-gallery-fit .lSSlideWrapper > #pro-gallery > a > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center;
}

.product-gallery-fit .lSSlideWrapper > .lSAction {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

.product-gallery-fit .lSAction > a {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    border: 1px solid rgba(25, 47, 61, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 9px rgba(25, 47, 61, 0.18);
    color: #263f4b;
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
}

.product-gallery-fit .lSAction > .lSPrev {
    left: 12px;
}

.product-gallery-fit .lSAction > .lSNext {
    right: 12px;
}

.product-gallery-fit .lSAction > a::before {
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
}

.product-gallery-fit .lSAction > .lSPrev::before {
    transform: translateX(2px) rotate(-135deg);
}

.product-gallery-fit .lSAction > .lSNext::before {
    transform: translateX(-2px) rotate(45deg);
}

.product-gallery-fit .lSAction > a:hover,
.product-gallery-fit .lSAction > a:focus-visible {
    background: #fff;
    color: #007b9e;
}

.product-gallery-fit .lSAction > a.disabled {
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 767px) {
    .product-gallery-fit .lSAction > .lSPrev {
        left: 8px;
    }

    .product-gallery-fit .lSAction > .lSNext {
        right: 8px;
    }
}
