/* "Images du site" photos inside Elementor sections (all pages).
   The plugin prints each photo as a CSS variable (--uc-img-<key>, phone version --uc-img-<key>-m);
   an Elementor element with one of these classes shows the owner's current photo.
   Elementor classes give the layout (page-hero, photo-organic); these rules only add the picture. */

/* page headers (About, Contact): olive veil so the light text stays readable on any photo */
.elementor .img-about-header,
.elementor .img-contact-header { background-color: var(--color-charcoal); background-size: cover; background-position: center; }
.elementor .img-about-header { background-image: linear-gradient(90deg, rgba(51, 47, 45, .92) 0%, rgba(51, 47, 45, .72) 55%, rgba(51, 47, 45, .3) 100%), var(--uc-img-about_header, none); }
.elementor .img-contact-header { background-image: linear-gradient(90deg, rgba(51, 47, 45, .92) 0%, rgba(51, 47, 45, .72) 55%, rgba(51, 47, 45, .3) 100%), var(--uc-img-contact_header, none); }
[dir="rtl"] .elementor .img-about-header { background-image: linear-gradient(270deg, rgba(51, 47, 45, .92) 0%, rgba(51, 47, 45, .72) 55%, rgba(51, 47, 45, .3) 100%), var(--uc-img-about_header, none); }
[dir="rtl"] .elementor .img-contact-header { background-image: linear-gradient(270deg, rgba(51, 47, 45, .92) 0%, rgba(51, 47, 45, .72) 55%, rgba(51, 47, 45, .3) 100%), var(--uc-img-contact_header, none); }
@media (max-width: 767px) {
	.elementor .img-about-header, [dir="rtl"] .elementor .img-about-header { background-image: linear-gradient(180deg, rgba(51, 47, 45, .6) 0%, rgba(51, 47, 45, .9) 70%), var(--uc-img-about_header-m, var(--uc-img-about_header, none)); }
	.elementor .img-contact-header, [dir="rtl"] .elementor .img-contact-header { background-image: linear-gradient(180deg, rgba(51, 47, 45, .6) 0%, rgba(51, 47, 45, .9) 70%), var(--uc-img-contact_header-m, var(--uc-img-contact_header, none)); }
}

/* photos (fallback: a soft sand gradient until the owner adds the photo) */
.elementor .img-about-story,
.elementor .img-about-workshop,
.elementor .img-about-quality,
.elementor .img-contact-place { background-color: var(--color-sand); background-size: cover; background-position: center; }
.elementor .img-about-story { background-image: var(--uc-img-about_story, linear-gradient(135deg, var(--color-sand), var(--color-beige))); }
.elementor .img-about-workshop { background-image: var(--uc-img-about_workshop, linear-gradient(135deg, var(--color-beige), var(--color-sand))); }
.elementor .img-about-quality { background-image: var(--uc-img-about_quality, linear-gradient(135deg, var(--color-sand), var(--color-beige))); }
.elementor .img-contact-place { background-image: var(--uc-img-contact_place, linear-gradient(135deg, var(--color-beige), var(--color-sand))); }

/* ===== 0.9.8 (T17): photos fill their frames, one radius everywhere, no space reserved for missing photos ===== */
:root { --uc-img-r: 24px; }
@media (max-width: 767px) { :root { --uc-img-r: 18px; } }

/* photo blocks: the picture fills the block (background cover), same rounded corners as every photo of the site, 4:3 instead of
   a fixed minimum height (no stretched empty box) */
.elementor .photo-organic, .elementor .photo-organic--flip, .elementor .home-about-photo,
[dir="rtl"] .elementor .photo-organic, [dir="rtl"] .elementor .photo-organic--flip, [dir="rtl"] .elementor .home-about-photo {
	border-radius: var(--uc-img-r) !important; min-height: 0 !important; aspect-ratio: 4 / 3; align-self: center; padding: 0 !important;
}

/* a photo slot without a real photo (empty or « EXEMPLE » sample): the photo block is not shown, its text uses the full width.
   The slot stays in « Images du site »; as soon as the owner adds a photo the two-column layout comes back by itself. */
.uc-noimg-about_story .elementor .img-about-story,
.uc-noimg-about_workshop .elementor .img-about-workshop,
.uc-noimg-about_quality .elementor .img-about-quality,
.uc-noimg-home_about .elementor .home-about-photo { display: none !important; }
.uc-noimg-about_story .elementor .e-con:has(> .img-about-story),
.uc-noimg-about_workshop .elementor .e-con:has(> .img-about-workshop),
.uc-noimg-about_quality .elementor .e-con:has(> .img-about-quality),
.uc-noimg-home_about .elementor .e-con:has(> .home-about-photo) { grid-template-columns: minmax(0, 1fr) !important; }
.uc-noimg-about_story .elementor .e-con:has(> .img-about-story) > .e-con,
.uc-noimg-about_workshop .elementor .e-con:has(> .img-about-workshop) > .e-con,
.uc-noimg-about_quality .elementor .e-con:has(> .img-about-quality) > .e-con,
.uc-noimg-home_about .elementor .e-con:has(> .home-about-photo) > .e-con { max-width: 820px; }

/* page headers and the dark band: height = their text (no fixed minimum height) */
.elementor .page-hero { min-height: 0 !important; padding: 36px 44px !important; }
.elementor .home-band { min-height: 0 !important; padding: 44px 52px !important; }
@media (max-width: 767px) {
	.elementor .page-hero { padding: 24px 20px !important; }
	.elementor .home-band { padding: 28px 20px !important; }
}
