/**
 * General WP settings
 */
body:not(.wp-admin) {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 512 512'><circle r='192' cx='256' cy='256' stroke='%23bb0000' stroke-width='128' fill='none' /></svg>") 8 8, crosshair !important;
}
body:not(.wp-admin) :where(a:hover) {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 512 512'><circle r='256' cx='256' cy='256' stroke='none' fill='%23bb0000' /></svg>") 8 8, crosshair !important;
}
body:not(.wp-admin) .wp-lightbox-container img {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 512 512'><circle r='256' cx='256' cy='256' stroke='none' fill='%23bb0000' /></svg>") 8 8, crosshair !important;
}
body:not(.wp-admin) .wp-lightbox-overlay {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 512 512'><circle r='192' cx='256' cy='256' stroke='%23bb0000' stroke-width='128' fill='none' /></svg>") 8 8, crosshair !important;
}
/* remove WP theme outline on focus elements */
:where(.wp-site-blocks :focus) {
    outline-width: 0 !important;
    outline-style: inherit !important;
}
/* reset WP theme list style (bullet points) */
ul.wp-block-list {
    margin-top: 0.25rem !important;
    list-style: none;
    padding-left: 0 !important;
}
:root :where(.wp-block-list li) {
    margin-top: 0;
}
/* add justified text align support */
.has-text-align-justify {
    text-align: justify;
}



/**
 * Display gallery grid with masonry layout
 */
@media screen and (min-width: 600px) {
    .wp-block-group.is-layout-grid/* ,
    .wp-block-post-template.is-layout-grid */ {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
        grid-auto-rows: 1px;
        gap: var(--wp--preset--spacing--30);
        row-gap: 0;
    }
    /* Remove default WP gallery item width */
    .wp-block-group.is-layout-grid figure/* ,
    .wp-block-post-template.is-layout-grid .wp-block-post */ {
        width: 100% !important;
    }
}



/**
 * Add Fade in effect for masonry layout on scroll
 */
 .wp-block-group.is-layout-grid figure.fade-out/* ,
 .wp-block-post-template.is-layout-grid .wp-block-post.fade-out */ {
    transform: translateY(100px);
    opacity: 0;
    transition: all 1s ease-out;
}

.wp-block-group.is-layout-grid figure.fade-in/* ,
.wp-block-post-template.is-layout-grid .wp-block-post.fade-in */ {
    transform: translateY(0);
    opacity: 1;
}



/**
 * Galleries hover effects
 */
@media screen and (min-width: 600px) {
    .wp-block-group.is-layout-grid figure/* ,
    .wp-block-post-template.is-layout-grid .wp-block-post */ {
        transition: all 0.4s ease-in-out;
    }
    .wp-block-group.is-layout-grid:has(figure:hover) figure:not(:hover)/* ,
    .wp-block-post-template.is-layout-grid:has(.wp-block-post:hover) .wp-block-post:not(:hover) */ {
        opacity: 0.5 !important;
    }
}
/* patch for Lightbox button position */
.wp-lightbox-container button {
    top: 16px !important;
    right: 16px !important;
}



/**
 * Posts title hover effects
 */
@media screen and (min-width: 600px) {
    .wp-block-post-template.is-layout-grid .wp-block-post .wp-block-post-title,
    .wp-block-post-template.is-layout-grid .wp-block-post .wp-block-post-excerpt {
        opacity: 0;
        transform: translateY(-1em);
        transition: all 0.4s ease-out;
    }
    .wp-block-post-template.is-layout-grid .wp-block-post .wp-block-post-excerpt {
        transform: translateY(-3em);
    }
    .wp-block-post-template.is-layout-grid .wp-block-post:hover .wp-block-post-title,
    .wp-block-post-template.is-layout-grid .wp-block-post:hover .wp-block-post-excerpt {
        opacity: 1;
        transform: translateY(0);
    }
}



/**
 * Posts texts on multiple columns
 */
@media screen and (min-width: 792px) {
    #texte {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
        text-align: justify;
        gap: var(--wp--preset--spacing--50);
    }
}
@media screen and (min-width: 1216px) {
    #texte {
        -webkit-column-count: 3;
        -moz-column-count: 3;
        column-count: 3;
    }
}



/**
 * Contact Form 7 styles
 */
 /* Remove unwanted margin on top of wcf7 form */
 .wp-block-contact-form-7-contact-form-selector {
    margin-block-start: -20px !important;
 }
 .wpcf7-form-control {
    width: calc(100% - 2.5em - 4px);
    border: solid 2px var(--wp--preset--color--contrast-2);
    padding: 0.5em 1.25em;
    font-family: inherit;
    font-size: inherit;
    background-color: inherit;
}
.wpcf7-form-control.wpcf7-submit {
    width: 100%;
    border: 0;
    color: var(--wp--preset--color--base);
    background-color: var(--wp--preset--color--contrast-2);
    cursor: pointer;
}
.wpcf7-form-control.wpcf7-submit:hover {
    background-color: var(--wp--preset--color--contrast);
}



.splide__video__wrapper {
    background-color: transparent;
}