/* 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=full],[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=full],[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}

/* Search result count and the shared presentation choice form one toolbar. */
.kk-gallery-result-count{margin-right:auto;flex:none;font:400 16px/1.4 var(--kk-font);font-variant-numeric:tabular-nums;color:var(--kk-ink)}

.kk-gallery-controls[data-gallery-stylebook]{width:100%}

.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=list] .kk-gallery-list-title{font-weight:600}
.kk-gallery-photo-meta dd>a{ text-decoration:underline;text-underline-offset:.16em }

/* Compact shared heading: title and presentation occupy one row when they fit. */
.kk-main:has(>.kk-gallery-heading){padding-top:28px}
.kk-gallery-heading{gap:12px 20px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--kk-ink)}
.kk-theme .kk-gallery-heading h1#start{font-size:var(--kk-gallery-heading);font-weight:600;line-height:1.08;letter-spacing:-.045em}
.kk-theme .kk-gallery-controls .kk-search-trigger[aria-expanded]{min-height:44px;height:44px;gap:8px;padding:6px;font-size:16px}
@media(max-width:600px){.kk-main:has(>.kk-gallery-heading){padding-top:24px}.kk-gallery-heading{margin-bottom:16px}}

/* Shared photographic collection cards: keep titles beneath the image. */
.kk-theme ul.gallery.gallery-set{display:grid!important;width:100%!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--kk-collection-row-gap) var(--kk-collection-gap)!important;height:auto!important;margin:0!important;padding:0!important;align-items:start}
.kk-theme ul.gallery.gallery-set>li{position:relative!important;inset:auto!important;float:none!important;flex:none!important;width:auto!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;min-width:0;margin:0!important;padding:0!important;transform:none!important;background:transparent!important;overflow:visible!important}
.kk-theme ul.gallery.gallery-set>li>.fix{display:none!important}
.kk-theme ul.gallery.gallery-set>li>a{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;padding:0!important;background:transparent!important;color:var(--kk-ink);opacity:1!important;overflow:visible}
.kk-theme ul.gallery.gallery-set .photo-wrapper{position:relative!important;inset:auto!important;display:block;width:100%;height:auto!important;aspect-ratio:3/2;overflow:hidden}
.kk-theme ul.gallery.gallery-set .photo-wrapper img.photo{width:100%;height:100%!important;object-fit:cover}
.kk-theme ul.gallery.gallery-set span.info-title{position:static!important;display:block!important;margin:0!important;padding:12px 0 0!important;white-space:normal!important;overflow-wrap:anywhere;font-size:var(--kk-text)!important;line-height:1.45!important;background:none!important;opacity:1!important;text-shadow:none!important;text-transform:none!important}
.kk-theme ul.gallery.gallery-set .count{color:var(--kk-muted);font-size:var(--kk-small);white-space:nowrap}
@media(max-width:900px){.kk-theme ul.gallery.gallery-set{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.kk-theme ul.gallery.gallery-set{grid-template-columns:repeat(2,minmax(0,1fr));--kk-collection-gap:16px;--kk-collection-row-gap:28px}}

/* A full-width single column preserves each photograph's native aspect ratio. */
.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=full]{--kk-gallery-columns:1}
.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=full] .photo-wrapper{height:auto!important;aspect-ratio:var(--aspectratio,1.5)}
.kk-theme ul.gallery.kk-gallery-custom[data-kk-gallery-view=full] img.photo{width:100%;height:auto!important;object-fit:contain}
.kk-album-map-controls .kk-view-picker .kk-gallery-map-toggle{display:inline-flex;align-items:center;font:400 var(--kk-text)/1.4 var(--kk-font);color:var(--kk-ink);flex:none;gap:10px;white-space:nowrap;margin:0;padding:0 6px}
.kk-album-map-controls .kk-view-picker:has(.kk-gallery-map-toggle){width:auto}

/* Basket cards follow their own column width, independent of browsing preferences. */
.kk-theme main.template-basket{--kk-basket-card-min:220px}
.kk-theme ul.gallery.kk-gallery-auto{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--kk-basket-card-min)),1fr))!important;gap:24px 16px!important;width:100%!important;height:auto!important;padding:0!important}
.kk-theme ul.gallery.kk-gallery-auto>li{position:relative!important;inset:auto!important;width:auto!important;height:auto!important;transform:none!important;margin:0!important;min-width:0}
.kk-theme ul.gallery.kk-gallery-auto .photo-wrapper{position:relative!important;inset:auto!important;height:auto!important;aspect-ratio:3/2}
.kk-theme ul.gallery.kk-gallery-auto img.photo{width:100%;height:100%!important;object-fit:contain}
@media(max-width:600px){.kk-theme main.template-basket{--kk-basket-card-min:140px}.kk-theme ul.gallery.kk-gallery-auto{gap:24px 12px!important}}
.kk-basket-heading>#js-basket-buttoncontainer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:0 0 0 auto}
.kk-basket-heading>#js-basket-buttoncontainer[hidden]{display:none}
.kk-basket-heading>#js-basket-buttoncontainer>.button{margin:0}
@media(max-width:600px){.kk-basket-heading>#js-basket-buttoncontainer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px}.kk-basket-heading>#js-basket-buttoncontainer>.button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:76px;padding:10px 8px;white-space:normal;font-size:14px;line-height:1.3;text-align:center}}

/* Collection links share a photo-first hover and retain one native destination. */
.kk-theme ul.gallery.gallery-set .photo-wrapper::after{content:"";position:absolute;inset:0;pointer-events:none;background:var(--kk-media-mask);box-shadow:inset 0 0 0 1px var(--kk-media-edge)}
.kk-theme ul.gallery.gallery-set .photo-wrapper img.photo{transition:transform 350ms ease}
@media(min-width:601px){.kk-theme ul.gallery.gallery-set span.info-title{font-size:20px!important;line-height:1.3!important;letter-spacing:-.02em}}
.kk-theme ul.gallery.gallery-set>li>a:focus-visible{outline:2px solid var(--kk-focus);outline-offset:5px}
@media(hover:hover){.kk-theme ul.gallery.gallery-set>li>a:hover .photo-wrapper img.photo{transform:scale(1.015)}.kk-theme ul.gallery.gallery-set>li>a:hover .info-title{text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:1px}}
@media(prefers-reduced-motion:reduce){.kk-theme ul.gallery.gallery-set .photo-wrapper img.photo{transition:none;transform:none!important}}
@media(max-width:700px){.kk-theme .kk-basket-heading #js-basket-buttoncontainer{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;width:100%}.kk-theme .kk-basket-heading #js-basket-buttoncontainer>.button{display:inline-flex!important;flex-direction:row;align-items:center;justify-content:center;flex:0 0 auto;width:auto!important;white-space:nowrap;padding:12px 14px!important;gap:8px;min-height:44px}}
.kk-theme ul.gallery.kk-gallery-custom .info-title{overflow-wrap:anywhere;min-width:0}
