/* Main-page containers follow the display, not the saved 1216px centre cap.
   Keep readable text measures, full-bleed media and the existing grid breakpoints. */
.lcdg-divi5.et-db #et-boc .et-l :is(
 #services-preview,#home-coverage,#home-first-visit,#first-visit,
 #welcome,#team,#iv-sedation,
 .section--community-story,#lakeland-care,#community-visit,#land-acknowledgement,
 .lcdg-team-dentists,.team-section--directory,#careers,#new-patient-request,
 .lcdg-blog-index,.lcdg-services-intro,#all-services,#services-next-step,
 .lcdg-contact-form,.lcdg-contact-guidance,.lcdg-contact-faq,
 #reviews,.lcdg-footer
)>.lcdg-row,
.lcdg-divi5.lcdg-route-home-page-2.et-db #et-boc .et-l :is(#home-hero,#community)>.lcdg-row{
 width:calc(100% - 2 * var(--lcdg-site-gutter))!important;
 max-width:none!important;
 margin-left:auto!important;
 margin-right:auto!important;
}

/* A fluid row must not contain a phone/tablet card stranded at 440px.
   Only outer card columns are widened; rich-text leaves and photo frames are untouched. */
.lcdg-divi5.et-db #et-boc .et-l :is(
 #services-preview,#home-coverage,#home-first-visit,#first-visit,#reviews,
 .section--community-story,#lakeland-care,.lcdg-team-dentists,.team-section--directory
)>.lcdg-row>:is(.lcdg-card,.lcdg-dentist,.team-directory-card,.community-story-card,.community-detail-card){
 max-width:none!important;
}

/* Prefer square outer cards, but let complete text/photo content grow taller.
   A definite width prevents stretched grid tracks feeding back into card width. */
.lcdg-divi5.et-db #et-boc .et-l .lcdg-col:is(.lcdg-card,.lcdg-aside-card,.lcdg-dentist,.team-directory-card,.community-story-card,.community-detail-card,.community-area-card,.lcdg-guidance-option),
.lcdg-divi5.et-db #et-boc .et-l .lcdg-blog .et_pb_post{
 width:100%!important;
 min-width:0;
 aspect-ratio:1!important;
 height:auto!important;
 min-height:auto!important;
 overflow:visible!important;
 border-radius:18px;
}
/* Keep rounded image corners without making an outer card a clipping box;
   visible overflow is needed for the content-driven automatic minimum height. */
.lcdg-divi5.et-db #et-boc .et-l .lcdg-col:is(.lcdg-oct24-photo-card,.team-directory-card)>.et_pb_image,
.lcdg-divi5.et-db #et-boc .et-l .lcdg-blog .entry-featured-image-url{
 border-radius:18px 18px 0 0;
}
.lcdg-divi5.et-db #et-boc .et-l .lcdg-numbered-steps{
 grid-auto-rows:1fr;
}
/* Roomier insets and balanced vertical space belong to text-only cards;
   photo-led cards retain their edge-to-edge images and existing reading order. */
.lcdg-divi5.et-db #et-boc .et-l .lcdg-col:is(.new-patient-coverage__card,.community-story-card,.community-detail-card,.community-area-card,.lcdg-guidance-option,.lcdg-aside-card){
 display:flex;
 flex-direction:column;
 justify-content:center!important;
 padding:clamp(28px,3vw,56px)!important;
}
.lcdg-divi5.et-db #et-boc .et-l .lcdg-col:is(.new-patient-coverage__card,.community-story-card,.community-detail-card,.community-area-card,.lcdg-guidance-option,.lcdg-aside-card)>:is(.lcdg-link,.et_pb_button_module_wrapper){
 margin-top:16px!important;
}
/* Home service cards are the deliberate exception: keep every head, hand and
   dental model visible instead of enlarging portraits to fill a cropped frame. */
.lcdg-divi5.lcdg-route-home.et-db #et-boc .et-l #services-preview .lcdg-oct25-service-row>.lcdg-card{
 aspect-ratio:auto!important;
}
.lcdg-divi5.lcdg-route-home.et-db #et-boc .et-l #services-preview .lcdg-oct25-service-row .lcdg-oct24-card-photo img{
 object-fit:contain!important;
 object-position:center!important;
}
.lcdg-divi5.et-db #et-boc .et-l .lcdg-preview-controls,
.lcdg-divi5.lcdg-route-contact.et-db #et-boc .et-l .lcdg-oct26-contact-form .lcdg-form-layout>.lcdg-col:last-child{
 border-radius:18px!important;
}

/* These rows are already edge-to-edge; remove only padding that recreates
   the fixed centre cap. The section-level Community area grid stays untouched. */
.lcdg-divi5.lcdg-route-services.et-db #et-boc .et-l :is(.lcdg-emergency-row,.lcdg-emergency-detail){
 padding-inline:var(--lcdg-site-gutter)!important;
}
@media(min-width:981px){
 .lcdg-divi5.et-db #et-boc .et-l .lcdg-mockup-home-hero .lcdg-hero-row{
  padding-inline:var(--lcdg-site-gutter)!important;
 }
}
