/*
 Theme Name:   Divi Child
 Theme URI:    http://elegantthemes.com/
 Description:  Divi Child Theme
 Author:       ElegantThemes
 Author URI:   http://elegantthemes.com
 Template:     Divi
 Version:      0.1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags: responsive-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, featured-images, full-width-template, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready
 Text Domain:  divi-child-theme
*/

/* ==== Add your own styles below this line ====
 * -------------------------------------------- */

.et-social-linkedin a.icon:before {
font-family: 'ETmodules';
content: '\e09d';
}

.realisations-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
    max-width: 1200px;
    margin: 0 auto 40px;
}
.realisations-masonry-grid:has(.masonry-item:nth-child(1):last-child) {
    column-count: 1;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


.masonry-item {
    break-inside: avoid;
    margin-bottom: 1em;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.masonry-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.masonry-thumb img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 10px;
    z-index: 1;
    position: relative;
}

.masonry-overlay  {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    pointer-events: none;
    text-align: center;
}

.masonry-title h3 {
    color: white;
    font-size: 1.2em;
    margin: 0;
    padding: 0 10px;
    z-index: 3;
}

.masonry-thumb:hover img {
    transform: scale(1.05);
    filter: brightness(70%);
}

.masonry-thumb:hover .masonry-overlay {
    opacity: 1;
}

.masonry-caption {
    color: #fff;

}

@media screen and (max-width: 1024px) {
    .realisations-masonry-grid {
        column-count: 2;
    }
}

@media screen and (max-width: 767px) {
    .realisations-masonry-grid {
        column-count: 1;
    }
}

.twentytwenty-before-label:before {
    content: "Avant" !important;
}
.twentytwenty-after-label:before {
    content: "Après" !important;
}

