/*
  Page-specific styles for: Curvature (classic template)
  Loaded AFTER css/base.css and css/classic.css, so anything here overrides
  them for this page only. Put per-page layout tweaks in this file so a
  fix for this case study can never affect any other page.
  Scope every rule under #case-curvature.
*/

/* Source PDF lays these 6 photos out as a clean 3-col x 2-row grid
   (confirmed from the extracted per-photo positions), not the scattered
   PDF-relative widths the generator originally produced. Replace the
   flex-wrap width guessing with a real grid, and crop to a fixed ratio
   so uneven source aspect ratios don't leave jagged row heights. */
#case-curvature .vbc-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 18px;
}
#case-curvature .vbc-gallery__item {
    width: auto;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
#case-curvature .vbc-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    #case-curvature .vbc-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    #case-curvature .vbc-gallery { grid-template-columns: 1fr; }
}
