/* Work index (work.html), round 4. Linked last in <head>.
   1. Built and running: paper cards. A real screen in a light window (whole, never cropped) or, where there is no screen
      in the repo, a plain card with the name, one line and the status. No gradients, no technology logos.
   2. Work in detail: light screens, each shown whole. */

/* ---------- 1. the fan ---------- */
.so .card.ap{
  top:3.5rem;bottom:3.5rem;left:28.5rem;right:28.5rem;
  display:flex;flex-direction:column;
  padding:3.4rem 1.4rem 1.4rem;
  background:#FBFBF6;color:#14160F;
  box-shadow:0 0 0 1px rgba(20,22,15,.12),0 2.4rem 3.6rem -2.4rem rgba(28,31,22,.5);
}
.so .card.ap .ap__n{left:1.4rem;top:1.3rem;color:rgba(20,22,15,.62)}
.so .card.ap .ap__win{display:block;overflow:hidden;border-radius:1.1rem;box-shadow:0 0 0 1px rgba(20,22,15,.1)}
.so .card.ap .ap__win picture{display:block}
.so .card.ap .ap__win img{position:static;display:block;width:100%;height:auto;object-fit:contain}
.so .card.ap .ap__t{position:static;left:auto;right:auto;bottom:auto;margin-top:auto;padding-top:1.1rem;gap:.35rem;color:#14160F}
.so .card.ap .ap__t b{font:600 var(--fs-28)/1.05 var(--sans);color:#14160F}
.so .card.ap .ap__t small{font:500 var(--fs-14)/1.3 var(--sans);color:rgba(20,22,15,.7)}
.so .card.ap .ap__t em{font:600 var(--fs-14)/1.2 var(--sans);font-style:normal;color:#4D5C00}
.so .card.ap .ap__d{font:400 var(--fs-16)/1.35 var(--sans);color:rgba(20,22,15,.78)}
/* a card without a screen: name and line on top, technology and status at the bottom */
.so .card.ap--p .ap__t{flex:1;margin-top:0;padding-top:.6rem;gap:.9rem}
.so .card.ap--p .ap__t small{margin-top:auto}
.so .card.ap--p .ap__t em{margin-top:-.1rem}

@media (max-width:767px){
  .so .card.ap{top:auto;bottom:auto;left:auto;right:auto;padding:2.6rem 1rem 1rem}
  .so .card.ap .ap__n{left:1rem;top:.9rem}
  .so .card.ap .ap__win{border-radius:.7rem}
  /* the phone screens are portrait: show them whole inside the height that is left */
  .so .card.ap .ap__win:has(source){max-height:15rem;width:max-content;max-width:100%;margin:0 auto}
  .so .card.ap .ap__win:has(source) img{width:auto;max-width:100%;max-height:15rem}
  html body .so .card.ap .ap__t{padding-top:.8rem;gap:.3rem}
  html body .so .card.ap .ap__t b{font-size:18px!important;line-height:1.1!important}
  html body .so .card.ap .ap__t small,html body .so .card.ap .ap__t em{font-size:12px!important;line-height:1.25!important}
  html body .so .card.ap .ap__d{font-size:14px!important;line-height:1.35!important}
}

/* ---------- 2. Work in detail ---------- */
.v4s__g--cases .v4s__im{
  aspect-ratio:900/676;background:transparent;box-shadow:none;border-radius:0;overflow:visible;
}
.v4s__g--cases .v4s__im img{
  display:block;width:100%;height:100%;object-fit:contain;
  border-radius:2.6%/3.45%;
  box-shadow:0 0 0 1px rgba(20,22,15,.14),0 1.6rem 3rem -1.6rem rgba(0,0,0,.45);
}
html[data-mode="dark"] .v4s__g--cases .v4s__im img{box-shadow:0 0 0 1px rgba(244,244,237,.2),0 1.6rem 3rem -1.6rem rgba(0,0,0,.7)}
.v4s__g--cases .v4s__c:hover .v4s__im img{transform:none}
