/*
Theme Name: BeFlex Child
Theme URI: https://www.eoxia.com
Author: the Eoxia team
Description: Child theme of BeFlex
License: AGPLv3
License URI: https://spdx.org/licenses/AGPL-3.0-or-later.html
Version: 1.0.0
Template: beflex
Text Domain: beflex-child
*/

.wp-block-cover .wp-block-cover__inner-container {
    max-width: var(--wp--style--global--wide-size);
}

.blur {
    backdrop-filter: blur(10px);
}

.block-country .wp-block-post-template {
    text-align: center;
}
.block-country .wp-block-post-template li.wp-block-post {
    display: inline-block;
    margin: 0.5em 0.5em 0 0;
}
.block-country .wp-block-post-template li.wp-block-post h3 {
    margin: 0;
}

.temp-hide {
    display: none !important;
}

.wpdm-link-template.link-template-default .media > .mr-3{
    display: none;
}

/** Hide button if Tool in developpement */
.wp-block-post.instrument.categorie-instruments-en-developpement .wp-block-read-more {
    display: none;
}

/** Fix css in editor **/
body:not(.frontend) .query-slider .wp-block-post-template {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5em !important;
}
body:not(.frontend) .query-slider .wp-block-post-template .wp-block-post {
    flex-basis: calc(25% - 0.5em) !important;
}

/** Fix square image of carousel */
.cta-chercheurs .wp-block-post .wp-block-post-featured-image img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
}
.wp-block-wpgp-listing .wp-block-post-featured-image img {
    border-radius: 6px;
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
}

/** Boutons moins larges en mobile */
@media ( max-width: 599px ) {
    :root :where(.wp-block-button .wp-block-button__link) {
        padding-left: 1.2em;
        padding-right: 1.2em;
    }
}

/** Padding moins important sur les blocks en mobile */
@media ( max-width: 599px ) {
    :where(.wp-block-group.has-background) {
        padding: 1.25em 1.9em;
    }
}

/** Ancre mieux adaptées */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}