/* Product cards: gallery controls outside the main image. */
.product-content .fotorama,
.product-content .fotorama__wrap {
    overflow: visible !important;
}

.product-content .fotorama__stage {
    /* Arrows live here and must stay outside the image viewport. */
    overflow: visible !important;
}

.product-content .fotorama__stage__shaft {
    /* Animate images inside the viewport, never outside the image area. */
    overflow: hidden !important;
}

/* Some galleries retain Fotorama's temporary inline display:none after init. */
.product-content .fotorama__stage {
    display: block !important;
}

/* Fotorama's edge masks look like unwanted vertical shadows on white pages. */
.product-content .fotorama__stage::before,
.product-content .fotorama__stage::after,
.product-content .fotorama__stage__shaft::before,
.product-content .fotorama__stage__shaft::after {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.product-content .fotorama__arr {
    top: 50% !important;
    width: 52px !important;
    height: 64px !important;
    margin-top: -32px !important;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    opacity: 1 !important;
    /* Keep the click target fixed; Fotorama otherwise animates it on hover. */
    transition: none !important;
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
    cursor: pointer;
}

.product-content .fotorama__arr::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 27px;
    height: 27px;
    border-top: 4px solid #d9d9d9;
    border-right: 4px solid #d9d9d9;
}

.product-content .fotorama__arr--prev {
    /* Keep arrows equally spaced from a portrait product image. */
    left: calc(50% - 266px) !important;
}

.product-content .fotorama__arr--prev::after {
    margin: -14px 0 0 -10px;
    transform: rotate(-135deg);
}

.product-content .fotorama__arr--next {
    right: calc(50% - 266px) !important;
}

.product-content .fotorama__arr--next::after {
    margin: -14px 0 0 -18px;
    transform: rotate(45deg);
}

.product-content .fotorama__arr:hover::after,
.product-content .fotorama__arr:focus::after {
    border-color: #599823;
}

.product-content .fotorama__arr--disabled {
    cursor: default;
}

.product-content .fotorama__arr--disabled:hover::after,
.product-content .fotorama__arr--disabled:focus::after {
    border-color: #d9d9d9;
}

.product-content .fotorama__nav-wrap {
    position: absolute !important;
    top: 50% !important;
    left: -136px !important;
    width: 64px !important;
    height: 340px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: translateY(-50%);
    scrollbar-width: none;
}

.product-content .fotorama__nav-wrap::-webkit-scrollbar {
    display: none;
}

.product-content .fotorama__nav--thumbs,
.product-content .fotorama__nav__shaft {
    width: 64px !important;
}

.product-content .fotorama__nav__shaft {
    display: block !important;
    transform: none !important;
}

.product-content .fotorama__nav__frame {
    display: block !important;
    width: 64px !important;
    height: 68px !important;
}

@media only screen and (max-width: 767px) {
    .product-content .fotorama {
        margin-left: 78px !important;
        transform: scale(0.78);
        transform-origin: left top;
    }

    .product-content .fotorama__arr {
        width: 36px !important;
        height: 36px !important;
        margin-top: -18px !important;
    }

    .product-content .fotorama__arr--prev {
        left: calc(50% - 190px) !important;
    }

    .product-content .fotorama__arr--next {
        right: calc(50% - 190px) !important;
    }

    .product-content .fotorama__nav-wrap {
        left: -102px !important;
        width: 46px !important;
        height: 260px !important;
    }

    .product-content .fotorama__nav--thumbs,
    .product-content .fotorama__nav__shaft,
    .product-content .fotorama__nav__frame {
        width: 46px !important;
    }

    .product-content .fotorama__nav__frame {
        height: 52px !important;
    }
}
