/* NNT Newkarma Image Fix */

/* Jangan paksa semua gambar jadi crop */
.entry-content img,
.post-content img,
.wp-post-image,
.thumbnail img,
.post-thumbnail img,
.featured-image img,
.widget img {
    max-width: 100%;
    height: auto;
}

/* Thumbnail homepage lebih rapi */
.post-thumbnail,
.featured-image,
.thumbnail,
.news-thumb,
.nnt-mobile-card,
.nnt-news-card {
    overflow: hidden;
    background: #f5f5f5;
}

/* Untuk gambar berita biasa: proporsional */
.post-thumbnail img,
.featured-image img,
.thumbnail img,
.news-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: #f5f5f5;
}

/* Untuk slider/hero boleh crop ringan, tapi tidak merusak */
.slider img,
.featured-slider img,
.owl-carousel img,
.slick-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Poster iklan jangan ikut dicrop */
.widget_media_image img,
.sidebar img,
.aside img,
.adsbygoogle img,
.advertisement img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 768px) {
    .post-thumbnail img,
    .featured-image img,
    .thumbnail img,
    .news-thumb img,
    .widget img,
    .sidebar img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .nnt-mobile-card img,
    .nnt-news-card img {
        width: 100%;
        height: auto;
        object-fit: contain;
        background: #f5f5f5;
    }

    .nnt-hero-mobile {
        min-height: auto !important;
        height: auto !important;
    }

    .nnt-hero-mobile img {
        position: relative !important;
        width: 100%;
        height: auto !important;
        object-fit: contain !important;
    }

    .nnt-hero-overlay {
        position: relative !important;
        background: #111 !important;
        padding: 16px !important;
    }
}

/* Desktop tetap elegan */
@media (min-width: 769px) {
    .nnt-mobile-card img,
    .nnt-news-card img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Hilangkan efek radius berlebihan pada gambar iklan/sidebar */
.sidebar img,
.widget img {
    border-radius: 8px;
}

/* Supaya popup tidak nutup konten terlalu besar di HP */
@media (max-width: 600px) {
    .nnt-bottom-nav {
        display: flex;
    }

    .nnt-fab {
        bottom: 86px;
    }
}
