/* Infochief Academy — reusable training photo filmstrip. 2026-10-27.
   Namespaced to .ic-filmstrip. Does not override global hero, menu, carousel or footer styles.
   Adjust --ic-filmstrip-frame-width / height, --ic-filmstrip-gap, --ic-filmstrip-speed in this file.
*/
.ic-filmstrip-section {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 12px 0 0;
  background: transparent;
}
.ic-filmstrip-section *, .ic-filmstrip-section *::before,
.ic-filmstrip-section *::after { box-sizing: border-box; }
.ic-filmstrip {
  --ic-filmstrip-frame-width: 152px;
  --ic-filmstrip-frame-height: 90px;
  --ic-filmstrip-gap: 8px;
  --ic-filmstrip-speed: 52; /* pixels/second; used by JS, not a time in seconds */
  --ic-filmstrip-duration: 32s; /* fallback before JS initializes */
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 13px 0;
  border: 1px solid #123c59;
  border-radius: 1px;
  background: #081c2d;
  box-shadow: 0 5px 18px rgba(10, 45, 79, .13);
}
/* White sprocket holes on the upper and lower edges: film reel aesthetic. */
.ic-filmstrip::before,
.ic-filmstrip::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  height: 8px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg,
    transparent 0 16px, #f5f8fa 16px 24px, transparent 24px 39px);
}
.ic-filmstrip::before { top: 3px; }
.ic-filmstrip::after { bottom: 3px; }
.ic-filmstrip__viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 1px;
}
.ic-filmstrip__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: max-content;
  max-width: none;
  animation: ic-filmstrip-scroll var(--ic-filmstrip-duration) linear infinite;
  will-change: transform;
}
.ic-filmstrip__group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-flow: row nowrap;
  gap: var(--ic-filmstrip-gap);
  width: max-content;
  padding-right: var(--ic-filmstrip-gap);
}
.ic-filmstrip__frame {
  display: block;
  flex: 0 0 var(--ic-filmstrip-frame-width);
  width: var(--ic-filmstrip-frame-width);
  height: var(--ic-filmstrip-frame-height);
  min-width: 0;
  margin: 0;
  padding: 2px;
  border: 2px solid #ebf1f5;
  border-radius: 1px;
  background: #163c50;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6);
  overflow: hidden;
}
.ic-filmstrip__frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  background: #eaf1f7;
  color: #194369;
  font-size: 12px;
}
@keyframes ic-filmstrip-scroll {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-50%,0,0); }
}
/* Intentional pause, to allow visitors to inspect training pictures. */
.ic-filmstrip:hover .ic-filmstrip__track,
.ic-filmstrip:focus-within .ic-filmstrip__track {
  animation-play-state: paused;
}
.ic-filmstrip:focus-visible {
  outline: 3px solid #eca82c;
  outline-offset: 4px;
}
@media (max-width: 760px) {
  .ic-filmstrip-section { padding-top: 9px; }
  .ic-filmstrip {
    --ic-filmstrip-frame-width: 128px;
    --ic-filmstrip-frame-height: 78px;
    --ic-filmstrip-gap: 7px;
    padding: 11px 0;
    border-radius: 1px;
  }
  .ic-filmstrip::before, .ic-filmstrip::after { height: 7px; }
  .ic-filmstrip::before { top: 2px; }
  .ic-filmstrip::after { bottom: 2px; }
}
@media (max-width: 420px) {
  .ic-filmstrip {
    --ic-filmstrip-frame-width: 110px;
    --ic-filmstrip-frame-height: 68px;
    --ic-filmstrip-gap: 6px;
  }
}
/* Honor accessibility setting; permit manual horizontal scrolling, no animated clones. */
@media (prefers-reduced-motion: reduce) {
  .ic-filmstrip__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }
  .ic-filmstrip__track { animation: none !important; will-change: auto; }
  .ic-filmstrip__group[aria-hidden="true"] { display: none; }
  .ic-filmstrip__frame { scroll-snap-align: start; }
}
