﻿/* Before/after captions (homepage results + Our Model Work). Mobile first. Colours come from site.css :root. */
.gallery .slide figcaption{
  display:block;
  width:100%;
  box-sizing:border-box;
  padding:9px 10px;
  border-top:1.5px solid var(--aubergine);
  background:var(--mist);
  color:var(--aubergine);
  font:700 12.5px/1.3 var(--sans, system-ui, sans-serif);
  letter-spacing:.02em;
  text-align:center;
}
@media (min-width:621px){
  .gallery .slide figcaption{padding:11px 14px;font-size:14px}
}

/* Drag slider caption */
.ba-fig{margin:0;max-width:440px;margin-left:auto}
.ba-fig .ba{margin-left:0;max-width:none}
.ba-fig figcaption{
  margin-top:14px;
  text-align:center;
  color:var(--plum);
  font:700 13px/1.3 var(--sans, system-ui, sans-serif);
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* Homepage: one drag slider, centred above the grid */
.home-ba{margin:34px auto 0;max-width:440px}
.home-ba .ba{margin:0}

/* Homepage results grid: every card the same size, images shown whole (no stretching, no cropping) */
#results .gallery{align-items:stretch;grid-template-columns:repeat(2,1fr)}
@media (min-width:961px){#results .gallery{grid-template-columns:repeat(5,1fr);gap:20px}}
#results .gallery .slide{display:flex;flex-direction:column;height:100%;overflow:hidden}
#results .gallery .slide img{aspect-ratio:4/5;width:100%;height:auto;object-fit:contain;background:var(--white)}
#results .gallery .slide figcaption{flex:1;display:flex;align-items:center;justify-content:center;min-height:3.4em}

/* Our Model Work: every card identical - same photo box, same caption height, whole photo shown (no crop, no stretch) */
.mw-grid{align-items:stretch}
.mw-grid .slide{display:flex;flex-direction:column;height:100%;overflow:hidden}
.mw-grid .slide img{aspect-ratio:4/5;width:100%;height:auto;object-fit:contain;background:var(--white)}
.mw-grid .slide figcaption{flex:1;display:flex;align-items:center;justify-content:center;min-height:calc(2.75em + 18px)}
@media (min-width:621px){.mw-grid .slide figcaption{min-height:calc(2.75em + 22px)}}

/* "View Our Model Work" button under the homepage grid */
.mw-more{display:flex;justify-content:center;margin-top:28px}
.mw-more .btn{width:100%;max-width:340px;justify-content:center;text-align:center}
@media (min-width:621px){
  .mw-more{margin-top:40px}
  .mw-more .btn{width:auto}
}
