.bo-work { background: #f6f5f3; }
.bo-work-track {
    --bo-gap: clamp(8px, 1.1vw, 15px);
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * var(--bo-gap)) / 5);
    gap: var(--bo-gap); overflow-x: auto; scroll-snap-type: x mandatory;
}
.bo-work-track img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 8px; background: #e9e7e3; }
.bo-work-track .bo-work-photo { display: block; min-width: 0; scroll-snap-align: start; cursor: zoom-in; }
.bo-work-track.is-draggable .bo-work-photo { cursor: grab; }
.bo-work-track.is-dragging { scroll-snap-type: none; user-select: none; }
.bo-work-track.is-dragging .bo-work-photo { cursor: grabbing; }
.bo-work-track .bo-work-photo:focus-visible { outline: 2px solid var(--lf-dark-accent); outline-offset: -3px; }
.bo-work-controls { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.bo-work-controls[hidden] { display: none; }
.bo-work-controls button { min-width: 44px; min-height: 44px; padding: 6px 11px; border: 1px solid var(--lf-dark-accent); border-radius: 7px; background: #fff; color: var(--lf-dark-accent); font: inherit; cursor: pointer; }
.bo-work-controls button:hover { background: #fff0dd; }
.bo-work-controls button:focus-visible, .bo-work-track:focus-visible { outline: 2px solid var(--lf-dark-accent); outline-offset: 2px; }
.bo-work-dialog:not([open]) { display: none; }
.bo-work-dialog[open] {
    position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px; width: min(94vw, 1200px); height: min(92dvh, 930px); max-height: 92dvh;
    padding: clamp(9px, 2vw, 18px); margin: auto; border: 0; border-radius: 12px;
    color: #fff; background: #151c23;
}
.bo-work-dialog::backdrop { background: rgb(12 17 22 / 88%); }
body:has(.bo-work-dialog[open]) { overflow: hidden; }
.bo-work-dialog-bar, .bo-work-dialog-nav { display: flex; align-items: center; gap: 10px; }
.bo-work-dialog-bar { justify-content: space-between; }
.bo-work-dialog-nav { justify-content: center; }
.bo-work-dialog button { min-width: 44px; min-height: 44px; border: 1px solid #63717e; border-radius: 7px; color: #fff; background: #28343f; font: inherit; font-size: 1.25rem; cursor: pointer; }
.bo-work-dialog button:hover { background: #824812; }
.bo-work-dialog button:focus-visible { outline: 2px solid #ffab46; outline-offset: 2px; }
.bo-work-dialog-stage { min-width: 0; min-height: 0; touch-action: pan-y; }
.bo-work-dialog-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 800px) {
    .bo-work-track { grid-auto-columns: calc((100% - var(--bo-gap)) / 2); }
}
@media (max-width: 420px) {
    .bo-work-track { grid-auto-columns: 100%; }
}
