/* One mockup for every example on the site: a photo of a real room, with framed tiles laid over its empty wall.
   The room photo comes from --room (set by mock.js). Every room photo is shot the same way, so the frames sit in
   the same place on all of them; --top, --w and --cols move or resize the group when a room needs it.
   The photo is shown a little zoomed in from its top edge (--zoom), so the wall, and the frames on it, fill most of
   the card and the furniture stays a strip along the bottom. */
.mk{position:relative;display:block;aspect-ratio:3/4;overflow:hidden;isolation:isolate;background:#E9E2D6}
/* one layer per set of tiles: the room, the frames on it, and the room's light over both */
.mk .rm{position:absolute;inset:0;display:block;transform-origin:50% 42%;transition:transform .8s cubic-bezier(.16,1,.3,1),opacity .45s ease;
  background:linear-gradient(to bottom,#EDE7DD 0 86%,#D8CFC2 86% 87.5%,#C9B79C 87.5%)}
.mk.has .rm{background:var(--room) var(--px,50%) 0/var(--zoom,125%) auto no-repeat}
/* the room's own light and shadow fall across the frames too, so they sit in the photo instead of on top of it */
.mk.has .rm::after{content:"";position:absolute;inset:0;z-index:2;background:var(--room) var(--px,50%) 0/var(--zoom,125%) auto no-repeat;mix-blend-mode:multiply;opacity:.2;pointer-events:none}
.mk .hang{position:absolute;z-index:1;left:var(--left,50%);top:var(--top,41%);width:var(--w,76%);transform:translate(-50%,-50%);
  display:grid;grid-template-columns:repeat(var(--cols,2),1fr);gap:var(--gap,4.4%)}
/* a frame: 8×8 in, about half an inch wide, standing a little proud of the wall with the light coming from the upper left */
.mk .fr{position:relative;aspect-ratio:1;background:linear-gradient(135deg,#2b2b2b,#101010 55%,#1b1b1b);
  box-shadow:0 0 0 .5px rgba(0,0,0,.5),1px 2px 2px rgba(45,32,20,.3),5px 8px 10px -2px rgba(45,32,20,.34),10px 18px 24px -8px rgba(45,32,20,.3)}
.mk .fr.white{background:linear-gradient(135deg,#fff,#eeece7 55%,#f8f7f3);
  box-shadow:0 0 0 .5px rgba(60,50,40,.28),1px 2px 2px rgba(45,32,20,.22),5px 8px 10px -2px rgba(45,32,20,.3),10px 18px 24px -8px rgba(45,32,20,.26)}
.mk .fr > img,.mk .fr > svg{position:absolute;left:6%;top:6%;width:88%;height:88%;object-fit:cover;display:block}
/* the print sits a few millimetres behind the frame's face: a soft shadow along its top and left edges */
.mk .fr::after{content:"";position:absolute;inset:6%;box-shadow:inset 2px 2px 3px rgba(0,0,0,.42),inset 0 0 0 .5px rgba(0,0,0,.35);pointer-events:none}
.mk .fr.white::after{box-shadow:inset 2px 2px 3px rgba(0,0,0,.28),inset 0 0 0 .5px rgba(0,0,0,.18)}
/* wide: the style page's hero. The box shows a band of the room photo (--py), with six tiles in two rows of three */
.mk.wide{aspect-ratio:16/10}
.mk.wide.has .rm,.mk.wide.has .rm::after{background-size:cover;background-position:50% var(--py,66%)}
.mk.wide .hang{gap:5%}
.mk.wide .orig{width:10.5%;left:2.6%;bottom:4.5%;border-radius:12px}
@media(max-width:560px){.mk.wide .orig{width:15%}}
/* a second set of tiles (the card's second slide) waits underneath and fades in */
.mk .rm.alt{opacity:0}
.mk[data-s="1"] .rm{opacity:0}
.mk[data-s="1"] .rm.alt{opacity:1}
/* the phone photo the portraits were painted from, tucked into the corner so the before and after read together */
.mk .orig{position:absolute;z-index:3;left:5%;bottom:4.5%;width:25%;aspect-ratio:1;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 0 0 3px #fff,0 10px 18px -8px rgba(18,18,18,.55)}
.mk .orig img{width:100%;height:100%;object-fit:cover;display:block}
/* pointing at a card brings the wall closer */
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  :is(.mkz:hover,.mkz:focus-within) .mk .rm{transform:scale(1.09)}
}
/* arrows and dots for cards that have a second slide */
.mkshot{position:relative;display:block}
.mkshot .nv{position:absolute;z-index:4;top:46%;transform:translateY(-50%);width:42px;height:42px;border-radius:99px;border:0;background:rgba(255,255,255,.92);color:#121212;display:grid;place-items:center;box-shadow:0 6px 14px -6px rgba(18,18,18,.5);opacity:0;transition:opacity .25s,background .2s}
.mkshot .nv svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.mkshot .nv.pv{left:10px}.mkshot .nv.pv svg{transform:rotate(180deg)}
.mkshot .nv.nx{right:10px}
.mkshot .nv:hover{background:#fff}
.mkz:hover .nv,.mkshot .nv:focus-visible{opacity:1}
@media(hover:none){.mkshot .nv{opacity:1;width:38px;height:38px}}
.mkshot .sd{position:absolute;z-index:4;left:0;right:0;bottom:4.5%;display:flex;justify-content:center;gap:7px;pointer-events:none}
.mkshot .sd i{width:8px;height:8px;border-radius:99px;background:rgba(255,255,255,.55);box-shadow:0 0 0 1px rgba(18,18,18,.14);transition:background .2s,transform .2s}
.mkshot .sd i.on{background:#fff;transform:scale(1.15)}
@media(prefers-reduced-motion:no-preference){
  .mk.in .fr{animation:mkhang .7s cubic-bezier(.16,1,.3,1) both}
  .mk.in .fr:nth-child(2){animation-delay:.07s}.mk.in .fr:nth-child(3){animation-delay:.14s}.mk.in .fr:nth-child(4){animation-delay:.21s}.mk.in .fr:nth-child(5){animation-delay:.28s}.mk.in .fr:nth-child(6){animation-delay:.35s}
}
@keyframes mkhang{from{opacity:0;transform:translateY(-10px) scale(.97)}}
