/* ============================================================
   Facebook Post Embedder – Front-end styles
   ============================================================ */

.fbpe-embeds-wrapper {
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 2px solid #e8e8e8;
}

.fbpe-section-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #1877f2;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    gap: .4em;
}

/* ── Individual embed card ──────────────────────────────── */
.fbpe-embed-item {
    background: #fff;
    border: 1px solid #e4e6ea;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    transition: box-shadow .2s;
    overflow: hidden;
}

.fbpe-embed-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* ── Label ──────────────────────────────────────────────── */
.fbpe-embed-label {
    font-weight: 600;
    color: #444;
    margin: 0 0 10px;
    font-size: .95em;
}

/* ── Inner centering wrapper ────────────────────────────── */
.fbpe-embed-inner {
    display: flex;
    justify-content: center;
}

/* ── Fallback link ──────────────────────────────────────── */
.fbpe-fallback-link {
    text-align: center;
    margin: 10px 0 0;
    font-size: .85em;
}

.fbpe-fallback-link a {
    color: #1877f2;
    text-decoration: none;
    border-bottom: 1px dashed #1877f2;
    transition: color .15s, border-color .15s;
}

.fbpe-fallback-link a:hover {
    color: #166fe5;
    border-color: #166fe5;
}

/* ── Responsive: shrink embed on small screens ──────────── */
@media (max-width: 540px) {
    .fbpe-embed-item {
        padding: 10px;
    }

    .fb-post,
    .fb-video,
    .fb-page {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }
}
