/* S6 Content, designed Instagram posts: where a design's cover sits, the real-Instagram drawer preview and the Grid view.
   Designs themselves (the slides) live in assets/css/ig*.css and are never styled here. Everything in a slide scales from its own canvas width. */

/* a designed cover in every slot a photo fills */
.cv{border-radius:10px;flex:none;box-shadow:0 0 0 1px var(--hair)}
.c-strip .sp-body{padding:0;overflow:visible;min-height:auto}
.sp-body .cv{width:128px}
.sp-body.has-cv>div:not(.igc)>p{-webkit-line-clamp:5}
.c-strip .sp-body>img,.c-strip .sp-body>.tcard{width:128px;height:auto;aspect-ratio:4/5;border-radius:10px;flex:none}
.c-strip .sp-body>.tcard{padding:10px}
.c-strip .sp-body>.tcard b{font-size:13px;line-height:14px;-webkit-line-clamp:6}
.wcard .cv{width:100%;border-radius:6px}
.prow .cv{width:48px;border-radius:8px}
.igc-card.tcard{position:absolute;inset:0;width:100%;height:100%;border-radius:0}
.igc-none{background:var(--surface)}
.c-strip{grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}
@media (max-width:760px){
  .c-strip{grid-template-columns:1fr}
  .sp-body .cv,.c-strip .sp-body>img,.c-strip .sp-body>.tcard{width:148px}
}

/* the drawer preview: a real Instagram post */
.pv-ig{max-width:380px;margin:0 auto;background:#fff;color:#111}
.igp-top{display:flex;align-items:center;gap:10px;padding:10px 12px}
.igp-top b{font-size:14px;line-height:18px;font-weight:600}
.igp-ring{display:block;width:36px;height:36px;padding:2px;border-radius:50%;flex:none;background:linear-gradient(45deg,#FEDA75,#FA7E1E 30%,#D62976 58%,#962FBF 82%,#4F5BD5)}
.igp-av{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:#fff;border:2px solid #fff;box-sizing:border-box}
.igp-av img{width:62%;height:auto;display:block}
.igp-view{position:relative;overflow:hidden;touch-action:pan-y;background:#080606;cursor:grab}
.igp-view:active{cursor:grabbing}
.igp-view:focus-visible{outline:3px solid var(--brand);outline-offset:-3px}
.igp-track{display:flex;transition:transform .28s cubic-bezier(.3,.7,.2,1);will-change:transform}
.igp-track.drag{transition:none}
.igp-s{flex:0 0 100%;min-width:0}
.igp-s .igc{width:100%}
.igp-s .sl img{-webkit-user-drag:none;user-select:none}
.igp-count{position:absolute;top:10px;right:10px;padding:3px 9px;border-radius:12px;background:rgba(0,0,0,.66);color:#fff;font-size:12px;line-height:16px;font-weight:600;font-variant-numeric:tabular-nums}
.igp-nav{appearance:none;position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:#111;display:grid;place-items:center;cursor:pointer;box-shadow:0 1px 6px rgba(0,0,0,.35)}
.igp-nav[hidden]{display:none}
.igp-nav:hover{background:#fff}
.igp-nav:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.igp-prev{left:8px}.igp-next{right:8px}
.igp-acts{position:relative;display:flex;align-items:center;justify-content:space-between;padding:10px 12px 2px}
.igp-ic{display:flex;gap:14px;color:#111}
.igp-ic .ico{width:24px;height:24px;stroke-width:1.8}
.igp-dots{position:absolute;left:50%;top:50%;transform:translate(-50%,-30%);display:flex;gap:4px}
.igp-dot{display:block;width:6px;height:6px;border-radius:50%;background:#C7C7C7}
.igp-dot.on{background:#0095F6}
.pv-ig .pv-text{padding:6px 12px 14px}
.igp-tag{color:#00376B}
.pd-change{flex-wrap:wrap;align-items:center}
.pd-change span{flex:1 1 240px}
.pv-liimg{background:var(--surface);padding:12px}
.pv-liimg .igc{max-width:360px;margin:0 auto;border-radius:6px}
@media (prefers-reduced-motion:reduce){.igp-track{transition:none}}

/* the Grid view: her profile, then the feed as Instagram crops it (4:5 posts become 3:4 tiles) */
.c-gridv{max-width:640px;margin:0 auto}
.ig-prof{display:flex;gap:20px;align-items:center;padding:4px 4px 14px}
.ig-prof-ring{width:84px;height:84px;padding:3px}
.ig-prof-t{min-width:0}
.ig-prof h3{font-size:20px;line-height:26px;font-weight:600}
.ig-bio{font-size:14px;line-height:20px;margin-top:4px;overflow-wrap:anywhere}
.ig-bio b{font-weight:600}
.ig-gnote{font-size:13px;line-height:18px;color:var(--muted);margin:0 4px 12px}
.ig-tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
.ig-tiles li{min-width:0}
.ig-tile{appearance:none;display:block;position:relative;width:100%;aspect-ratio:3/4;overflow:hidden;border:0;padding:0;background:#080606;cursor:pointer}
.ig-tile-in{position:absolute;inset:0;display:block}
.ig-tile .igc{position:absolute;top:0;left:-3.3333%;width:106.6667%}
.ig-tile:hover .igc{filter:brightness(.92)}
.ig-tile:focus-visible{outline:3px solid var(--brand);outline-offset:-3px}
.ig-badge{position:absolute;top:0;left:0;padding:0 8px 0 7px;border-radius:0 0 8px 0;font-size:10.5px;line-height:18px;font-weight:700;border:0}
.ig-badge-draft{background:var(--lilac-tint);color:var(--lilac-ink);border-color:var(--lilac)}
.ig-badge-ready{background:var(--lime);color:var(--lime-ink);border-color:var(--lime-line)}
.ig-multi{position:absolute;top:5px;right:6px;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:grid;place-items:center}
.ig-multi .ico{width:15px;height:15px}
@media (max-width:760px){
  .ig-prof{gap:14px}
  .ig-prof-ring{width:72px;height:72px}
  .ig-badge{padding:0 6px 0 5px;font-size:10px;line-height:16px}
  .ig-multi{top:4px;right:4px;width:20px;height:20px}
}
