/* Horizontal frames for unchanged photographic comparisons and report originals. */
img[data-nog-landscape-preserve] {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}
img[data-nog-landscape-preserve="comparison"] { background: #202930; }
img[data-nog-landscape-preserve="document"] { background: #f8fafc; }
/* Detail galleries crop the selected landscape photos into their established
   main frame; banner-wide photos otherwise leave large empty bands here. */
.pp-hero__main img[data-nog-landscape-id]:not([data-nog-landscape-preserve]),
.article-knowledge-card__media img[data-nog-landscape-id]:not([data-nog-landscape-preserve]),
.article-page-related-card__media img[data-nog-landscape-id]:not([data-nog-landscape-preserve]),
.nog-case-cover__media img[data-nog-landscape-id]:not([data-nog-landscape-preserve]),
.ar-buyer-photo img[data-nog-landscape-id]:not([data-nog-landscape-preserve]) {
    object-fit: cover !important;
    object-position: center;
}
/* Native-language case covers also need a definite picture height, otherwise
   the image's intrinsic height can stretch it inside the existing cover. */
.nog-case-cover__media:has(img[data-nog-landscape-id]:not([data-nog-landscape-preserve])) picture {
    display: block;
    width: 100%;
    height: 100%;
}
.nog-case-cover__media img[data-nog-landscape-id]:not([data-nog-landscape-preserve]) {
    width: 100% !important;
    height: 100% !important;
    max-height: 100%;
}
/* Real factory/case images use the original photo with a normal card crop. */
img[data-nog-landscape-preserve="original"] {
    object-fit: cover !important;
    object-position: center !important;
}
.report-library-card__cover:has(img[data-nog-landscape-preserve="document"]) { padding: 12px 20px; }
.report-library-card__cover img[data-nog-landscape-preserve="document"] { border: 0; }
.article-knowledge-card__media picture:has(img[data-nog-landscape-id]),
.article-page-related-card__media picture:has(img[data-nog-landscape-id]) {
    display: block;
    width: 100%;
    height: 100%;
}
.article-knowledge-card__media img[data-nog-landscape-id],
.article-page-related-card__media img[data-nog-landscape-id] {
    width: 100%;
    height: 100%;
    max-height: 100%;
}
/* Keep landscape photos inside the media viewport even when its layout uses
   grid tracks with an intrinsic minimum larger than the viewport height. */
.article-knowledge-card__media:has(img[data-nog-landscape-id]:not([data-nog-landscape-preserve])),
.article-page-related-card__media:has(img[data-nog-landscape-id]:not([data-nog-landscape-preserve])) {
    position: relative;
}
.article-knowledge-card__media picture:has(img[data-nog-landscape-id]:not([data-nog-landscape-preserve])),
.article-page-related-card__media picture:has(img[data-nog-landscape-id]:not([data-nog-landscape-preserve])) {
    position: absolute;
    inset: 0;
}
.article-knowledge-card__media img[data-nog-landscape-id]:not([data-nog-landscape-preserve]),
.article-page-related-card__media img[data-nog-landscape-id]:not([data-nog-landscape-preserve]) {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: 100%;
}
/* The sign also appears in a much shallower, roughly 5:1 content slot. */
.product-route-images img[data-nog-landscape-id="V05"] {
    object-fit: contain !important;
    background: #f2f4f6;
}
.nog-case-cover__media img[data-nog-landscape-id="V13"] {
    object-fit: contain !important;
    background: #07172b;
}
