/* Solaris City Serampore: page-only additions on top of style.css + project.css */

/* ---------- Project features: six cards, three to a row ---------- */
.pj-fx-grid--6{grid-template-columns: repeat(3, minmax(0, 1fr));}
@media (max-width: 1100px){
  .pj-fx-grid--6{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 720px){
  .pj-fx-grid--6{grid-template-columns: minmax(0, 1fr);}
}

/* ---------- Awards: the four-award row turns into the slider (project.js),
   three cards to a view on desktop ---------- */
.pj-aw-cards--4.is-slider > .pj-aw-card{flex-basis: calc((100% - 3 * clamp(14px, 1.6vw, 22px)) / 3.3);}
@media (max-width: 1100px){
  .pj-aw-cards--4.is-slider > .pj-aw-card{flex-basis: calc((100% - clamp(14px, 1.6vw, 22px)) / 1.5);}
}
@media (max-width: 720px){
  .pj-aw-cards--4.is-slider > .pj-aw-card{flex-basis: 64%;}
}

/* ---------- Home loans: YES Bank tile is labelled as construction finance ---------- */
.pj-ln-banks .pj-ln-cf{flex-direction: column; gap: 8px;}
.pj-ln-cf small{font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(196, 64, 22);}
.pj-ln-banks .pj-ln-cf img{max-height: 40px;}

/* awards header: title | intro | arrows on one line while the slider is on */
.pj-aw-grid:has(.pj-aw-cards--4.is-slider) .pj-aw-head{grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;}
.pj-aw-grid:has(.pj-aw-cards--4.is-slider) .pj-aw-nav{margin-top: 0; align-self: end;}
@media (max-width: 760px){
  .pj-aw-grid:has(.pj-aw-cards--4.is-slider) .pj-aw-head{grid-template-columns: 1fr;}
}

/* ---------- Construction status: link to the full photo log ---------- */
.pj-cse-all{display: inline-flex; align-items: center; gap: 10px; min-height: 50px; margin-top: clamp(24px, 2.6vw, 34px); padding: 0 24px; border-radius: 99px; background: rgb(240, 90, 40); color: #ffffff; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; box-shadow: 0 16px 30px -18px rgba(240, 90, 40, 0.9); transition: background 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease;}
.pj-cse-all svg{width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 260ms ease;}
.pj-cse-all:hover{background: rgb(26, 20, 16); color: #ffffff; transform: translateY(-2px); box-shadow: 0 18px 32px -18px rgba(26, 20, 16, 0.7);}
.pj-cse-all:hover svg{transform: translateX(4px);}
@media (max-width: 1000px){
  .pj-cse-all{margin-top: 18px;}
}

/* ---------- Banner: the active photo eases out of its zoom, including the very first one ----------
   (a keyframe animation runs on first paint; a transition needs a prior state) */
.pj-hs-slide.is-active img{animation: srpHsZoom 7000ms linear both;}
@keyframes srpHsZoom{from{transform: scale(1.08);} to{transform: scale(1);}}
@media (prefers-reduced-motion: reduce){
  .pj-hs-slide.is-active img{animation: none;}
}

/* awards slider: the track is clipped at its padding edge, which sliced the
   peeking card and its shadow with a hard vertical line. Fade both side
   paddings instead, so the cut dissolves (cards at rest sit inside the
   padding, so they are untouched); the bottom padding keeps shadows whole. */
.pj-aw-cards--4.is-slider{--aw-fade: 40px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--aw-fade), #000 calc(100% - var(--aw-fade)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--aw-fade), #000 calc(100% - var(--aw-fade)), transparent 100%);}
@media (max-width: 720px){
  .pj-aw-cards--4.is-slider{--aw-fade: 16px;}
}

/* very small phones (320-350px): the dock email needs a little more room */
@media (max-width: 350px){
  .pj-mdock .pj-dock-ico{width: 30px; height: 30px; flex-basis: 30px;}
  .pj-mdock .pj-dock-item{gap: 7px; padding-left: 4px; padding-right: 6px;}
  .pj-dock-txt{font-size: 10.5px;}
  .pj-dock-txt small{font-size: 8.5px;}
}
