/* Queensirikit.Web - Phase 05X.23: top-aligned CMS cover crops.
   Source baseline: src(3).zip received 2026-11-18.
   Loaded AFTER queensirikit-cover-hotfix.css; never change the designer CSS.
   object-fit: cover preserves the original aspect ratio; excess at the bottom
   is cropped first. It cannot reconstruct a face missing from the source image.
*/

/* Every public CMS list uses PublicCmsContentList: news-highlight,
   news-central, announcement, infographic, heart-video, crematory,
   royal-procession and journey. Vocabulary uses the same .info-body > .row
   card geometry. Keep a consistent 16:10 landscape thumbnail frame. */
.content .body .info-body > .row > [class*="col-"] > a > .image {
    align-items: flex-start;
    justify-content: center;
}
.content .body .info-body > .row > [class*="col-"] > a > .image > img.equal-height {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
}

/* Home: CMS news-highlight 3D carousel. Retain transitions, slots and captions. */
.home-section3 .qs-cms-highlight-stage .qs-cms-highlight-slide > img {
    object-fit: cover !important;
    object-position: center top !important;
}

/* Home: main CMS central-news slider. Responsive 16:10 image window;
   prevent legacy equal-height JS from setting a stretched inline height. */
.home-section4 .qs-cms-home-central-layout .news_center .image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 0 !important;
    overflow: hidden;
    background: #f2f4f4;
}
.home-section4 .qs-cms-home-central-layout .news_center .image > img.equal-height {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
}

/* Home: right-hand CMS central-news thumbnails. No image distortion. */
.home-section4 .qs-cms-home-central-layout .news_center_list .image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f4f4;
}
.home-section4 .qs-cms-home-central-layout .news_center_list .image > img.equal-height2 {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
}

/* Home video teaser: preserve faces in CMS poster crops too. */
.home-section2 .qs-home-video-link > img {
    object-fit: cover !important;
    object-position: center top !important;
}

/* Do NOT modify images in public detail, print, rich text, galleries,
   calendar detail, designer banners or logos. They retain their own styling. */
