.pswp--editorial-images {
    --pswp-bg: #000;
}

.pswp--editorial-images .pswp__top-bar,
.pswp--editorial-images .pswp__button--zoom,
.pswp--editorial-images .pswp__counter,
.pswp--editorial-images .pswp__button--arrow--prev,
.pswp--editorial-images .pswp__button--arrow--next {
    display: none;
}

.pswp--editorial-images .pswp__img {
    max-width: 80vw;
    max-height: 85vh;
    border: 4px solid #fff;
    box-sizing: border-box;
    object-fit: contain;
}

.pswp--editorial-images .pswp__button--editorial-close {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    appearance: none;
}

.pswp--editorial-images .pswp__editorial-caption {
    position: fixed;
    z-index: 10;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1em;
    pointer-events: none;
}

.pswp--editorial-images .pswp__button--editorial-close {
    opacity: 1 !important;
    visibility: visible !important;
}

.pswp--editorial-images .pswp__button--editorial-close:hover,
.pswp--editorial-images .pswp__button--editorial-close:focus-visible {
    color: #fff;
}

.pswp--editorial-images {
    touch-action: manipulation;
}

.kopp-res-media-catalog__editorial-image-link {
    display: block;
    cursor: zoom-in;
}

.kopp-res-media-catalog__editorial-image-link:first-child:nth-last-child(1) {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .pswp--editorial-images .pswp__img {
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 5rem);
    }
}
