/* Gallery sheet viewer (sheet-viewer.js) */
html.sv-lock,html.sv-lock body{overflow:hidden}
.sv{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center}
.sv[hidden]{display:none}
.sv-backdrop{position:absolute;inset:0;background:rgba(10,20,35,.62)}
.sv-win{position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:#FFFBF3;color:#2E3A4D;overflow:hidden}
.sv-top{display:flex;align-items:center;gap:10px;min-height:56px;padding:4px 4px 4px 16px;border-bottom:1px solid #E3DCCD}
.sv-title{flex:1;min-width:0;margin:0;font-family:Nunito,"Segoe UI",Roboto,system-ui,sans-serif;font-weight:800;font-size:17px;line-height:1.25;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sv-count{flex:0 0 auto;font-family:Nunito,"Segoe UI",Roboto,system-ui,sans-serif;font-weight:700;font-size:14px;color:var(--muted)}
.sv-close{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:0;border-radius:999px;
  background:none;color:#2E3A4D;cursor:pointer}
.sv-close:hover{background:#F1EADB}
.sv-body{position:relative;flex:1;min-height:0;display:flex}
.sv-track{flex:1;min-width:0;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  overscroll-behavior:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.sv-track::-webkit-scrollbar{display:none}
.sv-slide{flex:0 0 100%;width:100%;height:100%;margin:0;padding:12px;box-sizing:border-box;scroll-snap-align:center;scroll-snap-stop:always;
  display:flex;align-items:center;justify-content:center}
.sv-slide picture{display:contents}
.sv-slide img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;background:#fff;
  border:1px solid #E3DCCD;border-radius:8px;box-shadow:0 3px 12px rgba(46,58,77,.12)}
.sv-nav{display:none}
.sv-dots{display:flex;justify-content:center;gap:4px;padding:2px 0 0}
.sv-dots[hidden]{display:none}
.sv-dot{width:28px;height:28px;padding:0;border:0;background:none;cursor:pointer;display:flex;align-items:center;justify-content:center}
.sv-dot::before{content:"";width:9px;height:9px;border-radius:50%;background:#D5CCB8}
.sv-dot[aria-current="true"]::before{background:#2B9FFF}
.sv-foot{position:sticky;bottom:0;display:flex;flex-direction:column;align-items:stretch;gap:2px;padding:8px 16px calc(10px + env(safe-area-inset-bottom));
  background:#FFFBF3}
.sv-dl{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;box-sizing:border-box;padding:0 12px;border-radius:14px;
  background:#2B9FFF;color:#fff;text-decoration:none;font-family:Nunito,"Segoe UI",Roboto,system-ui,sans-serif;font-weight:800;font-size:16px;white-space:nowrap}
.sv-dl:hover{background:#1a8ef0}
.sv-open{align-self:center;display:inline-flex;align-items:center;min-height:44px;padding:0 8px;color:#2B9FFF;font-weight:700;font-size:15px;text-decoration:none}
.sv-open:hover{text-decoration:underline}
.sv button:focus-visible,.sv a:focus-visible,.sv-track:focus-visible{outline:3px solid #2B9FFF;outline-offset:2px}
.sv-dl:focus-visible{outline-color:#2E3A4D}
@media (min-width:768px){
  .sv-win{width:min(720px,calc(100vw - 48px));height:min(calc(100vh - 48px),1040px);border-radius:20px;box-shadow:0 20px 60px rgba(10,20,35,.35)}
  .sv-nav{position:absolute;top:50%;z-index:1;display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin-top:-24px;
    border:1px solid #E3DCCD;border-radius:999px;background:#fff;color:#2E3A4D;cursor:pointer;box-shadow:0 2px 10px rgba(46,58,77,.15)}
  .sv-nav[hidden]{display:none}
  .sv-nav:disabled{opacity:.35;cursor:default}
  .sv-prev{left:10px}.sv-next{right:10px}
  .sv-slide{padding:16px 68px}
}
@media (prefers-reduced-motion:reduce){.sv-track{scroll-behavior:auto}}
