/* 
Theme Name: Galerie Chauvy
Theme URI: https://www.galeriefrance.com
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Pontonweb
Author: Pontonweb
Author URI: https://pontonweb.fr
Template: hello-elementor
Version: 3.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* Textes */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

@media screen and  (max-width : 1440px) {
    h1, h1 span { font-size: calc(24px + (42 - 24) * ((100vw - 320px) / (1440 - 320)))!important; line-height: calc(22px + (44 - 22) * ((100vw - 320px) / (1440 - 320)))!important;}
    h2, h2 span { font-size: calc(18px + (26 - 18) * ((100vw - 320px) / (1440 - 320)))!important; line-height: calc(20px + (28 - 20) * ((100vw - 320px) / (1440 - 320)))!important;}
    h3, h3 span { font-size: calc(15px + (24 - 15) * ((100vw - 320px) / (1440 - 320)))!important; line-height: calc(18px + (26 - 18) * ((100vw - 320px) / (1440 - 320)))!important;}
    }

    
/* Menu */
.elementor-widget-container a:focus{outline-width: none!important; outline: 0px solid #fff!important;}

h1, h2, h3, h4, h5, h6 {
    margin-block-start: 0px;
    margin-block-end: 0px;
}

.e-loop-item-711 .elementor-element.elementor-element-29e549a:not(.elementor-motion-effects-element-type-background), 
.e-loop-item-711 .elementor-element.elementor-element-29e549a > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.e-loop-item-687 .elementor-element.elementor-element-29e549a:not(.elementor-motion-effects-element-type-background), 
.e-loop-item-687 .elementor-element.elementor-element-29e549a > .elementor-motion-effects-container > .elementor-motion-effects-layer 
   
{ background-repeat: no-repeat; background-size: cover; }
    
.justifier .elementor-widget-container {text-align: justify!important;}

.elementor-element-5972e38 .elementor-loop-container.elementor-grid {
    display: flex;
    flex-wrap: wrap; /* Permet le retour à la ligne pour les éléments */
    gap: 20px; /* Espacement entre les éléments */
    justify-content: space-between; /* Répartit uniformément les éléments */
}

.elementor-element-5972e38 .elementor-loop-container.elementor-grid > * {
    flex: 0 1 calc(33.333% - 20px); /* Chaque élément occupe 1/3 de la largeur, moins l'espacement */
    /* background-color: #f9f9f9; /* Optionnel : Couleur de fond */
    padding: 5px; /* Optionnel : Espacement interne */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optionnel : Ombre */
    justify-items: center;
}
.elementor-element-5c5d2f5 {text-align: center;}
.artiste-liste-g .elementor-element-5c5d2f5 {text-align: left;}
.elementor.elementor-920 .e-con>.e-con-inner { padding-block-start: 0; padding-block-end: 0; }

@media (max-width: 880px) {
    .elementor-element-5972e38 .elementor-loop-container.elementor-grid > * { flex: 0 1 calc(50% - 20px); }
    .elementor-1026 .elementor-element.elementor-element-a861094 { --width: 49%; }
    .elementor-1026 .elementor-element.elementor-element-15b181e { --width: 49%; }
        
}

@media (min-width:591px) {

    .elementor-1026 .elementor-element.elementor-element-a861094 { --width: 49%; }
    .elementor-1026 .elementor-element.elementor-element-15b181e { --width: 49%; }
}
@media (max-width:590px) {

    .elementor-1026 .elementor-element.elementor-element-a861094 { --width: 100%; }
    .elementor-1026 .elementor-element.elementor-element-15b181e { --width: 100%; }
}


@media (max-width: 480px) {
    .elementor-element-5972e38 .elementor-loop-container.elementor-grid > *  {
        flex: 0 1 calc(100%); /* Chaque élément occupe 1/3 de la largeur, moins l'espacement */
    }
}

.boucle-actu h4.elementor-heading-title, .boucle-expo h4.elementor-heading-title  {font-weight: 700!important; text-align: center!important;}
.boucle-actu .elementor-widget-container, .boucle-expo .elementor-widget-container {font-weight: 500!important; font-size: 14px!important; }
.boucle-actu .elementor-widget-container { text-align: center!important;}
#le-cv .elementor-widget-container {overflow: hidden; word-wrap: break-word; -webkit-hyphens: auto; hyphens: auto;}

.oeuvres-container { display: flex; flex-wrap: wrap;  justify-content: space-between; gap: 60px;}

.oeuvre-item { display: flex; flex-direction: column; align-items: center; width: calc(33.33% - 50px); }

@media (max-width: 880px) {
    .oeuvre-item { width: calc(50% - 40px); }
   
}

@media (max-width: 590px) {
    .oeuvre-item { width: 100% ; }
    .oeuvres-container { gap: 30px; }
   
}



.oeuvre-image img { max-width: 100%; max-height: 400px; /* border-radius: 8px; min-height: 400px;*/ }

.oeuvre-texte { text-align: center; line-height: 16px; }

.oeuvre-ligne1 { font-weight: bold; font-size: 16px; margin-top: 10px; text-transform: uppercase; line-height: 16px;  }

.oeuvre-ligne2 { color: #1E1C20; font-size: 16px; margin: 0px 0; }

.oeuvre-ligne3 { color: #1E1C20; font-size: 16px; margin: 2px 0; }

.elementor-element-8b5c021 {text-align: justify;}

/* ----------------- grille de boucle En Cours ------------------------------------------- */
.elementor-element-082e85c .elementor-grid { display: flex; flex-wrap: wrap;  justify-content: space-between;}
.elementor-element-082e85c .elementor-grid .elementor-1154:nth-of-type(1){width: 100%;}
.elementor-element-082e85c .elementor-grid .elementor-1154:nth-of-type(2){width: 45%;}
.elementor-element-082e85c .elementor-grid .elementor-1154:nth-of-type(3){width: 45%;}

/* ----------------- grille de boucle Hors les murs ------------------------------------------- */
.elementor-element-6229291 .elementor-grid { display: flex; flex-wrap: wrap;  justify-content: space-between;}
.elementor-element-6229291 .elementor-grid .elementor-1154:nth-of-type(1){width: 100%;}
.elementor-element-6229291 .elementor-grid .elementor-1154:nth-of-type(2){width: 45%;}
.elementor-element-6229291 .elementor-grid .elementor-1154:nth-of-type(3){width: 45%;}


/* ----------------- grille de boucle Expos images ------------------------------------------- */

.exposition-container { display: flex; flex-wrap: wrap; gap: 80px; /* Espacement entre les blocs */ justify-content: space-between; }

.exposition-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px; }

.exposition-item img {  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);}

.exposition-item.half-width { flex: 0 0 calc(48% - 20px); /* Largeur 50% avec un écart de 20px */ }

@media (max-width: 1024px) {
    .exposition-item.half-width { flex: 0 0 calc(46% - 20px); /* Largeur 50% avec un écart de 20px */ }
}
@media (max-width: 590px) {
    .exposition-item.half-width { flex: 0 0 calc(100%); /* Largeur 50% avec un écart de 20px */ }
}

.exposition-item.full-width { flex: 0 0 100%; /* Largeur 100% */ }

.exposition-image img { max-width: 100%; height: auto; display: block; }

.exposition-libelle { margin-top: 10px; font-size: 18px; color: #1F1D20; font-weight: bold; }


/* ----------------- liste des artistes  ------------------------------------------- */

.artistes-row .artistes-bloc {display: flex;  flex-direction: row; justify-content: space-between;}


/* ----------------- grille de boucle Expos artiste liste ------------------------------------------- */
.artistes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between; /* Centrer les colonnes ou ajuster l'espacement */
}

.artiste-item {
   /* flex: 1 1 calc(25% - 20px); /* Chaque élément prend 25% moins l'espacement */
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 20px;
}

.artiste-item img {
    max-width: 100%;
    height: auto;
}

.artiste-titre h4 {
    margin-top: 10px;
    font-size: 18px;
    color: #1F1D20;
    font-weight: bold;
}

/* Adaptabilité pour les écrans plus petits */
@media (max-width: 888px) {
    .artiste-item {
        flex: 1 1 calc(50% - 20px); /* Deux colonnes sur les petits écrans */
    }
}

@media (max-width: 590px) {
    .artiste-item {
        flex: 1 1 100%; /* Une seule colonne sur les très petits écrans */
    }
}



/*  -------------------------- READ MORE ------------------------------*/
.acf-more-content { margin-bottom: 20px; }

.acf-more-excerpt { margin-bottom: 10px; }

.acf-more-toggle { display: inline-block; padding: 10px 15px; background-color: #000; color: white; border: none; cursor: pointer; border-radius: 4px; transition: background-color 0.3s; }

.acf-more-toggle:hover { background-color: #005177; }

.acf-more-full { margin-top: 10px; display: none; /* Masqué par défaut */ }

.elementor.elementor-1401 {max-width: 406px;}