/* Albumi pisipiltide ruudustik */
.hk-album{margin:20px 0;clear:both}.hk-album .hk-album-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(var(--hk-album-thumb-width,250px),100%),var(--hk-album-thumb-width,250px)));gap:12px}.hk-album a.hk-album-item{display:block;overflow:hidden;border-radius:10px;background:#eef7ef;border:1px solid #dcebdc;aspect-ratio:4/3;line-height:0;box-shadow:0 2px 8px #00000009}.hk-album a.hk-album-item img{display:block;width:100%!important;height:100%!important;object-fit:cover;margin:0!important;border-radius:0!important;transform:none!important;transition:filter .2s}.hk-album a.hk-album-item:hover img{filter:brightness(1.07)}.hk-album a.hk-album-item:focus-visible{outline:3px solid #286b36;outline-offset:3px}.hk-album-empty{padding:14px;background:#eef7ef;border-radius:8px}
/* Suure pildi vaade */
dialog.hk-album-viewer{position:fixed!important;inset:0!important;box-sizing:border-box;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:56px 64px 64px!important;border:0!important;background:#111f!important;color:#fff!important;overflow:hidden;border-radius:0!important;z-index:2147483647}dialog.hk-album-viewer::backdrop{background:#111}.hk-album-viewer .hk-album-frame{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;touch-action:pan-y pinch-zoom}.hk-album-viewer img.hk-album-large{display:block;max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain;margin:0!important;transform:none!important;border-radius:0!important;box-shadow:none!important;transition:opacity .15s;user-select:none}.hk-album-viewer button{box-sizing:border-box;position:absolute;display:flex;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;height:44px;padding:0;border:1px solid #ffffff38;border-radius:50%;background:#ffffff13;color:white!important;font:36px/1 system-ui,sans-serif;cursor:pointer;z-index:2;opacity:.8}.hk-album-viewer button:hover,.hk-album-viewer button:focus-visible{opacity:1;background:#ffffff30}.hk-album-viewer button:focus-visible{outline:2px solid white;outline-offset:3px}.hk-album-viewer .hk-album-close{right:max(12px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top));font-size:30px}.hk-album-viewer .hk-album-prev{left:10px;top:calc(50% - 22px)}.hk-album-viewer .hk-album-next{right:10px;top:calc(50% - 22px)}.hk-album-viewer .hk-album-caption{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));left:64px;right:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;font:15px/1.4 system-ui,sans-serif;max-height:44px;overflow:hidden}.hk-album-caption>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hk-album-counter{flex-shrink:0;color:#ddd}.hk-album-loading{position:absolute;padding:12px;text-align:center;font:16px/1.5 system-ui,sans-serif;color:#fff!important}.hk-album-viewer [hidden]{display:none!important}
/* Mobiilivaade ja vähendatud liikumise eelistus */
@media(max-width:600px){.hk-album .hk-album-grid{grid-template-columns:repeat(auto-fit,minmax(min(var(--hk-album-thumb-width,250px),100%),var(--hk-album-thumb-width,250px)));gap:12px}dialog.hk-album-viewer{padding:56px 6px 64px!important}.hk-album-viewer .hk-album-prev{left:6px}.hk-album-viewer .hk-album-next{right:6px}.hk-album-viewer .hk-album-caption{left:12px;right:12px}.hk-album-viewer button{background:#1119}}
@media(prefers-reduced-motion:reduce){.hk-album a.hk-album-item img,.hk-album-viewer img.hk-album-large{transition:none}}

/* Selgelt nähtavad nooled ka saidi üldiste nupustiilide korral */
dialog.hk-album-viewer button.hk-album-prev,dialog.hk-album-viewer button.hk-album-next{display:flex!important;visibility:visible!important;position:absolute!important;top:calc(50% - 22px)!important;bottom:auto!important;width:44px!important;height:44px!important;padding:0!important;font-family:Arial,sans-serif!important;font-size:38px!important;font-weight:400!important;line-height:1!important;color:#fff!important;background:rgba(20,20,20,.45)!important;transform:none!important;z-index:10!important;border:1px solid rgba(255,255,255,.35)!important;opacity:.9!important}
dialog.hk-album-viewer button.hk-album-prev{left:10px!important;right:auto!important}
dialog.hk-album-viewer button.hk-album-next{right:10px!important;left:auto!important}
dialog.hk-album-viewer button:disabled{opacity:.3!important;cursor:default}

/* Suur pilt kasutab võimalikult palju ekraani kõrgust */
dialog.hk-album-viewer{padding:6px 58px 6px!important}
.hk-album-viewer .hk-album-caption{left:64px;right:64px;bottom:max(8px,env(safe-area-inset-bottom));padding:5px 8px;border-radius:5px;background:rgba(0,0,0,.45);pointer-events:none}
.hk-album-viewer .hk-album-close{z-index:12;background:rgba(20,20,20,.55)}
@media(max-width:600px){dialog.hk-album-viewer{padding:4px!important}.hk-album-viewer .hk-album-caption{left:10px;right:10px;bottom:max(6px,env(safe-area-inset-bottom))}}
