.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("assets/organic-shape.svg") center / contain no-repeat;
    mask: url("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(12px, 1.5vw, 22px) clamp(14px, 1.7vw, 24px);
    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: clamp(16px, 1.67vw, 24px);
    font-weight: var(--wp--custom--lpd--weight--light, 300);
    font-style: normal;
    line-height: 1.15;
    overflow-wrap: anywhere;
    transform: rotate(-2.5deg);
}

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

.wp-block-quote.is-style-lpd-framed-testimonial > cite {
    display: block;
    color: var(--wp--preset--color--purple, #43358b);
    font-size: inherit;
    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;
    }

}
