/* Facebook — Main Zone
   Scale-to-FIT: the whole post is always visible, scaled uniformly with
   Math.min so no cropping. Parent flexbox centers the iframe; JS only
   sets `scale()` on transform so positioning stays bulletproof through
   htmx slide swaps. */

.fb-main-wrap {
    width: 100cqw;
    height: 100cqh;
    position: relative;
    overflow: hidden;
    background: #F0F2F5;
    container-type: size;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-main-wrap > .fb-anim-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.fb-main-wrap iframe {
    position: relative;
    z-index: 1;
    width: 500px !important;
    height: 575px !important;
    max-width: none !important;
    max-height: none !important;
    border: 1cqmin double #1877F2 !important;
    border-radius: 0 !important;
    box-shadow: 0 0.4cqmin 1.2cqmin rgba(0,0,0,0.08), 0 1.2cqmin 3cqmin rgba(0,0,0,0.12);
    transform-origin: center center;
    background: #fff;
    flex-shrink: 0;
}

.fb-main-wrap,
.fb-main-wrap * {
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}
