@media (min-width: 901px) {
    html:has(body.single-product #photoswipe-fullscreen-dialog.pswp--open) {
        overflow: hidden;
        scrollbar-gutter: stable;
    }

    body.single-product #photoswipe-fullscreen-dialog.pswp--open {
        /* Keep the Fabri IA widget behind the desktop photo viewer. */
        z-index: 1000010;
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__bg {
        background: rgba(23, 28, 29, .36);
        cursor: pointer;
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__scroll-wrap {
        inset: 0;
        width: min(calc(100% - 112px), 1080px);
        height: min(calc(100% - 72px), 840px);
        margin: auto;
        overflow: hidden;
        isolation: isolate;
        border: 1px solid #dcdedb;
        border-radius: 12px;
        background: #f3f3f1;
        box-shadow: 0 18px 70px rgba(23, 28, 29, .24);
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__img--placeholder--blank {
        background: #efefed;
    }

    body.single-product #photoswipe-fullscreen-dialog :is(.pswp__error-msg, .pswp__error-msg a) {
        color: #404442;
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__top-bar {
        height: 56px;
        align-items: center;
        gap: 4px;
        padding: 0 12px 0 20px;
        border-bottom: 1px solid #e5e7e4;
        background: #fff;
        color: #1a1d1c;
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__counter {
        height: auto;
        padding: 0;
        color: #404442;
        font-size: 14px;
        font-weight: 500;
        font-variant-numeric: tabular-nums;
        line-height: 1.3;
        opacity: 1;
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__caption {
        border-top: 1px solid #e5e7e4;
        background: #fff;
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__caption__center {
        max-width: 100%;
        padding-inline: 20px;
        color: #404442;
        text-align: center;
        overflow-wrap: anywhere;
    }

    body.single-product #photoswipe-fullscreen-dialog button.pswp__button {
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 50%;
        background: transparent !important;
        color: #1a1d1c;
        opacity: 1;
    }

    body.single-product #photoswipe-fullscreen-dialog button.pswp__button:is(:hover, :focus-visible) {
        background: #eaece9 !important;
    }

    body.single-product #photoswipe-fullscreen-dialog button.pswp__button:focus-visible {
        outline: 2px solid #007fa8;
        outline-offset: 2px;
    }

    /* Keep the desktop controls outside the photograph, including on hybrid laptops. */
    body.single-product #photoswipe-fullscreen-dialog :is(.pswp__button--arrow--left, .pswp__button--arrow--right) {
        top: 7px;
        margin: 0;
        visibility: visible;
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__button--arrow--left {
        left: calc(50% - 45px);
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__button--arrow--right {
        right: calc(50% - 45px);
    }

    body.single-product #photoswipe-fullscreen-dialog :is(.pswp__button--arrow--left, .pswp__button--arrow--right)::before {
        inset: 16px auto auto 17px;
        width: 9px;
        height: 9px;
        border: solid currentColor;
        border-width: 0 1.5px 1.5px 0;
        background: none !important;
        transform: rotate(135deg);
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__button--arrow--right::before {
        left: 15px;
        transform: rotate(-45deg);
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__button--close::before,
    body.single-product #photoswipe-fullscreen-dialog .pswp__button--close::after {
        content: "";
        position: absolute;
        inset: 20px 13px auto;
        height: 1.5px;
        border-radius: 1px;
        background: currentColor;
        transform: rotate(45deg);
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__button--close::after {
        transform: rotate(-45deg);
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__button--zoom::before {
        content: "";
        position: absolute;
        inset: 12px auto auto 12px;
        width: 14px;
        height: 14px;
        border: 1.5px solid currentColor;
        border-radius: 50%;
        background: linear-gradient(currentColor, currentColor) center / 6px 1px no-repeat,
                    linear-gradient(currentColor, currentColor) center / 1px 6px no-repeat;
    }

    body.single-product #photoswipe-fullscreen-dialog.pswp--zoomed-in .pswp__button--zoom::before {
        background-size: 6px 1px, 0 0;
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__button--zoom::after {
        content: "";
        position: absolute;
        inset: 26px auto auto 23px;
        width: 8px;
        height: 1.5px;
        border-radius: 1px;
        background: currentColor;
        transform: rotate(45deg);
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__button--fs {
        display: none;
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__preloader {
        position: absolute;
        inset: 6px auto auto 50%;
        margin-left: -22px;
        pointer-events: none;
    }

    body.single-product #photoswipe-fullscreen-dialog .pswp__preloader__donut {
        border-color: #404442;
        border-left-color: transparent;
    }

    body.single-product #photoswipe-fullscreen-dialog .woocommerce-product-gallery__photoswipe-video-wrapper {
        padding: 70px 20px 44px;
    }
}
