.krrec-photo-previews{display:grid;gap:10px;justify-items:center;margin:8px 0 12px}
.krrec-photo-previews img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;border:1px solid #dce5ee;border-radius:8px;background:#eaf0f6;box-sizing:border-box}
.krmat-float .krrec-photo-previews{margin-bottom:0}
.krmat-float .krrec-photo-previews img{max-height:60vh;width:auto;margin:auto}
.krmat-float .krmat-paper.krrec-photo-loaded .krmat-pairs,.krmat-float .krmat-paper.krrec-photo-loaded .krmat-note{display:none}
.krmat-dialog .krrec-photo-previews img{max-width:620px}
.krmat-dialog:has(.krrec-photo-previews){width:min(610px,calc(100vw - 24px))}
.krmat-dialog .krmat-paper:has(.krrec-photo-previews) .krmat-close{position:sticky;top:2px;z-index:1;margin:6px 0 0 auto}
@media(max-width:400px){.krmat-dialog .krmat-paper:has(.krrec-photo-previews){padding:13px}.krmat-dialog:has(.krrec-photo-previews){width:calc(100vw - 24px)}}

.krrec-photo-multiple{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.krrec-photo-multiple img,.krmat-float .krrec-photo-multiple img{width:100%;max-height:48vh;height:auto;align-self:start}.krmat-float:has(.krrec-photo-multiple){width:min(420px,calc(100vw - 20px))!important}@media(max-width:520px){.krmat-dialog .krrec-photo-multiple{grid-template-columns:1fr}}

@media (max-width:520px){.krmat-dialog .krrec-photo-multiple img{height:auto;max-height:none}.krmat-dialog .krrec-photo-previews{gap:12px}}
