/* ETmodules font is restored under /core/admin/fonts/.
   Keep only light FA fallbacks for controls that still look better with FA. */
.mobile_menu_bar:before,
.et_pb_contact_submit:after,
.et_pb_button:after,
.et-pb-arrow-prev:before,
.et-pb-arrow-next:before,
#top-menu .menu-item-has-children > a:first-child:after {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
}
.mobile_menu_bar:before { content: "\f0c9"; }
.et_pb_contact_submit:after,
.et_pb_button:after,
.et-pb-arrow-next:before { content: "\f105"; }
.et-pb-arrow-prev:before { content: "\f104"; }
#top-menu .menu-item-has-children > a:first-child:after { content: "\f107"; }

/* Phone / email / social use native ETmodules glyphs again. */
#et-info-phone:before,
#et-info-email:before,
.et-social-icon a:before,
.et-social-icon a.icon:before {
  font-family: ETmodules !important;
  font-weight: 400 !important;
}

/* Restore the static archive layout without animation dependencies. */
#main-content .et_pb_section {padding:28px 0!important; min-height:0!important;}
#main-content .et_pb_row {padding:12px 0!important;}
#main-content .et_pb_row_inner {padding:8px 0!important;}
#main-content .et_pb_text h1,#main-content .et_pb_text h2,#main-content .et_pb_text h3,#main-content .et_pb_text h4 {margin:0 0 .65em;line-height:1.3;}
#main-content .et_pb_text p {margin:0 0 .9em;line-height:1.65;}
#main-content .et_pb_text h1 {font-size:30px;}
#main-content .et_pb_text h2 {font-size:26px;}
#main-content .et_pb_text h3 {font-size:23px;}
#main-content .et_pb_text h4 {font-size:20px;}
#main-content .et_pb_image {opacity:1!important;visibility:visible!important;transform:none!important;margin-bottom:18px!important;}
#main-content .et_pb_image img {width:100%;max-height:330px;object-fit:cover;border-radius:6px;}
#main-content .et_pb_column_empty {display:none!important;}
.home .et_pb_slide {background:#fff4e3!important;}
.home .et_pb_slide_description {padding:40px 25px!important;animation:none!important;opacity:1!important;text-shadow:none!important;}
.home .et_pb_slide_description h2,.home .et_pb_slide_description h3,.home .et_pb_slide_description p {color:#433627!important;}
.home .et_pb_slide_description h2 {font-size:36px!important;margin-bottom:18px;}
.home .et_pb_slide_image {display:block!important;opacity:1!important;animation:none!important;}
.home .et_pb_slider .et_pb_container {height:auto!important;min-height:340px!important;}
#logo {opacity:1!important;visibility:visible!important;}
.page-id-6 .et_pb_section_0 {background:#fff4e3!important;}
.page-id-6 .et_pb_section_0 .et_pb_row_0 {display:none;}
@media(max-width:767px){.home .et_pb_slide_description{padding:25px!important}.home .et_pb_slide_title{font-size:28px!important;}}

#main-content .et_pb_text {margin-bottom:18px!important;}
.home .et_pb_section_3 .et_pb_image_1,.home .et_pb_section_3 .et_pb_image_2 {display:none!important;}

/* Gallery: show restored images even when originals are missing from the archive. */
#main-content .et_pb_gallery .et_pb_gallery_image {
  position: relative;
  overflow: hidden;
  background: #f3ebe1;
  min-height: 160px;
}
#main-content .et_pb_gallery .et_pb_gallery_image img {
  display: block !important;
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#main-content .et_pb_gallery .et_pb_gallery_item {
  margin-bottom: 22px !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
#main-content .et_pb_gallery.et_animated,
#main-content .et_pb_gallery .et_animated {
  opacity: 1 !important;
  animation: none !important;
}
#main-content .et_pb_gallery_title {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.35;
  color: #433627;
}
#main-content .et_pb_gallery_caption {
  font-size: 13px;
  color: #6b5b4d;
  margin-top: 4px;
}
/* Visual variety when the same thematic photo is reused. */
#main-content .et_pb_gallery_item:nth-child(3n) .et_pb_gallery_image img { object-position: 20% 40%; }
#main-content .et_pb_gallery_item:nth-child(3n+1) .et_pb_gallery_image img { object-position: 70% 30%; }
#main-content .et_pb_gallery_item:nth-child(3n+2) .et_pb_gallery_image img { object-position: 50% 70%; }
#main-content .et_pb_gallery_item:nth-child(4n) .et_pb_gallery_image img { filter: saturate(1.05) contrast(1.02); }
#main-content .et_pb_gallery_item:nth-child(5n) .et_pb_gallery_image img { filter: saturate(.95) brightness(1.03); }

/* Events + Galerie hero / section layout (original et-core-unified CSS missing). */
.page-id-55 #main-content .et_pb_section_0,
.page-id-63 #main-content .et_pb_section_0 {
  background: linear-gradient(180deg, #fff4e3 0%, #ffe0b8 100%) !important;
  padding: 48px 0 28px !important;
}
.page-id-55 #main-content .et_pb_section_0 h1,
.page-id-63 #main-content .et_pb_section_0 h1,
.page-id-55 #main-content .et_pb_section_0 h1 span,
.page-id-63 #main-content .et_pb_section_0 h1 span {
  color: #433627 !important;
}
.page-id-55 #main-content .et_pb_section_1,
.page-id-55 #main-content .et_pb_section_6,
.page-id-63 #main-content .et_pb_section_1,
.page-id-63 #main-content .et_pb_section_2,
.page-id-63 #main-content .et_pb_section_9 {
  display: none !important;
}
.page-id-55 #main-content .et_pb_specialty .et_pb_column_1_2 {
  padding: 10px 18px !important;
}
.page-id-55 #main-content .et_pb_image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 6px;
}
.page-id-55 #main-content .et_pb_text h3,
.page-id-55 #main-content .et_pb_text h4 {
  color: #433627;
}
.page-id-55 #main-content .et_pb_text h5 {
  color: #5a4a3a;
  font-weight: 500;
  line-height: 1.55;
}

/* Ensure Divi icon font is available for overlay / scroll-top glyphs. */
.et-pb-icon,
.et_overlay:before,
.et_pb_scroll_top:before,
.et-social-icon a:before {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
