/*
Theme Name: Mom Daily Ideas v7
Theme URI: https://github.com/sahilrajan91/MomDaily
Author: Mom Daily Ideas Editorial Team
Author URI: https://momdailyideas.com
Description: A warm, minimalist editorial theme built with Tailwind CSS for Mom Daily Ideas (AdSense & Raptive Ready v7).
Version: 7.0.3
Text Domain: mom-daily
*/

/* =============================================
   IMAGE CAPTIONS — Center aligned
   Covers: Block editor, Classic editor, Gallery
   ============================================= */

/* Block editor (Gutenberg) */
figcaption,
.wp-element-caption,
.blocks-gallery-caption {
    text-align: center !important;
    width: 100%;
}

/* Classic editor */
.wp-caption-text,
.wp-caption p {
    text-align: center !important;
    width: 100%;
}

/* Prose / Tailwind Typography override */
.prose figcaption,
.prose .wp-element-caption {
    text-align: center !important;
}

/* =============================================
   ARTICLE BODY IMAGES — Force 2:3 aspect ratio
   To safely crop 9:16 images for the front end
   while allowing Pinterest to scrape the original
   ============================================= */
.prose .wp-block-image img,
.prose figure img {
    aspect-ratio: 2 / 3 !important;
    object-fit: cover !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 2rem auto !important;
    display: block !important;
    border-radius: 0.75rem !important; /* Matches Tailwind rounded-xl */
}
