/* Match the native WordPress image overlay: white 90% scrim, no image frame. */
.lsg-webcam-dialog{box-sizing:border-box;position:fixed;inset:0;margin:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;padding:40px;border:0;border-radius:0;background:transparent;color:#000;box-shadow:none;overflow:auto;cursor:zoom-out}
.lsg-webcam-dialog[open]{display:grid;place-items:center}
.lsg-webcam-dialog::backdrop{background:rgba(255,255,255,.9)}
.lsg-webcam-dialog-bar{position:fixed;top:0;right:0}
.lsg-webcam-dialog-bar h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lsg-webcam-dialog .lsg-webcam-dialog-bar button{position:fixed;top:calc(env(safe-area-inset-top) + 16px);right:calc(env(safe-area-inset-right) + 16px);display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border:0;border-radius:0;background:transparent;color:#000;box-shadow:none;font-size:0;cursor:pointer;z-index:2}
.lsg-webcam-dialog-bar button::before{content:"×";font:400 36px/1 Arial,sans-serif}
.lsg-webcam-dialog .lsg-webcam-dialog-bar button:hover{background:transparent;color:#000}
.lsg-webcam-dialog button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.lsg-webcam-dialog-image{display:block;grid-area:1/1;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px);object-fit:contain;margin:auto;border:0;border-radius:0;box-shadow:none;cursor:zoom-out}
.lsg-webcam-dialog-status{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);box-sizing:border-box;max-width:calc(100% - 32px);margin:0;padding:8px 12px;background:#fff;color:#000;font:16px/1.5 Arial,sans-serif;cursor:default}
.lsg-webcam-dialog-status:empty{display:none}
@media(max-width:600px){.lsg-webcam-dialog{padding:64px 16px 32px}.lsg-webcam-dialog-image{max-height:calc(100vh - 96px);max-height:calc(100dvh - 96px)}}

img.lsg-webcam-offline-image,
.lsg-webcam-offline-figure button.lightbox-trigger{display:none!important}
.lsg-webcam-offline{box-sizing:border-box;padding:clamp(20px,4vw,40px);border:1px solid #ead8e2;border-radius:18px;background:#fbf5f8;color:#202b35;text-align:left}
.lsg-webcam-offline p{margin:0;line-height:1.5}
.lsg-webcam-offline .lsg-webcam-offline-label{margin-bottom:8px;color:#a50051;font-size:.8rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.lsg-webcam-offline .lsg-webcam-offline-title{margin-bottom:6px;font-size:clamp(1.15rem,2.5vw,1.5rem);font-weight:700;line-height:1.25}
figure.lsg-webcam-offline-figure{height:auto!important;min-height:0!important;aspect-ratio:auto!important}
