.lpd-framed-image,
.lpd-framed-image * {
    box-sizing: border-box;
}

.lpd-framed-image {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 1.35;
    margin: 0;
    font-family: var(--wp--preset--font-family--roboto-condensed, "Roboto Condensed", sans-serif);
}

.lpd-framed-image__shape {
    position: absolute;
    z-index: -1;
    inset: -9% -9% -3% 9%;
    background: var(--lpd-visual-shape, #00b1eb);
    -webkit-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/organic-shape.svg") center / contain no-repeat;
    mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/organic-shape.svg") center / contain no-repeat;
}

.lpd-framed-image.is-shape-circle .lpd-framed-image__shape {
    inset: auto;
    top: 50%;
    left: 4%;
    width: 92%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translateY(-50%);
    -webkit-mask: none;
    mask: none;
}

.lpd-framed-image.is-shape-none .lpd-framed-image__shape {
    display: none;
}

.lpd-framed-image__frame {
    position: absolute;
    inset: 2% 3% 10% 0;
    overflow: hidden;
    margin: 0;
    border: 3px solid var(--lpd-visual-frame, #111);
    background: #fff;
    box-shadow: 8px 9px 0 0 var(--lpd-visual-frame, #111);
    transform: rotate(var(--lpd-visual-angle, 8deg));
}

.lpd-framed-image__frame > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lpd-framed-image__badge {
    position: absolute;
    right: -2%;
    bottom: -1%;
    z-index: 1;
    max-width: 78%;
    padding: 14px 18px;
    border: 3px solid var(--lpd-visual-frame, #111);
    background: var(--lpd-visual-badge, #ffed00);
    box-shadow: 8px 9px 0 0 var(--lpd-visual-frame, #111);
    color: var(--lpd-visual-ink, #111);
    transform: rotate(-3deg);
}

.lpd-framed-image .lpd-framed-image__value,
.lpd-framed-image .lpd-framed-image__label {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-weight: var(--wp--custom--lpd--weight--black, 900);
    line-height: 1.05;
    text-transform: none;
}

.lpd-framed-image .lpd-framed-image__value {
    font-size: var(--wp--preset--font-size--x-large, 32px);
}

.lpd-framed-image .lpd-framed-image__label {
    margin-block-start: 3px;
    font-size: var(--wp--preset--font-size--medium, 24px);
}

.lpd-framed-image__placeholder {
    display: grid;
    height: 100%;
    min-height: 180px;
    place-items: center;
    background: #f3f3f3;
}

.is-style-lpd-eyebrow.is-style-lpd-eyebrow {
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 9px 11px;
    font-family: var(--wp--preset--font-family--roboto-condensed, "Roboto Condensed", sans-serif);
    font-size: var(--wp--preset--font-size--eyebrow, 16px);
    font-weight: var(--wp--custom--lpd--weight--extrabold, 800);
    line-height: 1.15;
    text-transform: uppercase;
    transform: rotate(-2.5deg);
    transform-origin: left center;
}

.wp-block-quote.is-style-lpd-framed-testimonial {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: clamp(20px, 2.2vw, 32px);
    border: 3px solid #111;
    background: #eff1f2;
    box-shadow: 8px 9px 0 0 #111;
    color: #555;
    font-family: var(--wp--preset--font-family--roboto-condensed, "Roboto Condensed", sans-serif);
    font-size: 20px;
    font-weight: var(--wp--custom--lpd--weight--light, 300);
    font-style: normal;
    line-height: 1.2;
    overflow-wrap: anywhere;
    transform: rotate(-2.5deg);
}

.wp-block-quote.is-style-lpd-framed-testimonial::before {
    content: "Témoignage";
    display: table;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    margin: 0 0 18px;
    padding: 6px 12px;
    border: 2px solid #111;
    background: var(--tt-cartouche-color, var(--wp--preset--color--purple, #43358b));
    box-shadow: 3px 3px 0 #111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    transform: rotate(2deg);
    transform-origin: left center;
}

.wp-block-quote.is-style-lpd-framed-testimonial > p {
    margin-block: 0 22px;
    color: inherit;
    font-size: inherit;
    font-weight: var(--wp--custom--lpd--weight--light, 300);
    text-align: center;
}

.wp-block-quote.is-style-lpd-framed-testimonial > p,
.wp-block-quote.is-style-lpd-framed-testimonial > p * {
    font-style: italic !important;
}

.wp-block-quote.is-style-lpd-framed-testimonial > p:first-of-type::before {
    content: "«\00a0";
}

.wp-block-quote.is-style-lpd-framed-testimonial > p:last-of-type::after {
    content: "\00a0»";
}

.wp-block-quote.is-style-lpd-framed-testimonial > cite {
    display: block;
    color: var(--wp--preset--color--purple, #43358b);
    font-size: 22px;
    font-weight: var(--wp--custom--lpd--weight--light, 300);
    font-style: normal;
}

.wp-block-quote.is-style-lpd-framed-testimonial > cite strong {
    font-weight: var(--wp--custom--lpd--weight--bold, 700);
}

.wp-block-group.is-style-lpd-key-figure {
    margin: 0;
    color: #111;
    font-family: var(--wp--preset--font-family--roboto-condensed, "Roboto Condensed", sans-serif);
    text-align: center;
}

.is-style-lpd-key-figure > .lpd-key-figure__value {
    margin: 0;
    color: inherit;
    font-size: var(--wp--preset--font-size--figure, 40px);
    font-weight: var(--wp--custom--lpd--weight--black, 900);
    line-height: 1.05;
}

.is-style-lpd-key-figure > .lpd-key-figure__label {
    margin: 6px 0 0;
    color: inherit;
    font-size: var(--wp--preset--font-size--figure-label, 20px);
    font-weight: var(--wp--custom--lpd--weight--semibold, 600);
    line-height: 1.15;
}

@media (max-width: 781px) {
    .lpd-framed-image .lpd-framed-image__value {
        font-size: 28px;
    }

    .lpd-framed-image .lpd-framed-image__label {
        font-size: var(--wp--preset--font-size--figure-label, 20px);
    }

    .lpd-framed-image__badge {
        padding: 10px 13px;
    }

}

/* The five supplied silhouettes can be colored independently of their SVG. */
.lpd-framed-image.is-shape-red .lpd-framed-image__shape { -webkit-mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-red.svg"); mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-red.svg"); }
.lpd-framed-image.is-shape-orange .lpd-framed-image__shape { -webkit-mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-orange.svg"); mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-orange.svg"); }
.lpd-framed-image.is-shape-blue .lpd-framed-image__shape { -webkit-mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-blue.svg"); mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-blue.svg"); }
.lpd-framed-image.is-shape-green .lpd-framed-image__shape { -webkit-mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-green.svg"); mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-green.svg"); }
.lpd-framed-image.is-shape-yellow .lpd-framed-image__shape { -webkit-mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-yellow.svg"); mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-yellow.svg"); }
.lpd-framed-image.has-custom-shape-position .lpd-framed-image__shape {
    inset: auto;
    left: var(--lpd-visual-shape-x);
    top: var(--lpd-visual-shape-y);
    width: 110%;
    height: 110%;
    transform: translate(-50%, -50%);
}
.lpd-framed-image .lpd-framed-image__shape-secondary {
    position: absolute;
    z-index: -1;
    left: var(--lpd-visual-shape-secondary-x, 25%);
    top: var(--lpd-visual-shape-secondary-y, 75%);
    width: 52%;
    aspect-ratio: 1;
    background: var(--lpd-visual-shape-secondary, #FFED00);
    -webkit-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/organic-shape.svg") center / contain no-repeat;
    mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/organic-shape.svg") center / contain no-repeat;
    transform: translate(-50%, -50%) rotate(-10deg);
    pointer-events: none;
}
.lpd-framed-image.is-shape-secondary-red .lpd-framed-image__shape-secondary { -webkit-mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-red.svg"); mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-red.svg"); }
.lpd-framed-image.is-shape-secondary-orange .lpd-framed-image__shape-secondary { -webkit-mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-orange.svg"); mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-orange.svg"); }
.lpd-framed-image.is-shape-secondary-blue .lpd-framed-image__shape-secondary { -webkit-mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-blue.svg"); mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-blue.svg"); }
.lpd-framed-image.is-shape-secondary-green .lpd-framed-image__shape-secondary { -webkit-mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-green.svg"); mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-green.svg"); }
.lpd-framed-image.is-shape-secondary-yellow .lpd-framed-image__shape-secondary { -webkit-mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-yellow.svg"); mask-image: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-yellow.svg"); }
.lpd-framed-image.is-shape-secondary-circle .lpd-framed-image__shape-secondary { -webkit-mask: none; mask: none; border-radius: 50%; }

/* Native Image blocks keep their current page styling until a shape is chosen. */
:is(.wp-site-blocks figure.wp-block-image.lpd-image-decorated, .editor-styles-wrapper .block-editor-block-list__block.lpd-image-decorated figure.wp-block-image) {
    position: relative;
    isolation: isolate;
    overflow: visible;
}
:is(.wp-site-blocks figure.wp-block-image.lpd-image-decorated, .editor-styles-wrapper .block-editor-block-list__block.lpd-image-decorated figure.wp-block-image) :is(img, a, figcaption) {
    position: relative;
    z-index: 1;
}
:is(.wp-site-blocks figure.wp-block-image.lpd-image-decorated:not(.lpd-image-decorated--inherit), .editor-styles-wrapper .block-editor-block-list__block.lpd-image-decorated:not(.lpd-image-decorated--inherit) figure.wp-block-image)::before {
    content: "";
    position: absolute;
    inset: auto;
    left: var(--lpd-image-shape-x, 50%);
    top: var(--lpd-image-shape-y, 50%);
    width: 82%;
    height: auto;
    aspect-ratio: 1;
    z-index: 0;
    background: var(--lpd-image-shape-color, #00B1EB);
    border-radius: 0;
    -webkit-mask: var(--lpd-image-shape-mask) center / contain no-repeat;
    mask: var(--lpd-image-shape-mask) center / contain no-repeat;
    transform: translate(-50%, -50%) rotate(7deg);
    pointer-events: none;
}
:is(.wp-site-blocks figure.wp-block-image.lpd-image-decorated:not(.lpd-image-decorated--inherit), .editor-styles-wrapper .block-editor-block-list__block.lpd-image-decorated:not(.lpd-image-decorated--inherit) figure.wp-block-image)::after {
    content: none;
}
:is(.wp-site-blocks figure.wp-block-image.lpd-image-decorated--none, .editor-styles-wrapper .block-editor-block-list__block.lpd-image-decorated--none figure.wp-block-image)::before,
:is(.wp-site-blocks figure.wp-block-image.lpd-image-decorated--none, .editor-styles-wrapper .block-editor-block-list__block.lpd-image-decorated--none figure.wp-block-image)::after {
    content: none;
}
.lpd-image-decorated--organic { --lpd-image-shape-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/organic-shape.svg"); }
.lpd-image-decorated--red { --lpd-image-shape-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-red.svg"); }
.lpd-image-decorated--orange { --lpd-image-shape-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-orange.svg"); }
.lpd-image-decorated--blue { --lpd-image-shape-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-blue.svg"); }
.lpd-image-decorated--green { --lpd-image-shape-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-green.svg"); }
.lpd-image-decorated--yellow { --lpd-image-shape-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-yellow.svg"); }
.lpd-image-decorated--circle { --lpd-image-shape-mask: none; }
:is(.wp-site-blocks figure.wp-block-image.lpd-image-decorated--circle, .editor-styles-wrapper .block-editor-block-list__block.lpd-image-decorated--circle figure.wp-block-image)::before { -webkit-mask: none; mask: none; border-radius: 50%; }
:is(.wp-site-blocks figure.wp-block-image.lpd-image-decorated[class*="lpd-image-decorated--secondary-"], .editor-styles-wrapper .block-editor-block-list__block.lpd-image-decorated[class*="lpd-image-decorated--secondary-"] figure.wp-block-image)::after {
    content: "";
    position: absolute;
    inset: auto;
    left: var(--lpd-image-shape-second-x, 25%);
    top: var(--lpd-image-shape-second-y, 75%);
    width: 43%;
    height: auto;
    aspect-ratio: 1;
    z-index: 0;
    background: var(--lpd-image-shape-second-color, #FFED00);
    border-radius: 0;
    -webkit-mask: var(--lpd-image-second-mask) center / contain no-repeat;
    mask: var(--lpd-image-second-mask) center / contain no-repeat;
    transform: translate(-50%, -50%) rotate(-11deg);
    pointer-events: none;
}
.lpd-image-decorated--secondary-organic { --lpd-image-second-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/organic-shape.svg"); }
.lpd-image-decorated--secondary-red { --lpd-image-second-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-red.svg"); }
.lpd-image-decorated--secondary-orange { --lpd-image-second-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-orange.svg"); }
.lpd-image-decorated--secondary-blue { --lpd-image-second-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-blue.svg"); }
.lpd-image-decorated--secondary-green { --lpd-image-second-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-green.svg"); }
.lpd-image-decorated--secondary-yellow { --lpd-image-second-mask: url("/wp-content/plugins/lpd-editorial-visuals/assets/shape-yellow.svg"); }
.lpd-image-decorated--secondary-circle { --lpd-image-second-mask: none; }
:is(.wp-site-blocks figure.wp-block-image.lpd-image-decorated--secondary-circle, .editor-styles-wrapper .block-editor-block-list__block.lpd-image-decorated--secondary-circle figure.wp-block-image)::after { -webkit-mask: none; mask: none; border-radius: 50%; }
:is(.wp-site-blocks figure.wp-block-image.lpd-image-home-frame, .editor-styles-wrapper .block-editor-block-list__block.lpd-image-home-frame figure.wp-block-image) img {
    border: 3px solid #111;
    box-shadow: 8px 9px 0 0 #111;
}
