.am-mockup-frame {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    aspect-ratio: 1.43;
    border-radius: 100px 24px 24px 24px;
}

.am-mockup-stage {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    aspect-ratio: 588 / 442;
}

.am-mockup .am-mockup-base { display: block; width: 100%; height: 100%; border-radius: 0; }

.am-mockup-screen {
    position: absolute;
    inset: 0;
    clip-path: polygon(30.952381% 24.886878%, 80.782313% 14.705882%, 75.340136% 69.909502%, 25.170068% 71.266968%);
    background: #101b2b;
}

.am-mockup .am-mockup-screen img {
    position: absolute;
    left: 25.17%;
    top: 14.7%;
    width: 55.62%;
    height: 56.57%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
}
.am-mockup .am-mockup-screen.am-mockup-contain img { object-fit: contain; object-position: center; }

/* With a measured photo width, project the full screenshot onto the screen. */
.am-mockup-stage[data-mockup-projected] .am-mockup-screen {
    inset: 0 auto auto 0;
    width: 320px;
    height: 200px;
    clip-path: none;
    transform-origin: top left;
    transform: var(--am-mockup-transform);
}
.am-mockup-stage[data-mockup-projected] .am-mockup-screen img { inset: 0; width: 100%; height: 100%; }

.am-mockup figcaption { color: var(--am-texte-secondaire); font-size: 12px; margin-top: 6px; }
.am-mockup-editor-controls { display: grid; gap: 10px; padding-block: 12px; }

@media (max-width: 767px) {
    .am-mockup-frame { border-radius: 65px 18px 18px 18px; }
}
