/**
 * Theme Name:     Astra Child
 * Author:         Brainstorm Force
 * Template:       astra
 * Text Domain:	   astra-child
 * Description:    The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 5,700+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
 */

/* Trick pour le header des post */
body.single-post header.site-header,
body.blog header.site-header,
body.category header.site-header,
body.archive header.site-header,
body.tag header.site-header,
body.search header.site-header,
body.author header.site-header,
body.single-event header.site-header,
body.post-type-archive-event header.site-header {
    border-color: inherit;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    background-image: url(https://thecormorantfreediving.com/wp-content/uploads/2025/04/DJI_0896-scaled.jpg);
    background-clip: padding-box;
}

/* Conteneur image : centre le contenu */
.home-events .uagb-post__image {
    text-align: center; /* centre l'image inline */
}

/* Image : réduit la taille, garde les proportions avec hauteur max */
.home-events .uagb-post__image img {
    display: block;          /* plus propre qu'inline-block ici */
    margin: 0 auto;          /* centre horizontalement */
    max-height: 230px;       /* fixe une hauteur max */
    width: auto;             /* largeur s’adapte automatiquement */
    object-fit: contain;     /* évite le rognage, conserve l’image complète */
}



