/* Keep media inside design frames without breaking layouts */
img,
picture,
video {
    max-width: 100%;
    height: auto;
}

img.lazyload,
img.lazyloading {
    opacity: 0;
}

img.lazyloaded {
    opacity: 1;
    transition: opacity 0.25s ease;
}

.product-card img,
.gallery-main img,
.gallery-thumb img,
.news-card img,
.news-group img,
.stock-card img,
.intro-media img,
.about-story-image img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.brand-logo img,
.brand-carousel .swiper-slide img,
.agco-brands img,
.logo img,
.feature-card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.page-hero,
.category-card,
.section[style*="background-image"],
.cta2[style*="background-image"],
.about-quote[style*="background-image"],
.banner-slide[style*="background-image"],
.timeline-slide-media[style*="background-image"] {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
