.lkg{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:var(--gap)}.lkg figure{margin:0;min-width:0;break-inside:avoid}.lkg a{display:block;overflow:hidden;border-radius:var(--radius)}.lkg img{display:block;width:100%;height:auto}.lkg-masonry{display:block;columns:var(--cols);column-gap:var(--gap)}.lkg-masonry figure{margin-bottom:var(--gap)}.lkg-uniform img{aspect-ratio:1;object-fit:cover}.lkg-justified{display:flex;flex-wrap:wrap}.lkg-justified figure{flex:1 1 150px}.lkg-justified img{height:180px;object-fit:cover}.lkg-placeholder{display:grid;place-items:center;min-height:100px;background:#ddd;color:#333}.lkg-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:12px;border:0;color:white;box-sizing:border-box;overflow:hidden}.lkg-dialog[open]{display:flex;flex-direction:column}.lkg-dialog::backdrop{background:#111}.lkg-toolbar{display:flex;gap:8px;align-items:center;justify-content:flex-end}.lkg-dialog button{background:#333;color:white;border:1px solid #777;border-radius:5px;padding:8px 12px;cursor:pointer;font:inherit}.lkg-stage{flex:1;min-height:0;display:flex;align-items:center;gap:8px}.lkg-view{flex:1;min-width:0;height:100%;overflow:auto;display:grid;place-items:center}.lkg-view img{max-width:100%;max-height:100%;object-fit:contain}.lkg-caption{text-align:center;padding:6px}.lkg-strip{display:flex;gap:5px;overflow:auto;justify-content:safe center}.lkg-strip button{padding:2px;flex-shrink:0}.lkg-strip img{width:48px;height:48px;object-fit:cover}.lkg-strip button[aria-current=true]{border:2px solid white}@media(max-width:600px){.lkg{--cols:2!important}.lkg-dialog{padding:4px}}

.lkg-dialog{height:100dvh;width:100%;max-height:100dvh}.lkg-toolbar,.lkg-caption,.lkg-strip{flex-shrink:0}.lkg-stage{overflow:hidden}.lkg-view{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:0}.lkg-view img{flex:none;max-width:none!important;max-height:none!important;object-fit:contain}.lkg-view.lkg-zoomed{overflow:auto;align-items:safe center;justify-content:safe center}.lkg-placement{box-sizing:border-box}.lkg-placement.lkg-width-wide,.lkg-placement.lkg-width-full,.lkg-placement.lkg-width-custom{position:relative;left:50%;transform:translateX(-50%);max-width:none!important}.lkg-placement.lkg-width-wide{width:min(1200px,94vw)}.lkg-placement.lkg-width-full{width:calc(100vw - 32px)}.lkg-placement.lkg-width-custom{width:min(var(--lkg-width),calc(100vw - 32px))}.editor-styles-wrapper .lkg-placement{left:auto;transform:none;width:100%;max-width:100%!important}.lkg-justified{display:flex;align-items:flex-start}.lkg-justified figure{flex:none}.lkg-justified img{height:auto;object-fit:contain}.lkg-justified a{width:100%}.lkg-justified .lkg-placeholder{aspect-ratio:1}.lkg{--actual-cols:var(--cols)}.lkg-masonry{columns:var(--actual-cols)}.lkg-uniform{grid-template-columns:repeat(var(--actual-cols),minmax(0,1fr))}

.lkg-custom{display:grid;grid-template-columns:repeat(var(--gridcols,12),minmax(0,1fr));grid-auto-rows:var(--lkg-unit,40px)}.lkg-custom figure{display:flex;flex-direction:column;min-height:0;overflow:hidden}.lkg-custom figure>a{flex:1;min-height:0}.lkg-custom figure img{width:100%;height:100%;object-fit:var(--tile-fit,contain);object-position:var(--tile-focus,50% 50%)}.lkg-custom figure:not([style]){grid-column:span 4;grid-row:span 4}.lkg-custom .lkg-placeholder{height:100%;min-height:0}

.lkg.lkg-custom{display:block;position:relative}.lkg.lkg-custom figure{position:absolute;margin:0;box-sizing:border-box}.lkg.lkg-custom figure>a{position:relative;display:block;width:100%;height:100%;flex:1;min-height:0}.lkg.lkg-custom figure>a>img{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:var(--tile-fit,contain)}
.lkg figure>a{position:relative}.lkg-play,.lkg-duration{position:absolute;z-index:1;color:white;background:#17141dcc;pointer-events:none;border-radius:4px;padding:4px 7px;font-size:13px}.lkg-play{left:50%;top:50%;transform:translate(-50%,-50%);font-size:20px}.lkg-duration{right:5px;bottom:5px}.lkg-view video{display:block;max-width:100%;max-height:100%;object-fit:contain}.lkg-dialog button:disabled{opacity:.4;cursor:default}
.lkg{background:var(--lkg-surface,transparent)}.lkg figure>a{box-sizing:border-box;box-shadow:inset 0 0 0 var(--lkg-border,0px) var(--lkg-border-color,#fff),0 2px var(--lkg-shadow,0px) rgba(0,0,0,.28)}.lkg figure>a:after{content:'';position:absolute;inset:0;border:var(--lkg-border,0px) solid var(--lkg-border-color,#fff);border-radius:inherit;pointer-events:none;box-sizing:border-box}.lkg[data-hover=zoom] figure>a img,.lkg[data-hover=dim] figure>a img{transition:transform .2s,opacity .2s}.lkg[data-hover=zoom] figure>a:hover img{transform:scale(1.05)}.lkg[data-hover=dim] figure>a:hover img{opacity:.75}.lkg-dialog{color:var(--lkg-text,#fff)}.lkg-dialog button{background:var(--lkg-controls,#333);color:var(--lkg-text,#fff)}.lkg-dialog .lkg-caption[hidden]{display:none}.lkg-custom figure{overflow:visible}
.lkg .lkg-cropped{display:block;position:relative;overflow:hidden;width:100%;aspect-ratio:var(--cr)}.lkg .lkg-cropped img{position:absolute!important;left:var(--cx)!important;top:var(--cy)!important;width:var(--cw)!important;height:var(--ch)!important;max-width:none!important;max-height:none!important;object-fit:fill!important;aspect-ratio:auto!important}.lkg-uniform figure>a:has(.lkg-cropped){aspect-ratio:1;display:grid;place-items:center;container-type:size}.lkg-custom figure>a:has(.lkg-cropped){display:grid;place-items:center;container-type:size}.lkg-uniform .lkg-cropped,.lkg-custom .lkg-cropped{width:min(100cqw,calc(100cqh * var(--cr)));height:auto}.lkg[data-hover=zoom] figure>a:hover .lkg-cropped img{transform:none}.lkg[data-hover=zoom] figure>a:hover .lkg-cropped{transform:scale(1.05)}
.lkg.lkg-justified{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start}.lkg.lkg-justified figure{flex:none;max-width:100%;box-sizing:border-box}.lkg.lkg-justified figure>a{height:var(--thumb-height,180px);display:block}.lkg.lkg-justified figure>a>img{width:100%;height:100%;object-fit:contain}.lkg.lkg-justified .lkg-cropped{height:100%;width:100%}.lkg.lkg-justified .lkg-placeholder{height:100%;min-height:0;aspect-ratio:auto}
