/* Image dimensions belong to the layout, never to the uploaded file. */
:where(main,footer,header,.maintenance-content,.editor-styles-wrapper) img{max-width:100%;max-height:640px;width:auto;height:auto;object-fit:contain;box-sizing:border-box}
:where(.about,.bio-layout,.detail-layout,.contact-layout,.contact-hero)>*{min-width:0}
:where(main,.editor-styles-wrapper) .wp-block-image{max-width:100%;}
:where(main,.editor-styles-wrapper) .wp-block-image img{max-width:100%;max-height:640px;width:auto;height:auto;object-fit:contain}
/* Existing photograph windows keep their responsive layout dimensions. */
.hero-photo,.about-visual,.portrait-photo,.contact-art-photo,.offer-art{max-width:100%;overflow:hidden}
.hero-photo img,.about-visual img,.portrait-photo img,.contact-art-photo img,.offer-art img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover}
.hero-photo{max-height:540px}.about-visual{max-height:490px}.portrait-photo{max-height:480px}.contact-art-photo{max-height:240px}.offer-art{max-height:190px}
.se-hero-background img.se-hero-background-image{width:100%;height:100%;max-height:100%;object-fit:cover}
.detail-layout aside.se-offer-image{max-width:100%}
.detail-layout aside.se-offer-image img{width:100%;height:clamp(280px,42vw,540px);max-width:100%;max-height:min(540px,calc(100dvh - 180px));object-fit:cover}
.brand img.brand-logo{width:auto;height:auto;max-width:min(260px,30vw);max-height:54px;object-fit:contain;flex-shrink:1}
.offer-art .abstract.se-custom-motif img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.se-quote-card img.se-quote-icon{width:21px;height:21px;max-width:21px;max-height:21px;object-fit:contain}
.se-legend-item img{width:20px;height:20px;max-width:20px;max-height:20px;object-fit:contain;flex:none}
@media(max-width:800px){:where(main,footer,.maintenance-content,.editor-styles-wrapper) img{max-height:480px}.se-hero-background img.se-hero-background-image{max-height:100%}.hero-photo img,.about-visual img,.portrait-photo img,.contact-art-photo img,.offer-art img{max-height:100%}}
@media(max-width:680px){.brand img.brand-logo{max-width:min(180px,30vw);max-height:43px}.detail-layout aside.se-offer-image img{height:340px;max-height:340px}}
/* Gutenberg's extra image wrapper receives the same bounded photo window. */
.editor-styles-wrapper .se-image{max-width:100%;min-width:0}
.editor-styles-wrapper .se-image img{width:auto;height:auto;max-width:100%;max-height:640px;object-fit:contain}
.editor-styles-wrapper :is(.hero-photo,.about-visual,.portrait-photo,.contact-art-photo) .se-image{height:100%;max-height:100%}
.editor-styles-wrapper :is(.hero-photo,.about-visual,.portrait-photo,.contact-art-photo) .se-image img{width:100%;height:100%;max-height:100%;object-fit:cover}
.editor-styles-wrapper .se-offer-image .se-image img{width:100%;height:400px;max-height:400px;object-fit:cover}

/* Uploaded photo dimensions cannot move or resize their image window. */
.hero-photo,.about-visual,.portrait-photo,.contact-art-photo{position:relative}
.hero-photo>img,.about-visual>img,.portrait-photo>img,.contact-art-photo>img{position:absolute;inset:0;margin:0;width:100%;height:100%}
.detail-layout aside.se-offer-image{height:clamp(280px,42vw,540px);max-height:min(540px,calc(100dvh - 180px))}
.detail-layout aside.se-offer-image>img{position:absolute;inset:0;width:100%;height:100%;margin:0}
@media(max-width:800px){.detail-layout aside.se-offer-image{position:relative}}
@media(max-width:680px){.detail-layout aside.se-offer-image{height:340px;max-height:340px}.detail-layout aside.se-offer-image>img{height:100%;max-height:100%}}

/* Decorations inserted directly into a hero stay in its image column. */
.contact-hero>.abstract.se-custom-motif{position:relative;inset:auto;align-self:center;justify-self:end;width:min(100%,300px);height:240px;max-width:100%;margin:0;transform:none;overflow:hidden}
.contact-hero>.abstract.se-custom-motif img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
@media(max-width:800px){.contact-hero>.abstract.se-custom-motif{width:min(100%,220px);height:180px}}
@media(max-width:520px){.contact-hero>.abstract.se-custom-motif{width:180px;height:120px;margin:20px 0 0 auto}}
