/* One listing-card contract, all entity types. */
html body #main .kka-photo-gallery{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px!important;width:100%!important;overflow:visible!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;grid-auto-rows:1fr!important;}
html body #main .kka-photo-gallery article[hidden]{display:none!important;}
html body #main .kka-photo-gallery article{width:auto!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;grid-column:auto!important;align-self:stretch!important;overflow:hidden!important;}
html body #main [data-kka-photo-slot].kka-photo-frame{position:relative!important;display:block!important;aspect-ratio:1!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;flex:none!important;overflow:hidden!important;border:0!important;background:transparent!important;align-self:auto!important;}
html body #main [data-kka-photo-slot] picture{display:block!important;width:100%!important;height:100%!important;}
html body #main [data-kka-photo-slot] img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:var(--kka-photo-fit,contain)!important;object-position:var(--kka-photo-position,center)!important;transform:none!important;scale:none!important;object-view-box:none!important;transition:none!important;}
html body #main .kka-photo-gallery :is(.resident-card__body,.catalog-resident-card__body,.product-card__body,.workshop-catalog-card__body,.thematic-product__body,.thematic-maker__body,.workshop-card__head){display:flex!important;flex-direction:column!important;flex:1!important;min-width:0!important;min-height:450px!important;height:auto!important;padding:24px!important;gap:12px!important;box-sizing:border-box!important;}
html body #main .kka-photo-gallery :is(.card-actions,.thematic-product__actions){margin-top:auto!important;display:flex!important;flex-wrap:wrap!important;gap:10px!important;}
html body #main .kka-photo-gallery :is(h2,h3){font-size:var(--heading-fit-size,22px)!important;line-height:1.2!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;margin:0!important;}
html body #main .kka-photo-gallery :is(p,.eyebrow){margin:0!important;}
html body #main .kka-photo-gallery .workshop-card__link{display:flex!important;flex-direction:column!important;height:auto!important;flex:1!important;min-height:0!important;grid-template-rows:none!important;}
html body #main .kka-photo-gallery .workshop-card__media{order:0!important;}
html body #main .kka-photo-gallery .workshop-card__head{order:1!important;}
html body #main .kka-photo-gallery .card-icon{width:24px!important;height:24px!important;position:absolute!important;right:20px!important;top:20px!important;}
@media(max-width:1023px){html body #main .kka-photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:539px){html body #main .kka-photo-gallery{grid-template-columns:1fr!important;gap:20px!important;}html body #main .kka-photo-gallery :is(.resident-card__body,.catalog-resident-card__body,.product-card__body,.workshop-catalog-card__body,.thematic-product__body,.thematic-maker__body,.workshop-card__head){min-height:450px!important;}}

html body #main .kka-photo-gallery .workshop-card__more{margin-top:auto!important;align-self:flex-start!important;}

/* Cards stay opaque: decorative shapes must never show through their photos. */
html body #main .kka-photo-gallery article.motion-reveal{opacity:1!important;transform:none!important;}
html body #main .kka-photo-gallery .workshop-card__head{position:relative!important;}
html body #main .kka-photo-gallery .workshop-card__head>.eyebrow{padding-right:32px!important;}

/* Existing whole-word heading fitter may reduce unusually long words; links share the exact heading size. */
html body #main .kka-photo-gallery :is(h2,h3) a{font-size:inherit!important;line-height:inherit!important;}

/* Emergency bridge for existing native-row wrappers. */
html body #main .kka-photo-gallery>.kka-photo-row{display:contents!important;}
html body #main .kka-photo-gallery .kka-photo-row>article{width:auto!important;max-width:none!important;min-width:0!important;flex:initial!important;}

/* Landscape master portrait above the two examples, matching approved PDF layout. */
html body .editorial-hero--resident .editorial-hero__visual.kka-master-landscape{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important;align-content:start!important;}
html body .editorial-hero--resident .kka-master-landscape .editorial-hero__photo{position:relative!important;inset:auto!important;grid-row:auto!important;grid-column:auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;margin:0!important;transform:none!important;align-self:start!important;}
html body .editorial-hero--resident .kka-master-landscape .editorial-hero__photo:first-child{grid-column:1/-1!important;}
html body .editorial-hero--resident .kka-master-landscape .editorial-hero__photo img{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;transform:none!important;}
html body .editorial-hero--resident .kka-master-landscape .editorial-hero__photo picture{height:auto!important;}
html body .editorial-hero--resident .kka-master-landscape.kka-examples-landscape{grid-template-columns:1fr!important;}
html body .editorial-hero--resident .kka-master-landscape .editorial-hero__stamp{position:relative!important;inset:auto!important;grid-column:1/-1!important;justify-self:start!important;transform:none!important;}

html body #main .kka-photo-gallery .kka-photo-row>article :is(.resident-card__body,.catalog-resident-card__body,.product-card__body,.workshop-catalog-card__body,.thematic-product__body,.thematic-maker__body,.workshop-card__head),html body #main .kka-photo-gallery>article :is(.resident-card__body,.catalog-resident-card__body,.product-card__body,.workshop-catalog-card__body,.thematic-product__body,.thematic-maker__body,.workshop-card__head){height:450px!important;min-height:450px!important;max-height:450px!important;flex:none!important;width:100%!important;box-sizing:border-box!important;}

html body .editorial-hero--resident .editorial-hero__visual.kka-master-landscape{grid-template-rows:auto!important;grid-auto-rows:auto!important;height:auto!important;min-height:0!important;}

html body #main .kka-photo-gallery.kka-photo-gallery>.photo-format-row{display:contents!important;}
html body #main .kka-photo-gallery.kka-photo-gallery article{width:auto!important;max-width:none!important;min-width:0!important;flex:initial!important;height:auto!important;}
html body #main .kka-photo-gallery.kka-photo-gallery article :is(.resident-card__body,.catalog-resident-card__body,.product-card__body,.workshop-catalog-card__body,.thematic-product__body,.thematic-maker__body,.workshop-card__head){height:450px!important;min-height:450px!important;max-height:450px!important;flex:none!important;width:100%!important;box-sizing:border-box!important;}

html body #main .kka-photo-gallery article :is(.resident-card__body,.catalog-resident-card__body,.product-card__body,.workshop-catalog-card__body,.workshop-card__head)>p{flex-shrink:0!important;font-size:14px!important;line-height:1.4!important;height:auto!important;max-height:none!important;}
