.omgf-gallery{box-sizing:border-box;width:min(1280px,96vw);max-width:96vw;height:94dvh;max-height:94dvh;padding:16px 20px;border:1px solid #444;border-radius:4px;background:#161616;color:#fff;overflow:hidden;font:15px/1.5 Arial,sans-serif}.omgf-gallery::backdrop{background:rgba(0,0,0,.88)}.omgf-gallery[open]{display:flex;flex-direction:column;gap:12px}.og-top{display:flex;align-items:center;justify-content:space-between;flex:none}.omgf-gallery button{font-family:inherit;cursor:pointer;border:1px solid #777;background:#252525;color:#fff;border-radius:3px;min-width:44px;min-height:44px}.omgf-gallery button:hover{background:#444}.omgf-gallery button:focus-visible{outline:3px solid #ff3333;outline-offset:3px}.og-count{font-size:14px}.og-close{font-size:28px;line-height:1}.og-stage{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:12px;min-height:0;flex:1;align-items:center}.og-stage figure{margin:0;min-width:0;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;gap:12px}.og-image{display:block;width:100%;height:0;min-height:0;flex:1;object-fit:contain;touch-action:pan-y pinch-zoom}.og-stage figcaption{text-align:center;font-size:14px;max-height:4.5em;overflow:auto;flex:none}.og-prev,.og-next{font-size:38px;line-height:1}.og-thumbs{display:flex;gap:9px;overflow-x:auto;padding:4px 3px 10px;flex:none;min-height:76px}.og-thumbs button{flex:0 0 76px;min-width:76px;height:68px;padding:3px;border:2px solid transparent}.og-thumbs button[aria-current=true]{border-color:#f33}.og-thumbs img{width:100%;height:100%;object-fit:contain}.og-error{margin:0;font-size:13px;text-align:center;flex:none}.og-error a{color:white}a.artist-gallery-item:focus-visible{outline:3px solid #d71920;outline-offset:4px}@media(max-width:600px){.omgf-gallery{padding:10px;width:98vw;max-width:98vw;height:96dvh;max-height:96dvh}.og-stage{grid-template-columns:40px minmax(0,1fr) 40px;gap:3px}.og-prev,.og-next{min-width:40px!important}.og-thumbs button{flex-basis:58px;min-width:58px;height:58px}.og-thumbs{min-height:66px}.og-stage figcaption{font-size:12px}}

html body.omgf-modern .omgf-gallery .og-image{width:100%;height:0;max-height:none;flex:1;min-height:0;object-fit:contain;padding:0;background:transparent;display:block}html body.omgf-modern .omgf-gallery .og-thumbs img{width:100%;height:100%;max-height:none;object-fit:contain;padding:0;background:transparent}html body.omgf-modern .omgf-gallery button{color:#fff;background:#252525;border:1px solid #777}html body.omgf-modern .omgf-gallery figcaption{color:#fff}

html body.omgf-modern .omgf-gallery .og-thumbs button[aria-current=true]{border:2px solid #ff3333}

.omgf-gallery{direction:ltr}.omgf-gallery figcaption{unicode-bidi:plaintext}

/* Anchor the modal to the viewport, independent of page scroll and site styles. */
html body.omgf-modern dialog.omgf-gallery{position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;box-sizing:border-box;width:min(1280px,calc(100vw - 24px));height:min(900px,calc(100dvh - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);min-width:0;min-height:0}
html body.omgf-modern dialog.omgf-gallery .og-stage{min-width:0;min-height:0;align-items:center}
html body.omgf-modern dialog.omgf-gallery .og-stage figure{justify-content:center}
html body.omgf-modern dialog.omgf-gallery .og-image{object-position:center center}
@media(max-width:600px){html body.omgf-modern dialog.omgf-gallery{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}}
@media(max-height:450px){html body.omgf-modern dialog.omgf-gallery{gap:6px;padding:8px 10px}html body.omgf-modern dialog.omgf-gallery .og-thumbs{min-height:50px;padding-bottom:4px}html body.omgf-modern dialog.omgf-gallery .og-thumbs button{height:44px;min-height:44px}html body.omgf-modern dialog.omgf-gallery .og-top button{min-height:34px}}
