/* Hostel Anton · tivat (Tivat and the bay). Phone first; the desktop query is the complement of page.css's phone query. */

.phero-img{object-position:38% 50%}
/* this photo is bright: a deeper floor under the words */
.phero-scrim{background:linear-gradient(rgba(16,12,24,0) 34%,rgba(16,12,24,.5) 58%,rgba(16,12,24,.82) 100%),linear-gradient(rgba(28,20,38,.62),rgba(28,20,38,0) 26%)}

/* 1 · the bay from the roof: one wide band, then the words */
.tv-band{width:100%;aspect-ratio:4/5}
.tv-band img{object-position:50% 45%}
.tv-band picture{display:block;width:100%;height:100%}
.tv-roof-txt{display:grid;gap:20px;padding-top:64px;padding-bottom:44px}
.tv-roof-txt .lead{margin-top:0}
.tv-roof-txt .tlink{margin-top:16px}

/* 2 · on foot: a walk drawn as a path */
.tv-walk-ph{aspect-ratio:4/3}
.tv-path{margin-top:30px;list-style:none;padding:0}
.tv-path li{position:relative;padding:0 0 24px 34px}
.tv-path li::before{content:"";position:absolute;left:5px;top:16px;bottom:-14px;width:1px;background:currentColor;opacity:.5;transform-origin:50% 0;transform:scaleY(var(--d,1));transition:transform 1s var(--ease)}
.tv-path li:last-child{padding-bottom:6px}
.tv-path li:last-child::before{display:none}
.tv-path li::after{content:"";position:absolute;left:0;top:11px;width:11px;height:11px;border-radius:50%;border:1px solid currentColor;background:var(--peach);transform:scale(var(--d,1));transition:transform .7s var(--ease)}
.tv-path b{display:block;white-space:nowrap;font:400 clamp(32px,3.3vw,54px)/1.05 var(--serif);letter-spacing:-.01em}
.tv-path span{display:block;margin-top:4px;font-size:16px}
.tv-note{margin-top:16px;max-width:44ch;font-size:16px;line-height:1.5}

/* 3 · further afield: distances as bars on one scale (Podgorica = the full width) */
.tv-far-in{display:grid;gap:36px;padding-top:64px;padding-bottom:72px}
.tv-far-ph{aspect-ratio:4/5}
.tv-scale-k{margin-top:26px;font-size:14px;color:rgba(255,243,228,.8)}
.tv-bars{margin-top:8px}
.tv-bars li{display:grid;grid-template-columns:7.4em minmax(0,1fr) 3.8em;align-items:center;gap:12px;min-height:46px;border-bottom:1px solid rgba(255,243,228,.16);font-size:15px}
.tv-bars i{display:block;height:3px;background:var(--cream);transform-origin:0 50%;transform:scaleX(calc(var(--k) * var(--d,1)));transition:transform 1.4s var(--ease)}
.tv-bars b{font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.tv-far-list{margin-top:30px}
.tv-links{display:flex;flex-wrap:wrap;gap:0 28px;margin-top:18px}

/* 4 · stay longer */
.tv-stay-in{display:grid;gap:28px;padding-top:64px;padding-bottom:72px}
.tv-stay-ph{aspect-ratio:4/3}
.tv-stay-txt .lead{margin-top:0}

@media (min-width:761px) and (min-aspect-ratio:3/4){
  .phero-img{object-position:50% 44%}

  .phero-scrim{background:linear-gradient(90deg,rgba(12,10,18,.74) 0%,rgba(12,10,18,.5) 34%,rgba(12,10,18,0) 64%),radial-gradient(90% 85% at 0% 100%,rgba(9,10,12,.86) 0%,rgba(9,10,12,.6) 42%,rgba(9,10,12,0) 76%),linear-gradient(rgba(28,20,38,.62),rgba(28,20,38,0) 26%)}
  .tv-band{aspect-ratio:auto;height:min(64vh,46vw)}
  .tv-band img{object-position:50% 90%}
  .tv-roof-txt{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(28px,5vw,110px);align-items:end;padding-top:clamp(84px,12vh,150px);padding-bottom:clamp(48px,7vh,84px)}

  .tv-walk-in{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
  .tv-walk-ph{aspect-ratio:1/1}

  .tv-far-in{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(36px,5.5vw,120px);align-items:start;padding-top:clamp(84px,12vh,150px);padding-bottom:clamp(84px,12vh,150px)}
  .tv-far-ph{position:relative;top:0}
  .tv-bars li{grid-template-columns:9em minmax(0,1fr) 4.4em;gap:20px;font-size:clamp(16px,1.2vw,19px);min-height:50px}

  .tv-stay-in{grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);grid-template-areas:"head ph" "txt ph";gap:28px clamp(36px,5vw,110px);align-items:start;padding-top:clamp(84px,12vh,150px);padding-bottom:clamp(84px,12vh,150px)}
  .tv-stay-head{grid-area:head;align-self:end}
  .tv-stay-txt{grid-area:txt}
  .tv-stay-ph{grid-area:ph;aspect-ratio:auto;height:100%;min-height:min(62vh,40vw)}
}
