@import url('./vendor/photoswipe/5.4.4/photoswipe.css');

a[data-enfasten-image-link].image-lightbox-pointer-focus:focus {
    outline: none;
}

.sundial-lightbox {
    --pswp-bg: #fff;
    --pswp-placeholder-bg: #fff;
    --pswp-icon-color: #202020;
    --pswp-icon-color-secondary: #fff;
    --pswp-icon-stroke-color: #fff;
    --pswp-preloader-color: #ccc;
    --pswp-preloader-color-secondary: #333;
    color: #202020;
    text-align: left;
}

/* Isolate the viewer from the content pages' broad div and typography rules. */
.sundial-lightbox,
.sundial-lightbox div {
    margin-bottom: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: normal;
}

.sundial-lightbox .pswp__img {
    background: #fff;
}

.sundial-lightbox .pswp__top-bar {
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-left: env(safe-area-inset-left);
    background: #fff;
}

.sundial-lightbox .pswp__counter {
    color: #202020;
    text-shadow: none;
}

.sundial-lightbox .pswp__button {
    color: #202020;
    opacity: 1;
}

.sundial-lightbox .pswp__button:focus-visible {
    outline: 2px solid #0759ad;
    outline-offset: -4px;
}

.sundial-lightbox .pswp__button--fit100 {
    width: 72px;
    font-size: 16px;
    font-weight: 600;
}

.sundial-lightbox .pswp__button--fit100:disabled {
    opacity: 0.4;
}

@media (max-width: 639px) {
    .sundial-lightbox .pswp__button--arrow {
        top: auto;
        bottom: max(16px, env(safe-area-inset-bottom));
        width: 48px;
        height: 48px;
        margin: 0;
        border-radius: 50%;
        background: #f1f1f1;
        visibility: visible;
    }

    .sundial-lightbox .pswp__button--arrow--prev { left: 16px; }
    .sundial-lightbox .pswp__button--arrow--next { right: 16px; }

    .sundial-lightbox .pswp__button--arrow .pswp__icn {
        top: 8px;
        left: 8px;
        right: auto;
        width: 32px;
        height: 32px;
        margin: 0;
    }
}
