/* Product photo viewer. PhotoSwipe supplies the gestures; this file is the Oddworld chrome. */

.pswp--oddworld {
    --pswp-bg: #141311;
    --pswp-icon-color: #fff;
    --pswp-icon-color-secondary: #fff;
    --pswp-icon-stroke-color: rgba(0, 0, 0, 0.45);
    --pswp-placeholder-bg: #1a1918;
    --lightbox-frame: 18px;
    --lightbox-panel: 292px;
}

.pswp--oddworld.pswp--ui-visible .oddworld-lightbox-ui {
    pointer-events: none;
}

.oddworld-lightbox-ui {
    position: absolute;
    inset: 0;
    z-index: 30;
}

.pswp--oddworld .pswp__container {
    z-index: 1;
}

.oddworld-lightbox-frame {
    position: absolute;
    inset: var(--lightbox-frame);
    z-index: 0;
    border-radius: 18px;
    background: #161514;
    pointer-events: none;
}

.pswp--oddworld.is-flush .oddworld-lightbox-frame,
.pswp--oddworld.is-flush.is-sidebar .oddworld-lightbox-panel {
    border-radius: 0;
}

.pswp--oddworld .pswp__top-bar {
    height: 64px;
}

.pswp--oddworld.is-sidebar .pswp__top-bar {
    right: calc(var(--lightbox-frame) + var(--lightbox-panel));
    width: auto;
}

.pswp--oddworld .pswp__counter {
    height: auto;
    margin: 16px 0 0 calc(var(--lightbox-frame) + 14px);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(28, 28, 28, 0.78);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    text-shadow: none;
    opacity: 1;
}

.pswp--oddworld .pswp__button--zoom {
    align-items: center;
    gap: 4px;
    width: auto;
    height: 36px;
    margin: 14px 8px 0 0;
    padding: 0 12px 0 6px;
    border-radius: 999px;
    background: rgba(28, 28, 28, 0.78);
    color: #fff;
    font: 650 14px/1 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.pswp--oddworld.pswp--zoom-allowed .pswp__button--zoom {
    display: inline-flex;
}

.pswp--oddworld .pswp__button--zoom .pswp__icn {
    position: relative;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
}

.pswp--oddworld .oddworld-lightbox-zoom-label {
    padding-right: 2px;
}

.pswp--oddworld .pswp__button--close {
    width: 40px;
    height: 40px;
    margin: 12px 14px 0 0;
    border-radius: 50%;
    background: rgba(28, 28, 28, 0.78);
}

.pswp--oddworld .pswp__button--close .pswp__icn {
    top: 4px;
    left: 4px;
}

.pswp--oddworld.is-sidebar .pswp__button--close {
    display: none;
}

.pswp--oddworld .pswp__button--arrow {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    background: rgba(40, 40, 40, 0.62);
}

.pswp--oddworld.pswp--touch .pswp__button--arrow {
    visibility: visible;
}

.pswp--oddworld:not(.pswp--one-slide) .pswp__button--arrow:disabled {
    display: block;
    opacity: 0.35;
}

.pswp--oddworld .pswp__button--arrow .pswp__icn {
    top: 50%;
    left: 8px;
    width: 28px;
    height: 28px;
    margin-top: -14px;
}

.pswp--oddworld .pswp__button--arrow--prev {
    left: calc(var(--lightbox-frame) + 10px);
}

.pswp--oddworld .pswp__button--arrow--next {
    right: calc(var(--lightbox-frame) + 10px);
}

.pswp--oddworld.is-sidebar .pswp__button--arrow--next {
    right: calc(var(--lightbox-frame) + var(--lightbox-panel) + 10px);
}

.pswp--oddworld .pswp__button--arrow--next .pswp__icn {
    right: 8px;
}

.pswp--oddworld .pswp__button:focus-visible,
.pswp--oddworld .oddworld-lightbox-thumb:focus-visible,
.pswp--oddworld .oddworld-lightbox-close:focus-visible {
    outline: 2px solid #ffc600;
    outline-offset: 2px;
}

.oddworld-lightbox-panel {
    color: #171820;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.is-sidebar .oddworld-lightbox-panel {
    position: absolute;
    top: var(--lightbox-frame);
    right: var(--lightbox-frame);
    bottom: var(--lightbox-frame);
    display: flex;
    flex-direction: column;
    width: var(--lightbox-panel);
    overflow: hidden;
    border-radius: 0 18px 18px 0;
    background: #fbf7f1;
    pointer-events: auto;
}

.oddworld-lightbox-heading {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 2px 8px;
    align-items: start;
    padding: 16px 14px 8px;
}

.oddworld-lightbox-kicker {
    grid-column: 1;
    margin: 0;
    color: #6d6a64;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.oddworld-lightbox-title {
    grid-column: 1;
    margin: 0;
    overflow: hidden;
    color: #171820;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.oddworld-lightbox-close {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e4e0da;
    border-radius: 50%;
    background: #fff;
    color: #171820;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.is-sidebar .oddworld-lightbox-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-content: start;
    min-height: 0;
    margin: 0;
    padding: 8px 14px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
    touch-action: pan-y;
}

.is-filmstrip .oddworld-lightbox-heading,
.is-single .oddworld-lightbox-panel {
    display: none;
}

.is-filmstrip .oddworld-lightbox-panel {
    position: absolute;
    right: calc(var(--lightbox-frame) + 16px);
    bottom: calc(var(--lightbox-frame) + 14px);
    left: calc(var(--lightbox-frame) + 16px);
    pointer-events: none;
}

.is-filmstrip .oddworld-lightbox-thumbs {
    display: flex;
    gap: 8px;
    height: 76px;
    overflow-x: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
    touch-action: pan-x;
}

.oddworld-lightbox-thumb {
    position: relative;
    display: block;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.is-filmstrip .oddworld-lightbox-thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    padding: 3px;
}

.oddworld-lightbox-thumb.is-active {
    border-color: #ffc600;
}

.oddworld-lightbox-thumb img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: contain;
    pointer-events: none;
}

.is-sidebar .oddworld-lightbox-thumb img {
    height: auto;
    aspect-ratio: 1;
}

.is-filmstrip .oddworld-lightbox-thumb img {
    height: 100%;
}

.oddworld-lightbox-thumb-index {
    position: absolute;
    bottom: 6px;
    left: 6px;
    min-width: 22px;
    padding: 1px 5px;
    border-radius: 5px;
    background: rgba(20, 20, 20, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.oddworld-lightbox-thumb.is-active .oddworld-lightbox-thumb-index {
    background: #ffc600;
    color: #171820;
}

@media (max-width: 480px) {
    .pswp--oddworld .oddworld-lightbox-zoom-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .pswp--oddworld.pswp--zoom-allowed .pswp__button--zoom {
        width: 40px;
        height: 40px;
        margin-top: 12px;
        padding: 0;
        border-radius: 50%;
    }
}
