html.bk-lightbox-open,
html.bk-lightbox-open body {
    overflow: hidden;
}

.bk-lightbox[hidden],
.bk-lightbox [hidden] {
    display: none !important;
}

.bk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    color: #fff;
    background: radial-gradient(circle at 50% 42%, #1d1a37 0, #11101e 44%, #07070d 100%);
    isolation: isolate;
}

.bk-lightbox::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: '';
    opacity: .38;
    background: linear-gradient(120deg, rgba(237, 28, 36, .1), transparent 36%, rgba(92, 77, 194, .09));
    pointer-events: none;
}

.bk-lightbox__shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}

.bk-lightbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 92px;
    padding: 18px clamp(20px, 3vw, 48px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.bk-lightbox__identity {
    min-width: 0;
}

.bk-lightbox__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #ff5962;
    font: 700 10px/1.2 'Oswald', sans-serif;
    letter-spacing: .19em;
}

.bk-lightbox__eyebrow span {
    margin: 0 7px;
    color: rgba(255, 255, 255, .35);
}

.bk-lightbox__identity h2 {
    overflow: hidden;
    max-width: min(68vw, 900px);
    margin: 0;
    color: #fff;
    font: 600 clamp(16px, 2vw, 23px)/1.2 'Oswald', sans-serif;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bk-lightbox__header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
}

.bk-lightbox__counter {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 98px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .065);
    font: 700 20px/1 'Oswald', sans-serif;
    font-variant-numeric: tabular-nums;
}

.bk-lightbox__counter-divider,
.bk-lightbox__counter [data-gallery-total] {
    color: rgba(255, 255, 255, .46);
    font-size: 14px;
}

.bk-lightbox button {
    font-family: inherit;
    cursor: pointer;
}

.bk-lightbox__close,
.bk-lightbox__nav {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.bk-lightbox__close {
    width: 46px;
    height: 46px;
}

.bk-lightbox__close svg,
.bk-lightbox__nav svg {
    width: 21px;
    height: 21px;
}

.bk-lightbox__close:hover,
.bk-lightbox__nav:hover {
    border-color: #ff5962;
    background: #ed1c24;
    transform: scale(1.05);
}

.bk-lightbox button:focus-visible,
.bk-lightbox a:focus-visible {
    outline: 2px solid #ff5962;
    outline-offset: 4px;
}

.bk-lightbox__stage {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) 66px;
    align-items: center;
    gap: clamp(8px, 2vw, 28px);
    min-height: 0;
    padding: 16px clamp(16px, 3vw, 48px);
}

.bk-lightbox__nav {
    width: 56px;
    height: 56px;
    justify-self: center;
}

.bk-lightbox__nav[hidden] {
    visibility: hidden;
}

.bk-lightbox__image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.bk-lightbox__skeleton {
    position: absolute;
    top: 6%;
    bottom: 6%;
    left: 50%;
    width: min(92%, 1120px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 12px;
    opacity: 1;
    background:
        linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, .09) 43%, transparent 64%),
        linear-gradient(145deg, rgba(36, 33, 66, .96), rgba(18, 16, 36, .98));
    background-position: 140% 0, 0 0;
    background-size: 220% 100%, 100% 100%;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .18);
    transform: translateX(-50%);
    animation: bk-lightbox-skeleton 1.25s ease-in-out infinite;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.bk-lightbox__image-wrap:not(.is-loading) .bk-lightbox__skeleton {
    opacity: 0;
    visibility: hidden;
}

.bk-lightbox__image {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .36);
    transition: opacity .2s ease;
}

.bk-lightbox__image-wrap.is-loading .bk-lightbox__image,
.bk-lightbox__image-wrap.is-error .bk-lightbox__image {
    opacity: 0;
}

.bk-lightbox__loader {
    position: absolute;
    z-index: 2;
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255, 255, 255, .16);
    border-top-color: #ff5962;
    border-radius: 50%;
    animation: bk-lightbox-spin .7s linear infinite;
}

