/* jpeg demo */

.jp-pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.jp-pair figure, .jp-zoom figure {
    margin: 0;
}

.jp-pair canvas {
    display: block;
    width: 440px;
    max-width: 100%;
    height: auto;
    cursor: crosshair;
    border-radius: 4px;
}

.jp-pair figcaption, .jp-zoom figcaption, .jp-block h4 {
    margin-top: 0.3rem;
    color: #8b949e;
    font-size: 0.78rem;
    font-weight: normal;
}

.jp-detail {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.jp-zoom {
    display: flex;
    gap: 0.6rem;
}

.jp-zoom canvas {
    display: block;
    width: 128px;
    height: 128px;
    image-rendering: pixelated;
    border: 1px solid #30363d;
}

.jp-blocks {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 0.8rem;
}

.jp-block h4 {
    margin: 0 0 0.3rem;
}

.jp-grid {
    display: grid;
    grid-template-columns: repeat(8, 22px);
    grid-auto-rows: 22px;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: 0.55rem;
    line-height: 22px;
    text-align: center;
    border: 1px solid #30363d;
}

.jp-grid span {
    overflow: hidden;
}

@media (max-width: 760px) {
    .jp-blocks { grid-template-columns: repeat(2, auto); }
}
