/* Bedminster reuses the Chepstow/Paulton stage browser and shared project opening. */
/* Clip only the page presentation; the shared viewer keeps the full photograph. */
.bedminster-page .bedminster-hero-crop { position: relative; flex: 1 1 auto; aspect-ratio: 3 / 4; min-height: 0; width: 100%; overflow: hidden; }
.bedminster-page .project-lead-image .bedminster-hero-crop img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; }
.bedminster-page .project-intro-copy .project-description + .project-description { margin-top: var(--g5-space-4, 16px); }
.bedminster-page .stage-gallery figcaption { text-align: left; font-style: normal; }
.bedminster-page .stage-photo img, .bedminster-page .stage-photo:focus-visible { border-radius: 0; }
.bedminster-page .stage-gallery--pair { grid-template-columns: repeat(2, minmax(0, calc((100% - 48px) / 3))); justify-content: center; }
.bedminster-page #completed .completed-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bedminster-page #folder-foundations .stage-gallery > figure:first-child { grid-column: 1 / -1; }
.bedminster-page #folder-walls .stage-gallery { grid-template-columns: minmax(0, 1fr); }
.bedminster-page .stage-folder:not(#folder-brief):not(#folder-roof) .stage-photo img.is-landscape { aspect-ratio: auto; object-fit: contain; }
.bedminster-page #bedminster-enquiry { padding-block: var(--g5-space-12, 48px); background: var(--g5-color-stone, #F2F0EB); }
.bedminster-page #bedminster-enquiry .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: var(--g5-space-12, 48px); align-items: center; }
.bedminster-page #bedminster-enquiry h2 { max-width: none; margin: 0 0 var(--g5-space-4, 16px); padding: 0; border: 0; color: var(--heading); }
.bedminster-page #bedminster-enquiry p { max-width: 760px; margin: 0; color: var(--g5-color-text, #666666); }
.bedminster-page #bedminster-enquiry .btn { width: 250px; max-width: 100%; padding: 14px 20px; text-align: center; color: var(--heading); font-weight: var(--g5-weight-strong, 600); }
@media (min-width: 1101px) {
  .bedminster-page .project-intro-grid { grid-template-columns: minmax(0, calc(var(--paulton-hero-width, 270px) * 1.333333)) minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .bedminster-page .completed-gallery, .bedminster-page .stage-gallery--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .bedminster-page .bedminster-hero-crop { flex: 0 1 auto; width: min(100%, 315px); max-height: 420px; align-self: flex-start; }
  .bedminster-page .project-lead-image figcaption { width: min(100%, 315px); padding-left: 0; align-self: flex-start; }
  .bedminster-page #bedminster-enquiry .wrap { grid-template-columns: 1fr; gap: var(--g5-space-6, 24px); }
}
@media (max-width: 600px) {
  .bedminster-page .stage-gallery, .bedminster-page .completed-gallery { grid-template-columns: 1fr; }
}
/* Larger Completed photographs on phones only; keep viewer labels accessible. */
@media (max-width: 600px), (max-width: 1100px) and (max-height: 500px) and (orientation: landscape) {
  .bedminster-page #completed .completed-gallery { grid-template-columns: minmax(0, 1fr); }
  .bedminster-page #completed .completed-gallery figcaption { display: none; }
}
