/*
   SINTA media standard
   Card and cover media always use a 16:9 frame.  object-fit: cover keeps an
   image proportional while allowing a consistent, tidy layout across pages.
*/

/* Listing and related-content cards. */
.service-catalog-page .service-module-visual,
.insight-featured-image,
.premium-news-image,
.solution-news-image,
.modern-product-image,
.modern-news-image,
.article-related-image,
.related-services-premium .service-card-related .service-image {
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
}

.service-catalog-page .service-module-visual > img,
.insight-featured-image > img,
.premium-news-image > img,
.solution-news-image > img,
.modern-product-image > img,
.modern-news-image > img,
.article-related-image > img,
.related-services-premium .service-card-related .service-image > img {
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover;
}

/* Main images on service and news detail pages. */
.service-detail-premium .service-image-frame,
.article-premium-cover {
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
}

.service-detail-premium .service-image-frame > img,
.article-premium-cover > img {
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover;
}

/* Service detail: place the visual below the introduction and let it use the
   full article width, while retaining the standard proportional 16:9 crop. */
.service-article-overview .service-detail-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
}

.service-article-overview .service-hero-visual {
    top: auto !important;
    display: block;
    width: 100%;
    max-width: none;
    margin: 30px 0 0 !important;
    padding: 0;
    animation: none;
}

.service-article-overview .service-image-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
}

@media (max-width: 700px) {
    .service-article-overview .service-hero-visual { margin-top: 24px !important; }
}

/* Editorial images must retain their original aspect ratio. */
.article-rich-content img,
.premium-content img {
    width: auto;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}
