div.wp-block-post-content:has(div#carte) {
    padding-left: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--40);
 }

div#carte {
    display: none;
}

p#message-carte-desactivee {
    display: block;
    margin-block-start: 3rem;
    padding: 1rem;
    background-color: var(--wp--preset--color--accent-4);
    border-radius: var(--bords-arrondis);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 400;
}

div#leaflet {
    height: 60vh;
    font-family: inherit;
    border-radius: 1.5rem;
    z-index: 1;
}

div#leaflet div.leaflet-control-attribution {
    background-color: var(--wp--preset--color--accent-3) !important;
    color: var(--wp--preset--color--accent-2) !important;
}

div#leaflet div.leaflet-control-attribution a {
    color: var(--wp--preset--color--accent-2) !important;
}

div.leaflet-popup-content-wrapper,
div.leaflet-popup-tip {
    background-color: black;
}

div.leaflet-tooltip {
    width: 18.75rem;
    height: 12rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: black;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

div.leaflet-tooltip img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

div.cv-tooltip-container p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0) 100%);
    margin: 0;
    padding: 0.5rem 0;
    color: white;
    text-align: center;
    font-weight: 400;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    z-index: 999;
}



h2:has(+ #galerie-photos) {
    margin-block-start: 4rem;
}

div#galerie-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

div#galerie-photos img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--wp--preset--spacing--30);
    transition: transform 0.3s ease;
    cursor: zoom-in;
    opacity: 0.8;
    transition: opacity 0.4s ease, transform 0.4s ease;
    background: #3498db;
}

div#galerie-photos img:hover {
    transform: scale(1.03);
    opacity: 1;
}

div#galerie-photos figcaption {
    margin-block-start: 0.5rem;
}


/*
 * MEDIUM
 */
 @media screen and (min-width: 60rem) {

    div#carte {
        display: block;
        margin-block-start: 4rem;
    }

    p#message-carte-desactivee {
        display: none;
    }

    div#galerie-photos {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*
 * LARGE
 */
 @media screen and (min-width: 80rem) {

}