.bk-lightbox__image-wrap:not(.is-loading) .bk-lightbox__loader {
    display: none;
}

.bk-lightbox__error {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    text-align: center;
}

.bk-lightbox__footer {
    padding: 14px clamp(20px, 3vw, 48px) 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .12);
}

.bk-lightbox__details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.bk-lightbox__photo-label {
    color: rgba(255, 255, 255, .85);
    font: 600 11px/1.2 'Oswald', sans-serif;
    letter-spacing: .16em;
}

.bk-lightbox__original {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.bk-lightbox__original:hover {
    color: #fff;
    text-decoration: none;
}

.bk-lightbox__original svg {
    width: 15px;
    height: 15px;
}

.bk-lightbox__progress {
    height: 2px;
    overflow: hidden;
    margin-bottom: 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
}

.bk-lightbox__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ed1c24, #ff6570);
    transition: width .25s ease;
}

.bk-lightbox__filmstrip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-color: rgba(255, 255, 255, .25) transparent;
    scrollbar-width: thin;
}

.bk-lightbox__thumb {
    position: relative;
    flex: 0 0 70px;
    width: 70px;
    height: 49px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 7px;
    opacity: .47;
    background: #211e32;
    transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.bk-lightbox__thumb::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: '';
    opacity: 1;
    background:
        linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .14) 44%, transparent 68%),
        #242139;
    background-position: 140% 0, 0 0;
    background-size: 220% 100%, 100% 100%;
    animation: bk-lightbox-skeleton 1.15s ease-in-out infinite;
    pointer-events: none;
    transition: opacity .2s ease;
}

.bk-lightbox__thumb.is-loaded::before,
.bk-lightbox__thumb.is-error::before {
    opacity: 0;
}

.bk-lightbox__thumb:hover {
    opacity: .8;
}

.bk-lightbox__thumb.is-active {
    border-color: #ff5962;
    opacity: 1;
    transform: translateY(-2px);
}

.bk-lightbox__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes bk-lightbox-skeleton {
    0% { background-position: 140% 0, 0 0; }
    100% { background-position: -40% 0, 0 0; }
}

@keyframes bk-lightbox-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
    .bk-lightbox__header {
        min-height: 76px;
        gap: 10px;
        padding: 12px 16px;
    }

    .bk-lightbox__identity h2 {
        max-width: 48vw;
        font-size: 16px;
    }

    .bk-lightbox__eyebrow {
        font-size: 9px;
    }

    .bk-lightbox__header-actions {
        gap: 8px;
    }

    .bk-lightbox__counter {
        min-width: 0;
        gap: 5px;
        padding: 9px 11px;
        font-size: 17px;
    }

    .bk-lightbox__counter-divider,
    .bk-lightbox__counter [data-gallery-total] {
        font-size: 12px;
    }

    .bk-lightbox__close {
        width: 38px;
        height: 38px;
    }

    .bk-lightbox__stage {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 3px;
        padding: 10px 8px;
    }

    .bk-lightbox__nav {
        width: 36px;
        height: 36px;
    }

    .bk-lightbox__nav svg {
        width: 18px;
        height: 18px;
    }

    .bk-lightbox__footer {
        padding: 11px 16px max(12px, env(safe-area-inset-bottom));
    }

    .bk-lightbox__thumb {
        flex-basis: 58px;
        width: 58px;
        height: 44px;
    }
}

@media (max-height: 530px) and (orientation: landscape) {
    .bk-lightbox__header {
        min-height: 56px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .bk-lightbox__footer {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .bk-lightbox__details {
        margin-bottom: 6px;
    }

    .bk-lightbox__progress {
        margin-bottom: 6px;
    }

    .bk-lightbox__filmstrip {
        min-height: 40px;
    }

    .bk-lightbox__thumb {
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bk-lightbox *,
    .bk-lightbox *::before,
    .bk-lightbox *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
