/* EPA V79: compact photo-only advertising; existing images are always contained (not cropped). */
#epaHomeDashboard .epa-v72-home-adstrip,
.epa-v74-search-results-strip{box-sizing:border-box!important;max-width:100%!important;min-width:0!important;}
#epaHomeDashboard .epa-v72-home-adstrip:not(.epa-v79-on),
.epa-v74-search-results-strip:not(.epa-v79-on){display:none!important;}
#epaHomeDashboard .epa-v72-home-adstrip .epa-v72-home-ad{
  aspect-ratio:1200 / 200!important;min-height:0!important;max-height:none!important;
  width:100%!important;max-width:100%!important;box-sizing:border-box!important;
}
#epaHomeDashboard .epa-v72-home-adstrip .epa-v72-home-ad img,
.epa-v74-search-result-ad img,
#epaQuickSearchResults .epa-v73-quick-sponsored img{
  display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;
}
.epa-v74-search-result-ad{aspect-ratio:960 / 200!important;min-height:0!important;max-width:100%!important;box-sizing:border-box!important;}
#epaQuickSearchResults .epa-v73-quick-sponsored{box-sizing:border-box!important;max-width:100%!important;min-width:0!important;}
#epaQuickSearchResults .epa-v73-quick-sponsored>a,
#epaQuickSearchResults .epa-v73-quick-sponsored>div{
  aspect-ratio:960 / 200!important;width:100%!important;max-width:100%!important;
  min-height:0!important;box-sizing:border-box!important;
}
/* Preserve all editorial content outside sponsor exposure. Advertisement is panoramic. */
.epa-opportunity-hero.epa-v72-slider{box-sizing:border-box!important;height:200px!important;min-height:200px!important;max-width:100%!important;}
.epa-opportunity-hero.epa-v72-slider.epa-v79-show-ad{
  height:auto!important;min-height:0!important;aspect-ratio:1200 / 200!important;
  overflow:hidden!important;
}
.epa-opportunity-hero.epa-v72-slider.epa-v79-show-ad .epa-v72-ad-slide,
.epa-opportunity-hero.epa-v72-slider.epa-v79-show-ad .epa-v72-ad-click{
  width:100%!important;height:100%!important;min-width:0!important;overflow:hidden!important;
}
.epa-opportunity-hero.epa-v72-slider.epa-v79-show-ad .epa-v72-ad-image{object-fit:contain!important;}
.epa-opportunity-hero.epa-v72-slider.epa-v79-show-ad .epa-v72-pager{
  bottom:2px!important;padding:3px 5px!important;
}
/* Fix overscrolled option headings and nested upload boxes on compact phones. */
#epaCampaignForm, #epaCampaignForm .epa-formgrid,
#epaCampaignForm .epa-field.epa-span3,
#epaCampaignForm .epa-v69-slot-grid,
#epaCampaignForm .epa-v69-slot{
  box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
}
#epaCampaignForm .epa-v69-slot-grid{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
  width:100%!important;overflow:visible!important;
}
#epaCampaignForm .epa-v69-slot{display:flex!important;flex-direction:column!important;gap:8px!important;padding:11px!important;overflow:hidden!important;}
#epaCampaignForm label.epa-v69-slot-heading{
  position:relative!important;box-sizing:border-box!important;display:flex!important;
  flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  gap:9px!important;padding:0!important;margin:0!important;float:none!important;
  white-space:normal!important;text-align:left!important;
}
#epaCampaignForm label.epa-v69-slot-heading input[type=checkbox]{
  position:static!important;flex:0 0 19px!important;display:block!important;
  width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;
  max-width:19px!important;max-height:19px!important;padding:0!important;margin:0!important;
  appearance:auto!important;
}
#epaCampaignForm label.epa-v69-slot-heading b{
  position:static!important;display:block!important;flex:1 1 0!important;
  width:auto!important;min-width:0!important;max-width:100%!important;
  font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere!important;
  white-space:normal!important;text-align:left!important;margin:0!important;
}
#epaCampaignForm .epa-v69-slot-preview,
#epaCampaignForm .epa-v69-slot-measure,
#epaCampaignForm .epa-v69-upload,
#epaCampaignForm .epa-v69-upload-status{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
  overflow-wrap:anywhere!important;
}
#epaCampaignForm .epa-v69-slot-preview{min-height:0!important;height:auto!important;flex:none!important;overflow:hidden!important;}
#epaCampaignForm .epa-v69-slot-preview img{width:100%!important;height:100%!important;object-fit:contain!important;}
#epaCampaignForm .epa-v69-slot-empty span{font-size:clamp(12px,4vw,20px)!important;}
#epaCampaignForm .epa-v69-slot-empty small{font-size:9px!important;line-height:1.3!important;}
#epaCampaignForm .epa-v69-upload{min-height:42px!important;padding:10px 8px!important;font-size:11px!important;}
#epaCampaignForm .epa-v69-slot-measure{font-size:10px!important;}
@media(min-width:780px){#epaCampaignForm .epa-v69-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
/* Narrow panoramic previews cannot fit three lines of placeholder copy. */
#epaCampaignForm .epa-v69-slot[data-epa-placement-card="home_listings"] .epa-v69-slot-empty small,
#epaCampaignForm .epa-v69-slot[data-epa-placement-card="opportunity_top"] .epa-v69-slot-empty small,
#epaCampaignForm .epa-v69-slot[data-epa-placement-card="property_search"] .epa-v69-slot-empty small{
  display:none!important;
}
#epaCampaignForm .epa-v69-slot[data-epa-placement-card="home_listings"] .epa-v69-slot-empty span,
#epaCampaignForm .epa-v69-slot[data-epa-placement-card="opportunity_top"] .epa-v69-slot-empty span,
#epaCampaignForm .epa-v69-slot[data-epa-placement-card="property_search"] .epa-v69-slot-empty span{
  font-size:clamp(13px,3.8vw,19px)!important;line-height:1.1!important;
}
