/* Hostel Anton · stay-a-month · the page's own layer over page.css. Phone first, desktop from 761 px. */

/* the hero: the desk and the armchair; on the phone the 9:16 crop */
body[data-page="stay-a-month"] .phero-img{object-position:50% 62%}

/* ---------- 1 · the coworking space: words, the loft wide, the desks tucked under it ---------- */
.sm-desk{padding:60px 0 64px}
.sm-desk-in{display:flex;flex-direction:column}
.sm-desk-txt{order:1}
.sm-desk-a{order:2;margin-top:30px;aspect-ratio:4/5}
.sm-desk-b{order:3;align-self:flex-end;width:58%;aspect-ratio:4/5;margin-top:-64px;outline:8px solid var(--g)}
.sm-desk-list{order:4;margin-top:8px}
.sm-desk-list .tlink{margin-top:14px}

/* ---------- 2 · upstairs, the break: four photos; on a desktop the one under the pointer opens ---------- */
.sm-up{padding:60px 0 64px}
.sm-up-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:30px}
.sm-up-row .ph{aspect-ratio:4/5}
.sm-up-row picture{display:contents}

/* ---------- 3 · long stays and the reel ---------- */
.sm-reel{padding:60px 0 64px}
.sm-reel .reel{width:min(74vw,340px);margin:34px auto 0}
.sm-btns{display:flex;gap:8px;margin-top:26px}
.sm-btns .btn{min-height:52px;padding:0 18px}
.sm-btns .btn-red{flex:1 1 auto}
.sm-kit-txt .tlink{margin-top:18px}

/* ---------- 4 · the shared kitchen: the photo travels from the beams to the cooker as you pass ---------- */
.sm-kit{padding:60px 0 64px}
.sm-kit-in{display:flex;flex-direction:column}
.sm-kit-txt{order:1}
.sm-kit-ph{order:2;margin-top:30px;aspect-ratio:1/1}
/* the pan is a transform (p-stay-a-month.js): the photo keeps its own ratio, taller than the frame, and slides up inside it */
.sm-kit-ph img{position:absolute;left:0;top:0;width:100%;height:auto;min-height:100%;object-fit:cover;object-position:50% 0%}
html.ha-still .sm-kit-ph img{top:50%;transform:translateY(-50%);object-position:50% 50%}

/* ---------- 5 · plan the month: the sibling pages ---------- */
.sm-next{padding:60px 0 70px}
.sm-cards{display:grid;grid-template-columns:1fr 1fr;gap:26px 10px;margin-top:30px}
.sm-card{display:block}
.sm-card .ph{aspect-ratio:4/3}
.sm-card strong{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:10px;font:400 clamp(22px,2vw,32px)/1.15 var(--serif)}
.sm-card strong svg{flex:none;transition:transform .4s var(--ease)}
.sm-card span{display:block;font-size:15px;line-height:1.45;opacity:.86}
.sm-card img{transition:scale 1.2s var(--ease)}
@media (hover:hover){
  .sm-card:hover img{scale:1.06}
  .sm-card:hover strong svg{transform:translateX(6px)}
}

/* ---------- desktop ---------- */
@media (min-width:761px){
  .sm-desk,.sm-up,.sm-reel,.sm-kit{padding:clamp(80px,12vh,140px) 0}
  .sm-next{padding:clamp(80px,12vh,140px) 0 clamp(90px,13vh,150px)}

  .sm-desk-in{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(14px,1.6vw,28px)}
  .sm-desk-txt{grid-column:1/6;grid-row:1;align-self:start}
  .sm-desk-txt .h-lg{font-size:clamp(40px,4.6vw,92px)}
  .sm-desk-a{grid-column:6/13;grid-row:1;margin:0;aspect-ratio:16/10}
  .sm-desk-b{grid-column:9/12;grid-row:2;width:auto;margin-top:calc(-1*clamp(70px,13vh,150px));outline-width:clamp(10px,1vw,16px)}
  .sm-desk-list{grid-column:1/7;grid-row:2;align-self:start;margin:clamp(28px,5vh,56px) 0 0;padding-right:clamp(10px,3vw,60px)}
  .sm-desk-list .rlist{columns:1}

  .sm-up-head{display:grid;grid-template-columns:7fr 5fr;column-gap:clamp(18px,3vw,60px);align-items:end}
  .sm-up-head .eyebrow{grid-column:1/-1}
  .sm-up-head .h-lg{grid-column:1}
  .sm-up-head .lead{grid-column:2;margin:0 0 .4em;max-width:30ch}
  .sm-up-row{display:flex;gap:clamp(8px,.9vw,16px);height:clamp(400px,64vh,680px);margin-top:clamp(36px,6vh,70px)}
  .sm-up-row .ph{flex:1 1 0;min-width:0;aspect-ratio:auto;height:100%;transition:flex-grow .9s var(--ease)}
  .sm-up-row .sm-up-4{flex-grow:1.7}

  .sm-reel-in{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(14px,1.6vw,28px);align-items:center}
  .sm-reel-txt{grid-column:1/7}
  .sm-reel-txt .lead{max-width:40ch}
  .sm-reel .reel{grid-column:8/12;grid-row:1;justify-self:center;align-self:center;margin:0;width:min(100%,calc(74vh*9/16),400px)}
  .sm-btns{flex-wrap:wrap;gap:12px;margin-top:clamp(24px,4vh,40px)}
  .sm-btns .btn{min-height:56px;padding:0 30px}
  .sm-btns .btn-red{flex:0 0 auto}

  .sm-kit-in{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(14px,1.6vw,28px);align-items:center}
  .sm-kit-ph{grid-column:1/8;grid-row:1;margin:0;aspect-ratio:auto;height:clamp(420px,72vh,760px)}
  .sm-kit-txt{grid-column:9/13;grid-row:1}

  .sm-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,1.6vw,28px);margin-top:clamp(36px,6vh,64px)}
  .sm-card .ph{aspect-ratio:4/5}
}
@media (min-width:761px) and (hover:hover){
  .sm-up-row:hover .ph{flex-grow:.8}
  .sm-up-row .ph:hover{flex-grow:2.6}
}
@media (max-width:760px){.sub .lead{max-width:none}}
