/* v3.1.29: responsive image-frame repair; never changes image URLs or CMS records. */
.s21v312 main :is(.s21-widget-kind-image,.s21-widget-kind-image_text,.s21-widget-kind-gallery){min-width:0;max-width:100%;box-sizing:border-box}
.s21v312 main :is(.s21-widget-kind-image,.s21-widget-kind-image_text,.s21-widget-kind-gallery) :is(.wrap,.s21-widget-styled,figure,.cms-two){min-width:0;max-width:100%;box-sizing:border-box}
/* A standalone image block grows with its image; a former fixed-height/overflow frame must not hide it. */
.s21v312 main .s21-widget-kind-image :is(.s21-widget-styled,figure){height:auto!important;min-height:0;overflow:visible!important}
.s21v312 main .s21-widget-kind-image figure>img:not([data-s21v326-width]){display:block;width:auto;max-width:100%;height:auto!important;max-height:none!important;object-fit:contain!important;position:relative!important;inset:auto!important}
/* Two-column image blocks must not overflow with large assets or custom full-width sections. */
.s21v312 main .s21-widget-kind-image_text .cms-two{min-width:0;max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
.s21v312 main .s21-widget-kind-image_text .cms-two>img:not([data-s21v326-width]){display:block;width:100%;height:auto!important;max-width:100%;max-height:none;object-fit:contain!important;position:relative!important;inset:auto!important}
.s21v312 main .s21-widget-kind-image_text .cms-two>:is(div,img){min-width:0;max-width:100%;box-sizing:border-box}
/* Only when the editor has explicitly selected 'show complete', preserve the entire image in framed art. */
.s21v312 main img[data-s21v326-fit="contain"]{object-fit:contain!important}
.s21v312 main img[data-s21v326-height="0"]{height:auto!important}
.s21v312 main :is(.cms-visual,.s21rd-hero-art,.s21h-hero-art) img[data-s21v326-fit="contain"]{max-height:100%;object-position:center!important}
.s21v312 main :is(.s21-widget-kind-image,.s21-widget-kind-image_text,.s21-widget-kind-gallery) img{box-sizing:border-box;min-width:0;max-width:100%}
@media(max-width:767px){
 .s21v312 main .s21-widget-kind-image_text .cms-two{grid-template-columns:minmax(0,1fr)!important}
 .s21v312 main .s21-widget-kind-image_text .cms-two>img:not([data-s21v326-width]){width:100%;height:auto!important}
 .s21v312 main .s21-widget-kind-image figure>img{max-width:100%}
}
