/* =========================================================
   Styles for content added through the editor:
   project cover images, the posts section and platform embeds.
   ========================================================= */

/* ---------- project cover photo ---------- */
.work__art--photo{
  background:var(--tint);
  display:grid;place-items:center;
}
.work__art--photo img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .5s var(--ease);
}
.work:hover .work__art--photo img{transform:scale(1.04)}

.work__embedtag{
  display:inline-flex;align-items:center;gap:.35rem;
  margin-left:auto;
  padding:.28rem .7rem;border-radius:999px;
  background:var(--surface);
  border:1.5px solid var(--powder);
  color:var(--powder-deep);
  font-family:var(--font-display);font-size:.72rem;font-weight:700;letter-spacing:.02em;
  white-space:nowrap;
}
.work__embedtag svg{width:.85rem;height:.85rem;flex:0 0 auto}

/* ---------- posts section ---------- */
.posts__list{
  display:grid;gap:1.5rem;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,22rem),1fr));
  align-items:start;
}

.post{
  display:flex;flex-direction:column;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}

.post__cover{
  width:100%;aspect-ratio:16/9;object-fit:cover;
  border-bottom:1px solid var(--line-2);
  background:var(--tint);
}
.post__body{padding:1.35rem 1.4rem 1.5rem;display:grid;gap:.6rem}
.post__meta{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.post__date{font-size:.78rem;color:var(--ink-3)}
.post__title{font-size:1.2rem;line-height:1.3}
.post__subtitle{font-size:.88rem;color:var(--brand-text);font-weight:500}
.post__excerpt{font-size:.95rem;color:var(--ink-2)}

.post__full{display:grid;gap:.75rem}
.post__full:empty{display:none}
.post__full p{font-size:.94rem;color:var(--ink-2)}
.post__video{
  width:100%;max-height:24rem;border-radius:var(--radius);
  background:var(--ink);display:block;
}
.post__gallery{
  display:grid;gap:.5rem;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));
}
.post__gallery img{
  width:100%;aspect-ratio:1;object-fit:cover;
  border-radius:var(--radius-sm);border:1px solid var(--line);
}

/* ---------- platform embeds ---------- */
.embed{
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:.9rem;
  min-height:4rem;
}
.embed__unsupported{
  margin:0;padding:1rem 0;text-align:center;
  font-size:.85rem;color:var(--ink-3);
}

/* The platforms inject their own wrappers; keep them inside our card. */
.embed iframe,
.embed .yt-embed{
  width:100%;max-width:100%;
  border:0;border-radius:var(--radius-sm);
  background:var(--surface);
}
.embed .instagram-media,
.embed .tiktok-embed,
.embed .linkedin-embed,
.embed .fb-post{
  max-width:100%;
  margin:0 auto;
  background:var(--surface);
  border-radius:var(--radius-sm);
}
.embed .linkedin-embed a{color:var(--brand-text)}