
[data-drcg-zoom]{cursor:zoom-in}
body.drcg-next .drcg-image-dialog{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;width:min(1200px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(900px,calc(100vh - 24px));height:min(900px,calc(100dvh - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:16px;border:1px solid #605871;border-radius:16px;background:#15111d;color:#fff;box-shadow:0 20px 80px #0008;overflow:auto;direction:rtl}
body.drcg-next .drcg-image-dialog[open]{display:flex;flex-direction:column;gap:10px}
.drcg-image-dialog::backdrop{background:#0c081ce8}
body.drcg-next .drcg-image-dialog__bar{display:flex;align-items:center;justify-content:space-between;flex:none;gap:16px}
body.drcg-next .drcg-image-dialog button{box-sizing:border-box;font:inherit;font-size:14px;line-height:1.5;min-width:48px;min-height:44px;padding:10px 18px;border:1px solid #645674;border-radius:10px;background:#31233f;color:white;cursor:pointer;box-shadow:none}
body.drcg-next .drcg-image-dialog button:hover{background:#583778}body.drcg-next .drcg-image-dialog button:focus-visible{outline:3px solid #b5a4ff;outline-offset:2px}
body.drcg-next .drcg-image-dialog figure{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:0;gap:8px;margin:0;padding:0}
body.drcg-next .drcg-image-dialog img{display:block;object-fit:contain;width:100%;max-width:100%;height:100%;min-height:0;max-height:calc(100vh - 220px);max-height:calc(100dvh - 220px);border-radius:5px}
body.drcg-next .drcg-image-dialog figcaption{flex:none;max-height:64px;overflow:auto;text-align:center;font-size:13px;line-height:1.7;color:#e0d9eb;word-wrap:anywhere;overflow-wrap:anywhere}
body.drcg-next .drcg-image-dialog nav{display:flex;justify-content:center;gap:12px;flex:none}body.drcg-next .drcg-image-dialog [hidden]{display:none!important}
body.drcg-next .drcg-image-dialog [data-image-status]{text-align:center;font-size:13px;color:#e4d4fd;margin:0}body.drcg-next .drcg-image-dialog [data-image-status]:empty{display:none}
.drcg-guide-fold{position:relative;min-width:0}.drcg-guide-fold>[data-drcg-fold-content]{position:relative}.drcg-guide-fold.is-collapsed>[data-drcg-fold-content]{max-height:240px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 65%,transparent 100%);mask-image:linear-gradient(#000 65%,transparent 100%)}
body.drcg-next .drcg-guide-fold>.drcg-fold-toggle{display:block;width:calc(100% - 24px);min-height:44px;margin:6px 12px 12px;border:1px solid #dfd5ec;border-radius:9px;background:#f5f0fb;color:#603198;font:inherit;font-size:14px;cursor:pointer}
body.drcg-next .drcg-guide-fold>.drcg-fold-toggle[hidden]{display:none}
body.drcg-next .drcg-guide-fold>.drcg-fold-toggle:hover{background:#ebe0f7}
@media(prefers-reduced-motion:reduce){.drcg-image-dialog *,.drcg-guide-fold *{scroll-behavior:auto!important;transition:none!important}}
@media print{.drcg-guide-fold.is-collapsed>[data-drcg-fold-content]{max-height:none;overflow:visible;-webkit-mask-image:none;mask-image:none}.drcg-fold-toggle,.drcg-image-dialog{display:none!important}}

/* Full viewport gallery with a vertical filmstrip; mobile filmstrip sits below. */
body.drcg-next .drcg-image-dialog{width:calc(100vw - 16px);max-width:none;height:calc(100vh - 16px);height:calc(100dvh - 16px);max-height:none;padding:12px;overflow:hidden;border-radius:12px}
body.drcg-next .drcg-image-dialog__content{display:grid;grid-template-columns:minmax(0,1fr) 88px;flex:1;min-height:0;grid-gap:12px;gap:12px}
body.drcg-next .drcg-image-dialog figure{min-width:0;overflow:hidden}
body.drcg-next .drcg-image-stage{width:100%;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;overscroll-behavior:contain;background:#0a0710;border-radius:8px}
body.drcg-next .drcg-image-stage.is-zoomed{display:block;cursor:grab}
body.drcg-next .drcg-image-stage img{flex:none;width:auto;height:auto;max-width:none;max-height:none;object-fit:contain;margin:auto}
body.drcg-next .drcg-image-dialog .drcg-image-thumbnails{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#806499 transparent;padding:2px}
body.drcg-next .drcg-image-thumbnails button{flex:none;padding:3px;min-height:0;min-width:0;border:2px solid transparent;background:#2c2239;border-radius:8px}
body.drcg-next .drcg-image-thumbnails button[aria-pressed=true]{border-color:#c3a4ff}
body.drcg-next .drcg-image-thumbnails img{width:68px;height:68px;max-width:68px;max-height:68px;object-fit:cover}
body.drcg-next .drcg-image-dialog__content:has(.drcg-image-thumbnails[hidden]){grid-template-columns:1fr}
@media(max-width:640px){body.drcg-next .drcg-image-dialog{padding:8px;gap:6px}body.drcg-next .drcg-image-dialog__bar{gap:5px}body.drcg-next .drcg-image-dialog__bar button{font-size:12px;padding:8px 10px}body.drcg-next .drcg-image-dialog__content{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:6px}body.drcg-next .drcg-image-dialog .drcg-image-thumbnails{flex-direction:row;max-height:66px}body.drcg-next .drcg-image-thumbnails img{width:50px;height:50px}body.drcg-next .drcg-image-dialog figcaption{font-size:11px;max-height:42px}}
