/* HapiTech gallery viewer: full-screen, steady, works the same on phones and desktops.
   Upgrades the site's existing #galleryModal without changing anything else on the page. */
#galleryModal{position:fixed!important;inset:0!important;z-index:10000!important;padding:0!important;margin:0!important;
  background:#0a0a0c!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
#galleryModal > *{position:relative!important;width:100vw!important;max-width:none!important;height:100vh!important;height:100dvh!important;
  max-height:none!important;margin:0!important;padding:64px 0 84px!important;background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;justify-content:center!important;
  overflow:hidden!important;animation:none!important;transform:none!important}
#galleryModal .gallery-viewer{position:relative!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;height:100%!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;margin:0!important;padding:0!important}
#galleryImage{display:block!important;max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;
  object-fit:contain!important;border-radius:0!important;margin:0!important;box-shadow:none!important;user-select:none;-webkit-user-drag:none}
@media (min-width:900px){#galleryImage{max-width:min(1400px,84vw)!important;border-radius:10px!important}}
#galleryModal .gallery-nav{position:absolute!important;top:50%!important;transform:translateY(-50%)!important;z-index:3!important;
  width:48px!important;height:48px!important;border-radius:50%!important;margin:0!important;padding:0!important;font-size:1.1rem!important;
  background:rgba(20,20,22,.6)!important;color:#fff!important;border:1px solid rgba(255,255,255,.25)!important;cursor:pointer}
#galleryModal .gallery-viewer .gallery-nav:first-child{left:max(10px,env(safe-area-inset-left))!important}
#galleryModal .gallery-viewer .gallery-nav:last-child{right:max(10px,env(safe-area-inset-right))!important}
#galleryModal .gallery-close,#galleryModal .close-modal{position:absolute!important;top:max(12px,env(safe-area-inset-top))!important;right:14px!important;
  z-index:4!important;width:48px!important;height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  font-size:2rem!important;line-height:1!important;color:#fff!important;background:rgba(20,20,22,.6)!important;border:1px solid rgba(255,255,255,.25)!important;
  border-radius:50%!important;opacity:1!important;cursor:pointer;margin:0!important;padding:0!important}
#galleryCounter{position:absolute!important;left:0!important;right:0!important;bottom:max(26px,env(safe-area-inset-bottom))!important;
  margin:0!important;text-align:center!important;color:rgba(255,255,255,.8)!important;font-size:.95rem!important}
#galleryModal .ht-like{position:absolute!important;z-index:4!important;right:16px!important;left:auto!important;top:auto!important;
  bottom:max(16px,env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;display:inline-flex!important;
  align-items:center!important;gap:8px!important;min-height:46px!important;height:auto!important;margin:0!important;padding:0 18px!important;
  border-radius:999px!important;border:1px solid rgba(255,255,255,.3)!important;background:rgba(30,30,34,.85)!important;color:#fff!important;
  font:600 1rem/1 system-ui,-apple-system,"Segoe UI",sans-serif!important;letter-spacing:0!important;text-transform:none!important;
  box-shadow:none!important;cursor:pointer;transition:transform .12s}
#galleryModal .ht-like:active{transform:scale(.94)}
#galleryModal .ht-like__heart{font-size:1.3rem;line-height:1;color:#fff;transition:color .15s}
#galleryModal .ht-like.is-liked .ht-like__heart{color:#ff4d6d}
#galleryModal .ht-like[disabled]{opacity:.6}
html.ht-noscroll,html.ht-noscroll body{overflow:hidden!important;touch-action:none}
