.article-post img[data-post-image-viewer-ready="true"] {
    cursor: zoom-in;
}

.post-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    background: rgba(7, 9, 13, 0.94);
    color: #fff;
}

.post-image-viewer.is-open {
    display: block;
}

.post-image-viewer__stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 76px 20px 86px;
    touch-action: none;
}

.post-image-viewer__stage.is-draggable {
    cursor: grab;
}

.post-image-viewer__stage.is-dragging {
    cursor: grabbing;
}

.post-image-viewer__image {
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 170px);
    width: auto;
    height: auto;
    user-select: none;
    transition: transform 140ms ease;
    will-change: transform;
}

.post-image-viewer__stage.is-dragging .post-image-viewer__image {
    transition: none;
}

.post-image-viewer__toolbar,
.post-image-viewer__nav,
.post-image-viewer__meta {
    position: absolute;
    z-index: 2;
}

.post-image-viewer__toolbar {
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.post-image-viewer__nav {
    top: 50%;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.post-image-viewer__meta {
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: 6px;
    text-align: center;
}

.post-image-viewer__caption {
    max-width: 920px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.4;
}

.post-image-viewer__count {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.post-image-viewer__button {
    min-width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
    background: rgba(16, 20, 27, 0.72);
    color: #fff;
    font: 700 16px/1 Arial, sans-serif;
    cursor: pointer;
}

.post-image-viewer__button:hover,
.post-image-viewer__button:focus {
    border-color: rgba(64, 255, 220, 0.78);
    background: rgba(22, 29, 38, 0.92);
    outline: none;
}

.post-image-viewer__button:disabled {
    opacity: 0.35;
    cursor: default;
}

.post-image-viewer__button--nav {
    width: 48px;
    height: 64px;
    pointer-events: auto;
}

.post-image-viewer__button--link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    text-decoration: none;
}

.post-image-viewer__button--link:hover,
.post-image-viewer__button--link:focus {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 640px) {
    .post-image-viewer__stage {
        padding: 72px 10px 98px;
    }

    .post-image-viewer__toolbar {
        top: 10px;
        left: 10px;
        right: 10px;
        justify-content: flex-end;
        gap: 6px;
    }

    .post-image-viewer__button {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .post-image-viewer__button--nav {
        width: 42px;
        height: 56px;
    }

    .post-image-viewer__caption {
        font-size: 14px;
    }
}
