.slideshow {
    height: 400px;
    object-fit: cover;
}

/* codex-photoswipe-fix: restore PhotoSwipe v4/XStore gallery layout. */
.pswp {
    display: none;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    outline: none;
    z-index: 999999 !important;
    touch-action: none;
    -webkit-text-size-adjust: 100%;
    -webkit-backface-visibility: hidden;
}

.pswp--open {
    display: block !important;
}

.pswp__bg {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
}

.pswp__scroll-wrap {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pswp__container,
.pswp__zoom-wrap {
    position: absolute !important;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    touch-action: none;
}

.pswp__item {
    position: absolute !important;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.pswp__container,
.pswp__img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.pswp__img {
    position: absolute !important;
    width: auto;
    height: auto;
    max-width: none !important;
    max-height: none !important;
}

.pswp__top-bar {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 44px;
    background: rgba(0, 0, 0, .35);
    z-index: 1550;
}

.pswp__counter {
    position: absolute !important;
    left: 0;
    top: 0;
    height: 44px;
    padding: 0 10px;
    color: #fff;
    font-size: 13px;
    line-height: 44px;
    opacity: .85;
}

.pswp__caption {
    position: absolute !important;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 44px;
}

.pswp__caption__center {
    max-width: 420px;
    margin: 0 auto;
    padding: 10px;
    color: #ccc;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
}

.pswp__ui {
    visibility: visible;
    opacity: 1;
    z-index: 1550;
}

.pswp__ui--hidden {
    visibility: hidden;
    opacity: 0;
}

.pswp__button {
    display: block !important;
    float: right;
    position: relative;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer;
    opacity: .85;
    appearance: none;
    font-size: 0 !important;
    line-height: 44px !important;
}

.pswp__button:hover {
    opacity: 1;
}

.pswp__button:before {
    display: block;
    width: 44px;
    height: 44px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 44px;
    text-align: center;
}

.pswp__button--close:before {
    content: "\00d7";
    font-size: 34px;
}

.pswp__button--fs:before {
    content: "\26f6";
    font-size: 22px;
}

.pswp__button--zoom:before {
    content: "+";
    font-size: 28px;
}

.pswp--zoomed-in .pswp__button--zoom:before {
    content: "-";
}

.pswp__button--share:before {
    content: "\21aa";
    font-size: 24px;
}

.pswp__button--arrow--left,
.pswp__button--arrow--right {
    position: absolute !important;
    top: 50% !important;
    width: 70px !important;
    height: 100px !important;
    min-width: 70px !important;
    min-height: 100px !important;
    margin-top: -50px !important;
    background: transparent !important;
    float: none;
    z-index: 1550;
}

.pswp__button--arrow--left {
    left: 0 !important;
}

.pswp__button--arrow--right {
    right: 0 !important;
}

.pswp__button--arrow--left:before,
.pswp__button--arrow--right:before {
    position: absolute;
    top: 35px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, .35);
    border-radius: 2px;
    font-size: 46px;
    line-height: 39px;
}

.pswp__button--arrow--left:before {
    content: "\2039";
    left: 6px;
}

.pswp__button--arrow--right:before {
    content: "\203a";
    right: 6px;
}

.pswp__share-modal {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1600;
    background: rgba(0, 0, 0, .5);
    opacity: 1;
}

.pswp__share-modal--hidden {
    display: none;
}

.pswp__share-tooltip {
    position: absolute;
    top: 56px;
    right: 44px;
    min-width: 170px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.pswp__share-tooltip a {
    display: block;
    padding: 8px 12px;
    color: #222 !important;
    font-size: 13px;
    line-height: 18px;
    text-decoration: none;
}

.pswp__preloader {
    position: absolute;
    top: 0;
    right: 176px;
    width: 44px;
    height: 44px;
    opacity: 0;
}

/* codex-product-lightbox: independent product image preview. */
#codexProductLightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .88);
}

#codexProductLightbox.is-open {
    display: flex;
}

#codexProductLightbox .codex-lightbox-image {
    display: block;
    max-width: min(90vw, 1280px);
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 12px 42px rgba(0, 0, 0, .35);
}

#codexProductLightbox .codex-lightbox-button {
    position: fixed;
    z-index: 2147483001;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 42px;
    line-height: 48px;
    text-align: center;
    cursor: pointer;
    opacity: .82;
}

#codexProductLightbox .codex-lightbox-button:hover {
    opacity: 1;
    background: transparent;
}

#codexProductLightbox .codex-lightbox-close {
    top: 14px;
    right: 18px;
}

#codexProductLightbox .codex-lightbox-prev {
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    font-size: 58px;
}

#codexProductLightbox .codex-lightbox-next {
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    font-size: 58px;
}

#codexProductLightbox .codex-lightbox-counter {
    position: fixed;
    left: 18px;
    top: 14px;
    z-index: 2147483001;
    color: #fff;
    font-size: 15px;
    line-height: 48px;
    opacity: .9;
}

body.codex-lightbox-open {
    overflow: hidden !important;
}

.product-tag-links a:not(:last-child)::after {
    content: ", ";
    color: inherit;
}
