/* Static mirror fixes: layout visible without heavy lazy-load JS */
.vp-lazyload,
img.vp-lazyload {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.vp-portfolio__preloader-wrap {
  display: none !important;
}

.vp-portfolio__filter-wrap,
.vp-portfolio__items-wrap,
.vp-portfolio__pagination-wrap,
.vp-portfolio__sort-wrap {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Elementor defers background images until JS adds .e-lazyloaded */
.e-con.e-parent:not(.e-lazyloaded):not(.e-no-lazyload),
.e-con.e-parent:not(.e-lazyloaded):not(.e-no-lazyload) * {
  background-image: revert-layer !important;
}

.e-con.e-parent,
.e-con.e-parent * {
  background-image: var(--e-bg-lazyload, var(--background-image, none)) !important;
}

img {
  max-width: 100%;
  height: auto;
}

.elementor-widget-image img,
.wp-image,
.custom-logo {
  display: block;
}

.entry-content,
.elementor-widget-theme-post-content {
  overflow-wrap: break-word;
}

/* Reduce layout shift from archive intrinsic-size hack */
img[sizes="auto"],
img[sizes^="auto,"] {
  contain-intrinsic-size: auto !important;
}

/* Elementor grid fallback when per-page post-*.css is unavailable */
.elementor-section {
  position: relative;
}

.elementor-section .elementor-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.elementor-column {
  display: flex;
  min-height: 1px;
  position: relative;
}

.elementor-column-wrap,
.elementor-widget-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.elementor-col-100 {
  width: 100%;
}

.elementor-col-50 {
  width: 50%;
}

.elementor-col-33 {
  width: 33.333%;
}

.elementor-col-66 {
  width: 66.666%;
}

@media (max-width: 767px) {
  .elementor-column[class*="elementor-col-"] {
    width: 100% !important;
  }
}

.page-content,
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

/* Home: Elementor sections use their own horizontal padding */
body.home .site-main,
body.home .page-content {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.home .elementor-13 .elementor-section .elementor-container {
  max-width: none;
}

.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
}

.entry-content,
.page-content p {
  line-height: 1.65;
  font-family: Montserrat, Roboto, sans-serif;
}

/* Brands page: keep two-column sections aligned */
.elementor-195 .elementor-section .elementor-container {
  align-items: flex-start;
}

.elementor-195 .elementor-widget-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem 0 1rem;
  border-radius: 2px;
}

.elementor-195 .elementor-widget-text-editor ul {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.25rem;
}

.elementor-195 .elementor-widget-heading h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.elementor-195 .elementor-widget-heading h2:first-child {
  margin-top: 0;
}

/* Our Story page */
body.page-id-190 .page-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 0;
}

body.page-id-190 .page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem) 3rem;
}

/* Force true side-by-side row (columns were stacking at 50% width) */
@media (min-width: 768px) {
  .elementor-190 .sf-our-story-section > .elementor-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: nowrap !important;
    width: 100%;
    max-width: 100%;
  }

  .elementor-190 .sf-our-story-section > .elementor-container > .elementor-column {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
}

.elementor-190 .elementor-element-e671bcd > .elementor-widget-wrap,
.elementor-190 .elementor-element-c282c74 > .elementor-widget-wrap {
  justify-content: center;
}

.elementor-190 .elementor-widget-image .elementor-widget-container {
  height: auto !important;
  text-align: center;
}

.elementor-190 .elementor-widget-image img.sf-our-story-img {
  width: auto;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.elementor-190 .sf-our-story-building {
  max-width: 220px;
  border: 8px solid #b8956a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.elementor-190 .sf-our-story-sisters {
  max-width: min(100%, 440px);
  margin-top: 0.5rem;
}

.elementor-190 .elementor-widget-text-editor p {
  margin-bottom: 1rem;
  line-height: 1.65;
  font-size: 15px;
  color: #1a1a1a;
}

@media (min-width: 768px) {
  .elementor-190 .elementor-element-c282c74 > .elementor-widget-wrap {
    align-items: center;
  }
}

@media (max-width: 767px) {
  .elementor-190 .sf-our-story-section > .elementor-container {
    display: flex !important;
    flex-direction: column;
  }

  .elementor-190 .sf-our-story-section .elementor-column {
    width: 100% !important;
  }

  .elementor-190 .sf-our-story-building {
    max-width: 200px;
  }
}

/* Home — Meet the Sowell sisters (two-column) */
.elementor-13 .elementor-element-24841ad .elementor-container {
  align-items: flex-start;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 5%;
}

.elementor-13 .elementor-element-24841ad .elementor-widget-image img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
}

.elementor-13 .elementor-element-24841ad .elementor-heading-title {
  font-family: Montserrat, sans-serif;
  font-weight: 200;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #000;
}

@media (max-width: 767px) {
  .elementor-13 .elementor-element-24841ad .elementor-col-50 {
    width: 100% !important;
  }
}

/* Contact page: keep storefront photo proportional */
.elementor-17 .elementor-element-66627d0 .elementor-container {
  align-items: flex-start;
}

.elementor-17 .elementor-widget-image img.sf-contact-storefront,
.elementor-17 .elementor-element-e089d82 img {
  width: auto;
  max-width: min(100%, 280px);
  height: auto !important;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
