/* Simplex Loft home: #work photo mosaic (v1.7.2). Source: _build-source/work/home-work.css, copied to
   the theme and preview by _build-source/tour/build.js. #work uses the site's light scheme (site.css
   redefines the tokens there); the tiles set their own colors. Selectors start with .sl-wk-grid so
   the site's guard rules (.sl-site a / h3 / img) and the old Avada CSS do not restyle the tiles. */
.sl-wk-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:440px 300px 440px 300px 380px;gap:12px;margin:0;padding:0}
.sl-wk-grid .sl-wk-s7{grid-column:span 7}
.sl-wk-grid .sl-wk-s6{grid-column:span 6}
.sl-wk-grid .sl-wk-s5{grid-column:span 5}
.sl-wk-grid .sl-wk-s4{grid-column:span 4}

/* a tile: the whole photo is the link */
.sl-wk-grid .sl-wk-tile{position:relative;display:block;box-sizing:border-box;min-width:0;margin:0;padding:0;overflow:hidden;background:#202020;color:#fff;border:0;border-radius:0;box-shadow:none;text-decoration:none}
.sl-wk-grid .sl-wk-img{position:absolute;top:0;left:0;display:block;width:100%;height:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;object-fit:cover;transform:scale(1);transition:transform .5s cubic-bezier(.2,.7,.2,1)}

/* caption on a dark scrim at the bottom (about 55 % of the tile); the middle stop keeps the text area dark */
.sl-wk-grid .sl-wk-cap{position:absolute;left:0;right:0;bottom:0;box-sizing:border-box;height:55%;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0;padding:20px;background:linear-gradient(to top,rgba(0,0,0,.78) 0%,rgba(0,0,0,.62) 40%,rgba(0,0,0,0) 100%);pointer-events:none}
.sl-wk-grid .sl-wk-txt{display:flex;flex-direction:column;gap:4px;min-width:0}
.sl-wk-grid .sl-wk-name{margin:0;padding:0;font-family:var(--fd,inherit);font-size:20px;font-weight:600;line-height:1.2;letter-spacing:normal;text-transform:none;color:#fff}
.sl-wk-grid .sl-wk-place{display:block;margin:0;font-size:13px;font-weight:400;line-height:1.4;letter-spacing:normal;text-transform:none;color:#d2d2d2}
.sl-wk-grid .sl-wk-go{flex:none;display:block;width:22px;height:22px;margin:0 0 2px;color:#fff;transform:translateX(0);transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.sl-wk-grid .sl-wk-s4 .sl-wk-cap{padding:16px}
.sl-wk-grid .sl-wk-s4 .sl-wk-name{font-size:17px}

/* hover and keyboard focus */
.sl-wk-grid .sl-wk-tile:hover .sl-wk-img,.sl-wk-grid .sl-wk-tile:focus-visible .sl-wk-img{transform:scale(1.04)}
.sl-wk-grid .sl-wk-tile:hover .sl-wk-go,.sl-wk-grid .sl-wk-tile:focus-visible .sl-wk-go{transform:translateX(4px)}
.sl-wk-grid .sl-wk-tile:focus-visible{outline:2px solid var(--focus);outline-offset:3px}

/* two columns: the first tile spans both at 16:9, the others 4:3; with 12 tiles the last one would
   stand alone, so it also spans both (16:9) and the grid closes flush */
@media (max-width:899px){
.sl-wk-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:auto}
.sl-wk-grid .sl-wk-tile{grid-column:span 1;aspect-ratio:4 / 3}
.sl-wk-grid .sl-wk-tile:first-child,.sl-wk-grid .sl-wk-tile:last-child:nth-child(even){grid-column:span 2;aspect-ratio:16 / 9}
.sl-wk-grid .sl-wk-cap{padding:16px}
.sl-wk-grid .sl-wk-name{font-size:17px}
}
/* one column, 4:3 */
@media (max-width:559px){
.sl-wk-grid{grid-template-columns:minmax(0,1fr)}
.sl-wk-grid .sl-wk-tile,.sl-wk-grid .sl-wk-tile:first-child,.sl-wk-grid .sl-wk-tile:last-child:nth-child(even){grid-column:auto;aspect-ratio:4 / 3}
}
@media (prefers-reduced-motion:reduce){
.sl-wk-grid .sl-wk-img,.sl-wk-grid .sl-wk-go{transition:none}
.sl-wk-grid .sl-wk-tile:hover .sl-wk-img,.sl-wk-grid .sl-wk-tile:focus-visible .sl-wk-img,.sl-wk-grid .sl-wk-tile:hover .sl-wk-go,.sl-wk-grid .sl-wk-tile:focus-visible .sl-wk-go{transform:none}
}
