html.ethos-lb-open,
html.ethos-lb-open body {
    overflow: hidden !important;
}

.ethos-lb-link img {
    cursor: zoom-in;
}

.ethos-lb {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.ethos-lb.is-open {
    display: block;
}

.ethos-lb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 12, 24, .92);
}

.ethos-lb__dialog {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(52px, 8vw) minmax(0, 1fr) minmax(52px, 8vw);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    color: #fff;
}

.ethos-lb__stage {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 42px 0 14px;
}

.ethos-lb__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 130px);
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity .18s ease;
    box-shadow: 0 12px 48px rgba(0,0,0,.35);
}

.ethos-lb__image.is-loaded {
    opacity: 1;
}

.ethos-lb__loading {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    letter-spacing: .04em;
}

.ethos-lb__nav,
.ethos-lb__close {
    appearance: none;
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.ethos-lb__nav:hover,
.ethos-lb__nav:focus-visible,
.ethos-lb__close:hover,
.ethos-lb__close:focus-visible {
    background: rgba(255,255,255,.24);
    outline: 2px solid rgba(255,255,255,.9);
    outline-offset: 2px;
}

.ethos-lb__nav {
    width: 48px;
    height: 72px;
    border-radius: 8px;
    font-size: 52px;
    justify-self: center;
    z-index: 2;
}

.ethos-lb__prev {
    grid-column: 1;
    grid-row: 1;
}

.ethos-lb__next {
    grid-column: 3;
    grid-row: 1;
}

.ethos-lb__close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 32px;
}

.ethos-lb__footer {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    min-height: 58px;
    padding: 8px 0 18px;
    font-size: 14px;
}

.ethos-lb__caption {
    flex: 1;
    line-height: 1.6;
}

.ethos-lb__counter {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    opacity: .82;
}

@media (max-width: 680px) {
    .ethos-lb__dialog {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
    }

    .ethos-lb__stage {
        grid-column: 1 / -1;
        padding: 58px 10px 10px;
    }

    .ethos-lb__image {
        max-height: calc(100vh - 125px);
    }

    .ethos-lb__nav {
        position: relative;
        width: 40px;
        height: 58px;
        border-radius: 6px;
        font-size: 44px;
        background: rgba(0,0,0,.32);
    }

    .ethos-lb__prev,
    .ethos-lb__next {
        grid-row: 1;
        z-index: 4;
    }

    .ethos-lb__footer {
        grid-column: 1 / -1;
        padding: 8px 16px 14px;
    }
}

.ethos-hidden-duplicate-feature {
    display: none !important;
}
