.factory-carousel { isolation: isolate; }
.factory-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y pinch-zoom; }
.factory-track { display: flex; height: 100%; transform: translateX(0); }
.factory-track.is-moving { transition: transform 650ms cubic-bezier(.22,.61,.36,1); }
.factory-slide { flex: 0 0 100%; width: 100%; min-width: 0; height: 100%; background: #edf3f6; }
.factory-slide-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; -webkit-user-drag: none; }
.factory-slide-image.fit-contain { object-fit: contain; padding: 32px 24px 120px; background: #f9f9f9; }
.factory-slide-image[src$="cleanroom.webp"] { object-position: 50% 60%; }
.factory-slide-image[src$="bioprocess.webp"] { object-position: 50% 55%; }
.factory-slide-image[src$="operation.webp"] { object-position: 55% 50%; }
.factory-carousel::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,rgba(14,25,29,.42)); pointer-events: none; z-index: 1; }
.factory-carousel .hero-caption { z-index: 3; }
.factory-controls { position: absolute; left: 24px; right: 24px; bottom: 86px; display: flex; align-items: center; gap: 6px; z-index: 3; color: white; }
.factory-controls[hidden] { display: none; }
.factory-controls button { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid #ffffff80; background: #1c2528cf; color: #fff; border-radius: 50%; padding: 10px; cursor: pointer; }
.factory-controls button:hover { background: #172024; }
.factory-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 5px #25282a; }
.factory-controls svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.factory-previous svg { transform: rotate(180deg); }
.factory-dots { display: flex; align-items: center; margin-right: auto; }
.factory-controls .factory-dot { flex-basis: 30px; width: 30px; min-width: 30px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.factory-controls .factory-dot:hover { background: transparent; }
.factory-dot span { width: 6px; height: 6px; border-radius: 10px; background: #fff7; box-shadow: 0 0 1px #000; transition: width .2s; }
.factory-dot[aria-current=true] span { width: 20px; background: #fff; }
.factory-counter { font-size: 11px; letter-spacing: .08em; font-variant-numeric: tabular-nums; padding: 6px; background: #1c25289c; border-radius: 3px; white-space: nowrap; }
@media (min-width:601px) and (max-width:900px) {
  .factory-controls { left: 16px; right: 16px; bottom: 108px; gap: 4px; }
  .factory-controls .factory-dot { flex-basis: 24px; width: 24px; min-width: 24px; }
  .factory-counter { display: none; }
}
@media (max-width:600px) {
  .ingredient-first .factory-carousel { aspect-ratio: 1.3; min-height: 280px; }
  .factory-controls { left: 16px; right: 16px; bottom: 69px; gap: 5px; }
  .factory-counter { margin-right: auto; }
  .factory-dots { margin-right: 0; }
}
@media (max-width:359px) {
  .factory-controls .factory-dot { flex-basis: 24px; width: 24px; min-width: 24px; }
  .factory-counter { display: none; }
  .factory-dots { margin-right: auto; }
}
@media (prefers-reduced-motion:reduce) {
  .factory-track.is-moving,.factory-dot span { transition: none; }
}
@media (max-width:900px) {
  .factory-dots { display:none; }
  .factory-counter { display:block; margin-right:auto; }
}
@media (max-width:600px) {
  .factory-slide-image.fit-contain { padding:10px 18px 110px; }
}
