dialog.rc-cr-diaporama {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 18px;
    border: 0;
    background: #111827;
    color: #fff;
    overflow: hidden;
}
.rc-cr-diaporama[open] { display: flex; flex-direction: column; gap: 12px; }
.rc-cr-diaporama::backdrop { background: rgba(0, 0, 0, .9); }
.rc-cr-diaporama [hidden] { display: none !important; }
.rc-cr-diaporama__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; }
.rc-cr-diaporama__counter { font-size: 16px; font-weight: 600; }
.rc-cr-diaporama button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 48px;
    min-height: 48px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #273449;
    color: #fff;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}
.rc-cr-diaporama button:hover { background: #475569; color: #fff; }
.rc-cr-diaporama button:focus-visible, .rc-cr-diaporama a:focus-visible { outline: 3px solid #facc15; outline-offset: 3px; }
.rc-cr-diaporama__close { gap: 8px; }
.rc-cr-diaporama__close span { font-size: 30px; }
.rc-cr-diaporama__stage { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 12px; flex: 1; min-height: 0; touch-action: pan-y pinch-zoom; }
.rc-cr-diaporama .rc-cr-diaporama__prev, .rc-cr-diaporama .rc-cr-diaporama__next { font-size: 38px; padding: 0; }
.rc-cr-diaporama figure { display: grid; grid-column: 2; grid-row: 1; grid-template-rows: minmax(0, 1fr) auto; height: 100%; min-width: 0; min-height: 0; margin: 0; gap: 12px; }
.rc-cr-diaporama__prev { grid-column: 1; grid-row: 1; }
.rc-cr-diaporama__next { grid-column: 3; grid-row: 1; }
.rc-cr-diaporama__media { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.rc-cr-diaporama__media img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.rc-cr-diaporama figcaption { max-height: 4rem; margin: 0; overflow: auto; overflow-wrap: anywhere; color: #e2e8f0; font-size: 15px; line-height: 1.4; text-align: center; }
.rc-cr-diaporama__message { text-align: center; }
.rc-cr-diaporama__message p { color: #fff; }
.rc-cr-diaporama__message a { color: #bfdbfe; text-decoration: underline; }
@media (max-width: 600px) {
    dialog.rc-cr-diaporama { padding: 12px; }
    .rc-cr-diaporama__stage { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; }
    .rc-cr-diaporama figure { grid-column: 1 / -1; grid-row: 1; }
    .rc-cr-diaporama__prev { grid-column: 1; grid-row: 2; justify-self: end; }
    .rc-cr-diaporama__next { grid-column: 2; grid-row: 2; justify-self: start; }
}
