.tutorial-shot {
    width: 100%;
    margin: 1.25rem 0;
}
.tutorial-shot--center { margin-inline: auto; }
.tutorial-shot--right { margin-inline-start: auto; }
.tutorial-shot--small { width: 40%; }
.tutorial-shot--medium { width: 65%; }
.tutorial-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: .35rem;
}
.tutorial-shot a { display: block; cursor: zoom-in; }
.tutorial-shot figcaption {
    margin-top: .5rem;
    font-style: italic;
}
.lightbox {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 20px 3.4%;
    border: 0;
    background: #141711;
    color: white;
}
.lightbox[open] {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
    gap: 4px;
}
.lightbox::backdrop { background: #141711; }
.lightbox-toolbar,
.lightbox-zoom { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.lightbox-toolbar { justify-content: space-between; }
.lightbox-zoom { justify-content: center; }
.lightbox button {
    color: inherit;
    background: transparent;
    border: 1px solid #64695f;
    border-radius: 4px;
    min-height: 38px;
    padding: 6px 12px;
    cursor: pointer;
}
.lightbox button:disabled { opacity: .45; cursor: default; }
.lightbox-stage {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    min-height: 0;
}
.lightbox-viewport {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    cursor: zoom-in;
}
.lightbox-viewport.is-zoomed { cursor: grab; }
.lightbox-viewport.is-zoomed:active { cursor: grabbing; }
.lightbox-viewport img {
    display: block;
    flex: 0 0 auto;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
}
.lightbox-stage > [data-lightbox-prev] { grid-column: 1; grid-row: 1; }
.lightbox-stage > [data-lightbox-next] { grid-column: 3; grid-row: 1; }
.lightbox-stage button { font-size: 24px; padding: 2px; }
.lightbox p { text-align: center; margin: 4px 0; overflow-wrap: anywhere; }
.lightbox .zoom-help, .lightbox [data-lightbox-status] { font-size: 11px; color: #d2d8ca; }
.lightbox .lightbox-caption { font-size: 13px; max-height: 16dvh; overflow: auto; }
.lightbox p:empty { display: none; }
@media (max-width: 620px) {
    .tutorial-shot--small, .tutorial-shot--medium { width: 100%; }
    .lightbox { padding: 10px; }
    .lightbox-stage { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 4px; }
}
