/* V9.10.16 – smaller showroom rollerdeck (~half size), larger wrapping thumbnail grid (~triple size) */

/*
  Desktop: the main feature image was ~557×552 and the side peeks ~149×365.
  Both are halved and the three cards sit centred as a group:
  feature ~278×277, peeks ~75×188, stage height 295px (was 590px).
*/
.cinematic-showcase{
  height:295px;
  width:max-content;
  max-width:100%;
  margin-inline:auto;
  padding:10px 48px 8px;
  grid-template-columns:75px 278px 75px;
  gap:12px;
}
.gallery-feature{height:100%;width:100%}
.gallery-feature-meta{padding:12px 14px 10px;gap:10px}
.gallery-feature-meta h2,
.gallery-feature-price{font-size:18px}
.gallery-arrow{width:36px;height:52px;font-size:28px}

/* Thumbnails: wrapping grid, ~3× previous 116×63 cards */
.thumb-rail{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:14px 16px;
  overflow:visible;
  padding:16px 14px 18px;
}
.gallery-thumb{
  flex:none;
  width:auto;
  display:flex;
  flex-direction:column;
  padding:6px;
  color:var(--text-2);
  background:var(--surface-1);
  border:1px solid var(--line);
  cursor:pointer;
  text-align:left;
}
.gallery-thumb img{
  width:100%;
  height:189px;
  object-fit:cover;
  display:block;
  background:var(--surface-1);
}
.gallery-thumb-name,
.gallery-thumb span{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  white-space:normal;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:13px;
  line-height:1.35;
  margin-top:8px;
  color:inherit;
}
.gallery-thumb-price{
  display:block;
  margin-top:4px;
  color:var(--gold);
  font-size:13px;
  letter-spacing:.3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gallery-thumb.selected{
  border-color:var(--gold);
  color:var(--gold);
  box-shadow:0 0 0 1px rgba(213,180,119,.2);
}

/* Tablet: peeks already hidden; half the previous 500px stage, full width */
@media(max-width:900px){
  .cinematic-showcase{
    width:100%;
    max-width:none;
    height:250px;
    padding:8px 42px;
    grid-template-columns:1fr;
    gap:0;
  }
  .thumb-rail{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
  .gallery-thumb img{height:168px}
}

/* Phone: half the previous 390/500px stage; one or two columns of large thumbs */
@media(max-width:650px){
  .cinematic-showcase{
    width:100%;
    max-width:none;
    height:195px;
    padding:8px 36px;
    grid-template-columns:1fr;
  }
  .gallery-feature-meta{padding:10px 12px}
  .gallery-feature-meta h2,
  .gallery-feature-price{font-size:16px}
  .thumb-rail{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));padding:12px 8px 14px;gap:10px}
  .gallery-thumb img{height:156px}
  .gallery-thumb-name,
  .gallery-thumb span,
  .gallery-thumb-price{font-size:12px}
}

@media(max-width:420px){
  .thumb-rail{grid-template-columns:1fr}
  .gallery-thumb img{height:168px}
}
