/* Labels are overlays, never embedded into customer image files. */
.repair-gallery [data-gallery-image]{position:relative}
.repair-gallery .repair-photo-badge,.gallery-photo-frame .repair-photo-badge{position:absolute;left:10px;bottom:10px;z-index:2;max-width:calc(100% - 20px);padding:7px 10px;box-sizing:border-box;border-radius:3px;background:#102b38;color:#fff;font-size:14px;line-height:1.3;font-weight:700;pointer-events:none}
.gallery-photo-frame{position:relative;display:grid;place-items:center;max-width:100vw}
.gallery-photo-frame>img{display:block}
.gallery-photo-frame [hidden]{display:none}
@media(max-width:620px){.repair-gallery .repair-photo-badge{left:6px;bottom:6px;padding:5px 7px;font-size:12px}.gallery-photo-frame .repair-photo-badge{left:8px;bottom:8px;font-size:13px}}

/* Labelled photos always form before/after columns, including uneven counts. */
html body #les-public .repair-story .repair-gallery.repair-gallery-labeled{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row!important
}
html body #les-public .repair-story .repair-gallery.repair-gallery-labeled > [data-gallery-image]{
 grid-column:var(--photo-column)!important;grid-row:var(--photo-row)!important;min-width:0!important
}

/* Visible photo navigation on both desktop and phones. */
html body .gallery-viewer > :is(.gallery-prev,.gallery-next){
 position:absolute!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;
 display:grid!important;place-items:center!important;width:46px!important;height:46px!important;
 padding:0!important;margin:0!important;border:1px solid #ffffff80!important;border-radius:10px!important;
 background:#102b38d9!important;color:#fff!important;z-index:3!important;box-shadow:none!important
}
html body .gallery-viewer > .gallery-prev{left:12px!important;right:auto!important}
html body .gallery-viewer > .gallery-next{right:12px!important;left:auto!important}
html body .gallery-viewer > :is(.gallery-prev,.gallery-next) svg{display:block;width:24px;height:24px;pointer-events:none}
html body .gallery-viewer > :is(.gallery-prev,.gallery-next):focus-visible{outline:3px solid #bfd97c!important;outline-offset:3px!important}
