.elementor-11334 .elementor-element.elementor-element-ed1a433{--display:flex;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}/* Start custom CSS for container, class: .elementor-element-ed1a433 */#site-header{display:none!important;}/* End custom CSS */
/* Start custom CSS *//* 1. Cache le header/footer et le logo print sur cette page spécifique */
.single-attachment header, 
.single-attachment footer, 
.single-attachment .pdf-cover-page,
.single-attachment .print-only {
    display: none !important;
}

/* 2. Conteneur principal (Canvas) */
.canvas-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: #fff;
    padding: 20px;
    position: relative;
}

/* 3. L'IMAGE : On force la hauteur à 85% de l'écran maximum */
.image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.full-res-popup-image {
    max-height: 85vh !important;
    width: auto !important;
    object-fit: contain;
}

/* 4. Bouton Fermer (Ajusté pour être au niveau de l'image) */
.close-popup-btn {
    position: absolute;
    top: 50px; /* Descendu pour s'aligner avec le haut de l'image */
    right: 40px;
    width: 35px; /* Légèrement réduit pour l'élégance */
    color: #000;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.close-popup-btn:hover {
    opacity: 1;
}

/* 5. Infos ACF (Titre et Meta) */
.info-action-wrapper {
    text-align: center;
    max-width: 800px;
}

.photo-custom-title {
    font-size: 16px;
    font-weight: normal;
    font-style:italic;
     color: #000;
    margin-bottom: 5px;
}

.photo-custom-meta {
    font-size: 13px;
    color: #000;
    margin-bottom: 15px;
    font-style:italic;
}

/* 6. STYLE BOUTON FAVORIS (Noir forcé) */
body .simplefavorite-button, 
body .simplefavorite-button *, 
body .simplefavorite-button:hover {
    color: #000000 !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #000000 !important;
}

.simplefavorite-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px;
    background: transparent !important;
    border: none !important;
    font-size: 13px !important;
    padding:0 0 0 0!important;
}

.simplefavorite-button::before {
    content: "";
    width: 17px;
    height: 17px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

.simplefavorite-button.active::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}/* End custom CSS */