/* Additive component refinement only. Existing typography v2 stays unchanged. */
body[data-bk76-gallery-formal] main :is(.shelf-photo>span,.shelf-number),
body[data-bk76-gallery-formal] :is(.shelf-viewer,.image-dialog,.gallery-viewer) :is(figcaption,.viewer-caption,.viewer-count,.gallery-counter){
  font-family:var(--bk-text,'DM Sans','Segoe UI',Arial,sans-serif)!important;
  font-style:normal!important;
}
body[data-bk76-gallery-formal] main .shelf-photo>span:not(.renoma-kind){font-size:14px!important;font-weight:500!important;line-height:1.5!important;letter-spacing:normal}
body[data-bk76-gallery-formal] main :is(.shelf-photo>.renoma-kind,.shelf-number){font-size:12px!important;font-weight:500!important;line-height:1.5!important;letter-spacing:.02em}
body[data-bk76-gallery-formal] main figcaption,
body[data-bk76-gallery-formal] :is(.shelf-viewer,.image-dialog,.gallery-viewer) :is(figcaption,.viewer-caption){font-family:var(--bk-text,'DM Sans','Segoe UI',Arial,sans-serif)!important;font-size:16px!important;font-weight:400!important;line-height:1.6!important}
body[data-bk76-gallery-formal] :is(.shelf-viewer,.image-dialog,.gallery-viewer) :is(.viewer-count,.gallery-counter){font-size:14px!important;font-weight:500!important;line-height:1.5!important}

/* Same source images and order. Frame, not photograph, gets a fixed proportion. */
body[data-bk76-equal-photo-frames] .uslugi-retusz-ai .retusz-grid{gap:24px;align-items:start}
body[data-bk76-equal-photo-frames] .uslugi-retusz-ai .retusz-grid>figure{margin:0;min-width:0}
body[data-bk76-equal-photo-frames] .uslugi-retusz-ai .retusz-grid>figure>a{
  box-sizing:border-box;display:grid;place-items:center;width:100%;aspect-ratio:4/3;
  overflow:hidden;border-radius:12px;background:#edf1f3;
}
body[data-bk76-equal-photo-frames] .uslugi-retusz-ai .retusz-grid>figure>a>img{
  display:block;width:100%!important;height:100%!important;min-height:0;max-width:100%;
  aspect-ratio:auto!important;object-fit:contain!important;object-position:center;
  border-radius:0;
}
body[data-bk76-equal-photo-frames] .uslugi-retusz-ai .retusz-grid>figure>figcaption{
  font-family:var(--bk-text,'DM Sans','Segoe UI',Arial,sans-serif)!important;
  font-size:16px!important;font-weight:400!important;line-height:1.6!important;margin-top:12px;
}
body[data-bk76-equal-photo-frames] .uslugi-retusz-ai .retusz-grid>figure>figcaption>small{font-size:14px;line-height:1.5;margin-top:8px}
@media(max-width:700px){body[data-bk76-equal-photo-frames] .uslugi-retusz-ai .retusz-grid{grid-template-columns:minmax(0,1fr);gap:24px}}
