/* Apex CEO Feed (feed.apexceo.cc) — Instagram's profile, grid and post layout, in Apex black, white and gold. */
@font-face{font-family:Playfair;font-style:normal;font-weight:400 900;font-display:swap;src:url(https://apexceo.cc/assets/fonts/playfair.woff2) format("woff2")}
:root{--txt:#000;--mute:#737373;--line:#DBDBDB;--soft:#EFEFEF;--ink:#0B0B0C;--gold:#C9A14A;--gold2:#E0BE73;--red:#FF3040;
  --f:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--d:Playfair,Georgia,serif;--w:935px}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{margin:0;font:400 14px/18px var(--f);color:var(--txt);background:#fff;-webkit-font-smoothing:antialiased}
body.lock{overflow:hidden}
a{color:inherit;text-decoration:none}
a,button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
:focus{outline:none}:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
img{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.ic{width:24px;height:24px;flex:none}
.btn{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 16px;border-radius:8px;background:var(--ink);color:#fff;font:600 14px/1 var(--f);white-space:nowrap;transition:background .15s}
.btn:hover{background:#262626}
.btn.soft{background:var(--soft);color:var(--txt)}.btn.soft:hover{background:var(--line)}
.tick{width:18px;height:18px;flex:none}

.av{display:grid;place-items:center;border-radius:50%;background:var(--ink);flex:none;overflow:hidden}
.av svg{height:64%;width:auto}
.av.xs{width:28px;height:28px}.av.sm{width:32px;height:32px}.av.lg{width:150px;height:150px}

/* top bar */
.top{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line)}
.top-in{max-width:var(--w);margin:0 auto;padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;font:600 22px/1 var(--d);white-space:nowrap}
.brand b{font-weight:700}
.top-nav{display:flex;align-items:center;gap:4px}
.top-nav a:not(.btn){display:flex;align-items:center;gap:8px;height:40px;padding:0 10px;border-radius:8px;font-weight:600}
.top-nav a:not(.btn):hover{background:var(--soft)}
.top-nav .btn{margin-left:6px}

main{max-width:var(--w);margin:0 auto;padding:30px 20px 0}

/* profile header: Instagram desktop */
.prof{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:start;margin-bottom:44px}
.prof-av{display:flex;justify-content:center;padding-right:30px}
.ring{display:grid;place-items:center;width:168px;height:168px;border-radius:50%;background:conic-gradient(from 210deg,#A97E2C,#E6C77C,#B68B36,#F3DFA8,#A97E2C)}
.ring .av{box-shadow:0 0 0 5px #fff}
.prof-main{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"name btns" "stats stats" "bio bio";align-items:center;column-gap:20px;padding-top:6px}
.prof-name{grid-area:name;display:flex;align-items:center;gap:6px;min-width:0}
.prof-name h1{margin:0;font:400 20px/25px var(--f);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prof-btns{grid-area:btns;display:flex;gap:8px}
.stats{grid-area:stats;list-style:none;margin:20px 0;padding:0;display:flex;gap:40px;font-size:16px;line-height:18px}
.stats b{font-weight:600}
.bio{grid-area:bio;font-size:14px;line-height:18px}
.bio b{display:block;font-weight:600}
.bio .cat{display:block;color:var(--mute)}
.bio p{margin:0}
.bio a{display:inline-flex;align-items:center;gap:4px;margin-top:2px;color:#00376B;font-weight:600}
.bio a .ic{width:12px;height:12px}

/* highlights */
.hl{display:flex;gap:44px;margin:0 0 44px;padding:0 0 0 40px;overflow-x:auto;scrollbar-width:none}
.hl::-webkit-scrollbar{display:none}
.hl a{display:flex;flex-direction:column;align-items:center;gap:15px;flex:none;width:87px}
.hl-c{display:grid;place-items:center;width:87px;height:87px;border-radius:50%;padding:4px;background:#fff;box-shadow:0 0 0 1px var(--line);overflow:hidden}
.hl-c img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.hl-c.ic-c{background:#FAFAFA;color:var(--ink)}
.hl-c.ic-c .ic{width:32px;height:32px}.hl-c.ic-c svg:not(.ic){height:46px;width:auto}
.hl small{font-size:12px;font-weight:600;line-height:16px;max-width:87px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* tabs + grid */
.tabs{display:flex;justify-content:center;gap:60px;border-top:1px solid var(--line)}
.tabs a{display:flex;align-items:center;gap:6px;height:52px;margin-top:-1px;font:600 12px/1 var(--f);letter-spacing:1px;text-transform:uppercase;color:var(--mute);border-top:1px solid transparent}
.tabs a .ic{width:12px;height:12px}
.tabs a.on{color:var(--txt);border-top-color:var(--txt)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.tile{position:relative;display:block;aspect-ratio:3/4;overflow:hidden;background:var(--soft)}
.tile img{width:100%;height:100%;object-fit:cover}
.tile-ov{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:7px;background:rgba(0,0,0,.3);color:#fff;font-weight:700;font-size:16px;opacity:0;transition:opacity .1s}
.tile-ov .ic{width:19px;height:19px;fill:#fff;stroke:#fff}
.tile:hover .tile-ov{opacity:1}

/* post: Instagram post layout (page and in-page viewer) */
.post{display:grid;grid-template-columns:minmax(0,1fr) 335px;grid-template-rows:auto 1fr;grid-template-areas:"media head" "media side";border:1px solid var(--line);border-radius:4px;background:#fff;overflow:hidden}
.post-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;height:60px;padding:0 16px;border-bottom:1px solid var(--soft);border-left:1px solid var(--soft)}
.who{display:flex;align-items:center;gap:12px}.who b{font-weight:600}
.close{display:grid;place-items:center;width:32px;height:32px;border-radius:50%}.close:hover{background:var(--soft)}
.post-media{grid-area:media;position:relative;display:flex;align-items:center;justify-content:center;background:#000;min-height:420px;max-height:calc(100vh - 140px);user-select:none}
.post-media img{width:100%;height:100%;max-height:calc(100vh - 140px);object-fit:contain}
.post-side{grid-area:side;display:flex;flex-direction:column;min-height:0;border-left:1px solid var(--soft)}
.post-body{flex:1;overflow:auto;padding:16px}
.cap{display:flex;gap:14px}.cap p{margin:5px 0 0;line-height:18px}.cap b{font-weight:600}
.post-foot{border-top:1px solid var(--soft);padding:6px 16px 14px}
.acts{display:flex;align-items:center;margin:0 -8px}
.act{display:grid;place-items:center;width:40px;height:40px;transition:transform .1s}
.act:active{transform:scale(.88)}
.act:hover{color:var(--mute)}
.save{margin-left:auto}
.like[aria-pressed=true] .ic{fill:var(--red);stroke:var(--red)}
.save[aria-pressed=true] .ic{fill:var(--txt)}
.like.pop .ic{animation:pop .35s ease}
@keyframes pop{40%{transform:scale(1.25)}}
.lk{margin:4px 0 6px;font-weight:600}
.post-foot time{display:block;font-size:10px;letter-spacing:.2px;text-transform:uppercase;color:var(--mute)}
.post-media.heart::after{content:"";position:absolute;left:50%;top:50%;width:96px;height:96px;margin:-48px 0 0 -48px;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M16.8 3.5c-2 0-3.7 1-4.8 2.6C10.9 4.5 9.2 3.5 7.2 3.5 4 3.5 1.5 6.1 1.5 9.4c0 5.6 8.1 10.4 10.5 11.6 2.4-1.2 10.5-6 10.5-11.6 0-3.3-2.5-5.9-5.7-5.9z'/%3E%3C/svg%3E");filter:drop-shadow(0 2px 10px rgba(0,0,0,.35));animation:big .8s ease forwards}
@keyframes big{0%{transform:scale(0);opacity:0}15%{transform:scale(1.15);opacity:1}30%{transform:scale(1)}80%{opacity:1}100%{opacity:0}}
.pn{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:30px;height:30px;margin-top:-15px;border-radius:50%;background:rgba(255,255,255,.9);color:var(--ink);box-shadow:0 1px 6px rgba(0,0,0,.25)}
.pn .ic{width:18px;height:18px}
.pn.prev{left:12px}.pn.next{right:12px}
.more{margin-top:48px;padding-top:40px;border-top:1px solid var(--line)}
.more h2{font:600 14px/1 var(--f);color:var(--mute);margin:0 0 20px}.more h2 a{color:var(--txt)}

/* in-page viewer */
.modal{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:40px 70px;background:rgba(0,0,0,.65)}
.modal[hidden]{display:none}
.modal .post{width:min(1200px,100%);height:min(88vh,820px);border:0;border-radius:4px}
.modal .post-media,.modal .post-media img{max-height:none;height:100%}
.m-x{position:absolute;top:14px;right:18px;color:#fff}
.m-x .ic{width:30px;height:30px}
.m-nav{position:absolute;top:50%;display:grid;place-items:center;width:32px;height:32px;margin-top:-16px;border-radius:50%;background:#fff;color:var(--ink)}
.m-nav .ic{width:18px;height:18px}
.m-prev{left:20px}.m-next{right:20px}
.m-nav[hidden]{display:none}

.toast{position:fixed;left:50%;bottom:28px;z-index:60;transform:translateX(-50%);padding:12px 18px;border-radius:8px;background:#262626;color:#fff;font-weight:600;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.toast[hidden]{display:none}

.empty{text-align:center;padding:72px 20px}
.empty-ic{display:inline-grid;place-items:center;width:62px;height:62px;border:2px solid var(--txt);border-radius:50%;margin-bottom:16px}
.empty h2{font:800 24px/1.2 var(--f);margin:0 0 10px}.empty p{color:var(--mute)}.empty a{color:#00376B;font-weight:600}

.foot{max-width:var(--w);margin:52px auto 0;padding:0 20px 40px;text-align:center;color:var(--mute);font-size:12px;line-height:16px}
.foot nav{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;margin-bottom:14px}
.foot a:hover{text-decoration:underline}

/* tablet */
@media (max-width:1000px){.modal{padding:30px 56px}.modal .post{grid-template-columns:minmax(0,1fr) 300px}}

/* phones: Instagram mobile layout */
@media (max-width:735px){
  .top-in{height:54px;padding:0 12px}
  .brand{font-size:19px;gap:8px}
  .top-nav a:not(.btn) span{display:none}
  .top-nav .btn{height:30px;padding:0 12px;font-size:13px}
  main{padding:0}
  .prof{grid-template-columns:86px minmax(0,1fr);column-gap:24px;align-items:center;margin:0;padding:14px 16px 0}
  .prof-av{grid-column:1;grid-row:1/3;padding:0}
  .ring{width:86px;height:86px}.av.lg{width:78px;height:78px}.ring .av{box-shadow:0 0 0 3px #fff}
  .prof-main{display:contents}
  .prof-name{grid-column:2;grid-row:1;align-self:end;margin-bottom:6px}
  .prof-name h1{font-size:18px;line-height:22px}
  .stats{grid-column:2;grid-row:2;align-self:start;margin:0;gap:0;justify-content:space-between;max-width:230px;font-size:14px}
  .stats li{display:flex;flex-direction:column;align-items:flex-start;line-height:18px}
  .bio{grid-column:1/-1;grid-row:3;padding-top:14px}
  .prof-btns{grid-column:1/-1;grid-row:4;margin:14px 0 0}.prof-btns .btn{flex:1}
  .hl{gap:16px;margin:20px 0 0;padding:0 16px 22px}
  .hl a{width:64px;gap:6px}
  .hl-c{width:64px;height:64px;padding:3px}
  .hl-c.ic-c .ic{width:24px;height:24px}.hl-c.ic-c svg:not(.ic){height:34px}
  .hl small{max-width:64px}
  .tabs{gap:0}.tabs a{flex:1;justify-content:center;height:44px}.tabs a span{display:none}.tabs a .ic{width:24px;height:24px}
  .grid{gap:2px}
  .v-post main{padding:0}
  .post{display:flex;flex-direction:column;border:0;border-radius:0}
  .post-head{order:1;height:56px;padding:0 12px;border:0}
  .post-media{order:2;min-height:0;max-height:none}.post-media img{max-height:none;height:auto}
  .post-side{display:contents}
  .post-foot{display:contents}
  .acts{order:3;margin:0;padding:2px 4px 0}
  .lk{order:4;margin:0;padding:2px 12px 4px}
  .post-body{order:5;padding:2px 12px 6px;overflow:visible;flex:none}
  .post-foot time{order:6;padding:0 12px 16px}
  .cap .av{display:none}.cap p{margin:0}
  .pn{display:none}
  .more{margin-top:20px;padding-top:24px}.more h2{padding:0 12px}
  .foot{margin-top:36px}
}
@media (max-width:400px){.hide-xs{display:none!important}.brand{font-size:16px}.top-in{padding:0 10px}}
