.fmbc-home-events-slot,
.fmbc-home-events-slot>.e-con-inner{
  width:100%!important;
  max-width:var(--fmbc-max)!important;
  margin-right:auto!important;
  margin-left:auto!important;
}

.fmbc-home-events-shortcode,
.fmbc-home-events-shortcode>.elementor-widget-container{
  width:100%!important;
  max-width:none!important;
}

.fmbc-home-event-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  width:100%;
}

.fmbc-home-event-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:14px!important;
  overflow:hidden;
}

.fmbc-home-event-card .fmbc-event-card{
  display:block;
}

.fmbc-home-event-card .fmbc-event-card img{
  display:block;
  width:100%;
  height:205px!important;
  object-fit:cover;
  border-radius:12px;
}

.fmbc-home-event-card h3{
  margin:16px 4px 8px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:19px;
  line-height:1.2;
}

.fmbc-home-event-card h3 a{
  color:inherit;
  text-decoration:none;
}

.fmbc-home-event-card .elementor-widget-container{
  margin:0 4px;
  line-height:1.5;
}

.fmbc-home-event-card .elementor-widget-container p{
  margin:0;
}

.fmbc-home-event-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:14px 4px 3px;
  color:#b97808!important;
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-decoration:none!important;
  text-transform:uppercase;
}

.fmbc-home-event-placeholder{
  display:grid;
  place-items:center;
  width:100%;
  height:205px;
  border-radius:12px;
  background:#f4efe6;
  color:#d99a24;
}

.fmbc-home-event-placeholder svg{
  width:54px;
  height:54px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
}

.fmbc-home-events-empty span{
  display:block;
  margin-top:3px;
}

/* Keep the calendar centered inside its circular holder. The typography
   stylesheet intentionally makes general spans block-level, so restore the
   icon holder's flex centering only inside the Home-page events notice. */
.fmbc-home-events-empty > .fmbc-event-meta-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
}

.fmbc-home-events-empty > .fmbc-event-meta-icon svg{
  display:block!important;
  margin:0!important;
}

/* Sample-three treatment for the Home-page first-visit photo callout. */
.fmbc-visit-callout{
  align-items:center!important;
  justify-content:center!important;
  gap:22px!important;
  padding:28px 24px!important;
  text-align:center!important;
}

.fmbc-visit-callout .elementor-widget-heading,
.fmbc-visit-callout .elementor-widget-button{
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  align-self:center!important;
}

.fmbc-visit-callout h3.elementor-heading-title{
  margin:0!important;
  color:#e3a11d!important;
  font-family:"Playfair Display",Georgia,"Times New Roman",serif!important;
  font-size:clamp(24px,2vw,32px)!important;
  font-weight:700!important;
  line-height:1.2!important;
}

.fmbc-visit-callout .elementor-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:11px!important;
  min-width:245px;
  padding:17px 24px!important;
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:6px!important;
  box-shadow:0 5px 13px rgba(0,0,0,.22)!important;
}

.fmbc-visit-callout .elementor-button::after{
  content:"";
  display:block;
  width:20px;
  height:20px;
  flex:0 0 20px;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 11-8 11S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

@media(max-width:680px){
  .fmbc-visit-callout{gap:16px!important;padding:22px 16px!important;}
  .fmbc-visit-callout .elementor-button{min-width:0;width:100%!important;}
}

@media(max-width:1050px){
  .fmbc-home-event-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media(max-width:680px){
  .fmbc-home-event-grid{grid-template-columns:1fr;gap:12px;}
  .fmbc-home-event-card .fmbc-event-card img,
  .fmbc-home-event-placeholder{height:190px!important;}
}
