.hotspot-popup{box-sizing:border-box;width:min(900px,94vw);max-height:90dvh;padding:0;border:0;border-radius:14px;color:#172033;background:#fff;box-shadow:0 16px 70px #0006;font:16px/1.5 "Malgun Gothic",Arial,sans-serif;overflow:auto;overscroll-behavior:contain}.hotspot-popup::backdrop{background:#101827b8}.hotspot-popup [hidden]{display:none!important}.hotspot-popup-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:16px;padding:14px 20px;background:#fff;border-bottom:1px solid #e2e8f0}.hotspot-popup-header h2{flex:1;min-width:0;margin:0;font-size:19px;overflow-wrap:anywhere}.hotspot-popup button{font:inherit;cursor:pointer;border:1px solid #cbd5e1;border-radius:7px;background:#f8fafc;color:#172033;padding:9px 13px;min-height:44px}.hotspot-popup button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}.hotspot-popup button:disabled{opacity:.55;cursor:wait}.hotspot-popup-close{flex-shrink:0}.hotspot-popup-body{padding:20px}.hotspot-popup-message{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.hotspot-popup-image{display:block;width:100%;height:min(58dvh,600px);object-fit:contain;touch-action:pan-y;user-select:none}.hotspot-popup-caption{margin:10px 0;text-align:center;overflow-wrap:anywhere;color:#526077;font-size:14px}.hotspot-popup-nav{display:flex;justify-content:center;align-items:center;gap:20px}.hotspot-popup-media{display:block;width:100%;max-height:65dvh}.hotspot-popup-files{padding:0;margin:0 0 14px;list-style:none;display:grid;gap:10px}.hotspot-popup-files button{width:100%;text-align:left;overflow-wrap:anywhere}.hotspot-popup-status{padding:0 20px 14px;margin:0;color:#475569;font-size:14px}.hotspot-popup-status:empty{padding:0}.hotspot-popup-download-all{width:100%;background:#e0ecff!important}@media(max-width:600px){.hotspot-popup{width:96vw;max-height:94dvh}.hotspot-popup-header,.hotspot-popup-body{padding:12px}.hotspot-popup-header h2{font-size:17px}.hotspot-popup-nav{gap:12px}.hotspot-popup-image{height:54dvh}}

.hotspot-youtube-player{display:block;width:100%;aspect-ratio:16/9;min-height:200px;border:0}.hotspot-youtube-link{display:block;text-align:center;color:#245ac4;font:14px/24px Arial,sans-serif}.hotspot-media-note{font:14px/1.4 Arial,sans-serif;overflow-wrap:anywhere;padding:8px;margin:0}.hotspot-inline{position:absolute;z-index:8;box-sizing:border-box;background:#172033;color:#fff;padding-top:24px;display:flex;flex-direction:column;overflow:hidden;touch-action:manipulation}.hotspot-inline-body{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}.hotspot-inline .hotspot-popup-media{width:100%;height:100%;object-fit:contain;max-height:none;background:transparent}.hotspot-inline .hotspot-youtube-player{height:0;flex:1;min-height:0;aspect-ratio:auto}.hotspot-inline .hotspot-youtube-link{color:#b8d4ff;flex-shrink:0}.hotspot-inline-close{position:absolute;top:0;right:0;width:28px;height:24px;min-height:0;padding:0;border:0;border-radius:0;color:white;background:#172033;cursor:pointer;font:14px Arial,sans-serif}.hotspot-inline .hotspot-popup-status{color:white;font-size:12px;line-height:1.3;padding:3px;overflow:auto;max-height:50%}.hotspot-inline .hotspot-popup-status:empty{display:none}.hotspot-inline .hotspot-popup-status:not(:empty),.hotspot-inline .hotspot-media-note,.hotspot-inline .hotspot-youtube-link{background:#172033e0}.hotspot-inline-sound{padding:0 28px 0 0;justify-content:center}.hotspot-inline-sound .hotspot-inline-close{height:100%}.hotspot-inline-sound .hotspot-popup-media{display:none}.hotspot-inline-audio{display:flex;align-items:center;width:100%;height:100%;min-height:0;gap:4px}.hotspot-inline-audio button{flex-shrink:0;width:28px;height:100%;min-height:0;border:0;background:#172033;color:white;padding:0;cursor:pointer}.hotspot-inline-audio input{flex:1;min-width:0;width:0;height:16px;accent-color:#8ac8ff}.hotspot-inline :focus-visible{outline:2px solid #8ac8ff;outline-offset:-2px}
.hotspot-popup-image{height:auto;max-height:min(58dvh,600px)}
@media(max-width:600px){.hotspot-popup-image{height:auto;max-height:54dvh}}
.hotspot-popup-caption{margin-top:var(--hotspot-caption-gap,10px);white-space:pre-wrap;line-height:1.5;max-height:7.5em;overflow:auto}
.hotspot-inline>.hotspot-popup-caption{flex-shrink:0;margin:0;margin-top:min(var(--hotspot-caption-gap,10px),var(--hotspot-caption-gap-limit,10px));max-height:35%;padding:0 6px 2px;color:#fff;background:#172033e0;font:11px/1.4 "Malgun Gothic",Arial,sans-serif}
.hotspot-inline .hotspot-popup-media{object-position:center bottom}

/* Image slideshows are opt-in; the legacy gallery above remains unchanged. */
.hotspot-gallery{position:relative;isolation:isolate;perspective:1000px;height:min(56dvh,560px);min-height:140px;overflow:hidden;border-radius:8px;background:#f1f4f8;touch-action:pan-y}
.hotspot-gallery .hotspot-popup-image,.hotspot-gallery-outgoing,.hotspot-gallery-tile{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center;user-select:none;backface-visibility:hidden}
.hotspot-gallery .hotspot-popup-image{z-index:2}.hotspot-gallery-outgoing,.hotspot-gallery-tile{z-index:3;pointer-events:none}
.hotspot-gallery>.hotspot-popup-status{position:absolute;z-index:5;inset:auto 12px 12px;padding:8px 12px;border-radius:6px;background:#fffffff0;pointer-events:none}
.hotspot-gallery>.hotspot-popup-status:empty{display:none}
.hotspot-gallery-custom-background{background:transparent}
.hotspot-gallery-background{position:absolute;inset:0;z-index:0;pointer-events:none}
.hotspot-gallery-custom-background[data-effect=stack]::before{display:none}
.hotspot-gallery-background-status{position:absolute;z-index:5;top:12px;left:12px;right:12px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:8px 12px;border-radius:6px;color:#475569;background:#fffffff0;font-size:13px}
.hotspot-popup .hotspot-gallery-background-status button{padding:4px 8px;min-height:32px;font-size:12px}
.hotspot-gallery[data-effect=stack]::before{content:'';position:absolute;inset:8% 10%;transform:rotate(-3deg);border:1px solid #c5d3e5;background:#e0e7f2;box-shadow:8px 5px #ced9e8}
.hotspot-gallery[data-effect=stack] .hotspot-popup-image,.hotspot-gallery[data-effect=stack] .hotspot-gallery-outgoing{inset:4% 8%;width:84%;height:92%}
.hotspot-gallery[data-effect=carousel] .hotspot-popup-image,.hotspot-gallery[data-effect=carousel] .hotspot-gallery-outgoing{left:15%;width:70%}
.hotspot-popup .hotspot-gallery-peek{position:absolute;z-index:4;left:0;top:20%;width:13%;height:60%;padding:0;border:0;opacity:.65;background:transparent;border-radius:0;overflow:hidden}
.hotspot-popup .hotspot-gallery-peek.next{left:auto;right:0}.hotspot-gallery-peek img{width:100%;height:100%;object-fit:cover}.hotspot-gallery-peek:hover{opacity:1}
.hotspot-slideshow-nav{gap:12px;flex-wrap:wrap}.hotspot-slideshow-nav button{font-size:14px}.hotspot-slideshow-nav .hotspot-popup-count{font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.hotspot-slideshow-dots{display:flex;gap:0;justify-content:center;flex-wrap:wrap;margin-top:8px}
.hotspot-popup .hotspot-slideshow-dots button{display:grid;place-items:center;width:28px;min-width:28px;height:28px;min-height:28px;padding:0;font-size:0;background:transparent;border:0}
.hotspot-slideshow-dots button::before{content:'';width:8px;height:8px;background:#bdc8d7;border-radius:50%}.hotspot-slideshow-dots button[aria-current=true]::before{background:#3570c8;transform:scale(1.3)}
.hotspot-slideshow-thumbnails{display:flex;justify-content:flex-start;gap:8px;overflow-x:auto;padding:6px 3px;margin-top:8px;max-width:100%}
.hotspot-popup .hotspot-slideshow-thumbnails button{flex:0 0 76px;width:76px;min-height:54px;padding:3px;border:2px solid transparent;background:#eef2f6;border-radius:5px}
.hotspot-slideshow-thumbnails img{display:block;width:100%;height:48px;object-fit:cover}.hotspot-popup .hotspot-slideshow-thumbnails button[aria-current=true]{border-color:#3570c8}
.hotspot-popup .hotspot-slideshow-retry{display:block;margin:12px auto 0}
@media(max-width:600px){.hotspot-gallery{height:46dvh}.hotspot-slideshow-nav{gap:8px}.hotspot-slideshow-nav button{padding:8px;font-size:12px}.hotspot-slideshow-nav .hotspot-popup-count{font-size:12px}}
