/* Editor choices take precedence over the reading layout's default alignment. */
.entry-content .has-text-align-left,.section-lead .has-text-align-left,.news-standfirst .has-text-align-left,.news-lead-image .has-text-align-left{text-align:left!important}
.entry-content .has-text-align-right,.section-lead .has-text-align-right,.news-standfirst .has-text-align-right,.news-lead-image .has-text-align-right{text-align:right!important}
.entry-content .has-text-align-center,.section-lead .has-text-align-center,.news-standfirst .has-text-align-center,.news-lead-image .has-text-align-center{text-align:center!important}
.entry-content .has-text-align-justify,.section-lead .has-text-align-justify,.news-standfirst .has-text-align-justify,.news-lead-image .has-text-align-justify{text-align:justify!important}
.entry-content .has-text-align-start,.section-lead .has-text-align-start,.news-standfirst .has-text-align-start,.news-lead-image .has-text-align-start{text-align:start!important}
.entry-content .has-text-align-end,.section-lead .has-text-align-end,.news-standfirst .has-text-align-end,.news-lead-image .has-text-align-end{text-align:end!important}

/* Galleries and the purpose-made artwork/visit cards retain their own layout. */
.entry-content :is(img,figure,.wp-caption,.wp-block-image,.wp-block-embed,.wp-block-audio,.wp-block-video).alignleft:not(.artwork-card,.visit-gallery-item,.wp-block-gallery *,.gallery *,.artwork-card *,.visit-gallery-item *,figure img,.wp-caption img){float:left;clear:none;max-width:48%;margin:0 28px 24px 0}
.entry-content :is(img,figure,.wp-caption,.wp-block-image,.wp-block-embed,.wp-block-audio,.wp-block-video).alignright:not(.artwork-card,.visit-gallery-item,.wp-block-gallery *,.gallery *,.artwork-card *,.visit-gallery-item *,figure img,.wp-caption img){float:right;clear:none;max-width:48%;margin:0 0 24px 28px}
.entry-content :is(img,figure,.wp-caption,.wp-block-image,.wp-block-embed,.wp-block-audio,.wp-block-video).aligncenter:not(.artwork-card,.visit-gallery-item,.wp-block-gallery *,.gallery *,.artwork-card *,.visit-gallery-item *,figure img,.wp-caption img){display:block;float:none;clear:both;margin:32px auto}
.entry-content :is(figure,.wp-caption) :is(img.alignleft,img.alignright,img.aligncenter){float:none;clear:none;max-width:100%;margin:0}
.entry-content::after{content:"";display:block;clear:both}
.entry-content>.page-context-back{clear:both}

/* On small screens the text follows the picture, with its chosen edge preserved. */
@media(max-width:760px){
 .entry-content :is(img,figure,.wp-caption,.wp-block-image,.wp-block-embed,.wp-block-audio,.wp-block-video):is(.alignleft,.alignright):not(.artwork-card,.visit-gallery-item,.wp-block-gallery *,.gallery *,.artwork-card *,.visit-gallery-item *,figure img,.wp-caption img){float:none;clear:both;max-width:100%;margin-block:28px}
 .entry-content :is(img,figure,.wp-caption,.wp-block-image,.wp-block-embed,.wp-block-audio,.wp-block-video).alignleft:not(.artwork-card,.visit-gallery-item,.wp-block-gallery *,.gallery *,.artwork-card *,.visit-gallery-item *,figure img,.wp-caption img){margin-inline:0 auto}
 .entry-content :is(img,figure,.wp-caption,.wp-block-image,.wp-block-embed,.wp-block-audio,.wp-block-video).alignright:not(.artwork-card,.visit-gallery-item,.wp-block-gallery *,.gallery *,.artwork-card *,.visit-gallery-item *,figure img,.wp-caption img){margin-inline:auto 0}
 .entry-content :is(figure,.wp-caption) :is(img.alignleft,img.alignright,img.aligncenter){margin:0}
}

/* Classic paragraphs can centre or right-align a linked, unwrapped image. */
.entry-content :is(.has-text-align-left,.has-text-align-right,.has-text-align-center)>img:not(.alignleft,.alignright,.aligncenter),.entry-content :is(.has-text-align-left,.has-text-align-right,.has-text-align-center)>a>img:not(.alignleft,.alignright,.aligncenter){display:inline-block;vertical-align:bottom}
