.step-media { max-width: 42rem; margin: 1rem 0; color: #192d3c; }
.step-media .step-cue { margin: .5rem 0 .85rem; }
.step-photo { margin: .85rem 0 1.1rem; }
.step-frame { position: relative; display: block; overflow: hidden; background: #192d3c; }
.step-frame img { display: block; width: 100%; height: auto; }
.step-photo figcaption { display: block; padding: .5rem 0; background: transparent; color: #263e3c; font-size: 1rem; line-height: 1.45; }
.step-photo small { display: block; margin-top: .26rem; font-size: .8rem; }
.step-media a:not(.step-frame) { color: #265448; text-decoration: underline; text-underline-offset: .15em; }
.step-film-link,.step-player summary { padding: .55rem 0; line-height: 1.5; font-weight: 700; }
.step-film-link { display: block; width: fit-content; }
.step-player summary,.step-original summary { color: #265448; cursor: pointer; }
.step-player iframe { display: block; border: 0; width: 100%; aspect-ratio: 16/9; }
.step-player[data-step-embed*="tiktok.com"] iframe { width: min(100%,25rem); aspect-ratio: 9/14; }
.step-media :focus-visible { outline: 3px solid #862747; outline-offset: 3px; }

dialog.step-lightbox { width: min(70rem, calc(100% - 16px)); max-height: 94vh; max-height: 94dvh; margin: auto; padding: .6rem; overflow: auto; overscroll-behavior: contain; }
.step-lightbox[open] { display: flex; flex-direction: column; gap: .5rem; }
.step-lightbox-tools { display: flex; flex: none; justify-content: flex-end; gap: .5rem; }
.step-lightbox-tools button { min-height: 44px; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.step-lightbox-tools [data-image-close] { background: #193e36; color: white; }
.step-lightbox-stage { min-height: 0; overflow: auto; overscroll-behavior: contain; background: #192d3c; }
.step-lightbox-stage img { width: 100%; max-height: 66vh; max-height: 66dvh; object-fit: contain; }
.step-lightbox-stage.is-zoomed img { max-width: none; max-height: none; width: 200%; }
.step-lightbox-caption { margin: 0; max-height: 18vh; max-height: 18dvh; overflow: auto; font-size: .94rem; line-height: 1.4; }
