/*
 * EnFavori — Public Media Standard
 * --------------------------------
 * Public içerik görsellerinin davranışını tek yerde normalize eder.
 * Ölçü/aspect-ratio kararlarını mevcut sayfa CSS'lerine bırakır; yalnızca
 * kırpma, merkezleme, taşma ve render davranışını standardize eder.
 * Logo, ikon, avatar ve reklam görselleri özellikle kapsam dışıdır.
 */

/* -------------------------------------------------------------------------
   Ana sayfa vitrin ve içerik görselleri
   ------------------------------------------------------------------------- */
body .hm-home-page .hm-home-hero-card,
body .hm-home-page .hm-home-rank-image-link,
body .hm-home-page .hm-home-trending-image-link,
body .hm-home-page .hm-home-list-image-link,
body .hm-home-page .hm-home-channel-image-wrap {
    overflow: hidden !important;
}

body .hm-home-page .hm-home-hero-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

body .hm-home-page .hm-home-rank-image,
body .hm-home-page .hm-home-trending-image,
body .hm-home-page .hm-home-list-image,
body .hm-home-page .hm-home-channel-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* -------------------------------------------------------------------------
   Kategori sayfası
   ------------------------------------------------------------------------- */
body .ef-category-page .ef-category-image-link {
    overflow: hidden !important;
}

body .ef-category-page .ef-category-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* -------------------------------------------------------------------------
   Kanal sayfası
   ------------------------------------------------------------------------- */
body .ef-channel-page .ef-channel-card-image-link {
    overflow: hidden !important;
}

body .ef-channel-page .ef-channel-card-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* -------------------------------------------------------------------------
   Arama sonuçları
   ------------------------------------------------------------------------- */
body .hm-search-page .hm-search-result-image-link {
    overflow: hidden !important;
}

body .hm-search-page .hm-search-result-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* -------------------------------------------------------------------------
   Liste detay kapak görseli
   ------------------------------------------------------------------------- */
body .hm-list-detail-shell .hm-detail-cover-wrap {
    overflow: hidden !important;
}

body .hm-list-detail-shell .hm-detail-cover-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/*
 * Liste içindeki kare öğe görselleri ürün/logo/işletme görseli içerebildiği
 * için kesilmez. Mevcut 1:1 alan korunur ve görsel merkeze oturtulur.
 */
body .other-lists .hm-item-image-wrap {
    overflow: hidden !important;
}

body .other-lists .hm-item-image-wrap img.placeholder,
body .other-lists .hm-item-image-wrap img.hm-item-image,
body .other-lists .hm-item-image-wrap > div > img,
body .other-lists .hm-item-image-wrap > a > img.placeholder,
body .other-lists .hm-item-image-wrap > a > img.hm-item-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* -------------------------------------------------------------------------
   Tek öğe detay sayfası ve galeri
   ------------------------------------------------------------------------- */
body .efi-page .efi-image-wrap,
body .efi-page .efi-gallery-main,
body .efi-page .efi-gallery-thumbnail {
    overflow: hidden !important;
}

body .efi-page .efi-image,
body .efi-page .efi-gallery-main img,
body .efi-page [data-efi-gallery-main-image],
body .efi-page .efi-gallery-thumbnail img,
body .efi-page .efi-related-item img {
    display: block !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

body .efi-page .efi-image,
body .efi-page .efi-gallery-main img,
body .efi-page [data-efi-gallery-main-image],
body .efi-page .efi-gallery-thumbnail img {
    width: 100% !important;
    height: 100% !important;
}

/* Mobilde de aynı kırpma politikası korunur; oranları sayfa CSS'i belirler. */
@media (max-width: 767.98px) {
    body .hm-home-page .hm-home-hero-image,
    body .hm-home-page .hm-home-rank-image,
    body .hm-home-page .hm-home-trending-image,
    body .hm-home-page .hm-home-list-image,
    body .hm-home-page .hm-home-channel-image,
    body .ef-category-page .ef-category-image,
    body .ef-channel-page .ef-channel-card-image,
    body .hm-search-page .hm-search-result-image,
    body .hm-list-detail-shell .hm-detail-cover-image,
    body .efi-page .efi-image,
    body .efi-page .efi-gallery-main img,
    body .efi-page [data-efi-gallery-main-image] {
        object-position: center center !important;
    }
}
