/*
Theme Name: MCB Experiência 2026
Theme URI: https://minhacalcinhabrasileira.com/
Description: Experiência editorial premium e bilíngue para Minha Calcinha Brasileira, preservando WooCommerce como motor transacional.
Author: Gabriel Mendes
Template: shoptimizer
Version: 1.0.1
Text Domain: mcb-experiencia-2026
Requires at least: 6.6
Requires PHP: 8.1
*/

/* ==========================================================
   MCB BLOG CARD RATIO 4X5 V1
   Editorial image system — Blog / Journal
   2026-10-04
   ========================================================== */

/*
 * Standard editorial ratio:
 * 4:5 vertical
 * Fill available card width
 * Preserve visual focus near upper center
 * Crop only what is necessary
 */

/* Blog archive / listing */
body.blog article.post img.wp-post-image,
body.archive article.post img.wp-post-image,

/* Blog posts displayed on Home / Journal */
body.home article.post img.wp-post-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;

    aspect-ratio: 4 / 5 !important;

    object-fit: cover !important;
    object-position: center top !important;

    height: auto !important;

    margin: 0 !important;
}

/*
 * Keep card media clean and editorial.
 * Prevent accidental overflow from legacy wrappers.
 */
body.blog article.post .post-thumbnail,
body.blog article.post .entry-thumbnail,
body.archive article.post .post-thumbnail,
body.archive article.post .entry-thumbnail,
body.home article.post .post-thumbnail,
body.home article.post .entry-thumbnail {
    overflow: hidden !important;
    background: #F8F0E4;
}

/* Mobile retains the same visual language */
@media (max-width: 767px) {

    body.blog article.post img.wp-post-image,
    body.archive article.post img.wp-post-image,
    body.home article.post img.wp-post-image {
        aspect-ratio: 4 / 5 !important;
        object-fit: cover !important;
        object-position: center top !important;
    }

}

/* END MCB BLOG CARD RATIO 4X5 V1 */


/* ==========================================================
   MCB BLOG CARD RATIO 4X5 V2
   Exact real markup: .mcb-proto-article__image
   2026-10-04
   ========================================================== */

/*
 * The media wrapper owns the editorial proportion.
 * This guarantees one consistent card height regardless
 * of the original uploaded image dimensions.
 */
.mcb-proto-article .mcb-proto-article__image {
    display: block !important;
    position: relative !important;

    width: 100% !important;
    aspect-ratio: 4 / 5 !important;

    overflow: hidden !important;
    background: #F8F0E4 !important;

    line-height: 0 !important;
}

/*
 * Image fills the 4:5 editorial viewport.
 * No distortion: crop only.
 */
.mcb-proto-article .mcb-proto-article__image > img,
.mcb-proto-article .mcb-proto-article__image > img.wp-post-image {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: cover !important;
    object-position: center top !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Keep exactly the same visual language on mobile */
@media (max-width: 767px) {

    .mcb-proto-article .mcb-proto-article__image {
        aspect-ratio: 4 / 5 !important;
    }

    .mcb-proto-article .mcb-proto-article__image > img,
    .mcb-proto-article .mcb-proto-article__image > img.wp-post-image {
        object-fit: cover !important;
        object-position: center top !important;
    }

}

/* END MCB BLOG CARD RATIO 4X5 V2 */

