/* Default leaves the native four/two-column layout exactly as it is. */
.kk-gallery-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 16px;min-width:0}.kk-theme .kk-gallery-controls .kk-search-trigger[aria-expanded]{font-size:16px;border-color:transparent;background:transparent;padding-inline:8px;box-shadow:none}.kk-gallery-controls .kk-search-trigger:hover{background:var(--kk-soft)}.kk-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin-bottom:24px}.kk-gallery-heading h1#start{margin:0}.kk-gallery-heading .kk-gallery-controls{margin:0 0 0 auto}.kk-gallery-controls .kk-search-menu{left:auto;right:0}.kk-gallery-status:empty{display:none}.kk-gallery-status{flex-basis:100%;font-size:16px}.kk-gallery-photo-meta,.kk-gallery-list-title{display:none}
.kk-theme ul.gallery.kk-gallery-custom:is([data-kk-gallery-view=small],[data-kk-gallery-view=large],[data-kk-gallery-view=list]){display:grid!important;grid-template-columns:repeat(var(--kk-gallery-columns),minmax(0,1fr))!important;gap:24px 16px!important;height:auto!important;padding:0!important;column-count:auto!important}
.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=small]{--kk-gallery-columns:6}.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=large]{--kk-gallery-columns:3}
.kk-theme ul.gallery.kk-gallery-custom:is([data-kk-gallery-view=small],[data-kk-gallery-view=large],[data-kk-gallery-view=list])>li{position:relative!important;inset:auto!important;width:auto!important;height:auto!important;transform:none!important;margin:0!important;break-before:auto!important;min-width:0}
.kk-theme ul.gallery.kk-gallery-custom:is([data-kk-gallery-view=small],[data-kk-gallery-view=large]) .photo-wrapper{height:auto!important;aspect-ratio:3/2;--aspectratio:1.5!important}.kk-theme ul.gallery.kk-gallery-custom:is([data-kk-gallery-view=small],[data-kk-gallery-view=large]) img.photo{width:100%;height:100%;object-fit:contain}
.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list]{grid-template-columns:minmax(0,1fr)!important;gap:0!important}.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list]>li{display:grid!important;grid-template-columns:minmax(120px,min(28%,240px)) minmax(0,1fr);column-gap:24px;align-content:start;padding:20px 0!important;border-bottom:1px solid var(--kk-line)}
.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list]>li>a{display:contents!important}.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list] .photo-wrapper{grid-column:1;grid-row:1/span 3;width:100%;height:auto!important;aspect-ratio:3/2;--aspectratio:1.5!important}.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list] img.photo{width:100%;height:100%;object-fit:contain}.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list] .info-title,.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list] .kk-gallery-list-title{display:block;grid-column:2;grid-row:1;font-size:18px!important;padding:0 0 10px!important;line-height:1.4;overflow-wrap:anywhere}.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list] .info-summary{display:none}
.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list] .kk-gallery-photo-meta{grid-column:2;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:5px 16px;margin:0;font-size:16px;line-height:1.5;min-width:0}.kk-gallery-photo-meta dt{color:var(--kk-muted);margin:0}.kk-gallery-photo-meta dd{margin:0;overflow-wrap:anywhere}
.kk-map-layout[data-view=split] ul.gallery[data-kk-gallery-view=small]{--kk-gallery-columns:3}.kk-map-layout[data-view=split] ul.gallery[data-kk-gallery-view=large]{--kk-gallery-columns:1}
@media(max-width:760px){.kk-gallery-controls{justify-content:flex-end;gap:8px}.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=small]{--kk-gallery-columns:3}.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=large]{--kk-gallery-columns:1}.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list]>li{grid-template-columns:104px minmax(0,1fr);gap:12px;padding:16px 0!important}.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list] .kk-gallery-photo-meta{grid-column:1/-1;grid-template-columns:96px minmax(0,1fr);gap:6px 12px;font-size:16px}.kk-gallery-photo-meta dt{font-size:14px}.kk-gallery-photo-meta dd{margin-bottom:0}.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list] .info-title,.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list] .kk-gallery-list-title{font-size:16px!important}.kk-map-layout[data-view=split] ul.gallery[data-kk-gallery-view=small]{--kk-gallery-columns:3}}

.kk-theme ul.gallery[data-kk-gallery-view=list]>li>a:focus-visible .photo-wrapper{outline:2px solid var(--kk-focus);outline-offset:3px}

.kk-theme ul.gallery.kk-gallery-custom:is([data-kk-gallery-view=small],[data-kk-gallery-view=large]) .info-title{font-size:16px!important}

@media(max-width:760px){.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list] .photo-wrapper{grid-row:1}.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list] .kk-gallery-photo-meta{grid-row:2}}

/* List titles come from the actual title field, never a filename fallback. */
.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list] .info-title{display:none}
.kk-gallery-meta-links{display:flex;flex-wrap:wrap;gap:4px 14px}.kk-gallery-meta-links a{text-decoration:underline;text-underline-offset:.18em}
