html.jmo-gallery-is-open,html.jmo-gallery-is-open body{overflow:hidden}
.jmo-gallery-dialog{position:fixed;inset:0;width:min(960px,calc(100vw - 40px));max-width:none;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid #ffffff35;border-radius:4px;background:#08090b;color:#fff;overflow:auto;overscroll-behavior:contain;box-shadow:0 28px 100px #0009}
.jmo-gallery-dialog:not([open]){display:none}
.jmo-gallery-dialog::backdrop{background:#000d;backdrop-filter:blur(8px)}
.jmo-gallery-shell{min-width:0}
.jmo-gallery-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px 10px 24px;border-bottom:1px solid #ffffff20}
.jmo-gallery-header>p{margin:0;color:#d4d8df;font-size:.75rem;letter-spacing:.12em;text-transform:uppercase}
.jmo-gallery-dialog .jmo-gallery-control{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:0;padding:10px;border:1px solid #ffffff3d;border-radius:50%;background:#121419;color:#fff;cursor:pointer;transition:background .2s,border-color .2s}
.jmo-gallery-dialog .jmo-gallery-control:hover{background:#30353f;border-color:#fff}
.jmo-gallery-dialog .jmo-gallery-control:disabled{opacity:.35;cursor:default}
.jmo-gallery-stage{display:grid;place-items:center;position:relative;min-width:0;min-height:160px;height:min(58vh,600px);height:min(58dvh,600px);background:#000;overflow:hidden}
.jmo-gallery-stage>img{display:block;width:100%;height:100%;max-height:100%;min-height:0;object-fit:contain;object-position:center}
.jmo-gallery-navigation{display:flex;justify-content:center;align-items:center;gap:20px;padding:12px 20px;border-top:1px solid #ffffff20}
.jmo-gallery-count{min-width:104px;margin:0;color:#d9dee7;font-size:.8125rem;text-align:center;font-variant-numeric:tabular-nums}
.jmo-gallery-caption{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 28px;align-items:center;padding:10px 28px 26px}
.jmo-gallery-label{margin:0 0 8px;color:#d7e1ef;font-size:.6875rem;letter-spacing:.11em;text-transform:uppercase}
.jmo-gallery-caption h2{margin:0;color:#fff;font-size:clamp(1.25rem,3vw,1.85rem);font-weight:600;line-height:1.2;overflow-wrap:anywhere}
.jmo-gallery-dialog .jmo-gallery-request{min-height:44px;padding:12px 18px;background:#f1f4f9;color:#08090b;border-color:#f1f4f9;font-size:.8125rem;white-space:normal;text-align:center}
.jmo-gallery-dialog .jmo-gallery-request:hover{background:#fff;box-shadow:0 0 18px #c7d9f333}
.jmo-gallery-disclosure{grid-column:1/-1;max-width:650px;margin:0;color:#b6becb;font-size:.75rem;line-height:1.7}
.jmo-gallery-error{position:absolute;inset:0;display:grid;place-content:center;gap:12px;padding:24px;text-align:center;background:#08090b}
.jmo-gallery-error p{max-width:440px;margin:0;color:#c6ceda}
.jmo-gallery-error a{min-height:44px;padding:10px;color:#fff;text-underline-offset:4px}
.jmo-gallery-dialog :is(button,a):focus-visible{outline:2px solid #d5e6ff;outline-offset:3px}
.jmo-custom-card .jmo-arrow{flex:0 0 16px}
@media(max-width:600px){.jmo-gallery-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}.jmo-gallery-header{padding:8px 10px 8px 18px}.jmo-gallery-header>p{font-size:.6875rem;letter-spacing:.08em}.jmo-gallery-stage{height:min(49vh,440px);height:min(49dvh,440px)}.jmo-gallery-caption{grid-template-columns:minmax(0,1fr);gap:15px;padding:8px 18px 22px}.jmo-gallery-dialog .jmo-gallery-request{justify-self:start}.jmo-gallery-disclosure{font-size:.6875rem}.jmo-gallery-navigation{padding:10px 16px}}
@media(prefers-reduced-motion:reduce){.jmo-gallery-dialog *{scroll-behavior:auto;transition:none!important}}
