/* "In Social Media" cards on the home page, just above the footer (2026-11-07, v2 look
   from the user's demo). Admin: Home page > Social media section. Embeds are built by
   js/pages/home-social.js only when the section comes near the screen; they sit inside
   the dark card as rounded white panels. Hand-written: not generated by lightify/darkify. */
.lx-social .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lx-social__grid { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
@media (max-width: 1100px) { .lx-social__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lx-social__grid { grid-template-columns: minmax(0, 420px); justify-content: center; } }

.lx-social__card { display: flex; flex-direction: column; height: 540px; min-width: 0; overflow: hidden; border-radius: 16px; background: #323f2f; border: 1px solid rgba(255, 255, 255, .28); }
.lx-social__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #2c372b; }
.lx-social .lx-social__head h3 { margin: 0; font: 700 24px/1.2 Georgia, 'Noto Serif', 'Times New Roman', serif; color: #ffd700; }
.lx-social__ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; }
.lx-social__ico svg { width: 20px; height: 20px; fill: currentColor; }
.lx-social__ico--x { background: #000; }
.lx-social__ico--facebook { background: #1877f2; }
.lx-social__ico--instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.lx-social__ico--linkedin { background: #0a66c2; }

/* body: one embed fills it as a rounded white panel; several (LinkedIn posts, X) scroll */
.lx-social__body { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #323f2f radial-gradient(circle at 50% 0%, rgba(255, 215, 0, .07), transparent 60%); }
.lx-social__body iframe { position: absolute; top: 10px; left: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border: 0; border-radius: 10px; background: #fff; }
.lx-social__body.is-scroll { overflow-y: auto; padding: 10px; scrollbar-width: thin; scrollbar-color: #ffd700 transparent; }
.lx-social__body.is-scroll::-webkit-scrollbar { width: 7px; }
.lx-social__body.is-scroll::-webkit-scrollbar-thumb { background: #ffd700; border-radius: 4px; }
.lx-social__body.is-scroll iframe { position: static; width: 100%; height: 460px; margin-bottom: 10px; }
.lx-social__body.is-scroll > div { border-radius: 10px; overflow: hidden; }
.lx-social__body.is-scroll iframe.lx-igpost { height: 640px; }
.lx-social__body.is-scroll .lx-liwrap { height: 460px; margin-bottom: 10px; overflow: hidden; border-radius: 10px; background: #fff; }
.lx-social__body.is-scroll .lx-liwrap iframe { max-width: none; margin: 0; border-radius: 0; transform-origin: 0 0; }
.lx-social__body.is-live .lx-social__empty { display: none; }

/* profile card: X, LinkedIn without posts, or an embed that shows nothing */
.lx-social__empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: #fff; }
.lx-social__big { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 20px; color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.lx-social__big svg { width: 46px; height: 46px; fill: currentColor; }
.lx-social .lx-social__empty h4 { margin: 10px 0 0; font: 700 20px/1.3 Georgia, 'Noto Serif', serif; color: #fff; }
.lx-social__handle { color: #aab7aa; font-size: 15px; overflow-wrap: break-word; max-width: 100%; }
.lx-social .lx-social__empty p { margin: 6px 0 10px; max-width: 240px; font-size: 15px !important; line-height: 1.5; text-align: center !important; color: #d6dfd6; }
.lx-social__btn { display: inline-block; padding: 12px 30px; border-radius: 999px; background: #ffd700; color: #111 !important; font-weight: 800; font-size: 16px; text-decoration: none; }
.lx-social__btn:hover { filter: brightness(.95); }

.lx-social__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; background: #2c372b; font-size: 14px; color: #cfd8cf; }
.lx-social__foot span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-social__foot a { flex: none; color: #fff; font-weight: 700; text-decoration: none; }
.lx-social__foot a:hover { color: #ffd700; }
.lx-social a:focus-visible { outline: 3px solid #ffd700; outline-offset: 2px; border-radius: 4px; }

/* Facebook card: latest page posts fetched by the server (admin > Facebook) */
.lx-fbpost { display: block; margin-bottom: 10px; overflow: hidden; border-radius: 10px; background: #fff; color: #1c2420; text-decoration: none; }
.lx-fbpost__pic { position: relative; display: block; }
.lx-fbpost img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e9ece6; }
.lx-fbpost--instagram img { aspect-ratio: 1 / 1; }
.lx-fbpost__play { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.lx-fbpost__play::after { content: ''; position: absolute; top: 18px; left: 22px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.lx-social .lx-fbpost__text { margin: 0; padding: 12px 14px 0; font-size: 14.5px !important; line-height: 1.5; color: #1c2420; text-align: left !important; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.lx-fbpost__meta { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px 12px; font-size: 13px; color: #5d685f; }
.lx-fbpost__meta b { color: #1877f2; white-space: nowrap; }
.lx-fbpost--instagram .lx-fbpost__meta b { color: #c13584; }
/* X: post links pasted in admin, one under the other */
.lx-xposts { display: grid; gap: 4px; }
.lx-xposts .twitter-tweet { margin: 0 auto 6px !important; }
.lx-fbpost:hover .lx-fbpost__meta b { text-decoration: underline; }
.lx-fbpost:focus-visible { outline: 3px solid #ffd700; outline-offset: 2px; }
