.eh-factory-gallery {
  --gallery-ink: #3b2b28;
  --gallery-gold: #91651f;
  --gallery-line: #c9ae87;
  min-width: 0;
  color: var(--gallery-ink);
}

.eh-factory-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fffdf9;
  touch-action: pan-y pinch-zoom;
}

.eh-factory-stage > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 420ms ease;
}

.eh-factory-stage > img.is-current {
  z-index: 1;
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .eh-factory-stage > img {
    transition: opacity 420ms ease, transform 320ms ease-in-out;
  }

  .eh-factory-stage:hover > img.is-current {
    transform: scale(1.035);
  }
}

.eh-factory-gallery .eh-factory-stage > img:first-child {
  height: 100%;
  object-position: center 65%;
}

/* About Us owns the section layout; the gallery owns its stage and controls. */
.et-interior.et-about .et-factory-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.et-about .et-factory-copy h3.elementor-heading-title { font-size: 24px; }
@media (max-width: 1024px) {
  .et-interior.et-about .et-factory-row { grid-template-columns: minmax(0, 1fr); }
}

.eh-factory-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding-top: 5px;
}

.eh-factory-steps, .eh-factory-actions {
  display: flex;
  align-items: center;
}

.eh-factory-steps { gap: 7px; }

.eh-factory-gallery button {
  appearance: none;
  display: grid;
  min-height: 44px;
  padding: 0;
  place-items: center;
  color: var(--gallery-ink);
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.eh-factory-gallery button:hover { background: #fffdf9; }
.eh-factory-gallery button:focus-visible { outline: 2px solid var(--gallery-gold); outline-offset: -2px; }
.eh-factory-actions > button { width: 44px; font: 18px/1 sans-serif; }
.eh-factory-gallery .eh-factory-step {
  flex: 1;
  min-width: 26px;
  grid-template-columns: minmax(0, 1fr);
  padding-inline: 3px;
}

.eh-factory-track {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--gallery-line);
}

.eh-factory-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--gallery-gold);
  transform: scaleX(0);
  transform-origin: left;
}

.eh-factory-step[aria-current="true"] .eh-factory-fill { transform: scaleX(1); }
.eh-factory-step[aria-current="true"] .eh-factory-track { background: #a77c46; }
.eh-factory-label { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.3; }

@media (prefers-reduced-motion: reduce) {
  .eh-factory-stage > img { transition: none; }
}
